/* 
   EBONYI INNOVATION NETWORK (EIN) 
   Landing Page Redesign — Inspired by Voltra Design System
*/

:root {
    --e-primary: #022c22;
    --e-primary-light: #064e3b;
    --e-accent: #10b981;
    --e-accent-soft: rgba(16, 185, 129, 0.1);
    --e-text-main: #0f172a;
    --e-text-muted: #64748b;
    --e-bg: #ffffff;
    --e-surface: #f8fafc;
    --e-border: #e2e8f0;
    --e-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
    --e-transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --e-gold: #D4AF37;
    --e-gold-soft: rgba(212, 175, 55, 0.2);
    --e-glass: rgba(255, 255, 255, 0.05);
    --e-glass-border: rgba(255, 255, 255, 0.1);
}

/* ── Superior Aesthetics ────────────────────────────── */
.r-noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05; /* Slightly more visible noise */
    pointer-events: none;
    z-index: 9999;
}

.r-scroll-progress {
    position: fixed;
    top: 0; left: 0; height: 3px;
    background: var(--e-accent);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ── Global Styles ─────────────────────────────────── */
body.landing-redesign {
    font-family: 'Inter', sans-serif;
    color: var(--e-text-main);
    background: var(--e-bg);
}

.landing-redesign h1, 
.landing-redesign h2, 
.landing-redesign h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* ── Hero Section ───────────────────────────────────── */
.r-btn {
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.r-btn-primary {
    background: var(--e-accent);
    color: white !important;
}

.r-btn-primary:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.r-btn-outline {
    border: 1px solid var(--e-border);
    color: var(--e-text-main) !important;
}

.r-btn-outline:hover {
    background: var(--e-surface);
    border-color: var(--e-accent);
    color: var(--e-accent) !important;
}

.r-cta .r-btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

.r-about-hero .r-btn-outline:hover,
.r-prog-hero .r-btn-outline:hover,
.is-dark-page section .r-btn-outline:hover,
.r-cta .r-btn-outline:hover {
    background: white !important;
    color: #012419 !important;
    border-color: white !important;
}

.r-btn-partnership:hover {
    background: var(--e-gold) !important;
    color: #012419 !important;
    border-color: var(--e-gold) !important;
}

.r-hero {
    background: #012419;
    position: relative;
    padding: 8rem 0 0;
    text-align: center;
    color: white;
    z-index: 5;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.r-hero::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1), transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0v60M0 30h60' stroke='rgba(212, 175, 55, 0.05)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    z-index: 1;
    animation: slowRotate 60s linear infinite;
}

@keyframes slowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.r-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to top, rgba(1, 44, 34, 1), transparent);
    z-index: 2;
}

.r-hero h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 5;
}

.r-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 5;
}

.r-hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 576px) {
    .r-hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .r-hero-actions .r-btn {
        width: 100%;
    }
}

.r-hero-mockup {
    margin-top: 3rem; 
    max-width: 950px; 
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.r-mockup-frame {
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08); 
    border: 1px solid var(--e-border);
    border-bottom: none;
    overflow: hidden;
    max-height: 400px; /* Constrained height */
    transform: translateY(30px); /* Tucked more */
    transition: var(--e-transition);
}

.r-mockup-frame:hover {
    transform: translateY(0);
}

.r-hero-mockup img {
    width: 100%;
    height: auto;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Button Shimmer */
.r-btn-primary {
    position: relative;
    overflow: hidden;
}

.r-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ── Features Bento Grid Section ─────────────────────────── */
.r-stats-section {
    padding: 6rem 0 6rem;
    background: #ffffff;
    text-align: center;
}

.r-section-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--e-accent);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.r-section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

.r-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 1.5rem;
    margin-top: 4rem;
}

