/* ===================================================================
   NEFDHA Modern Homepage Styles
   Requires: design-system.css, components.css
   =================================================================== */

/* ===================================================================
   NAVIGATION
   =================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--color-surface-default);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: all var(--transition-base) var(--ease-out);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}

.navbar-logo {
    flex-shrink: 0;
    padding-right: var(--space-5);
    border-right: 2px solid var(--color-border-subtle);
    margin-right: var(--space-5);
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base) var(--ease-out);
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: var(--font-size-2xl);
    color: var(--color-text-body);
    cursor: pointer;
    padding: var(--space-2);
    line-height: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 0 0 auto;
    justify-content: center;
    order: 2;
    padding-right: var(--space-5);
    border-right: 2px solid var(--color-border-subtle);
    margin-right: var(--space-5);
}

.navbar-menu .nav {
    display: flex;
    gap: var(--space-3);
    flex-wrap: nowrap;
}

.navbar-menu .nav-link {
    padding: var(--space-2) var(--space-2);
    color: var(--color-text-body);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) var(--ease-out);
    position: relative;
    white-space: nowrap;
}

.navbar-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--color-action-primary);
    transition: transform var(--transition-base) var(--ease-out);
}

.navbar-menu .nav-link:hover {
    color: var(--color-text-link-hover);
}

.navbar-menu .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-left: var(--space-5);
    flex-shrink: 0;
    order: 3;
}

.navbar-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-text-body-subtle);
    font-size: var(--font-size-xs);
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
}

.navbar-contact-item i {
    color: var(--color-action-primary);
    font-size: var(--font-size-sm);
}

.navbar-contact-item:hover {
    color: var(--color-text-link-hover);
}

/* Medium screens - contact info below menu */
@media (max-width: 1577px) and (min-width: 1281px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-logo {
        padding-right: var(--space-4);
        margin-right: var(--space-4);
    }

    .navbar-menu {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    .navbar-menu .nav {
        gap: var(--space-3);
    }

    .navbar-menu .nav-link {
        padding: var(--space-2) var(--space-2);
        font-size: var(--font-size-sm);
    }

    /* Contact info below menu */
    .navbar-contact {
        order: 3;
        width: 100%;
        padding-left: 0;
        padding-top: var(--space-3);
        border-top: 1px solid var(--color-border-subtle);
        margin-top: var(--space-3);
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }

    .navbar-contact-item {
        font-size: var(--font-size-sm);
        gap: var(--space-2);
    }
}

/* Desktop - Extra spacing for wide screens (contact info on same row) */
@media (min-width: 1578px) {
    .navbar-menu .nav {
        gap: var(--space-4);
    }

    .navbar-menu .nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-base);
    }

    .navbar-logo {
        padding-right: var(--space-6);
        margin-right: var(--space-6);
    }

    .navbar-menu {
        padding-right: var(--space-6);
        margin-right: var(--space-6);
    }

    .navbar-contact {
        padding-left: var(--space-6);
    }
}

/* Medium Desktop (1024px - 1280px) - Compact horizontal nav */
@media (min-width: 1025px) and (max-width: 1279px) {
    .navbar-container {
        padding: var(--space-2) var(--space-4);
    }

    .navbar-menu .nav {
        gap: var(--space-1);
    }

    .navbar-menu .nav-link {
        padding: var(--space-2) var(--space-2);
        font-size: var(--font-size-sm);
    }

    .navbar-logo img {
        max-height: 60px;
    }

    .navbar-contact-item {
        font-size: var(--font-size-sm);
        gap: var(--space-2);
    }
}

/* Mobile Navigation - Hamburger menu below 1024px (tablet/laptop breakpoint) */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .navbar-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: var(--space-3) var(--space-4);
    }

    .navbar-logo {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    /* Contact info - visible below logo in mobile */
    .navbar-contact {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--color-border-subtle);
        padding: var(--space-3) 0 0 0;
        margin-top: var(--space-3);
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }

    .navbar-contact-item {
        font-size: var(--font-size-sm);
        gap: var(--space-2);
    }

    /* Nav menu - hidden in hamburger */
    .navbar-menu {
        position: fixed;
        top: 130px;
        left: 0;
        right: 0;
        background: var(--color-surface-default);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        display: none;
        transition: all var(--transition-base) var(--ease-out);
        order: 4;
        max-width: 100%;
        padding-right: var(--space-6);
        border-right: none;
        margin-right: 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu .nav {
        flex-direction: column;
        gap: var(--space-1);
    }

    .navbar-menu .nav-link {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
        font-size: var(--font-size-base);
    }

    .navbar-menu .nav-link::after {
        display: none;
    }
}

