/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #007bff; /* A nice shade of blue */
    --primary-blue-dark: #0056b3; /* Darker blue for hover */
    --text-color: #333; /* Black text */
    --white-background: #ffffff;
    --card-border: #e0e0e0;
    --light-blue-bg: #e6f7ff; /* Very light blue for backgrounds */
    --accent-color: #00bcd4; /* A teal/cyan accent color */
}

body {
    font-family: Arial, sans-serif;
    /* Change this line: */
    margin: 0; /* Or simply remove the line if you prefer */
    padding: 0;
    background-color: var(--white-background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Main Service Navigation */
.main-service-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    position: relative;
    z-index: 5;
}

.nav-button {
    background-color: var(--white-background);
    color: var(--primary-blue-dark);
    border: 2px solid var(--primary-blue-dark);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.4s ease;
    text-shadow: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3), transparent 70%);
    transition: transform 0.6s ease-out;
    z-index: 2;
}

.nav-button:hover {
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white-background);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-button:hover::before {
    transform: translateX(100%);
}

.nav-button.active {
    background-color: var(--primary-blue-dark);
    color: var(--white-background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-blue-dark);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Sub-Services Content Area */
.sub-services-content-area {
    position: relative;
    min-height: auto;
    border-radius: 8px;
    overflow: visible;
    padding: 0;
    box-shadow: none;
    transition: none;
    display: block;
}

.sub-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Sub-Service Card */
.sub-service-card {
    border: 1px solid var(--card-border);
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* MODIFIED START */
    display: flex; /* Added for flexbox control */
    flex-direction: column; /* Stacks content vertically */
    justify-content: flex-end; /* Pushes content to the bottom */
    align-items: flex-start; /* Aligns content to the left */
    padding-bottom: 20px; /* Add some padding at the bottom of the card itself */
    /* MODIFIED END */

    height: 330px; /* Kept existing height */

    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333; /* Fallback for no image */
    z-index: 2;
    transform-origin: center center;
}

.sub-service-card:hover:not(.expanded) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sub-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* MODIFIED START: Slightly lighter gradient for better text visibility */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    /* MODIFIED END */
    z-index: 1; /* Keep this lower than card-content-wrapper */
    transition: background 0.3s ease;
}

.sub-service-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

.card-content-wrapper {
    position: relative;
    z-index: 2; /* IMPORTANT: Ensures title is above the ::before pseudo-element */
    padding: 20px;
    width: 100%;
    text-align: left;
    transition: opacity 0.3s ease;
    /* REMOVED: flex-grow, display, flex-direction, justify-content from here as they are now on .sub-service-card */
}
.card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    margin-bottom: 0; /* MODIFIED: Removed margin-bottom to maximize space */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* MODIFIED START: Added line-clamp for ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Adjust as needed to allow for up to 3 lines of text */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if text is clipped */
    word-wrap: break-word; /* Ensures very long words break to the next line */
    overflow-wrap: break-word; /* Modern alternative for word-wrap */
    /* MODIFIED END */
}
.card-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    color: rgba(255, 255, 255, 0.8); /* Ensures a visible color */
    background-color: rgba(0, 0, 0, 0.4); /* Ensures a visible background */
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 3; /* IMPORTANT: Ensures it's above other card content */
}

.sub-service-card:hover .card-arrow {
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.card-hover-explanation {
    display: none;
}

/* --- Modal Overlay Styles --- */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* --- Expanded Card Styling --- */
.sub-service-card.expanded {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    width: 600px; /* MODIFIED: Reduced width for pop-up */
    height: 400px; /* MODIFIED: Reduced height for pop-up */
    max-width: 90vw; /* MODIFIED: Adjusted max-width for pop-up */
    max-height: 80vh; /* MODIFIED: Adjusted max-height for pop-up */

    z-index: 10000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: none;
    display: flex;
    flex-direction: column;
    padding-bottom: 0; /* Remove padding when expanded as text is full height */
}

/* Hide original content when expanded */
.sub-service-card.expanded .card-content-wrapper,
.sub-service-card.expanded .card-arrow {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, pointer-events 0s ease 0.3s;
}

/* Blur Background Element */
.card-blurred-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    opacity: 0;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.sub-service-card.expanded .card-blurred-background {
    opacity: 1;
    transform: scale(1);
    filter: blur(10px);
}

/* Text Content for Expanded Card */
.card-expanded-content-text {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 150px 20px 20px; /* MODIFIED: Reduced padding for all sides */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white-background);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
    z-index: 1;
    overflow-y: auto;
}