.r-bento-card {
    background: var(--e-surface);
    border-radius: var(--e-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--e-transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.r-bento-card:hover {
    background: #ffffff;
    border-color: var(--e-accent);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.r-bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(16, 185, 129, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.r-bento-card:hover::before {
    opacity: 1;
}

.r-bento-card.large { grid-column: span 2; grid-row: span 2; }
.r-bento-card.tall { grid-row: span 2; }
.r-bento-stack {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 991.98px) {
    .r-bento-stack {
        grid-column: span 1;
        grid-row: auto;
    }
}

.r-bento-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--e-accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.r-bento-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--e-text-main);
}

.r-bento-card p {
    color: var(--e-text-muted);
    font-size: 1rem;
    margin: 0;
}

.r-bento-card.dark {
    background: var(--e-primary);
    color: white;
}
.r-bento-card.dark h3 { color: white; }
.r-bento-card.dark p { color: rgba(255,255,255,0.6); }

/* ── Sticky Feature Section ─────────────────────────── */
.r-sticky-section {
    padding: 10rem 0;
    position: relative;
}

.r-sticky-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.r-sticky-content {
    position: sticky;
    top: 15rem;
}

.r-sticky-slides {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.r-slide-item {
    background: var(--e-surface);
    border-radius: var(--e-radius);
    padding: 2rem;
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--e-transition);
    border: 1px solid var(--e-border);
}

.r-slide-item:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: var(--e-shadow);
}

.r-slide-item img {
    width: 100%;
    border-radius: 12px;
}

/* ── Immersive Testimonial ──────────────────────────── */
.r-immersive-testimonial {
    background: #ffffff;
    padding: 8rem 0;
    color: var(--e-text-main);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid var(--e-border);
    border-bottom: 1px solid var(--e-border);
}

.r-immersive-testimonial::before {
    display: none;
}

.r-testimonial-quote {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-family: 'Outfit';
    font-weight: 700;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    color: var(--e-text-main);
}

.r-testimonial-quote::before {
    content: '“';
    position: absolute;
    top: -2rem; left: -2rem;
    font-size: 8rem;
    opacity: 0.2;
    color: var(--e-accent);
}

/* ── Logo Marquee ───────────────────────────────────── */
.r-marquee {
    padding: 1.5rem 0; /* Reduced height */
    background: white;
    overflow: hidden;
    white-space: nowrap;
    border: none; /* Removed borders */
    position: relative;
    z-index: 2; /* Lower than mockup but above other things */
    margin-top: 4rem; /* Reduced for tighter layout */
}

.r-marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.r-marquee-item {
    margin: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r-marquee-item img {
    height: 35px;
    width: auto;
    filter: grayscale(100%) contrast(0.5) brightness(0.5);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.r-marquee-item:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* ── Partner Logo Items (full-colour override) ── */
.r-partner-logo-item {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    margin: 0 1.5rem;
}

.r-partner-logo-item:hover {
    box-shadow: 0 8px 24px rgba(1, 36, 25, 0.1);
    border-color: #10b981;
    transform: translateY(-3px);
}

.r-partner-logo-item img {
    height: 60px !important;
    width: auto !important;
    filter: none !important;
    opacity: 1 !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ── Responsive helper utilities ───────────────────────── */
.r-startup-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.r-startup-cta-text {
    flex: 1 1 420px;
    min-width: 280px;
}

.r-startup-cta-image-wrapper {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    justify-content: flex-end;
}

.r-startup-cta-image {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.r-startup-cta-deco,
.r-startup-cta-frame {
    position: absolute;
    inset: 0;
    border-radius: 48px;
}

.r-startup-cta-deco {
    background: rgba(212,175,55,0.2);
    transform: rotate(6deg);
    transition: 0.5s ease;
}

.r-startup-cta-frame {
    border: 2px solid rgba(255,255,255,0.1);
    transform: rotate(-3deg);
}

.r-startup-cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 48px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: 0.5s ease;
}

.r-news-card-img,
.r-search-card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

.r-news-card-img img,
.r-search-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.r-event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.r-login-bg-large,
.r-login-bg-small {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: pulse 12s infinite alternate;
}

.r-login-bg-large {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(16,185,129,0.08), transparent 70%);
}

.r-login-bg-small {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(212,175,55,0.05), transparent 70%);
    animation-duration: 15s;
}

@media (max-width: 991.98px) {
    .r-news-card-img,
    .r-search-card-img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .r-event-card-img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .r-startup-cta {
        justify-content: center;
    }
    .r-startup-cta-image-wrapper {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .r-startup-cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .r-startup-cta-text {
        margin-bottom: 2rem;
    }
    .r-login-bg-large {
        width: 90vw;
        max-width: 520px;
        height: 90vw;
        max-height: 520px;
        top: -120px;
        right: -120px;
    }
    .r-login-bg-small {
        width: 70vw;
        max-width: 360px;
        height: 70vw;
        max-height: 360px;
        bottom: -70px;
        left: -70px;
    }
}

/* About page: prevent 'Our Story' from sitting under fixed logo on small screens */
@media (max-width: 767.98px) {
    .r-about-hero .r-section-label {
        display: block;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    .r-about-hero {
        padding-top: calc(6rem + 1.5rem); /* small extra top space for fixed navbar/logo */
    }
}

/* ── Global Responsive Helpers ───────────────────────── */

/* Programs hero paragraph spacing */
.r-programs-hero-desc {
    margin-bottom: 3rem;
}

@media (max-width: 767.98px) {
    .r-programs-hero-desc {
        margin-bottom: 2rem;
    }
}

    /* Footer newsletter responsive layout */
    .r-footer-newsletter {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 3rem;
    }
    .r-footer-newsletter .r-footer-newsletter-left {
        flex: 1 1 360px;
    }
    .r-footer-newsletter .r-footer-newsletter-right {
        flex: 1 1 360px;
    }
    .r-footer-newsletter-form {
        display: flex;
        gap: 1rem;
        align-items: center;
        background: rgba(255,255,255,0.08);
        padding: 0.5rem;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.12);
    }
    .r-footer-newsletter-input {
        flex: 1;
        min-width: 0;
        padding: 0.9rem 1rem;
        background: transparent;
        border: none;
        color: white;
        outline: none;
        font-size: 1rem;
    }
    .r-footer-newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
    .r-footer-newsletter-btn {
        white-space: nowrap;
        background: var(--e-gold);
        color: #012419;
        border: none;
        padding: 0.9rem 1.25rem;
        border-radius: 12px;
        font-weight: 800;
        cursor: pointer;
    }

    @media (max-width: 991.98px) {
        .r-footer-newsletter { padding: 2rem; }
    }

    @media (max-width: 767.98px) {
        .r-footer-newsletter {
            flex-direction: column;
            align-items: stretch;
            text-align: center;
            padding: 1.5rem;
            border-radius: 20px;
        }
        .r-footer-newsletter .r-footer-newsletter-left,
        .r-footer-newsletter .r-footer-newsletter-right {
            flex: 1 1 100%;
            min-width: 0;
        }
        .r-footer-newsletter-copy { margin: 0 auto 1rem; }

        /* Stack the form controls vertically and give them clear visual separation */
        .r-footer-newsletter-form {
            flex-direction: column;
            gap: 0.75rem;
            padding: 0.5rem;
            border-radius: 12px;
            background: rgba(255,255,255,0.03);
            align-items: stretch;
            box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
        }

        .r-footer-newsletter-input {
            width: 100%;
            padding: 0.95rem 1rem;
            background: transparent;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.06);
            color: rgba(255,255,255,0.95);
            min-height: 48px;
            box-sizing: border-box;
        }

        .r-footer-newsletter-input::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .r-footer-newsletter-btn {
            width: 100%;
            padding: 0.95rem 1rem;
            border-radius: 10px;
            font-weight: 800;
            box-shadow: 0 6px 18px rgba(1,36,25,0.12);
        }
    }
.r-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.r-hero-actions .r-btn {
    min-width: 220px;
}

.r-join-card {
    width: 100%;
}

.about-founder-card .col-lg-4,
.about-founder-card .col-lg-8 {
    min-width: 0;
}

.founder-image-frame {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    min-height: 280px;
    position: relative;
}

.founder-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.r-sticky-grid,
.r-bento-grid,
.r-footer-grid,
.footer-grid {
    min-width: 0;
}

/* Footer responsiveness */
.r-footer-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 2rem;
}

.r-footer-bottom,
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.r-footer-bottom p,
.footer-bottom p {
    margin: 0;
}

/* Mobile enhancements */
@media (max-width: 991.98px) {
    .r-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .r-sticky-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .r-footer-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r-footer-bottom,
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .r-hero-actions {
        flex-direction: column;
    }

    .r-mission-section .row,
    .r-stats-section .row,
    .r-sticky-grid,
    .r-footer-grid,
    .footer-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .r-bento-grid,
    .r-footer-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .r-hero {
        padding: 6rem 0 2rem;
    }

    .r-hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .r-hero p,
    .r-about-hero p,
    .r-prog-hero p,
    .r-immersive-testimonial p {
        font-size: 1rem;
    }

    .r-join-card {
        padding: 2rem 1.25rem;
    }

    .about-founder-card {
        padding: 2rem;
    }

    .about-founder-card .row {
        display: flex;
        flex-direction: column;
    }

    .r-footer-bottom,
    .footer-bottom {
        justify-content: center;
        align-items: center;
    }
}

.r-partner-logo-item:hover img {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Content Blocks ─────────────────────────────────── */
/* ── Cleanup: Removed old content blocks ── */

/* ── Testimonials ───────────────────────────────────── */
/* ── Cleanup: Removed old testimonial block ── */

/* ── Innovation Gallery ────────────────────────────── */
.r-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: var(--e-shadow);
}

.col-lg-8 .r-gallery-item, 
.col-lg-7 .r-gallery-item {
    height: 350px;
}

.r-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 28, 22, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--e-transition);
    color: white;
}