/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    margin-top: 92px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-green-rgb), 0.05) 0%,
        rgba(var(--color-teal-rgb), 0.05) 50%,
        rgba(var(--color-magenta-rgb), 0.05) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(var(--color-primary-green-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--color-teal-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(var(--color-magenta-rgb), 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.6s var(--ease-out);
    position: relative;
    width: 280px;
    height: 280px;
}

.hero-badge img,
.hero-badge svg {
    width: 240px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-out;
}

.hero-badge .logo-static {
    opacity: 0;
}

.hero-badge.animation-complete .logo-animated {
    opacity: 0;
}

.hero-badge.animation-complete .logo-static {
    opacity: 1;
}

/* Animated Logo SVG Styles */
.logo-animated {
    overflow: visible;
}

/* THE ROOF (Drop In) */
.logo-animated #roof-group {
    animation: dropRoof 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes dropRoof {
    0% { transform: translateY(-300px); opacity: 0; }
    60% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

/* THE BOY (Teal - Skipping) */
.logo-animated #boy-group {
    transform-origin: center bottom;
    transform-box: fill-box;
    animation: skip 0.8s ease-in-out 3;
}

/* THE GIRL (Pink - Skipping) */
.logo-animated #girl-group {
    transform-origin: center bottom;
    transform-box: fill-box;
    animation: skip 0.8s ease-in-out 3;
    animation-delay: 0.1s; /* Slight offset from boy for natural feel */
}

@keyframes skip {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* THE BABY (Green - Waddling) */
.logo-animated #baby-group {
    transform-origin: center bottom;
    transform-box: fill-box;
    animation: waddle 1s ease-in-out 3;
}

@keyframes waddle {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

/* SVG Fill Colors */
.logo-animated .cls-teal { fill: #139b99; fill-rule: evenodd; }
.logo-animated .cls-green { fill: #98b63c; fill-rule: evenodd; }
.logo-animated .cls-pink { fill: #c41887; fill-rule: evenodd; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .logo-animated #roof-group,
    .logo-animated #boy-group,
    .logo-animated #girl-group,
    .logo-animated #baby-group {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .hero-badge .logo-animated {
        opacity: 0;
    }
    .hero-badge .logo-static {
        opacity: 1;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.text-gradient {
    background: linear-gradient(135deg,
        var(--color-primary-green) 0%,
        var(--color-teal) 50%,
        var(--color-magenta) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero-pricing-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-teal) 100%);
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(45, 122, 70, 0.3);
    animation: fadeInUp 0.6s var(--ease-out) 0.5s both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-pricing-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(45, 122, 70, 0.4);
}

.hero-pricing-pill i {
    font-size: var(--font-size-xl);
    opacity: 0.9;
}

.hero-pricing-pill strong {
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .hero-pricing-pill {
        font-size: var(--font-size-sm);
        padding: var(--space-2) var(--space-4);
        gap: var(--space-2);
    }

    .hero-pricing-pill i {
        font-size: var(--font-size-lg);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-16);
    animation: fadeInUp 0.6s var(--ease-out) 0.6s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-16);
    animation: fadeInUp 0.6s var(--ease-out) 0.6s both;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: center;
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s var(--ease-out) 0.8s both;
    border: 1px solid rgba(var(--color-primary-green-rgb), 0.2);
}

.stat-items-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: var(--space-2);
    transition: transform var(--transition-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-2);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.stat-icon i {
    --fa-primary-color: #99CC33;
    --fa-secondary-color: #1B9D9B;
    --fa-secondary-opacity: 0.6;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-gray-900);
    font-family: var(--font-heading);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-label {
    color: var(--color-gray-700);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-primary-green);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

.stat-item-highlight {
    position: relative;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-green-rgb), 0.05) 0%,
        rgba(var(--color-teal-rgb), 0.05) 100%
    );
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-4);
}

.stat-item-highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary-green), var(--color-teal));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
        padding: var(--space-20) var(--space-4);
    }

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

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        padding: var(--space-6);
    }

    .stat-items-row {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .stat-item {
        width: 100%;
    }

    .stat-number {
        font-size: var(--font-size-4xl);
    }

    .stat-icon {
        font-size: var(--font-size-2xl);
    }
}

/* ===================================================================
   SECTION HEADERS
   =================================================================== */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--color-primary-green), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-green), var(--color-teal));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
}

/* ===================================================================
   ABOUT SECTION
   =================================================================== */

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.feature-item {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    transition: all var(--transition-base) var(--ease-out);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 2rem;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-green-rgb), 0.1) 0%,
        rgba(var(--color-teal-rgb), 0.1) 100%
    );
    color: var(--color-primary-green);
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg,
        rgba(var(--color-teal-rgb), 0.1) 0%,
        rgba(var(--color-magenta-rgb), 0.1) 100%
    );
    color: var(--color-teal);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg,
        rgba(var(--color-magenta-rgb), 0.1) 0%,
        rgba(var(--color-primary-green-rgb), 0.1) 100%
    );
    color: var(--color-magenta);
}

