/* --- Global Variables --- */
:root {
    --primary-color: #005A9C;     /* Official Blue */
    --secondary-color: #003B66;   /* Darker Navy - USED FOR ICONS */
    --accent-color: #FDB813;      /* Gold */
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll when menu slides */
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e5a500;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Navigation --- */
.navbar {
    background-color: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

.btn-nav {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    color: var(--primary-color) !important;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section Base --- */
.hero {
    background: linear-gradient(rgba(0, 59, 102, 0.85), rgba(0, 59, 102, 0.85));
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-home { background-image: linear-gradient(rgba(0, 59, 102, 0.8), rgba(0, 59, 102, 0.8)), url('images/hero-home.jpg'); }
.hero-about { background-image: linear-gradient(rgba(0, 59, 102, 0.8), rgba(0, 59, 102, 0.8)), url('images/hero-about.jpg'); }
.hero-leadership { background-image: linear-gradient(rgba(0, 59, 102, 0.8), rgba(0, 59, 102, 0.8)), url('images/hero-leadership.jpg'); }
.hero-membership { background-image: linear-gradient(rgba(0, 59, 102, 0.8), rgba(0, 59, 102, 0.8)), url('images/hero-membership.jpg'); }
.hero-contact { background-image: linear-gradient(rgba(0, 59, 102, 0.8), rgba(0, 59, 102, 0.8)), url('images/hero-contact.jpg'); }

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* --- News Banner --- */
.news-banner {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.news-banner a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* --- Features / Objectives Grid --- */
.features {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* --- FIXED ICON COLOR (Navy Blue) --- */
.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: transparent; 
    text-shadow: 0 0 0 var(--secondary-color); 
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* --- Home: History / Split Layout --- */
.history-preview {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* --- About: Legal & Timeline --- */
.legal-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.article-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-block:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.article-content {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.article-content ul {
    list-style-type: none;
    padding-left: 1rem;
}

.article-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-content ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

.history-timeline {
    background-color: var(--bg-light);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 150px;
    font-size: 1.1rem;
}

/* --- Leadership: Team Grid --- */
.team-section {
    padding: 4rem 0;
}

.team-category {
    margin-bottom: 4rem;
}

.category-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.top-tier {
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid var(--primary-color);
}

.team-card:hover {
    transform: translateY(-5px);
}

.member-photo-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-role {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.member-name {
    font-size: 1.5rem;
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.member-job {
    font-size: 0.95rem;
    color: var(--light-text);
    font-style: italic;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.linkedin-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

.linkedin-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Membership Styles --- */
.membership-criteria {
    background-color: var(--white);
    padding: 4rem 0;
}

.criteria-list {
    list-style: none;
    margin-top: 1.5rem;
}

.criteria-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.criteria-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    font-weight: bold;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fees-section {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.fees-section h2 {
    color: var(--white);
}

.fee-note {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

/* --- Contact Styles --- */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-box {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--light-text);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    margin-top: 4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 4rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

footer h3 {
    color: var(--white);
}

footer h4 {
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    /* Show Hamburger */
    .hamburger {
        display: block; 
    }

    /* Animate Hamburger to 'X' when active */
    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active .line2 {
        opacity: 0;
    }
    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile Menu Styling (Fixed & Slide from Right) */
    .nav-links {
        position: fixed;
        right: -100%; /* Hidden off-screen */
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        width: 100%;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Class added by JS to show menu */
    .nav-links.nav-active {
        right: 0; /* Slide in */
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 1; 
    }
    
    .split-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
}