/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors - GEWA Logo Palette */
    --primary-color: #1c9945;
    /* Logo Green */
    --primary-hover: #157a36;
    --secondary-color: #f39221;
    /* Logo Orange */
    --secondary-hover: #d87e1a;
    --accent-color: #f39221;
    /* Logo Orange */

    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;

    --background-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #222222;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Border Radius & Shadows */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.position-relative {
    position: relative;
}

.z-1 {
    z-index: 1;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-description {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    font-family: var(--font-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-text {
    padding: 0;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.btn-text:hover::after {
    width: 100%;
}

.btn-text:hover {
    color: var(--primary-hover);
}

.btn-text i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn-text:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Transparent Header (for Home Page) */
.header-transparent {
    background-color: transparent;
    box-shadow: none;
    padding: 1.5rem 0;
}

.header-transparent .nav-list a {
    color: #ffffff;
}

.header-transparent .nav-list a::after {
    background-color: #ffffff;
}

.header-transparent .site-logo {
    filter: brightness(0) invert(1);
}

.header-transparent.scrolled {
    background-color: var(--background-color);
    padding: 0.75rem 0;
}

.header-transparent.scrolled .nav-list a {
    color: var(--text-color);
}

.header-transparent.scrolled .nav-list a::after {
    background-color: var(--primary-color);
}

.header-transparent.scrolled .nav-list a:hover,
.header-transparent.scrolled .nav-list a.active {
    color: var(--primary-color);
}

.header-transparent.scrolled .site-logo {
    filter: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

/* Secondary & In-Page Nav Active States */
.secondary-nav a,
.sub-nav a {
    position: relative;
    transition: color 0.25s ease;
}

.secondary-nav a::after,
.sub-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s ease;
}

.secondary-nav a.active::after,
.secondary-nav a:hover::after,
.sub-nav a.active::after,
.sub-nav a:hover::after {
    width: 100%;
}

.secondary-nav a.active,
.secondary-nav a:hover,
.sub-nav a.active,
.sub-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Mobile Menu Active State */
.mobile-menu-active .hamburger {
    background-color: transparent;
}

.mobile-menu-active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-on-scroll.fade-up-enter {
    transform: translateY(30px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-40px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-wrapper img {
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-column p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Programs Section
   ========================================================================== */
.grid-cards {
    display: grid;
    gap: 2rem;
}

.programs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.programs-grid .card {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 1.3rem);
}
@media (max-width: 992px) {
    .programs-grid .card {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 1rem);
    }
}
@media (max-width: 576px) {
    .programs-grid .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-normal);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-bottom-color: var(--secondary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 139, 87, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.card:hover .card-icon svg {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.card-link i {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.impact {
    background-image: url('../images/hero-3.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.impact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 179, 0.9);
    /* Primary color overlay */
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.counter-item {
    padding: 1rem;
}

.counter-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.counter-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-title {
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-note {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.project-card .card-content {
    padding: 2rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 179, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.6;
}

.partner-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.partner-logo:hover {
    color: var(--text-color);
    transform: scale(1.05);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.cta .btn-primary:hover {
    background-color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #cccccc;
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Column Headings */
.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.8;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    margin-bottom: 0.8rem;
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
    margin-right: 1rem;
    width: 16px;
    text-align: center;
}

/* Newsletter Signup */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.newsletter-input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
    color: #ffffff;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-btn {
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

/* Bottom Bar */
.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999999;
    font-size: 0.875rem;
}

/* Responsive Footer Overrides */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .site-footer {
        padding: 50px 0 30px !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
.d-none-mobile {
    display: block;
}

.d-block-mobile {
    display: none;
}

/* 1280px & 1440px+ (Handled by container max-width) */

/* 1024px (Tablets landscape / small laptops) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .two-column {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 768px (Tablets portrait) */
@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .d-block-mobile {
        display: block !important;
    }

    .header-actions .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-normal);
        padding: 5rem 2rem 2rem;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .image-column {
        order: 2;
    }

    .content-column {
        order: 1;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .counter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

/* 430px, 375px, 320px (Mobile Phones) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .counter-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links a {
        margin: 0 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   Vertical Timeline (News Section)
   ========================================================================== */
.news-timeline .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

/* The vertical center line */
.news-timeline .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--primary-color) 0,
      var(--primary-color) 8px,
      transparent 8px,
      transparent 16px
    );
    transform: translateX(-50%);
    opacity: 0.6;
}

/* Timeline Item (Row) */
.news-timeline .timeline-item {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    margin-bottom: 3rem;
}

.news-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.news-timeline .timeline-item.right {
    justify-content: flex-end;
}

/* Content Container (Card) */
.news-timeline .timeline-content {
    width: 45%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Connector Dot & Line */
.news-timeline .timeline-connector {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.news-timeline .timeline-dot {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 0 0 4px rgba(28, 153, 69, 0.2);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-timeline .timeline-item.is-visible .timeline-dot {
    transform: scale(1);
    transition-delay: 0.3s;
}

/* Connector branch line */
.news-timeline .timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 5%;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.5;
    z-index: 1;
}

.news-timeline .timeline-item.left::before {
    right: 50%;
}

.news-timeline .timeline-item.right::before {
    left: 50%;
}

/* Timeline Card Date */
.news-timeline .timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(28, 153, 69, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Animation overrides for timeline cards */
.news-timeline .timeline-item.left .timeline-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.news-timeline .timeline-item.right .timeline-content {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.news-timeline .timeline-item.left.is-visible .timeline-content,
.news-timeline .timeline-item.right.is-visible .timeline-content {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Tablet & Mobile */
@media (max-width: 768px) {
    .news-timeline .timeline-line {
        left: 30px;
    }
    
    .news-timeline .timeline-item, 
    .news-timeline .timeline-item.right {
        justify-content: flex-end;
    }
    
    .news-timeline .timeline-content {
        width: calc(100% - 60px);
    }
    
    .news-timeline .timeline-connector {
        left: 30px;
    }
    
    .news-timeline .timeline-item::before,
    .news-timeline .timeline-item.left::before,
    .news-timeline .timeline-item.right::before {
        left: 30px;
        right: auto;
        width: 30px;
    }
    
    .news-timeline .timeline-item.left .timeline-content,
    .news-timeline .timeline-item.right .timeline-content {
        transform: translateX(50px);
    }
}

/* ==========================================================================
   Contact Section 100vh Layout
   ========================================================================== */
.contact-section-100vh {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 100px;
    padding-bottom: 2rem;
}

.contact-section-100vh > .container {
    margin-top: auto;
    margin-bottom: auto;
}

/* Ensure the CTA section fits in 100vh */
@media (min-width: 768px) {
    #cta.contact-section-100vh {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        box-sizing: border-box;
        padding-top: 75px !important;
        padding-bottom: 2rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    #cta.contact-section-100vh > .container {
        margin-top: auto;
        margin-bottom: auto;
    }

    #cta .cta-title {
        font-size: 2.75rem;
        margin-bottom: 1rem;
    }

    #cta .cta-text {
        font-size: 1.15rem;
        max-width: 650px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 1024px) {
    .contact-section-100vh .two-column {
        gap: 2rem !important;
    }
    .contact-section-100vh .bg-light {
        padding: 2rem !important;
    }
    .contact-section-100vh h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 768px) {
    .contact-section-100vh {
        justify-content: flex-start;
        padding-top: 120px;
    }
    .contact-section-100vh .feature-list li {
        margin-bottom: 1rem !important;
    }
    .contact-section-100vh .bg-light {
        padding: 1.5rem !important;
    }
    .contact-section-100vh input, 
    .contact-section-100vh textarea {
        padding: 8px !important;
    }
    .contact-section-100vh textarea {
        height: 80px;
    }
}

/* ==========================================================================
   Tabs UI & Stagger Animations
   ========================================================================== */
.tabs-container {
    width: 100%;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.tabs-content-area {
    position: relative;
    width: 100%;
    /* Keep it contained on small screens */
    max-height: 60vh; 
    overflow-y: auto;
    padding: 1rem 0;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-content-area::-webkit-scrollbar {
    display: none;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.core-values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Stagger animations for cards and lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.stagger-item.stagger-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Masonry Gallery & Lightbox
   ========================================================================== */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

/* Hover effects */
@media (hover: hover) {
    .masonry-item:hover img {
        transform: scale(1.05);
    }
    .masonry-item:hover .masonry-overlay {
        opacity: 1;
    }
    .masonry-item:hover .masonry-overlay i {
        transform: scale(1);
    }
}

/* Custom Lightbox */
.custom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.lightbox-content-wrapper {
    position: relative;
    z-index: 10000;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let clicks pass to buttons/backdrop */
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: auto; /* Allow clicking the image itself */
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: -40px;
    right: 0;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -50px;
        right: 50%;
        transform: translateX(50%);
    }
    .lightbox-prev {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .lightbox-next {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .lightbox-btn:hover {
        transform: translateY(-50%) scale(1.1);
    }
    .lightbox-close:hover {
        transform: translateX(50%) scale(1.1);
    }
}


/* ==========================================================================
   WordPress Admin Bar Fix
   ========================================================================== */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px; /* WordPress mobile admin bar height */
    }
}

/* ==========================================================================
   Contact Form UI
   ========================================================================== */
.contact-form-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.contact-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 148, 68, 0.15); /* GEWA Green with transparency */
    background-color: #ffffff;
}

.contact-btn {
    width: 100%;
    padding: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 2rem !important;
    }
}

.success-message {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 2rem;
}

/* AIT Technology Footer Link Hover */
.ait-footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, font-weight 0.3s ease;
}
.ait-footer-link:hover {
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==========================================================================
   Modern Gallery Staggered Layout
   ========================================================================== */

.gallery-modern-wrapper {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.gallery-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
    align-items: start;
}

.gallery-modern-item {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    cursor: pointer;
}

/* Stagger Rhythm (4 Columns) */
@media (min-width: 1025px) {
    .gallery-modern-item:nth-child(4n + 2) { transform: translateY(60px); }
    .gallery-modern-item:nth-child(4n + 4) { transform: translateY(100px); }
    .gallery-modern-item:nth-child(4n + 3) { transform: translateY(20px); }
}

/* Stagger Rhythm (3 Columns) */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-modern-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-modern-item:nth-child(3n + 2) { transform: translateY(50px); }
    .gallery-modern-item:nth-child(3n + 3) { transform: translateY(20px); }
}

/* Stagger Rhythm (2 Columns) */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery-modern-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-modern-item:nth-child(2n + 2) { transform: translateY(40px); }
}

/* Single Column (Mobile) */
@media (max-width: 480px) {
    .gallery-modern-grid { grid-template-columns: 1fr; gap: 1rem; padding: 0 1rem; }
    .gallery-modern-item { margin-bottom: 2rem; }
}

/* Item Styling */
.gallery-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: visible; /* To allow badge overlap */
    transition: transform 0.3s ease;
}

.gallery-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.gallery-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(28, 153, 69, 0.3);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.gallery-caption {
    margin-top: 1.5rem;
    text-align: center;
}

.gallery-caption h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover Effects */
@media (hover: hover) {
    .gallery-modern-item:hover .gallery-img-wrapper {
        transform: translateY(-5px);
    }
    .gallery-modern-item:hover .gallery-badge {
        background-color: var(--secondary-color);
    }
    .gallery-modern-item:hover .gallery-caption h3 {
        color: var(--primary-color);
    }
}

/* ==========================================================================
   News & Events Cascading Layout
   ========================================================================== */
.news-page-section {
    background-color: var(--bg-light);
    overflow: hidden; /* Prevent horizontal scroll from rotated cards */
}

.news-page-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Left Panel */
.news-intro-panel {
    width: 35%;
}

.news-intro-sticky {
    position: sticky;
    top: 120px;
}

.news-pill-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.news-main-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.news-main-heading .text-accent {
    color: var(--secondary-color);
    font-style: italic;
}

.news-intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Right Cascade Area */
.news-cascade-area {
    width: 65%;
}

.news-cascade-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

/* Base Card Styling */
.news-cascade-card {
    background: var(--background-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content-wrapper {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(28, 153, 69, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.card-dynamic-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.card-dynamic-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.card-dynamic-title a:hover {
    color: var(--primary-color);
}

.card-dynamic-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.card-dynamic-excerpt p {
    margin-bottom: 0;
}

.card-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-cta-btn {
    display: inline-block;
    background: #111;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.card-cta-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Cascading Rotations (Desktop Only) --- */
@media (min-width: 1025px) {
    /* Slight alternations in height/rotation to create the fan effect */
    .news-cascade-card:nth-child(2n) {
        transform: translateY(60px) rotate(2.5deg);
    }
    .news-cascade-card:nth-child(2n+1) {
        transform: rotate(-1.5deg);
    }
    .news-cascade-card:nth-child(3n) {
        transform: translateY(20px) rotate(-2deg);
    }
    
    /* Hover brings them to life and straightens them */
    .news-cascade-card:hover {
        transform: translateY(-10px) rotate(0deg) scale(1.02);
        box-shadow: 0 25px 45px rgba(0,0,0,0.12);
        z-index: 10;
    }
    .news-cascade-card:hover .card-img-wrapper img {
        transform: scale(1.08);
    }
}

/* Pagination */
.news-pagination {
    margin-top: 3rem;
    text-align: center;
    grid-column: 1 / -1;
}
.news-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.news-pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.news-pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* --- Responsive Degradation --- */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .news-page-layout {
        flex-direction: column;
        gap: 3rem;
    }
    .news-intro-panel, .news-cascade-area {
        width: 100%;
    }
    .news-intro-sticky {
        position: relative;
        top: 0;
        text-align: center;
    }
    /* Reduce rotation/stagger drastically on tablet */
    .news-cascade-card:nth-child(2n) {
        transform: translateY(30px) rotate(1deg);
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    .news-main-heading {
        font-size: 2.5rem;
    }
    .news-cascade-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Eliminate all rotations/stagger for strict vertical readability */
    .news-cascade-card,
    .news-cascade-card:nth-child(2n),
    .news-cascade-card:nth-child(2n+1),
    .news-cascade-card:nth-child(3n) {
        transform: none !important;
    }
    .news-cascade-card:hover {
        transform: translateY(-5px) !important;
    }
}