.r-gallery-item:hover img {
    transform: scale(1.1);
}

.r-gallery-item:hover .r-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.r-gallery-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.r-gallery-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ── CTA Section ────────────────────────────────────── */
.r-cta h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.r-cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* ── Footer ─────────────────────────────────────────── */
.r-footer {
    padding: 6rem 0 4rem;
    background: white;
    color: var(--e-text-main);
    border-top: 1px solid var(--e-border);
}

.r-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.r-footer-brand p {
    color: var(--e-text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
    line-height: 1.8;
}

.r-footer-social {
    display: flex;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.r-footer-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--e-surface);
    border: 1px solid var(--e-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--e-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.r-footer-social a:hover {
    background: var(--e-primary);
    color: #ffffff;
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--e-primary);
    box-shadow: 0 10px 20px rgba(2, 44, 34, 0.1);
}

.r-footer-social i,
.r-footer-social svg {
    width: 22px;
    height: 22px;
    color: var(--e-primary) !important;
    display: block;
}

.r-footer-social a:hover i,
.r-footer-social a:hover svg {
    color: #ffffff !important;
}

/* ── Social Icon Visibility Fix ── */
.r-social-icon, 
[data-lucide] {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    stroke-width: 2px;
    color: inherit;
}

.r-footer-social .r-social-icon {
    width: 20px;
    height: 20px;
    color: var(--e-primary);
}

.r-footer-social a:hover .r-social-icon {
    color: #ffffff;
}

.r-footer-links h4 {
    margin-bottom: 2rem;
    font-weight: 700;
}

.r-footer-links ul {
    list-style: none;
    padding: 0;
}

.r-footer-links li {
    margin-bottom: 1rem;
}

.r-footer-links a {
    color: var(--e-text-muted);
    text-decoration: none;
    transition: var(--e-transition);
}

.r-footer-links a:hover {
    color: var(--e-primary);
    padding-left: 5px;
}

.r-footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid var(--e-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--e-text-muted);
    font-size: 0.9rem;
}

