
/* Mobile Header Styles */
#mobile-header {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid #e4c829;
}

.nav-container-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.green-logo-mobile,
.logo-mobile {
    height: 35px;
    flex-shrink: 0;
}

.company-names-mobile .company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a3083;
    white-space: nowrap;
}

.menu-icon {
    background: none;
    border: none;
    color: #002E7D;
    cursor: pointer;
    padding: 5px; /* Reset padding */
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: currentColor;
    transition: transform 0.3s ease, top 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.menu-icon::before {
    top: 8px;
}

.menu-icon::after {
    top: 19px;
}

.menu-icon.active::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-icon.active::after {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.mobile-nav-links.active {
    max-height: 800px; /* Increased to accommodate dropdowns */
    padding: 10px 0;
}

.mobile-nav-links a {
    display: block;
    color: #002E7D;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-nav-links a:hover {
    background-color: #f8f9fa;
    color: #e4c829;
}

.mobile-dropdown-menu {
    display: block; /* Keep display block for transition */
    background-color: transparent; /* Remove background color */
    padding: 0;
    margin: 0 20px; /* Indent dropdown */
    list-style: none; /* Remove default list styling */
    max-height: 0; /* Start with 0 height for transition */
    overflow: hidden; /* Hide overflow during transition */
    transition: max-height 0.4s ease-out; /* Add transition for smooth effect */
}

.mobile-dropdown-menu.show {
    max-height: 500px; /* Set max height to show dropdown contents (adjust as needed) */
}

.mobile-dropdown-menu li a {
    padding: 10px 20px; /* Adjust padding for dropdown items */
    text-align: left; /* Align dropdown items to the left */
    border-bottom: 1px solid #ddd; /* Add border between dropdown items */
    font-weight: 400; /* Normal font weight for dropdown items */
}

.mobile-dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-dropdown-menu li a:hover {
    background-color: #e9e9e9;
    color: #002E7D; /* Hover color for dropdown items */
}

/* Hide Desktop Header and Show Mobile Header on Small Screens */
@media (max-width: 768px) {
    #desktop-header {
        display: none !important;
    }
    #mobile-header {
        display: block; /* Show mobile header */
    }
    body {
        padding-top: 60px; /* Adjust based on mobile header height */
    }
}

