/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header & Navigation */
header {
    background: #0A192F;
    color: #fff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #D4AF37;
}

/* Update header container to push the brand/logo completely to the left */
header .container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap so the logo and name sit much closer together */
    text-decoration: none;
    margin-left: 0;
}

.header-logo-img {
    height: 50px;
    width: auto; /* Lets the logo maintain its natural proportions next to the text */
    object-fit: contain;
    border-radius: 4px;
}

.header-brand-name {
    color: darkgoldenrod; /* Sets the company name to darkgoldenrod as requested */
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

/*.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-left: 0;
}

.header-logo-img {
    height: 60px;
    width: 250px;
    object-fit: contain;
    border-radius: 10%;
}*/

.header-tagline {
    font-size: 0.85rem;
    color: #D4AF37;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.5px;
    font-weight: 500;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: #D4AF37;
}

header nav a.active {
    color: #D4AF37;
    font-weight: 600;
}

.btn-portal {
    background: #D4AF37;
    color: #0A192F;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
}

.btn-portal:hover {
    background: #c19b2e;
}

/* Mobile Menu Toggle Button (Hidden by default on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #D4AF37;
    border-radius: 2px;
}

/* Page Header Banners */
.page-banner {
    background: linear-gradient(rgba(10,25,47,0.85), rgba(10,25,47,0.85)), url('assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.page-banner h2 {
    margin-bottom: 0.5rem;
    color: #D4AF37;
}

/* Common Section Layouts */
section {
    padding: 4rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(10,25,47,0.08);
    text-align: center;
    border-top: 4px solid #0A192F;
    transition: transform 0.3s;
}

/* Team Member Profile Images */
.team-img {
    width: 300px;
    height: 350px;
    border-radius: 10%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
    border: 3px solid #D4AF37;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 1rem;
    color: #0A192F;
}

/* Buttons */
.btn-primary {
    background: #0A192F;
    color: #fff;
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #172a45;
}

.btn-gold {
    background: #D4AF37;
    color: #0A192F;
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-gold:hover {
    background: #c19b2e;
}

/* Forms */
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(10,25,47,0.08);
    max-width: 700px;
    margin: auto;
    border-top: 4px solid #D4AF37;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0A192F;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #0A192F;
}

/* Footer */
footer {
    background: #0A192F;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 2px solid #D4AF37;
}

/* RESPONSIVE MEDIA QUERIES FOR MOBILE SCREENS */
@media (max-width: 768px) {
    /* Reduce space between sections on mobile */
    section {
        padding: 2rem 0 !important;
    }

    .page-banner {
        padding: 2.5rem 1rem !important;
    }

    .header-tagline {
        display: none; 
    }

    .menu-toggle {
        display: flex; 
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0A192F;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-in-out;
        border-bottom: 2px solid #D4AF37;
    }

    header nav.active {
        max-height: 300px; 
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        padding: 1.5rem 0;
        gap: 15px;
        text-align: center;
    }

    .page-banner h2 {
        font-size: 1.5rem;
    }

    /* Reduce team images size on mobile to prevent horizontal overflow/displacement */
    .team-img {
        width: 100% !important;
        max-width: 200px !important;
        height: 220px !important;
    }

    /* Make contact section stack into a single column and reverse order */
    .contact-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 2rem !important;
    }
}


/* --- Home About Preview Section --- */
.home-about-preview {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.home-about-preview .container {
    max-width: 800px;
    margin: 0 auto;
}

.home-about-preview h2 {
    font-size: 2rem;
    color: #1a2b4c; /* Adjust to match your primary brand color */
    margin-bottom: 20px;
}

.home-about-preview p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Primary Button Styling */
.btn-primary {
    display: inline-block;
    background-color: #1a2b4c; /* Adjust to brand color */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c4a80;
}

/* --- About Us Story Section (Single Column / Full Width Layout) --- */
.about-story-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

/* Overrides the global flex container so items stack vertically */
.about-story-section .container {
    max-width: 900px;
    margin: 0 auto;
    display: block !important; 
    text-align: left;
}

.about-story-section h2 {
    font-size: 2.2rem;
    color: #0A192F;
    margin-bottom: 25px;
    text-align: left;
}

.about-story-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .about-story-section {
        padding: 40px 15px;
    }

    .about-story-section h2 {
        font-size: 1.75rem;
        text-align: center; /* Centers the heading nicely on mobile */
        margin-bottom: 20px;
    }

    .about-story-section p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left; /* Keeps the paragraph readable and full-width */
    }
}