/* --- BRAND COLORS & VARIABLES --- */
:root {
    --primary-navy: #032955;
    --primary-orange: #f5690a;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --white: #ffffff;
}

/* --- GLOBAL STYLES --- */
        * {
            box-sizing: border-box;
        }

        html, body {
            overflow-x: hidden; 
            width: 100%;
        }

        body {
            font-family: 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            color: var(--dark-gray);
            margin: 0;
            padding: 0;
            padding-top: 56px;
        }

        /* Smooth Scrolling Fixes */
        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px; 
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
        }

        a {
            color: var(--primary-orange);
            text-decoration: none;
            transition: all 0.3s ease-in-out;
        }

        a:hover { color: #d65a10; }

        section { padding: 100px 0; }

        .container {
            width: 100%;
            max-width: 1140px;
            margin: 0 auto;
            padding-left: 15px;
            padding-right: 15px;
        }

        .text-center { text-align: center; }
        .text-muted { color: #6c757d; }
        
        .section-heading {
            font-size: 40px;
            margin-top: 0;
            margin-bottom: 15px;
            color: var(--primary-navy);
        }
        
        /* Mobile adjustment for headings */
        @media(max-width: 768px) {
            .section-heading { font-size: 30px; }
        }

        .section-subheading {
            font-size: 16px;
            font-weight: 400;
            font-style: italic;
            margin-bottom: 75px;
            text-transform: none;
            font-family: 'Droid Serif', serif;
        }

        /* --- NAVIGATION --- */
        #mainNav {
            background-color: var(--white);
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1030;
            padding: 0.5rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        #mainNav .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap; /* Allows menu to wrap on mobile */
        }

        .navbar-brand img {
            height: 50px;
            width: auto;
        }

        /* Desktop Nav Styles */
        .navbar-nav {
            list-style: none;
            display: flex;
            margin: 0;
            padding: 0;
        }

        .nav-item { margin-left: 20px; }

        .nav-link {
            color: var(--primary-navy);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 0.5rem 1rem;
            font-weight: 700;
            display: block;
        }

        .nav-link:hover { color: var(--primary-orange); }

        /* HAMBURGER MENU STYLES (Mobile Only) */
        .navbar-toggler {
            display: none; /* Hidden on desktop */
            font-size: 1.5rem;
            background: none;
            border: none;
            color: var(--primary-navy);
            cursor: pointer;
            padding: 10px;
        }

        /* Mobile Responsive Navigation */
        @media(max-width: 768px) {
            .navbar-toggler {
                display: block; /* Show hamburger */
            }

            .navbar-collapse {
                display: none; /* Hide menu items by default */
                flex-basis: 100%;
                width: 100%;   
                margin-top: 15px;
                background-color: var(--white);
                border-top: 1px solid #eee;
            }

            /* This class is added by JS when you click the hamburger */
            .navbar-collapse.show {
                display: block;
            }

            .navbar-nav {
                flex-direction: column; /* Stack links vertically */
                align-items: center;
                padding-bottom: 20px;
            }

            .nav-item {
                margin: 10px 0;
            }
        }


        /* --- HEADER / HERO --- */
        header.masthead {
            text-align: center;
            color: var(--white);
            background-color: var(--primary-navy);
            background-image: linear-gradient(rgba(3, 41, 85, 0.9), rgba(3, 41, 85, 0.8)), url(../img/page_details/background_img.png);
            background-attachment: scroll;
            background-position: center bottom; 
            background-repeat: no-repeat;
            background-size: cover;
            padding: 150px 0 100px;
        }

        .intro-text .intro-heading {
            font-size: 50px;
            font-weight: 700;
            line-height: 50px;
            margin-bottom: 25px;
            font-family: 'Montserrat', sans-serif;
        }
        
        /* Mobile Hero Text Size */
        @media(max-width: 768px) {
            .intro-text .intro-heading { font-size: 35px; line-height: 40px; }
        }

        .intro-lead-in {
            font-size: 30px;
            font-style: italic;
            line-height: 30px;
            margin-bottom: 25px;
            font-family: 'Droid Serif', serif;
            color: var(--primary-orange);
        }

        .btn-xl {
            padding: 20px 40px;
            font-size: 18px;
            font-weight: 700;
            background-color: var(--primary-orange);
            color: var(--white);
            border-radius: 5px;
            text-transform: uppercase;
            font-family: 'Montserrat', sans-serif;
            display: inline-block;
            margin-top: 30px;
        }

        .btn-xl:hover {
            background-color: #d65a10;
            color: var(--white);
        }

        /* --- PROBLEM SECTION --- */
        #problem { background-color: var(--light-gray); }

        .problem-text-highlight {
            color: var(--primary-orange);
            font-weight: bold;
            font-size: 1.5rem;
            line-height: 1.4;
        }

        .grid-row {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 50px;
        }

        .col-half {
            flex: 0 0 50%;
            padding: 0 15px;
            /* box-sizing is now handled globally */
        }

        @media(max-width: 768px) {
            .col-half { flex: 0 0 100%; margin-bottom: 30px; text-align: center !important;}
        }

        .card-group {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        .card {
            flex: 1;
            min-width: 300px;
            background-color: var(--white);
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            padding: 30px;
            border-top: 5px solid var(--primary-navy);
            text-align: left;
        }
        
        .card-icon {
            font-size: 2rem;
            color: var(--primary-orange);
            margin-bottom: 15px;
            display: block;
        }

        .card h4 {
            color: var(--primary-navy);
            font-size: 1.2rem;
            margin-bottom: 15px;
        }

        /* --- SOLUTION SECTION (Timeline) --- */
        #solution { background-color: var(--white); }

        .timeline {
            position: relative;
            padding: 0;
            list-style: none;
        }

        /* The Vertical Line */
        .timeline:before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%; /* Center by default */
            width: 2px;
            margin-left: -1.5px;
            background-color: #e9ecef;
        }

        .timeline > li {
            position: relative;
            min-height: 100px;
            margin-bottom: 50px;
        }

        /* Desktop: Text Panel Width */
        .timeline > li .timeline-panel {
            width: 35%; /* Updated to prevent overlap */
            float: left;
            padding: 0 20px 20px 30px;
            text-align: right;
            position: relative;
        }
        
        /* Desktop: Inverted Text Panel (Right Side) */
        .timeline > li.timeline-inverted .timeline-panel {
            float: right;
            text-align: left;
            padding: 0 30px 20px 20px;
        }

        /* Desktop: The Image Bubble */
        .timeline > li .timeline-image {
            width: 170px;
            height: 170px;
            position: absolute;
            z-index: 100;
            background-color: var(--primary-orange);
            color: white;
            border-radius: 100%;
            border: 7px solid #f1f1f1;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            left: 50%;
            margin-left: -85px; /* Half of width to center */
        }

        .timeline > li .timeline-image img {
            width: 100%;
            height: auto;
            border-radius: 100%;
        }

        /* Specific Colors for Timeline Bubbles */
        .timeline > li:first-child .timeline-image {
            background-color: var(--primary-navy) !important;
        }

        .timeline-heading h4 { margin-top: 0; color: var(--primary-navy); }
        .timeline-heading .subheading {
            text-transform: none;
            color: var(--primary-orange);
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

        /* MOBILE TIMELINE STYLES (Stacked) */
        @media(max-width: 991px) {
            /* Remove the vertical line on mobile */
            .timeline:before { display: none; }

            .timeline > li {
                margin-bottom: 50px;
                min-height: auto;
            }

            /* Make the image static (no longer absolute) and centered */
            .timeline > li .timeline-image {
                position: static;
                width: 150px;
                height: 150px;
                margin: 0 auto 20px auto; /* Stacked on top, centered */
                left: 0;
                margin-left: auto;
            }
            
            /* Make the text panel full width and centered */
            .timeline > li .timeline-panel {
                width: 100%;
                float: none;
                padding: 0 20px;
                text-align: center;
            }

            /* Reset inverted panel styles for mobile */
            .timeline > li.timeline-inverted .timeline-panel {
                float: none;
                text-align: center;
                padding: 0 20px;
            }
        }

        /* --- TEAM SECTION --- */
        #team { background-color: var(--light-gray); }

        .team-member {
            margin-bottom: 50px;
            text-align: center;
        }

        .team-member img {
            width: 225px;
            height: 268px;
            border: 7px solid var(--white);
            border-radius: 50%;
            object-fit: cover;
        }

        .team-member h4 {
            margin-top: 25px;
            margin-bottom: 0;
            text-transform: none;
        }

        .team-member p { margin-top: 10px; }
        
        .team-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 40px;
        }

        /* --- PARTNERS --- */
        #partners {
            padding: 50px 0;
            background-color: var(--white);
        }
        .partners-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 50px;
        }
        .partner-logo {
            max-width: 150px;
            opacity: 0.6;
            filter: grayscale(100%);
            transition: all 0.3s;
        }
        .partner-logo:hover {
            opacity: 1;
            filter: grayscale(0%);
        }

        /* --- CONTACT --- */
        #contact {
            background-color: var(--primary-navy);
            color: var(--white);
            text-align: center;
        }

        #contact .section-heading { color: var(--white); }
        #contact .text-muted { color: rgba(255,255,255,0.7); }

        .contact-email {
            font-size: 1.5rem;
            color: var(--primary-orange);
            font-weight: bold;
            margin-top: 20px;
            display: inline-block;
        }

        /* --- FOOTER --- */
        footer {
            padding: 25px 0;
            text-align: center;
            background-color: #001a33;
            color: var(--white);
        }