/* General Body and Typography */
body {
    font-family: 'Roboto', sans-serif; /* Added sans-serif fallback */
    margin: 0 auto;
    line-height: 1.6;
    color: #f0f2f4;
    background-color: #f8f8f8;
    width: 90%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 500;
    color: #0d47a1;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.8em;
    text-align: center;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #0d47a1;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button.primary {
    background-color: #1976d2;
    color: #fff;
    border: none;
}

.button.primary:hover {
    background-color: #1565c0;
    text-decoration: none;
}

.button.secondary {
    background-color: #f0f0f0;
    color: #0d47a1;
    border: 1px solid #ccc;
}

.button.secondary:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

/* Header Section */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    margin-left: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    margin-top: 15px; /* Adjust this value to move it up or down */
}

.main-nav li {
    margin-left: 18px;
}

.main-nav a {
    color: #333;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    font-size: 17px;
}

.main-nav a:hover {
    color: #1976d2;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #1976d2;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    color: #0d47a1;
    font-weight: 500;
    margin-left: auto;
    margin-right: 10px;
}

.header-contact .phone-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: 3;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #0d47a1;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
    display: flex;
    min-height: 600px;
    background-color: #002c5f;
    color: #fff;
    overflow: hidden;
}

.hero-image-side {
    flex: 0 0 45%;
    background-image: url('../images/Home-Hero.jpg');
    background-size: cover;
    background-position: center bottom;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.hero-content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 8%;
    text-align: center; /* Keep the text left-aligned */

    /* ADD THIS LINE: This stops all items from stretching to full width */
    align-items: flex-start; 
}

.hero-content-side h1 {
    font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 36px;
	color: white;
  font-style: normal;
	font-variation-settings: "wdth" 100;
    max-width: 100%;
}