/* ── Mobile & Tablet Optimization ──────────────────── */
@media (max-width: 991.98px) {
    .r-hero { padding: 5rem 0 3rem; }
    .r-hero h1 { font-size: 3rem; margin-bottom: 1.5rem; }
    .r-hero p { font-size: 1.1rem; margin-bottom: 2.5rem; }
    .r-hero-actions { flex-direction: column; gap: 1rem; margin-bottom: 3rem; padding: 0 2rem; }
    .r-hero-actions .r-btn { width: 100%; text-align: center; }
    
    .r-hero-mockup { margin-bottom: -4rem; padding: 0 1.5rem; }
    .r-mockup-frame { max-height: 400px; transform: none; }
    
    .r-bento-grid { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto; 
    }
    .r-bento-card.large, .r-bento-card.tall, .r-bento-card.wide { 
        grid-column: span 1; 
        grid-row: auto; 
        height: auto;
        min-height: 250px;
    }
    
    .r-stats-section { padding-top: 8rem; }
    .r-section-title { font-size: 2.25rem; }
    
    .r-sticky-grid { grid-template-columns: 1fr; gap: 4rem; }
    .r-sticky-content { position: relative; top: 0; text-align: center; }
    .r-sticky-content h2 { font-size: 2.5rem !important; }
    
    .r-cta { padding: 4rem 0; }
    .r-cta h2 { font-size: 2.5rem !important; text-align: center; }
    .r-cta-actions { flex-direction: column; width: 100%; }
    .r-cta-actions .r-btn { width: 100%; text-align: center; }
}