.sub-service-card.expanded .card-expanded-content-text {
    opacity: 1;
    transform: translateY(0);
}

.expanded-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--white-background);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    position: relative;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.expanded-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.expanded-details {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.expanded-details li {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    margin-bottom: 0;
    border-radius: 8px;
    font-size: 1em;
    color: var(--white-background);
    border-left: 5px solid var(--accent-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.expanded-details li:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

/* Close button for expanded card */
.expanded-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    color: var(--white-background);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sub-service-card.expanded .expanded-close-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.expanded-close-button:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-service-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-button {
        width: 90%;
        margin: 0 auto;
    }

    .sub-service-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .sub-service-card {
        height: 280px; /* Kept existing height for mobile cards */
        padding-bottom: 15px; /* MODIFIED: Adjusted padding for mobile */
        border-radius: 15px;
    }

    .card-title {
        -webkit-line-clamp: 2; /* MODIFIED: Adjusted line clamp for smaller cards on mobile */
    }

    .sub-service-card.expanded {
        width: 80vw; /* Retained: Reduced width for pop-up on mobile */
        height: 75vh; /* Retained: Reduced height for pop-up on mobile */
        padding: 15px;
        border-radius: 15px;
    }

    .card-expanded-content-text {
        padding: 130px 15px 15px; /* Retained: Reduced padding for smaller screens */
    }

    .expanded-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .expanded-title::after {
        width: 50px;
        height: 3px;
    }

    .expanded-details li {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .expanded-close-button {
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .expanded-title {
        font-size: 1.5em;
    }
    .expanded-details li {
        font-size: 0.85em;
    }
}

/* Animations */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#tittle {
    text-align: center;
    color: #0a0f1c;
    font-size: large;
    margin-bottom: 30px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #032c44; /* Dark blue background */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}
.logo span {
    font-size: 1.6rem;
    font-weight: bold;
    color: #47a6ea; /* Lighter blue */
    font-family: 'Orbitron', sans-serif;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: #57bef2; /* Darker text */
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0096ff; /* Lighter blue */
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: #0096ff; /* Lighter blue */
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #0096ff; /* Lighter blue */
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Alternating Sections */
.alt-section {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    align-items: stretch; /* Stretch items to fill the height of the container */
    min-height: 100vh; /* Ensures section takes full viewport height */
    overflow: hidden; /* Important for animation */
}

.alt-section.reverse {
    flex-direction: row-reverse;
}

/* Image Wrapper (now contains the img and potentially overlay text) */
.alt-section .image-wrapper {
    flex: 3; /* Image side takes more space, e.g., 60% of width (3 / (3+2)) */
    position: relative; /* Needed for absolute positioning of img and overlay text */
    display: flex; /* Use flexbox to center overlay text if desired */
    justify-content: center; /* Horizontally center overlay text */
    align-items: center; /* Vertically center overlay text */
    overflow: hidden; /* Ensure image doesn't overflow and contain overlay text */
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1s ease;
    background-color: #0a1128; /* A dark background for image area */
    color: #ffffff; /* Default text color for overlay text */
}

.alt-section.reverse .image-wrapper {
    transform: translateX(100%);
}

/* Styling for the actual img tag within the wrapper */
.alt-section .section-image {
    width: 100%; /* Image fills the width of its wrapper */
    height: 100%; /* Image fills the height of its wrapper */
    object-fit: cover; /* Image covers the entire area, may crop */
    position: absolute; /* Position image behind overlay text */
    top: 0;
    left: 0;
    z-index: 1; /* Place behind overlay text */
    opacity: 0.7; /* Make image slightly transparent to help text readability */
}

/* Overlay Text on Image (only if you add the .overlay-text div in HTML) */
.alt-section .image-wrapper .overlay-text {
    position: relative; /* Use relative to allow z-index to work against image */
    z-index: 2; /* Place text above the image */
    padding: 40px;
    color: #ffffff; /* Text color over image */
    text-align: left; /* Align text to left */
    max-width: 80%; /* Control text width for readability */
}

.alt-section .image-wrapper .overlay-text h2 {
    font-size: 2.5rem; /* Larger font for main category title */
    margin-bottom: 20px;
    color: #47a6ea; /* Lighter blue for titles */
    font-family: 'Orbitron', sans-serif; /* Use Orbitron for main titles */
}

.alt-section .image-wrapper .overlay-text p {
    font-size: 1.1rem; /* Readable font size for description */
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add subtle shadow for readability */
}


/* When in view */
.alt-section.show .image-wrapper {
    opacity: 1;
    transform: translateX(0);
}

/* Text Content Panel */
.alt-section .content {
    flex: 2; /* Content side takes less space, e.g., 40% of width (2 / (3+2)) */
    background: #fff;
    color: #111;
    padding: 40px;
    overflow-y: auto; /* Allows content to scroll if it's too long */
    height: 100%; /* Ensures content div takes full height of parent */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top (as in reference) */
    align-items: flex-start; /* Align items to the start */
}

/* Headings for the content panel (sub-services) */
/* The h2 rule is no longer needed here as h2 is in overlay-text */
.alt-section .content h3 {
    font-size: 1.3rem; /* Slightly larger for better readability - increased from 1.2rem */
    margin-top: 1.8rem; /* Increased margin-top for more separation */
    margin-bottom: 0.8rem; /* Increased margin-bottom for more separation */
    color: #04344a; /* Your desired color */
    font-weight: 800; /* Made bolder - changed from 'bolder' to a numerical value for stronger effect */
}
.alt-section .content ul {
    list-style: disc inside;
    margin-bottom: 15px; /* Increased margin-bottom for more separation between lists */
    color: #031245; /* Your desired color */
    font-size: 1rem; /* Slightly larger for readability - increased from 0.95rem */
}
.alt-section .content ul li {
    margin-bottom: 8px; /* Increased margin-bottom for more spacing between list items */
    line-height: 1.6; /* Improved line spacing for readability - increased from 1.4 */
}

/* Responsive */
@media (max-width: 768px) {
    .alt-section,
    .alt-section.reverse {
        flex-direction: column;
        min-height: unset; /* Remove min-height for mobile to allow content to dictate height */
    }
    .alt-section .image-wrapper {
        flex: none; /* Remove flex on image wrapper for specific height */
        height: 300px; /* Fixed height for image wrapper on mobile */
        min-height: unset; /* Override min-height for mobile */
        width: 100%;
        transform: translateX(0);
        opacity: 1;
        transition: none;
        padding: 10px; /* Smaller padding on mobile */
    }
    .alt-section .section-image {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Use cover to fill space on mobile */
    }

    .alt-section .image-wrapper .overlay-text {
        padding: 20px; /* Smaller padding on mobile */
        text-align: center; /* Center text on mobile */
        max-width: 90%;
    }
    .alt-section .image-wrapper .overlay-text h2 {
        font-size: 1.8rem; /* Smaller font on mobile */
    }
    .alt-section .image-wrapper .overlay-text p {
        font-size: 0.9rem; /* Smaller font on mobile */
    }

    .alt-section .content {
        flex: none;
        height: auto;
        width: 100%;
        padding: 20px; /* Smaller padding on mobile */
        justify-content: flex-start;
        align-items: flex-start;
    }


    /* Responsive Menu Behavior */
    @media (max-width: 768px) {
        .nav-links {
            position: absolute;
            top: 70px;
            right: 0;
            background-color: #032c44;
            flex-direction: column;
            width: 100%;
            display: none;
            padding: 20px 0;
            text-align: center;
        }

        .nav-links.show {
            display: flex;
        }

        .hamburger {
            display: flex;
        }
    }

    /* Hide hamburger in large screens */
    @media (min-width: 769px) {
        .hamburger {
            display: none;
        }
    }

    /* Hamburger and Navbar for mobile */
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Below navbar */
        left: 0;
        width: 100%;
        background-color: #032c44;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
}

/* Styles for language selector */
.language-select {
    position: relative;
    display: inline-block; /* Aligns with other nav items */
}

.language-select button {
    background: none;
    border: none;
    color: #57bef2; /* Match nav link color */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-select button img {
    border-radius: 2px; /* Slightly rounded flag corners */
}

.lang-dropdown {
    list-style: none;
    position: absolute;
    top: 100%; /* Position below the button */
    left: 0;
    background-color: #032c44; /* Match navbar background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    min-width: 150px;
    display: none; /* Hidden by default */
    z-index: 101; /* Ensure it's above other content */
}

.lang-dropdown li {
    padding: 10px 15px;
    color: #57bef2; /* Match nav link color */
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-dropdown li:hover {
    background-color: #0096ff; /* Highlight on hover */
    color: #fff;
}

.lang-dropdown li img {
    border-radius: 2px;
}

/* Styles for the "Protect Today..." section */
section h1 {
    text-align: center;
    color: #031245; /* Dark blue for text */
    font-size: 2.5rem; /* Large font size */
    line-height: 1.3;
    padding: 50px 20px; /* Add padding for spacing */
    background-color: #f0f8ff; /* Light background for contrast */
    margin-top: 20px; /* Space from previous section/navbar */
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

@media (max-width: 768px) {
    section h1 {
        font-size: 1.8rem; /* Adjust for smaller screens */
        padding: 30px 15px;
    }
}

/* Contact Us Section */
#contact-us {
    background-color: #f0f2f5;
    color: #000000; /* Darker text */
    padding: 60px 20px;
    font-family: Arial, sans-serif;
}

#contact-us h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.contact-box {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background-color: #f0f2f5; /* Lighter box background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Light shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid transparent;
}

.contact-box:hover {
    transform: translateY(-8px);
    background-color: #f0f2f5; /* Lighter blue on hover */
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2); /* Lighter blue shadow */
    border-color: #0096ff; /* Lighter blue border */
}

.contact-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333333; /* Darker text */
    text-align: center;
}

.contact-box p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #666666; /* Lighter grey text */
    text-align: center;
}

.contact-box iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    #contact-us h2 {
        font-size: 28px;
    }

    .contact-box {
        max-width: 100%;
    }
}