.feature-item h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
}

.feature-item p {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
}

/* ===================================================================
   PARENTS & DAYHOMES SECTIONS
   =================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--space-4);
    background: transparent;
    color: inherit;
    filter: var(--drop-shadow-md);
    transition: all var(--transition-base) var(--ease-out);
}

.card:hover .card-icon {
    filter: var(--drop-shadow-lg) invert(1) hue-rotate(180deg);
}

.card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
    text-align: center;
}

.card p {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.card-highlight {
    background: var(--color-gray-100);
    border: 1px solid rgba(var(--color-primary-green-rgb), 0.3);
}

.card-link,
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-magenta);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: gap var(--transition-fast) var(--ease-out);
}

.card-link:hover,
.card-cta:hover {
    gap: var(--space-3);
}

/* ===================================================================
   EDUCATORS SECTION
   =================================================================== */

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.info-card {
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-green), var(--color-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base) var(--ease-out);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-teal);
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.info-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
}

.info-card p {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    color: var(--color-gray-600);
}

.benefits-list li i {
    color: var(--color-primary-green);
    margin-top: 4px;
}

/* Educator Portal Card (Centered, Standalone) */
.educator-portal-card {
    max-width: 500px;
    margin: var(--space-10) auto 0;
    padding: var(--space-10);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-base) var(--ease-out);
}

.educator-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.portal-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-action-primary), var(--color-action-secondary));
    color: var(--color-white);
    font-size: 3rem;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base) var(--ease-out);
}

.educator-portal-card:hover .portal-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.educator-portal-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    color: var(--color-text-heading);
}

.educator-portal-card p {
    color: var(--color-text-body);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

/* ===================================================================
   EVENTS SECTION
   =================================================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.event-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base) var(--ease-out);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: var(--space-6);
}

.event-date {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(var(--color-primary-green-rgb), 0.1);
    color: var(--color-primary-green);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-3);
}

.event-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
}

.event-description {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
}

/* ===================================================================
   STAFF SECTION
   =================================================================== */

/* Staff Carousel Container */
.staff-carousel {
    max-width: 100%;
    padding: var(--space-8) 0;
    position: relative;
}

.staff-carousel .swiper-wrapper {
    padding: var(--space-4) 0;
}

.staff-carousel .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Staff card styling - wider cards with enhanced visual design */
.staff-card {
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: var(--space-8);
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-magenta);
    transition: all var(--transition-base) var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Subtle texture pattern on cards */
.staff-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(var(--color-magenta-rgb), 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(var(--color-blue-rgb), 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(var(--color-teal-rgb), 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Gradient border that appears on hover */
.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-magenta) 0%, var(--color-blue) 100%);
    opacity: 0;
    transition: opacity var(--transition-base) var(--ease-out);
    z-index: 1;
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.staff-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-6);
    z-index: 1;
}

.staff-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 5px solid var(--color-magenta);
    box-shadow: var(--shadow-sm);
}

.staff-info {
    position: relative;
    z-index: 1;
}

.staff-info h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
}

.staff-info hr {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-magenta) 0%, var(--color-blue) 100%);
    border: none;
    margin: var(--space-3) auto;
    border-radius: var(--radius-full);
}

.staff-info .staff-title {
    font-size: var(--font-size-base);
    color: var(--color-action-accent);
    font-weight: var(--font-weight-semibold);
    margin-top: var(--space-3);
    margin-bottom: 0;
}

.staff-bio-preview {
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-sm);
}

/* Carousel Navigation Arrows */
.staff-carousel .swiper-button-next,
.staff-carousel .swiper-button-prev {
    color: var(--color-magenta);
    background: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base) var(--ease-out);
}

.staff-carousel .swiper-button-next:after,
.staff-carousel .swiper-button-prev:after {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.staff-carousel .swiper-button-next:hover,
.staff-carousel .swiper-button-prev:hover {
    background: var(--color-magenta);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Carousel Pagination Dots */
.staff-carousel .swiper-pagination {
    position: relative;
    margin-top: var(--space-8);
}

.staff-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--color-gray-400);
    opacity: 1;
    transition: all var(--transition-base) var(--ease-out);
}

.staff-carousel .swiper-pagination-bullet-active {
    background: var(--color-magenta);
    transform: scale(1.3);
}