@media (max-width: 767.98px) {
    .container { padding: 0 1.5rem; }
    .logo-text { font-size: 1rem; }
    .navbar { padding: 1rem 0; }
    
    .r-mission-section .row { flex-direction: column-reverse; }
    .r-mission-section h2 { font-size: 2rem !important; }
    
    .r-footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; text-align: left; }
    .r-footer-brand { grid-column: span 2; text-align: center; }
    .r-footer-brand p { margin-left: auto; margin-right: auto; }
    .r-footer-social { justify-content: center; }
}

/* Ensure join hero clears fixed header/logo on small screens */
@media (max-width: 767.98px) {
    .r-join-hero {
        padding-top: calc(8rem + 3rem) !important;
    }
    .r-join-hero h1 {
        margin-top: 0.75rem;
    }
}

/* ── Refined Mobile Navigation ── */
.mobile-nav {
    padding-top: 6rem;
    background: white;
}

.is-home .mobile-nav {
    background: #011c16;
}

.mobile-links a {
    font-size: 1.5rem;
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.is-home .mobile-links a {
    color: white;
    border-bottom-color: rgba(255,255,255,0.05);
}

.menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--e-text-main);
}

@media (min-width: 992px) {
    .menu-toggle { display: none !important; }
}

.menu-toggle i {
    width: 28px;
    height: 28px;
}

/* ── Navbar Adjustment — Home & Dark pages ── */
.landing-redesign.is-home .navbar:not(.scrolled) .nav-links a,
.landing-redesign.is-dark-page .navbar:not(.scrolled) .nav-links a {
    color: white !important;
}

.landing-redesign.is-home .navbar:not(.scrolled) .menu-toggle,
.landing-redesign.is-dark-page .navbar:not(.scrolled) .menu-toggle,
.landing-redesign .navbar:not(.scrolled) .menu-toggle {
    color: white !important;
}

/* Logo Toggling */
.r-logo-dark { display: none !important; }
.r-logo-white { display: block !important; }

.navbar.scrolled .r-logo-dark { display: block !important; }
.navbar.scrolled .r-logo-white { display: none !important; }