.map-container {
    flex: 1;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.1); /* Lighter blue shadow */
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.3); /* Lighter blue shadow */
    z-index: 10;
}
.map-container iframe {
    width: 100%;
    height: 250px;
    border: 2px solid #0096ff; /* Lighter blue border */
    border-radius: 10px;
}

.contact-info {
    margin-bottom: 30px;
    text-align: center;
    color: #333333; /* Darker text */
}

.contact-info p {
    margin: 5px 0;
    font-size: 16px;
}

.contact-info a {
    color: #007ac1; /* Slightly darker blue link */
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 8px;
    width: 36px;
    height: 36px;
    background-color: #cccccc; /* Lighter background */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
    transition: all;
    background-color: #72b1dd;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;

}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(0.2); /* Slightly inverted to work with light background */
}
#contact-us h2 {
    margin-bottom: 10px; /* Reduced from default (like 30px or more) */
}

.contact-info {
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    color: #333333; /* Darker text */
}



@media (max-width: 1024px) {
    .contact-box {
        flex: 1 1 calc(50% - 30px); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .contact-box {
        flex: 1 1 100%; /* 1 column on mobile */
        max-width: none;
    }
    #contact-us {
        padding: 40px 20px;
    }
    #contact-us .section-title {
        font-size: 2rem;
    }
    .contact-info p, .contact-box p {
        font-size: 1rem;
    }
    .contact-info h2 {
        font-size: 1.5rem;
    }
}



