.hero-content-side p {
    font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
	font-size: 21px;
	color: white;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

/* This new rule creates a full-width row and centers its content (the button) */
.hero-button-container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-side .button.primary {
    
    color: #002c5f;
    background-color: #f0f0f0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hero-content-side .button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* What We Do Section */
.what-we-do {
    padding-top: 0;
    padding-bottom: 60px; /* Fixed missing unit */
    text-align: center;
    background-color: #e2e8f0;
}

.what-we-do h2 {
    margin-bottom: 10px;
    margin-top: 0px;
    padding-top: 30px;
    font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 46px;
	color: #002c5f;
  font-style: normal;
    
}

.what-we-do .section-description {
    font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
	font-size: 21px;
	color: #002c5f;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
    max-width: 550px;
    margin: 0 auto 40px auto;
    
    padding-bottom: 10px; /* Fixed missing unit */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-link {
    display: block;
    padding: 20px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: left;
}

.service-link::before {
    content: '» ';
    margin-right: 8px;
}

.service-link--dark {
    background-color: #0d47a1;
}

.service-link--bright {
    background-color: #1976d2;
}

.service-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* =================================== */
/* UPDATED "OUR FACILITIES" SECTION    */
/* =================================== */

.our-facilities {
    padding: 0px 0;
    background-color: #f0f4f8;
    overflow-x: hidden; /* Prevent horizontal scrollbar on the page */
    padding-bottom: 40px;
}

.our-facilities h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 46px;
	color: #002c5f;
  font-style: normal;
}

.facilities-carousel {
    position: relative;
    padding-bottom: 60px;
    max-width: 1220px; /* Widened to perfectly fit 3 images + gaps */
    margin: 0 auto;
}

.carousel-images {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 10px 10px 10px; /* Add a little padding for spacing */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-images::-webkit-scrollbar {
    display: none;
}

/* 1. Adjusted desktop image size to fit 3 across */
.carousel-images img {
    width: 380px;  /* <-- ADJUSTED from 450px */
    height: 240px; /* <-- ADJUSTED from 280px */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Arrow positioning (no changes needed here) */
.carousel-arrow {
    position: absolute;
    bottom: 0;
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
    margin-left: 10px;
    margin-right: 30px;
    
}
.carousel-arrow:hover {
    background-color: #1565c0;
}
.carousel-arrow.left {
    left: 0;
}
.carousel-arrow.right {
    right: 0;
}

/* "ABOUT US" SECTION */
/* ===================================== */
/* FINAL "ABOUT US" - TWO COLUMN METHOD  */
/* ===================================== */

.about-us-mini {
    display: flex; /* Creates the two-column layout */
    align-items: stretch;
    min-height: 400px;
    vertical-align: top;
    
}

.about-us-content {
    flex: 2.5;
    background-color: #e2e8f0;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
    position: relative;
    z-index: 1;

    /* CSS for positioning content within the box */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* <-- THIS moves content to the TOP */
    align-items: center;
    text-align: center;
    
     /* Padding: Top | Right | Bottom | Left */
     padding: 20px 1% 0px ; 
}

.about-us-content h2 {
    font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-size: 46px;
	color: #002c5f;
  font-style: normal;
    margin-top: 0; /* No space above the title */
    margin-bottom: 15px;
    padding-top: 10px;
}

.about-us-content p {
    font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
	font-size: 21px;
	color: #002c5f;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
    margin-top: 0; /* Removes space above the paragraph */
    margin-bottom: 20px;
    margin-right: 20px;
}

.about-us-image {
    flex: 2; /* Gives the image a good amount of space */
    background-image: url('../images/About-Hero.jpg');
    background-size: cover;
    background-position: center;
    
    /* THE KEY: Pulls the image to the left, underneath the clipped area of the text box */
    margin-left: -8%;
}


.button.secondary {
    background-color: #f0f0f0;
    color: #0d47a1;
    border: 1px solid #ccc;
    /* Added for smooth animation on hover */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease;
}

/* Find and replace your existing .button.secondary:hover rule with this */
.button.secondary:hover {
    background-color: #e0e0e0; /* Keeps the background color change */
    text-decoration: none;
    /* Added for the "lift" effect */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =================================================================== */
/* UPDATED FOOTER STYLES - ALWAYS COPY INNER-PAGES FOOTER              */
/* =================================================================== */

.main-footer {
    
    background-color: #012c5f;
    color: #e3f2fd;
    padding-top: 40px; /* Reduced top padding */
    font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-size: 16px;
	color: #FFFFFF;
	font-style: normal;
	font-variation-settings: "wdth" 100;
    line-height: 1.5;
    
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 200px; /* <-- CHANGED from 60px to remove space between columns */
    padding-bottom: 40px;
    flex-wrap: wrap;
    /* text-align: center; This line can be removed */
    
    
}

.footer-column {
    flex: 0 0 auto; /* Keeps the column from growing or shrinking */
    width: 280px;   /* Sets a fixed width for ALL columns */
    text-align: left;
    padding: 0 15px; 
    border-left: 1px solid #fff;
    
    /* ADD THIS LINE to force long text to wrap */
    overflow-wrap: break-word;
}



/* Style for the new icons */
.footer-icon {
    margin-bottom: 0px;
}

/* This new rule styles the image itself */
.footer-icon img {
    height: 40px; /* You can adjust this value to make the icon bigger or smaller */
    width: auto;
}

.footer-column h4 {
    color: #fff;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em; /* Reduced font size */
}

.footer-column p,
.footer-column a {
    font-size: 0.9em; /* Reduced font size */
    color: #e3f2fd;
    line-height: 1.2;
}

.footer-column ul {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.footer-column li {
    
    margin-bottom: 5px; /* Reduced space between links */
    padding-left: 0px;
    margin-bottom: 0px;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    background-color: #4381fc; 
    padding: 15px 0;
    text-align: center; 
    border-top: none;
}

.footer-bottom p {
    margin: 0;
    color: #fff;
    
}



/* ============================ */
/* RESPONSIVE ADJUSTMENTS START */
/* ============================ */
@media (max-width: 1545px) {
    .header-contact{
        display: none;
    }

    .footer-content {
        
        gap: 100px; /* <-- CHANGED from 60px to remove space between columns */
        padding-bottom: 0px;
        flex-wrap: nowrap;
        
    }
    .footer-column {
        width: 200px;   /* Sets a fixed width for ALL columns */
        margin-bottom: 40px;
    }

}

/* Tablet and Mobile */
@media (max-width: 1110px) {
    /* Header */
    .main-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px 0;
    }
    .hamburger {
        display: block;
    }
    .main-nav.nav-active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        font-size: 17px;
    }
    .main-nav a:hover::after {
        width: 0;
    }
    .header-top {
        justify-content: space-between;
    }
    .header-contact {
        order: 2;
    }
    .carousel-arrow {
        margin-right: 10px;
    }
}
    /* About Us */
    /* --- Mobile Styles --- */
@media (max-width: 992px) {
    .about-us-mini {
        background-position: center center;
    }
    
    .about-us-image {
        display: none; /* This hides the image on screens 992px and smaller */
        
    }

    .about-us-content {
        clip-path: none; 
        padding: 60px 20px; /* Resets padding for a centered mobile view */
    }
    
    /* Footer */
    .footer-content {
        gap: 40px; /* Reduce gap on tablets */
    }

    .facilities-carousel {
        padding-bottom: 80px; /* More space for arrows on mobile */
    }
    
    .carousel-images {
        /* This enables the app-like snapping scroll */
        scroll-snap-type: x mandatory;
        padding-left: 20px; /* Offset to center the first image */
        padding-right: 20px; /* Offset to center the last image */
    }
    
    .carousel-images img {
        /* Make each image take up most of the screen */
        width: 90%;
        /* This tells the container where to snap */
        scroll-snap-align: center;
    }
    .footer-content {
       
        margin-bottom: 40px;
        
    }

}

/* Smaller Tablets */
@media (max-width: 768px) {
    /* General */
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }

    /* Hero */
    .hero-section {
        height: auto; /* Changed from 500px to be more flexible */
        flex-direction: column; /* Stacks hero content below image */
    }
    .hero-image-side {
        min-height: 300px;
        clip-path: none;
        flex-basis: auto;
        width: 100%;
    }
    .hero-content-side {
        padding: 40px 5%; /* Adjusted padding */
    }
    .hero-content-side h1 {
        font-size: 1.8em;
    }
    .hero-content-side p {
        font-size: 0.8em; /* Corrected .8m typo */
    }

    /* What We Do */
    .services-grid {
        grid-template-columns: 1fr;
    }
    /* --- Facilities Section on Mobile --- */
    .facilities-carousel {
        /* Remove the padding we added for the desktop arrows */
        padding-bottom: 0;
    }

    .carousel-images {
        /* Change the layout from a row to a column */
        flex-direction: column;
        
        /* Stop the horizontal scrolling */
        overflow-x: visible;

        /* Center the images vertically */
        align-items: center;
    }

    .carousel-images img {
        /* Make each image take up the full width of its container */
        width: 100%;
        
        /* Add some space between the stacked images */
        margin-bottom: 20px;
    }
    
    .carousel-arrow {
        /* Hide the arrows on mobile */
        display: none;
    }
    
    
    /* Footer */
    .footer-content {
        flex-direction: column; /* Stack columns on mobile */
        align-items: center;
    }
    .footer-column {
        width: 90%;
        margin-bottom: 30px;
    }
    .footer-column:last-child {
        margin-bottom: 0;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Header */
    .header-contact {
        display: none;
    }
    .logo img {
        height: 35px;
    }
    
    /* Hero */
    .hero-section {
        min-height: 450px;
    }

    /* About Us */
    .about-us-image {
        min-height: 250px;
    }
}