@media (max-width: 767px) {
    .hero {
        height: 60vh; /* Adjust hero height for mobile */
        padding: 80px 20px; /* Adjust padding */
    }

    .hero h1 {
        font-size: 1.8rem; /* Further reduce heading font size for smaller screens */
        margin-bottom: 10px; /* Adjust margin */
    }

    .hero p {
        font-size: 0.9rem; /* Further reduce paragraph font size */
        margin-bottom: 15px; /* Adjust margin */
    }

    .cta-button {
        padding: 12px 25px; /* Adjust button padding */
        font-size: 0.9rem; /* Adjust button font size */
        white-space: nowrap; /* Prevent button text from wrapping */
    }

    #services {
        padding: 40px 20px; /* Add horizontal padding for mobile */
    }

    /* About Us Page Specific Styles */
    .section.incident-box {
        padding: 30px 15px; /* Adjust padding for mobile */
        margin: 20px auto; /* Adjust margin */
    }

    .section.incident-box h2 {
        font-size: 1.8rem; /* Adjust heading font size */
        margin-bottom: 20px;
        padding-left: 0; /* Remove left padding */
        text-align: center;
    }

    .section.incident-box p {
        font-size: 0.95rem; /* Adjust paragraph font size */
        line-height: 1.6;
        margin-bottom: 15px;
        padding-left: 0; /* Remove left padding */
        text-align: left;
    }

    .gm-message-content {
        flex-direction: column; /* Stack photo and message vertically */
        gap: 20px;
        padding: 20px;
    }

    .gm-photo {
        width: 150px; /* Adjust photo size */
        margin: 0 auto; /* Center the photo */
    }

    .message-text {
        padding: 0;
    }

    .message-text p {
        padding: 0;
        text-align: center; /* Center message text */
    }

    .message-text p::before,
    .message-text p::after {
        content: none; /* Remove quotation marks on mobile */
    }

    .gm-signature {
        font-size: 1.1rem; /* Slightly reduce signature font size */
        margin-top: 15px;
        padding: 15px 0 0 0;
        text-align: center; /* Center signature */
    }

    /* Footer adjustments for mobile */
    .footer-content {
        flex-direction: column; /* Stack footer sections vertically */
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .footer-map-section,
    .footer-contact-section,
    .footer-links-section {
        width: 100%; /* Full width for sections */
        text-align: center;
    }

    .footer-map-section iframe {
        height: 180px; /* Adjust map height */
    }

    .footer-contact-section p {
        text-align: center;
        font-size: 0.95rem; /* Slightly reduce contact info font size */
    }

    .footer-links-section a {
        display: inline-block; /* Display links inline */
        margin: 5px 10px; /* Add horizontal and vertical spacing */
        font-size: 0.95rem;
    }

    .footer-copyright p {
        font-size: 0.85rem; /* Slightly reduce copyright font size */
    }

    .contact-grids {
        margin-top: 20px; /* Adjust top margin for mobile */
        margin-bottom: 8px;
        grid-template-columns: repeat(2, 1fr); /* Change to two column layout */
        gap: 10px; /* Adjust gap between grid items */
        padding: 0 10px; /* Add some horizontal padding */
    }

    .contact-grids .grid-item {
        padding: 1rem; /* Adjust padding */
    }

    .contact-grids .grid-item h2 {
        font-size: 1.2rem; /* Adjust heading font size */
        margin-bottom: 0.8rem; /* Adjust bottom margin */
    }

    .contact-list p {
        font-size: 0.85rem; /* Adjust paragraph font size */
        margin: 0.5rem 0; /* Adjust vertical margin */
    }

    .fas.fa-phone, .fas.fa-envelope {
        font-size: 0.9rem; /* Adjust icon size */
    }
}


    /* Careers Page Specific Styles */
    .career-section {
        padding: 20px 15px; /* Adjust padding for mobile */
    }

    .career-section h1 {
        font-size: 1.8rem; /* Adjust heading font size */
        text-align: center; /* Center the heading */
    }

    .career-intro {
        font-size: 1rem; /* Adjust intro text font size */
        text-align: center; /* Center the intro text */
        margin-bottom: 30px; /* Adjust margin */
    }

    .job-listings {
        grid-template-columns: 1fr; /* Change to single column layout */
        gap: 20px; /* Adjust gap between job cards */
    }

    .job-posting-card {
        padding: 0; /* Remove padding from card if inner divs have it */
    }

    .job-title-header h3 {
        font-size: 1.2em; /* Adjust job title font size */
    }

    .job-details-header {
        padding: 15px 20px; /* Adjust padding */
    }

    .job-details-header p {
        font-size: 0.9em; /* Adjust detail text font size */
    }

    .job-card-body {
        padding: 15px 20px; /* Adjust padding */
    }

    .job-card-body p {
        font-size: 0.9em; /* Adjust body text font size */
    }

    /* Responsive Styles for Larger Screens */
    @media (min-width: 769px) {
        /* Add styles for larger screens here */
        .job-listings {
            grid-template-columns: repeat(2, 1fr); /* Ensure 2 columns on larger screens */
            gap: 30px; /* Adjust gap as needed for desktop */
        }
    
        .career-section {
            padding: 40px 80px; /* Adjust padding for larger screens */
        }
    
        .career-section h1 {
            font-size: 2.5rem; /* Adjust heading font size */
            text-align: left; /* Align heading to the left */
        }
    
        .career-intro {
            font-size: 1.1rem; /* Adjust intro text font size */
            text-align: left; /* Align intro text to the left */
            margin-bottom: 40px; /* Adjust margin */
        }
    
        .job-card-footer {
            flex-direction: row; /* Arrange content side by side */
            justify-content: space-between; /* Space out the date and buttons */
            align-items: center; /* Vertically align items */
            padding: 15px 20px; /* Adjust padding */
        }
    
        .posted-on-date {
            margin-bottom: 0; /* Remove bottom margin */
        }
    
        .footer-actions {
            flex-direction: row; /* Ensure buttons are side by side */
            width: auto; /* Allow button container to take its natural width */
            gap: 10px; /* Adjust gap between buttons */
        }
    
        .apply-button, .share-button {
            width: auto; /* Allow buttons to take their natural width */
            margin: 0; /* Remove any conflicting margins */
            display: inline-flex; /* Ensure they are inline-flex */
            padding: 10px 20px; /* Restore original padding */
            font-size: 1rem; /* Restore original font size */
        }
    
        /* Footer adjustments for larger screens */
        .footer-content {
            flex-direction: row; /* Arrange footer sections horizontally */
            gap: 40px; /* Adjust gap */
            padding: 40px 80px; /* Adjust padding */
            text-align: left; /* Align text to the left */
        }
    
        .footer-map-section,
        .footer-contact-section,
        .footer-links-section {
            width: auto; /* Allow sections to take their natural width */
            text-align: left; /* Align text to the left */
        }
    
        .footer-map-section iframe {
            height: 250px; /* Restore map height */
        }
    
        .footer-contact-section p {
            text-align: left; /* Align contact info to the left */
            font-size: 1rem; /* Restore contact info font size */
        }
    
        .footer-links-section a {
            display: inline-block; /* Display links as inline blocks */
            margin: 0 10px 0 0; /* Adjust margin */
            font-size: 1rem; /* Restore quick links font size */
        }
    
        .footer-copyright p {
            font-size: 0.9rem; /* Restore copyright font size */
        }
    
        .contact-grids {
            margin-top: 40px; /* Restore top margin */
            margin-bottom: 20px;
            grid-template-columns: repeat(2, 1fr); /* Restore three column layout */
            gap: 20px; /* Restore gap */
            padding: 0 80px; /* Restore padding */
        }
    
        .contact-grids .grid-item {
            padding: 1.5rem; /* Restore padding */
        }

        /* Further optimization for job card details and footer */
        .job-details-header p {
            margin-bottom: 6px; /* Slightly reduce bottom margin */
        }

        .job-card-footer {
            padding: 15px 30px; /* Increase horizontal padding */
        }

        .posted-on-date {
            font-size: 0.9em; /* Adjust font size */
        }

        .apply-button, .share-button {
            padding: 8px 18px; /* Adjust button padding */
            font-size: 0.95em; /* Adjust button font size */
        }
    }

    .see-more-btn {
        align-self: center; /* Center the see more button */
    }