.navbar .logo img {
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 50px !important;
}

.landing-redesign.is-home .navbar:not(.scrolled) .r-btn-primary,
.landing-redesign.is-dark-page .navbar:not(.scrolled) .r-btn-primary {
    background: white !important;
    color: #012419 !important;
}

.landing-redesign.is-home .navbar:not(.scrolled) .r-btn-outline,
.landing-redesign.is-dark-page .navbar:not(.scrolled) .r-btn-outline {
    border-color: rgba(255,255,255,0.3) !important;
    color: white !important;
}

.landing-redesign.is-home .navbar:not(.scrolled) .r-btn-outline:hover,
.landing-redesign.is-dark-page .navbar:not(.scrolled) .r-btn-outline:hover {
    background: #D4AF37 !important;
    color: #012419 !important;
    border-color: #D4AF37 !important;
}

.landing-redesign.is-dark-page .mobile-nav {
    background: #012419;
}

.landing-redesign.is-dark-page .mobile-links a {
    color: white;
    border-bottom-color: rgba(255,255,255,0.05);
}

.landing-redesign.is-home .navbar:not(.scrolled) .menu-toggle {
    color: white !important;
}

.landing-redesign .navbar.scrolled .menu-toggle {
    color: var(--e-text-main) !important;
}

/* ── Animation Definitions ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── CTA Core ── */
.r-cta {
    padding: 6rem 0;
    background: var(--e-primary);
    position: relative;
    overflow: hidden;
    color: white;
}

.landing-redesign .navbar.scrolled .nav-actions .r-btn-outline {
    border-color: var(--e-border);
    color: var(--e-text-main);
}

.landing-redesign .navbar.scrolled .nav-actions .r-btn-outline:hover {
    background: #D4AF37 !important;
    color: #012419 !important;
    border-color: #D4AF37 !important;
}

.landing-redesign .navbar.scrolled .nav-actions .r-btn-primary {
    background: var(--e-accent) !important;
    color: white !important;
}

.r-mission-section .r-section-label {
    text-align: left;
}

/* Programme Cards */
.r-programme-card:hover {
    background: #ffffff !important;
    border-color: var(--e-accent) !important;
    box-shadow: 0 40px 100px -20px rgba(16, 185, 129, 0.15);
    transform: translateY(-10px);
}

.r-programme-card i {
    transition: transform 0.4s ease;
}

.r-programme-card:hover i {
    transform: rotate(10deg) scale(1.1);
}

.r-mission-section .r-section-title {
    text-align: left;
}

/* ── Scroll Indicator ── */
.r-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin: 0 auto;
}

.r-wheel {
    width: 4px;
    height: 8px;
    background: #D4AF37;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Premium Gradient Backgrounds */
.r-stats-section {
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.r-stats-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 1000px; height: 1000px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.r-bento-card { z-index: 1; }

/* Enhanced Hero Button Styles */
.r-hero-actions .r-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-hero-actions .r-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-hero-actions .r-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Glass Navbar refinement */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Redesigned Programmes Section ── */
.r-programmes-redesign .r-section-title {
    margin-bottom: 2rem;
}

.r-prog-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 3.5rem 2.5rem 3rem;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.r-prog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.r-prog-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.r-prog-card:hover::before {
    opacity: 1;
}

.r-prog-num {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 4rem;
    font-weight: 900;
    color: #D4AF37;
    opacity: 0.1;
    font-family: 'Outfit';
    transition: var(--e-transition);
}

.r-prog-card:hover .r-prog-num {
    opacity: 0.25;
    transform: translateY(-10px);
}

.r-prog-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    transition: var(--e-transition);
}

.r-prog-icon i {
    width: 28px;
    height: 28px;
}

.r-prog-card:hover .r-prog-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 255, 255, 0.1);
}

