/* =========================================================
GLOBAL RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================================
LIGHT THEME (RENEWABLE ENERGY PALETTE)
========================================================= */
:root {
    --primary-color: #064e3b; /* Deep Forest Green for headings */
    --secondary-color: #1e293b; /* Slate for secondary elements */
    --accent-color: #10b981; /* Sleek Emerald Green */
    --accent-hover: #059669; /* Darker Emerald for hover states */
    
    --bg-color: #ffffff; /* Main background */
    --light-bg: #f8fafc; /* Subtle contrasting background */
    --card-bg: #ffffff; /* Card background */
    --dark-bg: #022c22; /* Dark green for specific dark sections */
    
    --text-color: #334155; /* Main body text */
    --text-light: #64748b; /* Paragraph text */
    --border-color: #e2e8f0;
    
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --footer-bg: #022c22;
    
    --gradient-start: #ecfdf5; /* Light mint gradient */
    --gradient-end: #ffffff;
    
    /* Global Variables */
    --container-width: 1200px;
    --shadow-light: 0 10px 30px rgba(16, 185, 129, 0.06); 
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================================
DARK MODE
========================================================= */
body.dark-mode {
    --primary-color: #f8fafc; /* Headings turn white */
    --secondary-color: #e2e8f0;
    --accent-color: #10b981; 
    --accent-hover: #34d399; 
    
    --bg-color: #020617; /* Very dark slate/black background */
    --light-bg: #0f172a; /* Slightly lighter slate for contrast */
    --card-bg: #0f172a; /* Cards adapt to dark slate */
    --dark-bg: #020617; 
    
    --text-color: #f8fafc; /* Text flips to white */
    --text-light: #cbd5e1; /* Paragraphs flip to light grey */
    --border-color: #1e293b;
    
    --navbar-bg: rgba(2, 6, 23, 0.95);
    --footer-bg: #000000; /* Footer goes pure black */
    
    --gradient-start: #022c22; /* Gradient adapts to dark mode */
    --gradient-end: #020617;
}

/* =========================================================
GLOBAL ELEMENTS
========================================================= */
img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: auto;
}

.center-text {
    text-align: center;
}

/* =========================================================
TYPOGRAPHY
========================================================= */
h1, h2, h3, h4 {
    color: var(--primary-color);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.context-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.15); 
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* =========================================================
BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.large-btn {
    margin-top: 2rem;
}

.text-link {
    color: var(--accent-color);
    font-weight: 700;
    display: inline-block;
    margin-top: 1.5rem;
}

/* =========================================================
NAVBAR
========================================================= */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.brand {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.theme-toggle {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

/* =========================================================
HERO SECTION
========================================================= */
.hero-section, .page-hero {
    padding: 7rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: stretch;
}

.about-hero-grid,
.services-hero-grid,
.academy-hero-grid,
.leadership-grid,
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 100%;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.metrics-flex {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.metric-card {
    flex: 1;
    min-width: 160px;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

.image-box img,
.about-image-wrapper img,
.hero-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* =========================================================
SECTION LAYOUTS & CARDS
========================================================= */
.content-section {
    padding: 6rem 0;
}

.section-heading {
    margin-bottom: 4rem;
}

.dark-section {
    background-color: var(--dark-bg);
    color: #ffffff;
}

.dark-section h1, 
.dark-section h2, 
.dark-section h3, 
.dark-section p {
    color: #ffffff;
}

.dark-section .styled-list li {
    color: #ffffff;
}

.four-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.dual-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.conference-grid,
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card,
.conference-card,
.pillar-card,
.award-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.dark-section .info-card,
.dark-section .conference-card,
.dark-section .pillar-card,
.dark-section .award-card {
    background: var(--footer-bg);
}

.info-card:hover,
.conference-card:hover,
.pillar-card:hover {
    transform: translateY(-6px);
}

.pillar-label {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.styled-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.styled-list li {
    color: var(--text-light);
}

/* =========================================================
TABLE
========================================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

th, td {
    padding: 1.3rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--primary-color);
    color: var(--bg-color); /* Dynamically contrasts header text */
}

td {
    color: var(--secondary-color);
}

/* =========================================================
TIMELINE
========================================================= */
.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-bullets {
    list-style-type: disc;
    margin-left: 1.2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-bullets li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.dark-section .timeline-bullets li {
    color: #cbd5e1;
}

.timeline-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 80%);
    margin-top: 2.5rem; 
}

.timeline-item:last-child .timeline-divider {
    display: none;
}

/* --- TIMELINE LOGO INTEGRATION --- */
.timeline-company {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.timeline-company .logo-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ffffff !important; /* Forces White Logo Background */
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.timeline-company .logo-circle img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

/* =========================================================
UNIFIED SPLIT CARD (AWARDS & MEMBERSHIPS)
========================================================= */
.split-layout {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.split-col {
    flex: 1;
}

.vertical-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--accent-color) 50%, transparent 100%);
    opacity: 0.6;
}

/* =========================================================
TICKER
========================================================= */
.ticker-section {
    padding: 4rem 0;
}

.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: tickerMove 35s linear infinite;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    font-weight: 800;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffffff !important; /* Forces White Logo Background */
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-circle img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================
CTA SECTION
========================================================= */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: background 0.3s ease;
}

.engagement-text {
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
}

.territory-bar {
    margin: 2rem auto;
    max-width: 900px;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    color: var(--secondary-color);
    box-shadow: var(--shadow-light);
    line-height: 1.8;
}

/* =========================================================
FOOTER
========================================================= */
.footer {
    padding: 4rem 0;
    background-color: var(--footer-bg);
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer h3, 
.footer h4 {
    color: #ffffff;
}

.footer p,
.footer li,
.footer a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-4px);
    color: #ffffff;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================================================
RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1100px) {
    .four-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .hero-grid,
    .about-hero-grid,
    .services-hero-grid,
    .academy-hero-grid,
    .leadership-grid,
    .media-grid,
    .dual-column-grid,
    .event-grid,
    .pillars-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        display: none; 
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .mobile-menu-btn { display: block; }
    .navbar .btn-primary { display: none; }
    
    /* Stack split-layout on mobile */
    .split-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .vertical-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent 0%, var(--accent-color) 50%, transparent 100%);
    }
}

@media (max-width: 700px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    
    .four-card-grid,
    .conference-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section,
    .content-section,
    .cta-section { padding: 4rem 0; }
    
    .btn { width: 100%; }
    .hero-buttons { flex-direction: column; }
    .metrics-flex { flex-direction: column; gap: 1rem; }
}
.photo-ticker-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
}
.photo-ticker-track {
    display: flex;
    gap: 1.5rem;
    width: max-content; /* Allows track to be as wide as the images */
    animation: scrollPhotos 40s linear infinite;
}
.photo-ticker-track img {
    height: 300px; /* Set a fixed height */
    width: 450px; /* Set a fixed width */
    object-fit: cover; /* Keeps images from stretching */
    border-radius: 12px;
}
.photo-ticker-track:hover {
    animation-play-state: paused; /* Optional: pauses when user hovers */
}
@keyframes scrollPhotos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}