/* General Footer Styles */
.site-footer {
    background: #0f355a;
    color: #fff;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scrollbar if 100vw is problematic */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns: Addresses, Accreditations, Contact */
    gap: 20px;
    padding: 30px 10px;
    box-sizing: border-box;
}

/* Offices Section */
.footer-addresses-wrapper {
    grid-column: 1 / 3; /* Spans the first two columns in the main grid */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for the addresses themselves */
    gap: 10px;
}

.footer-title {
    grid-column: 1 / 3; /* Spans across both address columns within its grid */
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}



.footer-column {
    display: flex; /* Keep as flex to stack address blocks */
    flex-direction: column;
    justify-content: flex-start;
    /* Removed align-items: flex-start here to allow address block to control its content */
}

.footer-column address {
    margin: 0;
    padding: 0;
    font-style: normal;
    display: block; /* Make address a block element for consistent flow */
    text-align: left; /* **Crucial:** Ensures all text content inside address aligns left */
    margin-bottom: 16px; /* Space between addresses */
    box-sizing: border-box;
}

.footer-column address strong {
    display: block; /* Ensure strong is a block element to take its own line */
    text-align: left; /* Explicitly align country name to the left */
    margin-bottom: 5px; /* Space below the country name */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap naturally */
}

.footer-column address p {
    margin: 0; /* Remove default paragraph margins */
    padding: 0;
    line-height: 1.4; /* Improve readability of address lines */
    text-align: left; /* Explicitly ensure paragraph text is left-aligned */
}
.footer-column address p:not(:last-child) {
    margin-bottom: 5px; /* Space between address lines, but not after the last one */
}