@media (max-width: 768px) {
    #album-list {
        gap: 10px;
    }

    .album-item {
        width: calc(50% - 5px); /* Adjusted for 10px gap */
        height: 200px;
    }

    .album-item img {
        height: 120px;
    }

    .album-info h5 {
        font-size: 0.9em;
    }

    .album-info p {
        font-size: 0.8em;
    }

    #album-list.album-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Adjusted gap */
        margin: 0 auto;
    }

    #album-list.album-grid figure.gallery-item {
        width: auto;
        margin: 0;
    }

    #album-list.album-grid figure.gallery-item img {
        height: 130px; /* Slightly increased height */
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    #album-list {
        gap: 5px;
    }

    .album-item {
        width: calc(50% - 2.5px); /* Adjusted for 5px gap */
        height: 180px;
    }

    .album-item img {
        height: 100px;
    }

    .album-info h5 {
        font-size: 0.8em;
    }

    .album-info p {
        font-size: 0.7em;
    }

    #album-list.album-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px; /* Adjusted gap */
        margin: 0 auto;
    }

    #album-list.album-grid figure.gallery-item {
        width: auto;
        margin: 0;
    }

    #album-list.album-grid figure.gallery-item img {
        height: 110px; /* Slightly increased height */
        width: 100%;
        object-fit: cover;
    }
}