/* ===================================================================
   CONTACT SECTION
   =================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.contact-info-card {
    background: var(--color-white);
    color: var(--color-text-body);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.contact-info-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-6);
    color: var(--color-text-heading);
}

.contact-info-item,
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-info-item i,
.contact-item i {
    font-size: var(--font-size-xl);
    margin-top: 4px;
    color: var(--color-action-secondary);
}

.contact-info-item div h4,
.contact-item div h4 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
    font-size: var(--font-size-base);
}

.contact-info-item strong,
.contact-item strong {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-1);
}

.contact-info-item div p,
.contact-info-item div a,
.contact-item div p,
.contact-item div a {
    color: var(--color-text-body);
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
}

.contact-info-item div a:hover,
.contact-item div a:hover {
    color: var(--color-action-secondary);
    text-decoration: underline;
}

.contact-form-card {
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.map-container {
    margin-top: var(--space-16);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    border-bottom: 2px solid var(--color-gray-200);
}

.contact-tab {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: none;
    color: var(--color-gray-600);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast) var(--ease-out);
}

.contact-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary-green);
    transform: scaleX(0);
    transition: transform var(--transition-base) var(--ease-out);
}

.contact-tab.active {
    color: var(--color-primary-green);
}

.contact-tab.active::after {
    transform: scaleX(1);
}

.contact-tab-content {
    display: none;
}

.contact-tab-content.active {
    display: block;
    animation: fadeIn var(--transition-base) var(--ease-out);
}

.contact-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: var(--space-8);
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-tabs {
        flex-direction: column;
    }

    .contact-tab {
        text-align: left;
    }
}

/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--space-16) var(--space-6) var(--space-8);
    position: relative;
}

.footer-content {
    max-width: var(--breakpoint-2xl);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
}

.footer-brand img {
    height: 60px;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--color-gray-400);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-gray-800);
    color: var(--color-gray-300);
    transition: all var(--transition-fast) var(--ease-out);
}

.footer-social a:hover {
    background: var(--color-primary-green);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
}

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

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--color-primary-green);
}

.footer-bottom {
    max-width: var(--breakpoint-2xl);
    margin: var(--space-12) auto 0;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

/* ===================================================================
   BACK TO TOP BUTTON
   =================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--color-primary-green);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base) var(--ease-out);
    z-index: var(--z-sticky);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ===================================================================
   SCROLL ANIMATIONS
   =================================================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   UTILITIES FOR HOMEPAGE
   =================================================================== */

.bg-pattern-1 {
    background-image: url('../images/backgrounds/bg1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-pattern-2 {
    background-image: url('../images/backgrounds/bg2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay-gradient {
    position: relative;
}

.overlay-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-green-rgb), 0.9) 0%,
        rgba(var(--color-teal-rgb), 0.9) 100%
    );
    z-index: 0;
}

.overlay-gradient > * {
    position: relative;
    z-index: 1;
}

/* ===================================================================
   PARALLAX SCROLLING
   =================================================================== */

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.55;
    z-index: 0;
    transition: transform 0.1s ease-out;
}

/* Hero section parallax background */
.hero.parallax-section::before {
    opacity: 0.45;
}

/* Individual background images */
.parallax-section[data-bg="bg1"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg1.webp');
}

.parallax-section[data-bg="bg2"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg2.webp');
}

.parallax-section[data-bg="bg3"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg3.webp');
}

.parallax-section[data-bg="bg4"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg4.webp');
}

.parallax-section[data-bg="bg5"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg5.webp');
}

.parallax-section[data-bg="bg6"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg6.webp');
}

.parallax-section[data-bg="bg7"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg7.webp');
}

.parallax-section[data-bg="bg8"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg8.webp');
}

.parallax-section[data-bg="bg9"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg9.webp');
}

.parallax-section[data-bg="bg10"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg10.webp');
}

.parallax-section[data-bg="bg11"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg11.webp');
}

.parallax-section[data-bg="bg12"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg12.webp');
}

.parallax-section[data-bg="bg13"]::before {
    background-image: url('https://content.nefdha.com/testing/backgrounds/pages/bg13.webp');
}

/* Ensure content stays above parallax background */
.parallax-section > * {
    position: relative;
    z-index: 1;
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .parallax-section::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        opacity: 0.55;
        top: 0;
        bottom: 0;
    }

    .hero.parallax-section::before {
        opacity: 0.45;
    }
}

/* ===================================================================
   GRADIENT BACKGROUNDS FOR NON-PARALLAX SECTIONS
   =================================================================== */

.section-gradient {
    position: relative;
    overflow: hidden;
}

.section-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-green-rgb), 0.08) 0%,
        rgba(var(--color-teal-rgb), 0.12) 50%,
        rgba(var(--color-primary-green-rgb), 0.08) 100%
    );
    z-index: 0;
}

.section-gradient > * {
    position: relative;
    z-index: 1;
}