/* Link Styles */
address a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

address a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Accreditation Section */
.footer-accreditations {
    grid-column: 3 / 4; /* Positions Accreditations in the third column */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 0;
}

.footer-accreditations h3,
.footer-contact h3 {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    width: 100%;
}

.acc-saudi,
.acc-uk {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    width: 100%;
}

.accreditation-images {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.accreditation-subtitle {
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.accreditation-images img {
    max-width: 80px;
    height: auto;
    display: block;
}

/* Contact Section */
.footer-contact {
    grid-column: 4 / 5; /* This will be out of bounds if grid-template-columns is 3. Adjust if needed. */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
    width: 100%;
}

.social-links .social-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(180%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.social-links .social-icon img:hover {
    filter: brightness(100%);
    opacity: 1;
}

.contact-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.contact-us-list li {
    margin-bottom: 5px;
}

.contact-us-list li a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-us-list li a:hover {
    color: #1396ed;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #05345d;
    text-align: center;
    padding: 20px 20px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns for smaller screens */
        gap: 20px;
    }
    .footer-addresses-wrapper {
        grid-column: 1 / 3; /* Spans both columns */
        grid-template-columns: 1fr 1fr;
    }
    .footer-accreditations {
        grid-column: 1 / 2; /* Move to first column */
    }
    .footer-contact {
        grid-column: 2 / 3; /* Move to second column */
    }

    /* Ensure address content is left-aligned in two-column layout */
    .footer-column address {
        text-align: left; /* Force left alignment for all text within address */
    }
    .footer-column address strong {
        text-align: left;
    }
    .footer-column address p {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 30px;
    }
    .footer-addresses-wrapper {
        grid-column: 1 / 2;
        grid-template-columns: 1fr; /* Addresses stack */
        align-items: center; /* Center the wrapper content */
        justify-content: center;
    }
    .footer-addresses-wrapper .footer-column {
        align-items: center; /* Center the column itself */
        text-align: center; /* Center text within the column */
    }

    /* Explicitly center address block and its strong tag when stacked */
    .footer-column address {
        text-align: center; /* Ensure all text within address is centered */
        margin-bottom: 20px;
    }

    .footer-column address strong {
        text-align: center;
    }
    .footer-column address p {
        text-align: center;
    }

    .footer-accreditations {
        grid-column: 1 / 2;
    }
    .footer-contact {
        grid-column: 1 / 2;
    }

    .accreditation-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Specific styles for elements that need to be centered on small screens */
@media (max-width: 768px) {
    .footer-title,
    .footer-accreditations h3,
    .footer-contact h3 {
        text-align: center;
    }

    .social-links,
    .contact-us-list {
        justify-content: center;
        text-align: center;
    }
}