/* nav Custom Styles */
.navbar {
    background-color: #2455d1;
}

.navbar-brand, .nav-link, .email-phone {
    color: white !important;
}

.email-phone {
    text-align: right;
}

.navbar-expand-lg {
    margin: 0;
    padding: 0;
}

.whatsapp-link {
    display: block;
    color: #25D366;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Custom mobile styling */
@media (max-width: 768px) {
    .carousel-caption {
        font-size: 1.2rem; /* Adjust text size for smaller screens */
    }

    /* Center the email-phone section in mobile view */
    .email-phone {
        text-align: center;
        margin-top: 10px;
    }
}








/* Carousel Styles */
.carousel-item img {
    width: 100%;
    height: 350px; /* Adjust the height based on your content */
    object-fit: cover;
}

/* Additional styles for carousel caption */
.carousel-caption {
    bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.carousel-caption h5, .carousel-caption p {
    color: white;
}

/* Certifications Section */

.certification-link {
    text-decoration: none;
    color: inherit;
}

.certifications {
    padding: 2rem;
    background-color: #fff;
    text-align: center;
}

.certifications h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.certification-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.certification-card {
    border: 1px solid #ddd;
    padding: 1rem;
    width: 200px;
    height: 200px; /* Fixed height to ensure all cards are the same size */
    text-align: center;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.certification-card img {
    width: 100px;
    margin-bottom: 1rem;
}

.certification-card p {
    font-size: 1rem;
    margin-top: auto; /* Ensures text stays at the bottom of the card */
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}






/* Footer Styles */

.footer {
    background-color: #1f3c88; /* Dark background color */
    padding-top: 10px; /* Reduced padding */
    padding-bottom: 10px;
}

.footer h6 {
    font-size: 1rem; /* Smaller font for section titles */
    margin-bottom: 10px;
}

.footer p, .footer .small {
    font-size: 0.875rem; /* Smaller font size for content */
}

.footer-link {
    text-decoration: none;
    color: #ddd;
    font-size: 0.875rem; /* Smaller font for links */
}

.footer-link:hover {
    color: #ffdd57;
    background-color: transparent; /* No background on hover */
}

.social-media {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.social-link {
    display: inline-block;
    margin: 0 5px;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
}

/* Reduce spacing for mobile */
@media (max-width: 768px) {
    .footer p, .footer h6 {
        margin-bottom: 5px;
    }
}









/* Short Menu Styles */
.short-menu {
    margin-top: 2px;
    background-color: #1f3c88;
    padding: 10px 0;
}

.short-menu .navbar-nav {
    display: grid;
    grid-template-columns: repeat(12, auto); /* 12 columns for larger screens */
    gap: 10px;
    
}

.short-menu .nav-link {
    padding: 10px 20px;
    font-weight: bold;
    color: white;
    white-space: nowrap; /* Prevent breaking words */
}

.short-menu .nav-link:hover {
    color: #ffdd57;
    background-color: #333;
}

/* Social Media Links */
.social-media {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.social-icon:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Mobile View */
@media (max-width: 768px) {
    .short-menu .navbar-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 4 items per row */
        gap: 5px 8px;
    }

    .short-menu .nav-link {
        padding: 5px 5px; /* Reduced padding for mobile */
    }

    /* Scale down the social media icons slightly for mobile */
    .social-icon {
        width: 20px;
        height: 20px;
    }
}











/* Modal Styles */
.contact-modal {
    position: fixed;
    right: -100%; /* Start hidden outside the screen */
    top: 0;
    width: 30%;
    height: 100%;
    background-color: white;
    padding: 2rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    overflow-y: auto;
    transition: right 0.3s ease; /* Smooth slide-in transition */
}

.contact-modal.active {
    right: 0; /* Slide-in effect when active */
}

.contact-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2455d1;
}

/* Backdrop Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none; /* Hidden by default */
}

.modal-backdrop.active {
    display: block; /* Show backdrop when active */
}



/* About Section Styles */
.about-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.about-section .about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-credentials h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-credentials p {
    font-size: 1rem;
    line-height: 1.8;
}








/* exam list */
/* General Box Styling */
/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
}

html {
    scrollbar-gutter: stable; /* Prevent layout shift when scrollbar appears */
}

/* Exam Header Styling */
.exam-header {
    text-align: center; /* Center align header */
    font-size: 1.6em; /* Default font size */
    font-weight: bold;
    color: #2874a6; /* Primary color */
    margin: 20px 0; /* Add spacing around the header */
}

/* List and Box Styling */
.list-group {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* General Box Styling */
.box {
    display: flex;
    flex-direction: column; /* Stack exam code and title vertically */
    align-items: flex-start; /* Align items to the left */
    justify-content: left; /* Align content to the left */
    padding: 1rem; /* Add inner spacing */
    border-radius: 8px; /* Rounded corners */
    margin-bottom: 10px; /* Spacing between boxes */
    background-color: #6e7072; /* Background color */
    color: white; /* Text color */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
    overflow-wrap: break-word; /* Break long words */
    word-break: break-word; /* Ensure word wrapping */
    max-width: 100%; /* Prevent overflowing */
}

/* Box Link Styling */
.box a {
    color: inherit; /* Inherit text color */
    font-size: 1rem; /* Default font size */
    text-decoration: none; /* Remove underline */
    font-weight: 600; /* Slightly bold links */
    white-space: normal; /* Allow wrapping for links */
}

/* Box Hover Effects */
.box:hover {
    transform: scale(1.02); /* Slight zoom effect */
    filter: brightness(1.1); /* Brighten background */
    background-color: #2e383a; /* Subtle hover color */
}

/* Inner Box Styling */
.box div {
    width: 100%; /* Full width for inner content */
    line-height: 1.4; /* Add spacing between lines */
    word-break: break-word; /* Handle long words */
    white-space: normal; /* Prevent horizontal overflow */
}

.box strong {
    color: #ffdd57; /* Highlight for labels */
}

/* Responsive Styling for Mobile */
@media (max-width: 768px) {
    .exam-header {
        font-size: 1.4em; /* Reduce header size */
        margin: 10px 0; /* Adjust spacing */
    }

    .list-group {
        padding: 0 15px; /* Add horizontal padding for mobile */
    }

    .box {
        width: 90%; /* Adjust box width for small screens */
        margin: 10px auto; /* Center align and add spacing */
        padding: 1rem; /* Maintain good spacing */
        font-size: 0.9rem; /* Reduce font size */
    }

    .box div {
        line-height: 1.6; /* Increase line spacing for readability */
    }
}

/* Responsive Styling for Laptops */
@media (min-width: 1024px) and (max-width: 1440px) {
    .box {
        width: 70%; /* Set box width to 70% */
        margin: 0 auto; /* Center align box */
        margin-bottom: 10px;
    }
}

/* Model style */

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 100%;
    max-width: 500px; /* Adjust width if needed */
    margin: auto;
}