.r-prog-content h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.r-prog-content p {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.r-prog-link {
    color: var(--e-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--e-transition);
}

.r-prog-link i {
    width: 18px;
    transition: transform 0.4s ease;
}

.r-prog-link:hover {
    color: white;
}

.r-prog-link:hover i {
    transform: translateX(5px);
}

/* ── About Page Specifics ── */
.r-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
    border-color: #D4AF37 !important;
}

.r-step-card i {
    transition: transform 0.4s ease;
}

.r-step-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* ── Mobile Sleekness & Refinements ────────────────── */
@media (max-width: 768px) {
    /* Global Typography Refinements */
    h1 { font-size: 2.5rem !important; line-height: 1.2 !important; }
    h2 { font-size: 2rem !important; line-height: 1.25 !important; }
    h3 { font-size: 1.5rem !important; }
    p { font-size: 1rem !important; line-height: 1.6 !important; }
    .hide-on-mobile { display: none !important; }

    /* Hero Section Adjustments */
    .r-hero { padding: 8rem 0 4rem !important; }
    .r-hero-badge { display: none !important; }
    
    .r-hero h1 { margin-bottom: 1.5rem !important; }
    .r-hero p { margin-bottom: 2.5rem !important; }
    .r-hero-actions { 
        display: flex;
        flex-direction: column; 
        gap: 1rem; 
        max-width: 400px;
        margin: 0 auto;
    }
    .r-hero-actions .r-btn { width: 100%; text-align: center; }

    /* Spacing Refinements */
    section { padding: 4rem 0 !important; }
    .container { padding: 0 1.5rem !important; }

    /* Navbar & Logo */
    .navbar { padding: 0.75rem 0 !important; }
    .navbar .logo img { height: 70px !important; }
    .navbar.scrolled .logo img { height: 60px !important; }

    /* Bento & Grid Adjustments */
    .r-bento-grid { 
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
    }
    .r-bento-card { min-height: 300px; padding: 2rem !important; }
    .r-bento-card.large { height: auto; }
    
    /* Stats & Numbers */
    .stat-value { font-size: 2.5rem !important; }

    /* Footer */
    .r-footer-grid { grid-template-columns: 1fr !important; gap: 3rem !important; text-align: center; }
    .r-footer-grid > div { min-width: 0 !important; }
    .r-footer-brand { align-items: center; }
    .r-footer-social { justify-content: center; }
    .r-footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .legal-links { justify-content: center; }
    #newsletter-form { flex-wrap: wrap; gap: 0.75rem; }
    #newsletter-form input,
    #newsletter-form button { flex: 1 1 100% !important; min-width: 0; width: 100% !important; }
    #newsletter-form button { justify-content: center; }
    #newsletter-form input { padding: 1rem 1rem !important; }
    .r-footer-brand p { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }

    /* Programmes & Media */
    .r-prog-card { padding: 2.5rem 1.5rem !important; }
    .r-gallery-item { height: 300px !important; }
    
    /* Partner & Marquee Adjustments */
    .r-partner-logo-item { margin: 0 1rem !important; }
    .r-partner-logo-item img { height: 40px !important; }
    .r-marquee-item { font-size: 0.85rem !important; gap: 0.5rem !important; padding: 0 1rem !important; }

    /* Sticky Section Refinement */
    .r-sticky-grid { grid-template-columns: 1fr !important; }
    .r-sticky-slides { margin-top: 3rem; }
    .r-slide-item { margin-bottom: 3rem; }

    /* Programmes Page Specifics */
    .r-prog-hero .col-lg-5 { margin-top: 3rem; }
    .r-prog-hero div[style*="padding: 3rem"] { padding: 2rem !important; border-radius: 30px !important; }
}

@media (max-width: 480px) {
    .r-hero h1 { font-size: 2.25rem !important; }
    .r-hero p { font-size: 0.95rem !important; }
    .r-btn { padding: 0.8rem 1.5rem !important; font-size: 0.9rem !important; }
}
