/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c25;
    --secondary-color: #0a303a;
    --dark-teal: #0a303a;
    --light-bg: #FFF9F5;
    --pink: #FFDBD2;
    --blue: #DFF8FF;
    --orange: #FFEFDF;
    --green: #E6F9E5;
    --text-dark: #0a303a;
    --text-gray: #6C757D;
    --accent-1: #167287;
    --accent-2: #e95d3a;
    --accent-3: #F68F29;
    --accent-4: #5E9F5A;
    --bg-light-teal: #A0C3CE;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    opacity: 0;
    animation: pageLoad 0.5s ease-out forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

/* Typing Effect
   Use opacity (not visibility) to avoid layout jumps and large transient white boxes
   if the typing script fails or is delayed. Also ensure no background is applied. */
.typing-text {
    /* hidden by default to avoid flashing the full text before JS starts the animation */
    opacity: 0;
    display: inline-block;
    position: relative;
    white-space: normal;
    background: transparent !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
    transition: opacity 180ms ease-out;
    /* keep a small min-height so the line doesn't collapse entirely (prevents sudden layout reflows) */
    min-height: 1em;
}

/* When JS is ready to type, fade the element in (no layout change) */
.typing-text.typing-active {
    opacity: 1;
}

/* Use a pseudo-element as the caret so it stays a single-line cursor, even when the text wraps */
.typing-text::after {
    content: "|";
    display: inline-block;
    margin-left: 6px;
    opacity: 1;
    animation: typing-cursor 1s steps(1) infinite;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    line-height: 1em;
    vertical-align: baseline;
    background: transparent !important;
}

.typing-text.typed-complete::after {
    display: none;
}

@keyframes typing-cursor {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Reading Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-1), var(--accent-3));
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(231, 76, 37, 0.5);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    margin: 0 auto 10px;
    position: relative;
    background: rgba(10, 48, 58, 0.3);
    backdrop-filter: blur(10px);
}

.scroll-wheel {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {

    0%,
    20% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

.scroll-indicator p {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fade-pulse 2s infinite;
}

@keyframes fade-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}


/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Fade and slide-up animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Elements visible by default until JS loads */
.no-js .fade-in,
.no-js .fade-in-left,
.no-js .fade-in-right,
.no-js .scale-in {
    opacity: 1 !important;
    transform: none !important;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.fade-in.delay-1 {
    transition-delay: 0.1s;
}

.fade-in.delay-2 {
    transition-delay: 0.2s;
}

.fade-in.delay-3 {
    transition-delay: 0.3s;
}

.fade-in.delay-4 {
    transition-delay: 0.4s;
}

.fade-in.delay-5 {
    transition-delay: 0.5s;
}

.fade-in.delay-6 {
    transition-delay: 0.6s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive container adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Fredoka', sans-serif;
}

/* Parallax container */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Enhanced parallax effects for sections */
.parallax-slow {
    will-change: transform;
}

.parallax-medium {
    will-change: transform;
}

.parallax-fast {
    will-change: transform;
}

/* Add custom font */
@font-face {
    font-family: 'Sensei';
    src: url('data:font/woff2;base64,') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

/* Top Info Bar */
.top-info-bar {
    background: #d93025;
    /* red */
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.top-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
}

.top-info-left .info-item {
    margin-right: 10px;
}

.top-info-left .info-sep {
    opacity: 0.6;
    margin-right: 10px;
}

.top-info-right .social-link {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 6px;
    margin-left: 8px;
    text-decoration: none;
    font-weight: 700;
}

.top-info-right .social-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Responsive adjustments for top info bar */
@media (max-width: 920px) {
    .top-info-inner {
        padding: 6px 12px;
        gap: 8px;
        flex-wrap: wrap;
        /* allow wrapping when space is tight */
    }

    /* Let left items wrap beneath on medium-small screens instead of disappearing */
    .top-info-left {
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
    }

    .top-info-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 520px) {

    /* Compact layout for small screens: stack left and keep social icons visible */
    .top-info-inner {
        padding: 6px 10px;
        align-items: center;
    }

    .top-info-left {
        order: 2;
        /* push detailed text below */
        font-size: 12px;
        opacity: 0.95;
        gap: 6px;
    }

    .top-info-right {
        order: 1;
        flex: 0 0 auto;
    }

    /* Make social icons slightly larger and touch friendly */
    .top-info-right .social-link {
        width: 34px;
        height: 34px;
        line-height: 34px;
        border-radius: 8px;
        font-size: 13px;
    }

    /* If space is extremely tight, hide the verbose text but keep a small summary */
    .top-info-left .info-item:nth-child(n+4) {
        display: none;
    }
}

/* Utility: small toggle-able compact info when JS-based toggle is desired */
.top-info-bar--compact .top-info-left {
    display: none !important;
}

.top-info-bar--compact .top-info-right {
    justify-content: flex-end;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    color: var(--secondary-color);
    font-weight: 700;
    font-family: 'Sensei', 'Fredoka', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(224, 224, 224, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: var(--text-gray);
    font-size: 14px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #E55539;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    font-size: 14px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(231, 76, 37, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover {
    background: #E55539;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 37, 0.4);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, #A0C3CE 0%, #B3E5FC 30%, #E1F5FE 70%, #F0F9FF 100%);
     */
    background-image: url(../images/child-woman-are-playing-with-glowing-ball-man-with-glowing-ball.jpg);
    padding: 0;

    background-position: center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    /* Remove forced 110vh which can push the decorative curve above content on small screens */
    /* height intentionally left to auto so content defines height */
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Mobile-specific hero stacking: image first, then text, then buttons */
@media (max-width: 768px) {
    .hero-bg .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-row {
        display: flex !important;
        flex-direction: column;
        gap: 18px !important;
        align-items: stretch;
    }

    /* Ensure the left image appears first on mobile */
    .hero-left {
        order: 0;
        width: 100%;
    }

    /* Text content (title/paragraph/buttons) follows the image */
    .hero-right {
        order: 1;
        width: 100%;
        text-align: center;
        /* center text on small screens */
    }

    /* Make hero images responsive and keep aspect ratio */
    .hero-left .feature-image img,
    .hero-left img {
        width: 100%;
        height: auto;
        max-height: 360px;
        object-fit: cover;
        border-radius: 14px;
        display: block;
    }

    /* Buttons stacked under text, centered */
    .hero-right .btn {
        display: inline-block;
        margin: 8px 6px;
    }

    /* Reduce large hero paddings and sizes for mobile */
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-content {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Slight blur of the hero background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Use a translucent overlay and blur the *backdrop* so we don't duplicate the
       hero image (backdrop-filter avoids the seam caused by background: inherit). */
    background: linear-gradient(180deg, rgba(10,48,58,0.06) 0%, rgba(10,48,58,0.04) 50%, rgba(10,48,58,0.02) 100%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    /* for older browsers that don't support backdrop-filter, provide a gentle
       fallback: a small blur on this pseudo-element (may not be as perfect). */
    filter: none;
    transform: translateZ(0);
    opacity: 0.9;
}

/* Fallback for browsers that do not support backdrop-filter: apply a softened blur
   using a separate low-opacity overlay to minimize seam artifacts. This will only
   be used where backdrop-filter isn't available. */
@supports not ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .hero::before {
        filter: blur(4px);
        -webkit-filter: blur(4px);
        opacity: 0.85;
    }
}

.hero-bg {
    /* Use the hero gradient defined on .hero; remove heavy background image so the left feature image and content are the visual focus */
    background-image: none;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use a subtle gradient overlay instead of a single translucent color.
       This prevents visible hairlines or rectangular seams around overlaid images
       and provides consistent contrast for hero content. */
    background: linear-gradient(180deg, rgba(10,48,58,0.14) 0%, rgba(10,48,58,0.06) 50%, rgba(10,48,58,0.03) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Curtain-like wavy curves at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    /* Use the site's light background color for the curve so it visually matches the next section (var(--light-bg) == #FFF9F5) */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,80 350,80 600,20 C850,80 1050,80 1200,0 L1200,120 L0,120 Z' fill='%23FFF9F5'/%3E%3Cpath d='M0,20 C150,100 350,100 600,40 C850,100 1050,100 1200,20 L1200,120 L0,120 Z' fill='%23FFF9F5' opacity='0.5'/%3E%3C/svg%3E") bottom center no-repeat;
    background-size: 100% 120px;
    /* ensure curve sits behind hero content so buttons aren't covered */
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
    /* content must appear above decorative curve */
    z-index: 3;
    width: 100%;
    transform: translateZ(0);
    /* Enable 3D transforms for parallax */
    will-change: transform;
}

/* Ensure there's room for buttons and the decorative curve on small screens */
@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 200px;
        /* more room for rounded curve and buttons */
    }
}

@media (max-width: 768px) {
    .hero {
        /* add extra space under the hero so the decorative curve doesn't overlap content */
        padding-bottom: 40px;
    }
}

/* Laptop-sized screens: give extra bottom space so CTAs sit comfortably above the curve */
@media (min-width: 769px) and (max-width: 2766px) {
    .hero-content {
        padding-bottom: 120px;
        /* generous space for laptop layouts */
    }

    .hero {
        padding-bottom: 20px;
    }
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-item {
    position: absolute;
    font-size: 40px;
    opacity: 0.6;
    animation: float-decoration 8s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

.decoration-1 {
    top: 15%;
    left: 15%;
    animation-delay: -1s;
}

.decoration-2 {
    top: 25%;
    right: 20%;
    animation-delay: -3s;
}

.decoration-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: -5s;
}

.decoration-4 {
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.decoration-5 {
    bottom: 15%;
    right: 30%;
    animation-delay: -4s;
}

@keyframes float-decoration {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translateY(-40px) rotate(0deg) scale(1);
    }

    75% {
        transform: translateY(-20px) rotate(-5deg) scale(0.9);
    }
}

.hero-badge {
    background: white;
    border-radius: 50%;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    position: relative;
    border: 15px solid var(--text-dark);
    animation: float 6s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 4s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.badge-circle {
    text-align: center;
    padding: 50px 40px;
    position: relative;
}

.fox-icon {
    font-size: 60px;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.badge-text h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-family: 'Sensei', 'Fredoka', sans-serif;
    font-weight: 600;
}

.badge-text h2 strong {
    color: var(--secondary-color);
    font-weight: 700;
    display: block;
    font-size: 36px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    font-size: 220px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 20px;
    font-family: 'Sensei', 'Fredoka', sans-serif;
    line-height: 1em;
    will-change: transform, opacity;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-title.visible {
    opacity: 1;
    transform: scale(1);
}

/* Override fade-in for section titles to use zoom effect */
.section-title.fade-in {
    transform: scale(0.7);
}

.section-title.fade-in.visible {
    transform: scale(1);
}

.brush-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, var(--dark-teal), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}

.section-subtitle {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.2em;
    color: var(--dark-teal);
    will-change: transform, opacity;
}

/* Responsive typography for section titles */
@media (max-width: 1024px) {
    .section-title {
        font-size: 160px;
    }

    .section-subtitle {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 100px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 70px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 22px;
        margin-bottom: 16px;
        line-height: 1.3em;
    }
}

/* Breadcrumb Hero Section */
.breadcrumb-hero {
    position: relative;
    background: linear-gradient(180deg, #D1E9EE 0%, #E8F5F7 50%, #D1E9EE 100%);
    padding: 10px 0 80px;
    overflow: hidden;
    text-align: center;
    margin-top: 0;
}

.breadcrumb-waves {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    overflow: hidden;
}

.breadcrumb-waves-top {
    top: 0;
}

.breadcrumb-waves-bottom {
    bottom: 0;
}

.breadcrumb-waves svg {
    display: block;
    width: 100%;
    height: 100%;
}

.breadcrumb-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

.breadcrumb-title {
    font-size: 80px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 24px;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: -1px;
    line-height: 1;
    will-change: transform, opacity;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.breadcrumb-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
    font-weight: 400;
    will-change: transform, opacity;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .breadcrumb-hero {
        padding: 60px 0 50px;
    }

    .breadcrumb-title {
        font-size: 48px;
    }

    .breadcrumb-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .breadcrumb-waves {
        height: 60px;
    }

    .breadcrumb-content {
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-hero {
        padding: 40px 0 40px;
    }

    .breadcrumb-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .breadcrumb-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .breadcrumb-waves {
        height: 50px;
    }

    .breadcrumb-content {
        padding: 15px 15px;
    }
}

/* We Section */
.we-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: visible;
}

/* ===================================
   Graduates Section - Parallax Effect
   =================================== */
.graduates-section {
    padding: 100px 0;
    background: #F5EFE7;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Wavy bumps decoration at top of sections */
.section-waves {
    position: absolute;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.section-waves-top {
    top: -1px;
    left: 0;
}

.section-waves svg {
    display: block;
    width: 100%;
    height: 80px;
}

.graduates-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Reverse layout for alternating sections */
.graduates-content-reverse {
    direction: rtl;
}

.graduates-content-reverse>* {
    direction: ltr;
}

/* Left: Fixed Text Box */
.graduates-text {
    background: white;
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
    z-index: 10;
}

.graduates-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--dark-teal);
    margin-bottom: 30px;
    line-height: 1.2;
}

.graduates-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.btn-learn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 40px;
    background: transparent;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: #FF6B6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

/* Right: Parallax Image - WHOLE BOX MOVES */
.graduates-image-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 30px;
    will-change: transform;
    transition: transform 0.05s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.graduates-image-parallax {
    position: relative;
    width: 100%;
    height: 100%;
}

.graduates-image-parallax img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* Different background colors for each section */
.approach-section {
    background: #F5EFE7;
}

.curriculum-section {
    background: #F5EFE7;
}

.educators-section {
    background: #F5EFE7;
}

.community-section {
    background: #F5EFE7;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .graduates-content,
    .graduates-content-reverse {
        grid-template-columns: 1fr;
        gap: 50px;
        direction: ltr;
    }

    .graduates-content-reverse>* {
        direction: ltr;
    }

    .graduates-text {
        position: relative;
        top: 0;
        padding: 50px 40px;
    }

    .graduates-image-wrapper {
        height: 400px;
    }

    .graduates-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .graduates-section,
    .approach-section,
    .curriculum-section,
    .educators-section,
    .community-section {
        padding: 60px 0;
        min-height: auto;
    }

    .graduates-content {
        gap: 40px;
    }

    .graduates-text {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .graduates-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .graduates-description {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .graduates-image-wrapper {
        height: 300px;
        border-radius: 20px;
    }

    .graduates-image-parallax img {
        border-radius: 20px;
    }

    .btn-learn-more {
        padding: 12px 32px;
        font-size: 15px;
        margin-top: 15px;
    }

    .section-waves svg {
        height: 60px;
    }
}

@media (max-width: 480px) {

    .graduates-section,
    .approach-section,
    .curriculum-section,
    .educators-section,
    .community-section {
        padding: 40px 0;
    }

    .graduates-content {
        gap: 30px;
    }

    .graduates-text {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .graduates-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .graduates-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .graduates-image-wrapper {
        height: 250px;
        border-radius: 15px;
    }

    .graduates-image-parallax img {
        border-radius: 15px;
    }

    .btn-learn-more {
        padding: 10px 28px;
        font-size: 14px;
        border-radius: 20px;
    }

    .section-waves {
        height: 50px;
    }

    .section-waves svg {
        height: 50px;
    }

    /* Adjust section wave visibility on mobile to reduce clutter */
    .section-waves-top {
        opacity: 0.7;
    }
}

.section-intro {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: flex-end;
    position: relative;
}

.section-content h3 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2em;
    color: var(--dark-teal);
}

.section-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

.feature-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%);
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Variant for images that are intended to visually blend with the hero
   (use class="feature-image no-bg" on the container or the existing markup). */
.feature-image.no-bg {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important; /* let image itself control corners if needed */
}

.feature-image.no-bg img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    background: transparent !important;
    /* blend the image with the hero background for a seamless look */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.25));
    transition: transform 0.3s ease, filter 0.25s ease;
}

@supports not (mix-blend-mode: multiply) {
    /* Fallback for older browsers: remove blend-mode and slightly lift the image */
    .feature-image.no-bg img {
        mix-blend-mode: normal;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
    }
}

/* Improve image rendering and avoid small white seams caused by baseline/anti-aliasing
   for images inside rounded containers. These rules ensure images are block-level,
   inherit the container's border-radius, and use transform to create a new layer
   (reduces subpixel seam artifacts). Applies to about-image and other feature images. */
.about-image img,
.feature-image img,
.feature-icon img,
.age-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: inherit;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    image-rendering: auto;
}

/* Small, targeted scale to hide thin anti-aliasing seams that appear under
   rounded images at certain zoom levels / browsers. This is intentionally
   tiny (≤0.3%) so it won't be visually noticeable but will overlap a
   stray 1px gap caused by subpixel rounding. Applies only to the About
   hero image container which was showing the seam. */
.about-image img {
    transform: translateZ(0) scale(1.003);
    -webkit-transform: translateZ(0) scale(1.003);
    transform-origin: center center;
}

/* Provide a gentle background color matching the site's prefooter so that
   any anti-aliased rounded corners blend with the page when images are slightly
   transparent or when subpixel gaps appear. */
.about-image { background: var(--light-bg, #FFF9F5); }

/* Ensure the hero forms a new stacking context for blend-mode to work predictably */
.hero {
    isolation: isolate;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--primary-color);
    color: white;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light-bg);
    transform: translateX(10px);
}

.feature-icon {
    /* container for image icons (now using img inside) */
    background: var(--light-bg);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--primary-color);
    transform: rotate(10deg);
}

.feature-icon img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.features-grid {
    /* Two columns x two rows big boxes */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 28px;
    align-items: stretch;
}

/* Big card style for each feature */
.feature-item {
    background: white;
    padding: 28px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(10, 48, 58, 0.06);
    min-height: 160px;
    position: relative;
    overflow: visible;
}

/* Feature badges */
.feature-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 37, 0.4);
    z-index: 10;
}

.feature-badge.badge-green {
    background: var(--accent-4);
    box-shadow: 0 4px 15px rgba(94, 159, 90, 0.4);
}

.feature-badge.badge-blue {
    background: var(--accent-1);
    box-shadow: 0 4px 15px rgba(22, 114, 135, 0.4);
}

.feature-badge.badge-orange {
    background: var(--accent-3);
    box-shadow: 0 4px 15px rgba(246, 143, 41, 0.4);
}


.feature-item .feature-text {
    text-align: left;
}

.feature-item .feature-text p {
    margin-top: 6px;
    color: var(--text-gray);
    max-width: 420px;
}

/* Slightly larger image inside card */
.feature-icon img {
    width: 84px;
    height: 84px;
}

@media (max-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: row;
        padding: 20px;
    }
}

.feature-text h4 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.feature-text p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

/* Ages Section */
.ages-section {
    padding: 120px 0;
    background: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: visible;
}

.ages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"%3E%3Cpath d="M0,0 C200,60 400,0 600,60 C800,120 1000,60 1200,60 L1200,120 L0,120 Z" fill="%23FFF9F5"/%3E%3C/svg%3E') top center no-repeat;
    background-size: 100% 120px;
    z-index: 0;
}

/* Add wavy bottom curve to ages section */
.ages-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,0 400,120 600,60 C800,0 1000,120 1200,60 L1200,0 L0,0 Z' fill='%23FFF9F5'/%3E%3C/svg%3E") bottom center no-repeat;
    background-size: 100% 120px;
    z-index: 0;
    pointer-events: none;
}

/* ensure content sits above the decorative svgs */
.ages-section .container {
    position: relative;
    z-index: 2;
}

.ages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.age-card {
    border-radius: 30px;
    padding: 40px 30px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.age-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-pink {
    background: var(--pink);
}

.card-blue {
    background: var(--blue);
}

.card-orange {
    background: var(--orange);
}

.card-green {
    background: var(--green);
}

.age-image {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.age-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.age-card:hover .age-image img {
    transform: scale(1.05);
}

.age-content h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-teal);
    font-family: 'Sensei', 'Fredoka', sans-serif;
}

.age-content p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

.age-icon {
    font-size: 50px;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.age-card:hover .age-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Updated styles for the new ages cards layout (matches provided image) */
.ages-grid--four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin-top: 50px;
}

.age-card {
    /* slightly different rounded shape to emulate the soft card with tail */
    border-radius: 36px 36px 60px 60px;
    padding: 30px 22px 60px 22px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: visible;
    /* allow tail to show */
}

.age-card .age-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.age-media {
    width: 220px;
    height: 140px;
    margin: 6px 0 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

.age-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.age-title {
    font-size: 26px;
    color: var(--dark-teal);
    margin-top: 6px;
    font-weight: 700;
}

.age-desc {
    font-size: 15px;
    color: rgba(10, 48, 58, 0.75);
    line-height: 1.6;
    max-width: 270px;
    margin: 0 auto;
}

/* Rounded Feature Card Section (TechyRoo Bright Futures Foundation) */
.rounded-feature-section {
    padding: 0 0 72px;
    /* contrast with the section above: a warm, soft-beige canvas */
    background: linear-gradient(180deg, #FBF6F1 0%, #F6F0E9 100%);
}

.rounded-card {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    /* pull the card up a few pixels so top is flush with the section edge */
    margin-top: -12px;
}

.rounded-card-inner {
    /* make the card feel distinct: larger radius, subtle warm border, and warmer shadow */
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 100%);
    max-width: 1160px;
    width: 100%;
    /* remove vertical padding so inner cards can touch top/bottom */
    padding: 0 48px;
    border-radius: 50px 50px 36px 36px;
    border: 1px solid rgba(245,235,225,0.9);
    box-shadow: 0 30px 80px rgba(246,143,41,0.06), 0 8px 30px rgba(10,48,58,0.04);
}

.rounded-card-head {
    text-align: center;
    /* keep some internal spacing for the header area while allowing cards to touch edges */
    padding: 28px 0 18px;
}

/* subtle divider under the header to separate the header area from content */
.rounded-card-head::after {
    content: '';
    display: block;
    width: 60%;
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, rgba(10,48,58,0.04), rgba(10,48,58,0.02));
}

.rounded-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.rounded-card-title small {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

.rounded-card-subtitle {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 18px;
}

/* top decorative micro-bar to visually separate the card from other sections */
.rounded-card-inner::before {
    content: '';
    display: block;
    height: 6px;
    width: 120px;
    /* pull the micro-bar upward so it overlaps slightly with the top of the card */
    margin: -18px auto 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent-3), var(--accent-1));
    box-shadow: 0 6px 22px rgba(246,143,41,0.08);
}

.rounded-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* remove vertical row gap so feature-mini boxes touch top/bottom; keep horizontal gap */
    gap: 0 36px;
    margin-top: 0;
}

/* On narrower tablet sizes, make the third block span both columns for readability */
@media (max-width: 1000px) {
    .rounded-card-body > .feature-mini:nth-child(3) { grid-column: 1 / -1; }
}

.feature-mini {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 100%);
    padding: 20px 18px;
    /* remove internal rounding so adjacent cards meet flush; we'll add corner radii to outer-most items */
    border-radius: 0;
    border: 1px solid rgba(245,235,225,0.9);
    box-shadow: 0 10px 30px rgba(246,143,41,0.04), 0 4px 15px rgba(10,48,58,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(246,143,41,0.08), 0 8px 20px rgba(10,48,58,0.05);
}

/* Apply corner radii for feature-mini items that sit on the outer edges of the inner card */
.rounded-card-body > .feature-mini:nth-child(-n+3) {
    /* top row: match parent's top corner radius */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

/* bottom row: apply bottom radii. If you have 3 columns and N items, adjust selectors if needed. */
.rounded-card-body > .feature-mini:nth-last-child(-n+3) {
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

/* If there's only one row, ensure both top and bottom corners are rounded */
.rounded-card-body > .feature-mini:only-child {
    border-radius: 50px 50px 36px 36px;
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(10,48,58,0.05);
}

/* colored circular backgrounds for playful contrast */
.feature-mini:nth-child(1) .card-icon { background: linear-gradient(180deg,#FFF6ED,#FFE9D6); }
.feature-mini:nth-child(2) .card-icon { background: linear-gradient(180deg,#FFF8F9,#FFEFF3); }
.feature-mini:nth-child(3) .card-icon { background: linear-gradient(180deg,#F1F9FA,#E9F7F8); }

.card-icon svg { width: 34px; height: 34px; }

/* Slightly darker icon stroke and stronger visibility */
.card-icon svg * {
    stroke: var(--secondary-color) !important;
    stroke-width: 1.4 !important;
    stroke-opacity: 0.95 !important;
    fill-opacity: 0.98 !important;
}

.card-icon { /* make background tint a touch stronger to help icons pop */
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-icon:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(10,48,58,0.08); }

.card-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 800;
}

.card-text ul {
    margin-left: 18px;
    color: var(--text-gray);
    line-height: 1.6;
}

.card-text ul li {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .rounded-card-inner { padding: 32px; }
    .rounded-card-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .rounded-card-inner { padding: 22px; }
    .rounded-card-body { grid-template-columns: 1fr; gap: 14px; }
    .card-icon { width: 56px; height: 56px; }
    .rounded-card-title { font-size: 22px; }
}

/* Slight visual link to other cards */
/* ensure inner remains visible for the soft shadow */
.rounded-card-inner { position: relative; }

/* remove accidental decoration that could float near the edge on some layouts */
.rounded-feature-section .rounded-card::after {
    display: none;
}

/* tighten up list layout and column alignment */
.rounded-card-body .card-text {
    max-width: 360px;
}

.rounded-card-body .card-text ul {
    margin: 8px 0 0 18px;
    padding-left: 0;
    list-style-position: outside;
}

.rounded-card {
    padding-top: 0;
}

.feature-mini { align-items: flex-start; }

.age-time {
    margin-top: 10px;
    font-size: 13px;
    color: var(--accent-2);
    font-weight: 700;
}

.age-tail {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -28px;
    width: 70px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.age-tail-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    /* subtle drop shadow and an outer colored ring using box-shadow (avoids hairline border) */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Colored border for the tail dot to match each card */
.age-card--pink {
    background: var(--pink);
}

.age-card--blue {
    background: var(--blue);
}

.age-card--orange {
    background: var(--orange);
}

.age-card--green {
    background: var(--green);
}

.age-card--pink .age-tail-dot {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 10px var(--accent-2);
}

.age-card--blue .age-tail-dot {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 10px var(--accent-1);
}

.age-card--orange .age-tail-dot {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 10px var(--accent-3);
}

.age-card--green .age-tail-dot {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 10px var(--accent-4);
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .ages-grid--four {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .age-media {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .ages-grid--four {
        grid-template-columns: 1fr;
    }

    .age-card {
        min-height: 360px;
        padding-bottom: 60px;
    }

    .age-media {
        width: 100%;
        height: 180px;
    }
}

/* Come Section */
.come-section {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(135deg, #A0C3CE 0%, #B3E5FC 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.1"/><circle cx="60" cy="80" r="1" fill="white" opacity="0.1"/></svg>');
    position: relative;
    overflow: visible;
    color: white;
    background-attachment: fixed;
    /* Parallax effect */
}

.come-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 48, 58, 0.05);
    z-index: 1;
}

/* Add wavy top curve */
.come-section::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,0 400,120 600,60 C800,0 1000,120 1200,60 L1200,120 L0,120 Z' fill='%23FFF9F5'/%3E%3C/svg%3E") top center no-repeat;
    background-size: 100% 120px;
    z-index: 0;
    pointer-events: none;
}

.come-section .container {
    position: relative;
    z-index: 2;
}

.come-section .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.come-section .section-subtitle {
    color: white;
    margin-bottom: 30px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: white;
    color: var(--secondary-color);
    border: 2px solid white;
}

.cta-buttons .btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-teal);
    font-weight: 800;
}

.contact-item p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

/* News Section */
.news-section {
    padding: 120px 0;
    background: var(--light-bg);
    position: relative;
    overflow: visible;
}

/* Checkout specific styles (appended) */
.nyk-checkout {
    padding: 0 0 80px;
    background: white;
}

.nyk-checkout .checkout-card {
    border-radius: 12px;
    overflow: hidden;
}

.nyk-promo-bar {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.checkout-card {
    display: block;
    border: 1px solid rgba(10, 48, 58, 0.04);
}

.checkout-header {
    padding: 22px 24px;
    background: #fff;
}

.checkout-header h2 {
    font-size: 28px;
    margin: 0 0 6px;
}

.checkout-header .muted {
    color: var(--text-gray);
}

.checkout-steps {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    background: var(--light-bg);
}

.step {
    padding: 8px 14px;
    border-radius: 18px;
    font-weight: 700;
    color: var(--text-gray);
    background: rgba(0, 0, 0, 0.04);
}

.step.done {
    background: rgba(94, 159, 90, 0.12);
    color: var(--accent-4);
}

.step.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 30px rgba(231, 76, 37, 0.12);
}

.connector {
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    transition: all 220ms ease-in-out;
    display: inline-block;
    vertical-align: middle;
}

/* Colored/animated connectors based on step state */
.step.done+.connector {
    background: linear-gradient(90deg, rgba(94, 159, 90, 0.9) 0%, var(--primary-color) 80%);
    box-shadow: 0 6px 18px rgba(94, 159, 90, 0.06);
    transform: translateY(-1px);
}

.step.active+.connector {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-2) 100%);
}

@media (max-width: 576px) {
    .connector {
        width: 22px;
        height: 3px;
    }
}

.card-body {
    padding: 22px;
}

.nyk-input,
.nyk-textarea,
.form-select {
    border: 1px solid rgba(10, 48, 58, 0.06);
    padding: 12px;
    border-radius: 8px;
}

.nyk-textarea {
    min-height: 70px;
}

.nyk-cta {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-2));
    color: #fff;
    padding: 14px 22px;
    border-radius: 28px;
    font-weight: 800;
    border: 0;
    display: inline-block;
    box-shadow: 0 12px 30px rgba(231, 76, 37, 0.18);
}

.nyk-cta:focus,
.nyk-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(231, 76, 37, 0.18);
}

.order-summary {
    position: sticky;
    top: 110px;
}

.summary-card {
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(10, 48, 58, 0.04);
    background: #fff;
    box-shadow: 0 18px 50px rgba(10, 48, 58, 0.06);
}

.summary-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.summary-items {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 360px;
    overflow: auto;
}

.summary-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 48, 58, 0.03);
}

.summary-item .thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-item .title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

.summary-item .meta {
    color: var(--text-gray);
    font-size: 13px;
}

/* Promo input + apply button on the summary card (matches screenshot) */
.summary-card .promo {
    display: flex;
    gap: 12px;
    align-items: center;
}

.summary-card .promo input.form-control {
    border-radius: 24px;
    padding: 10px 14px;
    border: 1px solid rgba(10, 48, 58, 0.08);
    max-width: 220px;
}

.summary-card .promo .apply-btn {
    background: var(--primary-color);
    color: #fff;
    border-radius: 32px;
    padding: 10px 18px;
    border: 0;
    box-shadow: 0 8px 30px rgba(231, 76, 37, 0.12);
}

.summary-card .promo .apply-btn:hover {
    transform: translateY(-2px);
}

/* Price breakdown styles */
.price-breakdown .row {
    align-items: center;
    margin: 10px 0;
}

.price-breakdown .row .col {
    color: var(--text-gray);
}

.price-breakdown .row.fw-bold .col {
    font-weight: 800;
    color: var(--text-dark);
}

/* Make Place Order in summary full-width and visually strong */
.summary-card .d-grid .btn.nyk-cta {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
}

/* Heading prominence */
.checkout-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 34px;
    letter-spacing: -0.5px;
    color: var(--dark-teal);
}

.checkout-header .muted {
    font-size: 15px;
}

/* Make promo bar subtle and left aligned like the screenshot */
.nyk-promo-bar {
    background: transparent;
    color: var(--dark-teal);
    text-align: left;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Centered promo bar variant used on checkout page */
.nyk-promo-bar.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-teal);
    background: linear-gradient(180deg, rgba(231, 76, 37, 0.03), rgba(10, 48, 58, 0.01));
    /* sit flush against the header: remove top margin and make top corners square */
    margin: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(10, 48, 58, 0.03);
}

@media (max-width: 576px) {
    .nyk-promo-bar.text-center {
        font-size: 15px;
        padding: 10px 12px;
        border-radius: 6px;
    }
}

/* Input styles used on checkout */
.nyk-input {
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(10, 48, 58, 0.06);
    background: #fff;
    box-shadow: none;
}

.nyk-input:focus {
    outline: none;
    border-color: rgba(231, 76, 37, 0.18);
    box-shadow: 0 8px 30px rgba(10, 48, 58, 0.06);
}

/* Checkout form field enhancements: full-width controls, clearer labels and spacing */
.nyk-checkout .card-body { padding-top: 18px; }
.nyk-checkout .mb-3 { margin-bottom: 18px; }
.nyk-checkout label.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--dark-teal); }
.nyk-checkout label.form-label::after { content: ''; }
.nyk-checkout label.form-label em, .nyk-checkout label.form-label .required { color: var(--primary-color); }
.nyk-checkout .form-control, .nyk-checkout .form-select { width: 100% !important; max-width: 100%; box-sizing: border-box; padding: 12px 14px; height: 46px; border-radius: 12px; border: 1px solid rgba(10,48,58,0.06); background: #fff; box-shadow: none; }
.nyk-checkout textarea.form-control, .nyk-checkout .nyk-textarea { min-height: 90px; height: auto; padding: 12px 14px; }
.nyk-checkout .row .col-md-6 .form-control { width: 100%; }
.nyk-checkout .summary-qty, .nyk-checkout .summary-unit { font-weight:600; }

/* Style the 'Get US Shipping Rates' button and align the helper text */
#open-delivery-modal { background: #fff; color: var(--text-dark); border-radius: 28px; padding: 10px 20px; box-shadow: 0 10px 30px rgba(10,48,58,0.04); border:1px solid rgba(10,48,58,0.06); font-weight:700; }
#open-delivery-modal:hover { transform: translateY(-2px); }
.nyk-checkout .form-text { margin-left: 14px; color: var(--text-gray); font-size: 14px; vertical-align: middle; display: inline-block; }

/* Place Order button spacing */
.nyk-checkout .d-grid { margin-top: 12px; }
.nyk-checkout .btn.nyk-cta.btn-lg { padding: 14px 24px; border-radius: 28px; }

@media (max-width: 768px) {
    .nyk-checkout .form-control, .nyk-checkout .form-select { height: 44px; padding: 10px 12px; }
}

/* Delivery modal / shipping rates button */
.delivery-btn {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 28px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(10, 48, 58, 0.04);
    border: 1px solid rgba(10, 48, 58, 0.06);
    font-weight: 700;
}

.delivery-btn:hover {
    transform: translateY(-2px);
}

/* Make promo apply button match summary style when used in markup */
.apply-btn {
    background: var(--primary-color);
    color: #fff;
    border-radius: 28px;
    padding: 8px 16px;
    border: 0;
    font-weight: 700;
}

.apply-btn:hover {
    transform: translateY(-2px);
}


/* Two-column checkout form layout for larger screens */
@media (min-width: 992px) {
    .nyk-checkout .row.gx-4 {
        display: flex;
        gap: 28px;
    }

    .nyk-checkout .col-lg-8 {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .nyk-checkout .col-lg-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }
}

@media (max-width: 991px) {
    .nyk-checkout {
        padding: 24px 0;
    }

    .order-summary {
        position: static;
        margin-top: 18px;
    }
}

/* Small niceties */
.promo input.form-control {
    border-radius: 8px;
}

.promo button {
    margin-top: 8px;
}


.news-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"%3E%3Cpath d="M0,0 C300,100 600,0 900,50 C1050,75 1150,25 1200,50 L1200,100 L0,100 Z" fill="%23FFF9F5"/%3E%3C/svg%3E') top center no-repeat;
    background-size: 100% 100px;
    z-index: 1;
}

/* Add wave bottom curve */
.news-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C300,0 600,100 900,50 C1050,25 1150,75 1200,50 L1200,0 L0,0 Z' fill='%23FFF9F5'/%3E%3C/svg%3E") bottom center no-repeat;
    background-size: 100% 100px;
    z-index: 1;
    pointer-events: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    /* stronger horizontal gradient to add visual depth */
    background: linear-gradient(90deg, rgba(231,76,37,0.14) 0%, rgba(231,76,37,0.06) 35%, rgba(160,195,206,0.04) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* --- Curriculum Formula Section with Circles --- */
.curriculum-formula-section {
    padding: 120px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Math particles background */
.math-particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.math-particle {
    position: absolute;
    font-size: 40px;
    font-weight: 300;
    color: rgba(10, 48, 58, 0.06);
    animation: float-particle 20s infinite ease-in-out;
    opacity: 0.4;
}

.math-particle:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 50px;
}

.math-particle:nth-child(2) {
    top: 20%;
    left: 15%;
    animation-delay: -2s;
    font-size: 35px;
}

.math-particle:nth-child(3) {
    top: 15%;
    right: 10%;
    animation-delay: -4s;
    font-size: 45px;
}

.math-particle:nth-child(4) {
    top: 40%;
    left: 8%;
    animation-delay: -6s;
    font-size: 38px;
}

.math-particle:nth-child(5) {
    top: 35%;
    right: 12%;
    animation-delay: -8s;
    font-size: 42px;
}

.math-particle:nth-child(6) {
    top: 60%;
    left: 20%;
    animation-delay: -10s;
    font-size: 48px;
}

.math-particle:nth-child(7) {
    top: 55%;
    right: 18%;
    animation-delay: -12s;
    font-size: 36px;
}

.math-particle:nth-child(8) {
    top: 75%;
    left: 12%;
    animation-delay: -14s;
    font-size: 44px;
}

.math-particle:nth-child(9) {
    top: 70%;
    right: 8%;
    animation-delay: -16s;
    font-size: 40px;
}

.math-particle:nth-child(10) {
    top: 85%;
    left: 25%;
    animation-delay: -18s;
    font-size: 46px;
}

.math-particle:nth-child(11) {
    top: 25%;
    left: 50%;
    animation-delay: -3s;
    font-size: 52px;
}

.math-particle:nth-child(12) {
    top: 45%;
    right: 30%;
    animation-delay: -7s;
    font-size: 34px;
}

.math-particle:nth-child(13) {
    top: 65%;
    left: 45%;
    animation-delay: -11s;
    font-size: 41px;
}

.math-particle:nth-child(14) {
    top: 80%;
    right: 25%;
    animation-delay: -15s;
    font-size: 39px;
}

.math-particle:nth-child(15) {
    top: 5%;
    left: 35%;
    animation-delay: -5s;
    font-size: 47px;
}

.math-particle:nth-child(16) {
    top: 90%;
    left: 60%;
    animation-delay: -9s;
    font-size: 43px;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-60px) rotate(-5deg);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.6;
    }
}

.curriculum-formula-section .container {
    position: relative;
    z-index: 2;
}

.curriculum-formula-section .section-title {
    color: var(--dark-teal);
    margin-bottom: 20px;
}

.curriculum-formula-section .section-subtitle {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Formula circles grid */
.formula-circles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.formula-circle {
    position: relative;
    width: 100%;
    /* Prefer modern aspect-ratio for an exact square that becomes a perfect circle.
       Keep a safe fallback for older browsers that rely on the padding-top hack. */
    aspect-ratio: 1 / 1;
    padding-top: 100%; /* fallback for older browsers that don't support aspect-ratio */
    border-radius: 50%;
    overflow: visible;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: block;
}

.formula-circle:hover {
    transform: translateY(-15px) scale(1.05);
}

.circle-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.formula-circle:hover .circle-inner {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

/* Circle 1: AI - Cyan */
.circle-ai .circle-inner {
    background: linear-gradient(135deg, var(--accent-1) 0%, #0E5F6D 100%);
}

/* Circle 2: Gamified Learning - Orange */
.circle-game .circle-inner {
    background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 100%);
}

/* Circle 3: Neuroscience - Pink */
.circle-neuro .circle-inner {
    background: linear-gradient(135deg, #FFDBD2 0%, #FFB6A3 100%);
}

/* Circle 4: Result - Dark Teal */
.circle-result .circle-inner {
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--secondary-color) 100%);
}

.circle-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: bounce-gentle 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.circle-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.circle-game .circle-title,
.circle-neuro .circle-title {
    color: var(--dark-teal);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.circle-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.circle-game .circle-desc,
.circle-neuro .circle-desc {
    color: rgba(10, 48, 58, 0.85);
}

.formula-summary {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .formula-circles {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        max-width: 600px;
    }

    .curriculum-formula-section {
        padding: 100px 0;
    }

    .circle-icon {
        font-size: 55px;
    }

    .circle-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .curriculum-formula-section {
        padding: 80px 0;
    }

    .curriculum-formula-section .section-subtitle {
        font-size: 20px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .formula-circles {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 500px;
    }

    .circle-icon {
        font-size: 50px;
        margin-bottom: 12px;
    }

    .circle-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .circle-desc {
        font-size: 13px;
    }

    .formula-summary {
        font-size: 16px;
        line-height: 1.7;
    }

    .math-particle {
        font-size: 30px !important;
    }
}

@media (max-width: 480px) {
    .curriculum-formula-section {
        padding: 60px 0;
    }

    .formula-circles {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 280px;
    }

    .circle-inner {
        padding: 25px 15px;
    }

    .circle-icon {
        font-size: 45px;
        margin-bottom: 10px;
    }

    .circle-title {
        font-size: 15px;
    }

    .circle-desc {
        font-size: 12px;
    }

    .formula-summary {
        font-size: 15px;
        line-height: 1.6;
    }

    .math-particle {
        font-size: 24px !important;
        opacity: 0.4;
    }
}

/* Old curriculum formula styles - keeping for compatibility */
.curriculum-formula {
    margin-top: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.curriculum-formula .curriculum-inner {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.curriculum-formula .section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.curriculum-formula .formula {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.cf-pill {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cf-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Cyan/turquoise for AI */
.cf-ai {
    background: #5DD9C1;
    color: white;
}

/* Yellow/gold for Gamified Learning */
.cf-game {
    background: #FDB94E;
    color: #0a303a;
}

/* Pink/purple for Neuroscience Principles */
.cf-neuro {
    background: #E8A8D5;
    color: white;
}

.cf-join {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 4px;
    font-size: 20px;
}

.cf-equals {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 8px;
    font-size: 20px;
}

.cf-result {
    padding: 10px 22px;
    border-radius: 12px;
    background: var(--dark-teal);
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(10, 48, 58, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cf-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 48, 58, 0.25);
}

.cf-desc {
    margin: 0;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 0.8rem;
    max-width: 900px;
}

@media (max-width: 768px) {
    .curriculum-formula {
        margin-top: 2.5rem;
    }

    .curriculum-formula .section-subtitle {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .cf-pill {
        font-size: 15px;
        padding: 9px 18px;
    }

    .cf-result {
        font-size: 15px;
        padding: 9px 18px;
    }

    .cf-join,
    .cf-equals {
        font-size: 18px;
    }

    .formula {
        justify-content: flex-start;
        gap: 8px;
    }

    .cf-desc {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 520px) {
    .curriculum-formula .section-subtitle {
        font-size: 1.4rem;
    }

    .cf-pill {
        font-size: 13px;
        padding: 7px 14px;
    }

    .cf-result {
        font-size: 13px;
        padding: 7px 14px;
    }

    .cf-join,
    .cf-equals {
        font-size: 16px;
        margin: 0 2px;
    }

    .formula {
        gap: 6px;
    }
}

.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    transition: all 0.3s ease;
    filter: brightness(100%);
}

.news-card:hover .news-image img {
    filter: brightness(115%);
    transform: scale(1.05);
}

.news-card h4 {
    padding: 25px;
    font-size: 26px;
    line-height: 1.3em;
    min-height: 120px;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.read-more {
    padding: 0 25px 25px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Center blog/news card content: image, title, excerpt and link */
.news-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 18px;
    /* give room for read-more */
}

.news-image {
    width: 100%;
    height: auto;
    /* allow image to define height so it can center */
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-card h4 {
    padding: 18px 22px 12px;
    min-height: auto;
    /* let title size naturally when centered */
    text-align: center;
}

.news-excerpt {
    padding: 0 22px 14px;
    color: var(--text-gray);
    max-width: 420px;
}

.read-more {
    padding: 6px 22px 18px;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image img {
        max-height: 320px;
    }
}

/* Happy Section */
.happy-section {
    padding: 120px 0;
    background: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: visible;
}

.happy-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"%3E%3Cpath d="M0,0 Q300,100 600,50 T1200,0 L1200,100 L0,100 Z" fill="%23FFF9F5"/%3E%3C/svg%3E') top center no-repeat;
    background-size: 100% 100px;
    z-index: 1;
}

.testimonial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    border: 20px solid var(--text-dark);
    border-radius: 36px;
    padding: 40px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    background: var(--dark-teal);
    border-radius: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--bg-light-teal) 0%, var(--secondary-color) 100%);
    opacity: 0.8;
}

.play-button-large {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button-large:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.testimonial-content {
    text-align: left;
    padding: 20px;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: serif;
}

.testimonial-text::after {
    content: '"';
    font-size: 60px;
    color: var(--primary-color);
    position: absolute;
    bottom: -40px;
    right: 0;
    font-family: serif;
}

/* FAQ styles (replaces testimonial section) */
.faq-section .faq-list {
    margin-top: 40px;
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

details.faq-item {
    background: white;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 30px rgba(10, 48, 58, 0.06);
    border: 1px solid rgba(10, 48, 58, 0.06);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.page-main {
    max-width: 980px;
    margin: 36px auto;
    padding: 24px;
    background: transparent;
}

.profile-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
}

.avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.account-details dt {
    font-weight: 700;
    margin-top: 12px;
}

.account-details dd {
    margin: 4px 0 8px 0;
    color: var(--text-gray);
}

.page-section {
    margin-top: 28px;
}

/* Orders & Cart tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th,
.table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table thead th {
    font-weight: 700;
    color: var(--text-dark);
}

.table tfoot td {
    font-weight: 700;
}

.panel-empty {
    margin-top: 18px;
    padding: 18px;
    border: 1px dashed #e6e6e6;
    background: #fbfbfb;
    color: var(--text-gray);
}

.btn-danger {
    background: var(--accent-3);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    filter: brightness(0.98);
}

/* Small responsive tweaks */
@media (max-width:720px) {
    .profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar-lg {
        width: 96px;
        height: 96px;
        border-radius: 10px
    }

    .user-name,
    .user-btn {
        max-width: 120px
    }
}

/* Lightweight helpers so the nav user-pill and Get App button align visually */
.header-right .btn-primary {
    padding: 10px 22px;
    border-radius: 28px;
}

.user-btn {
    font-size: 14px
}


details.faq-item[open] {
    box-shadow: 0 18px 45px rgba(10, 48, 58, 0.09);
    transform: translateY(-4px);
}

summary.faq-question {
    list-style: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    display: block;
    outline: none;
}

/* Hide default marker and add custom caret */
summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '\25B6';
    /* right-pointing triangle */
    float: right;
    transition: transform 0.18s ease;
    color: var(--primary-color);
}

details.faq-item[open] summary.faq-question::after {
    transform: rotate(90deg);
}

.faq-answer {
    margin-top: 12px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

summary.faq-question:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 37, 0.08);
    border-radius: 8px;
}

@media (max-width: 720px) {
    .faq-section .faq-list {
        padding: 0 8px;
    }

    summary.faq-question {
        font-size: 16px;
    }
}

/* CTA Cards */
.cta-cards {
    padding: 120px 0;
    background: white;
    position: relative;
    overflow: visible;
}

/* Add wavy top curve to CTA cards section */
.cta-cards::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,120 400,0 600,60 C800,120 1000,0 1200,60 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E") top center no-repeat;
    background-size: 100% 120px;
    z-index: 0;
    pointer-events: none;
}

/* ===== Contact Page Styles ===== */
.contact-page {
    padding: 80px 0 140px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 40px;
}

.contact-hero .section-title {
    font-size: 48px;
    color: var(--dark-teal);
    margin-bottom: 8px;
}

.contact-hero .section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.contact-form-card {
    background: white;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark-teal);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 26px rgba(231, 76, 37, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-primary {
    padding: 12px 28px;
    border-radius: 12px;
}

.contact-info-card {
    background: linear-gradient(180deg, rgba(10, 48, 58, 0.04), rgba(255, 255, 255, 0.6));
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.contact-info-card h3 {
    margin-bottom: 12px;
    color: var(--dark-teal);
}

.contact-info-card p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.map-embed img {
    width: 100%;
    border-radius: 12px;
    margin-top: 14px;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.success {
    background: linear-gradient(90deg, rgba(94, 159, 90, 0.15), rgba(94, 159, 90, 0.05));
    color: var(--accent-4);
    border: 1px solid rgba(94, 159, 90, 0.12);
}

.alert.error {
    background: linear-gradient(90deg, rgba(231, 76, 37, 0.08), rgba(231, 76, 37, 0.02));
    color: var(--primary-color);
    border: 1px solid rgba(231, 76, 37, 0.12);
}

/* Mobile responsiveness */
@media (max-width: 920px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-page {
        padding: 40px 0 80px;
    }

    .contact-form-card {
        padding: 24px;
    }

    .contact-info-card {
        margin-top: 18px;
    }
}

/* Small tweaks for very small screens */
@media (max-width: 420px) {
    .contact-hero .section-title {
        font-size: 34px;
    }

    .contact-hero .section-subtitle {
        font-size: 15px;
    }
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cta-card {
    background: white;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #D8D8D8;
    box-shadow: 8px 8px 0px 0px #EDEDED;
    position: relative;
}

.cta-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 10px 10px 0px 0px var(--secondary-color);
}

.card-icon {
    font-size: 55px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.cta-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.cta-card h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 800;
}

.cta-card p {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 800;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--secondary-color);
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter-section {
    background: linear-gradient(135deg, #FF6B4A 0%, #FF8C42 50%, #FFA726 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Wavy curves for newsletter */
.newsletter-waves {
    position: absolute;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.newsletter-waves-top {
    top: -1px;
    left: 0;
}

.newsletter-waves-bottom {
    bottom: -1px;
    left: 0;
}

.newsletter-waves svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* Decorative animated circles */
.newsletter-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -150px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-text {
    color: white;
}

.newsletter-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-description {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
}

.newsletter-form {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: white;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.newsletter-input {
    flex: 1;
    padding: 18px 28px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
}

.newsletter-input:focus {
    background: rgba(255, 107, 74, 0.05);
}

.newsletter-input::placeholder {
    color: #999;
    font-weight: 400;
}

.newsletter-btn {
    padding: 18px 45px;
    border: none;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(10, 48, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.newsletter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.newsletter-btn:hover {
    background: #0d3d4a;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(10, 48, 58, 0.4);
}

.newsletter-btn span {
    position: relative;
    z-index: 1;
}

.newsletter-privacy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 0;
    font-weight: 400;
}

.newsletter-privacy::before {
    content: '🔒';
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .newsletter-title {
        font-size: 42px;
    }

    .newsletter-form {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-waves {
        height: 60px;
    }

    .newsletter-waves svg {
        height: 60px;
    }

    .newsletter-waves-top {
        top: -30px;
    }

    .newsletter-title {
        font-size: 36px;
        margin-bottom: 18px;
        line-height: 1.1;
    }

    .newsletter-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .newsletter-form {
        padding: 28px 22px;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.12);
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .newsletter-input {
        padding: 16px 24px;
        text-align: center;
        background: white;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .newsletter-btn {
        width: 100%;
        padding: 16px 40px;
        border-radius: 50px;
    }

    .newsletter-privacy {
        font-size: 13px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-waves-top {
        top: -20px;
    }

    .newsletter-waves {
        height: 50px;
    }

    .newsletter-waves svg {
        height: 50px;
    }

    .newsletter-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .newsletter-description {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .newsletter-form {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .newsletter-input-group {
        gap: 10px;
    }

    .newsletter-input {
        padding: 14px 20px;
        font-size: 15px;
    }

    .newsletter-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .newsletter-privacy {
        font-size: 12px;
        line-height: 1.5;
    }

    .newsletter-section::before,
    .newsletter-section::after {
        width: 200px;
        height: 200px;
    }

    /* Reduce decorative circle visibility on small screens */
    .newsletter-section::before {
        opacity: 0.6;
    }

    .newsletter-section::after {
        opacity: 0.5;
    }
}

@media (max-width: 360px) {
    .newsletter-section {
        padding: 30px 0;
    }

    .newsletter-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .newsletter-description {
        font-size: 13px;
    }

    .newsletter-form {
        padding: 20px 15px;
    }

    .newsletter-input {
        padding: 12px 18px;
        font-size: 14px;
    }

    .newsletter-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .newsletter-privacy::before {
        display: inline-block;
        font-size: 12px;
    }
}

/* ===================================
   Programs Page Styles
   =================================== */

/* Programs Overview Section */
.programs-overview {
    padding: 80px 0 60px;
    background: white;
}

.programs-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Age Filter Buttons */
.age-filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.age-filter-btn {
    padding: 14px 32px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka', sans-serif;
}

.age-filter-btn:hover,
.age-filter-btn.active {
    background: var(--primary-color);
    color: rgb(0, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 37, 0.3);
}

/* Program Cards Section */
.program-cards-section {
    padding: 40px 0 80px;
    background: white;
}

.program-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.program-card.hidden {
    display: none;
}

.program-card-reverse {
    direction: rtl;
}

.program-card-reverse>* {
    direction: ltr;
}

.program-card-image {
    position: relative;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    perspective: 1500px;
    will-change: transform;
    transition: all 0.3s ease;
}

.program-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.program-card-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transform: rotateX(15deg) scale(1.05);
    transform-origin: center top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.program-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(231, 76, 37, 0.4);
}

.program-card-content {
    padding: 20px;
}

.program-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 20px;
    line-height: 1.2;
}

.program-card-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.program-features li {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
    padding-left: 0;
}

.program-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Daily Schedule Section */
.daily-schedule-section {
    padding: 100px 0;
    background: #F5EFE7;
    position: relative;
}

.daily-schedule-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.daily-schedule-section .section-description {
    text-align: center;
    margin-bottom: 60px;
}

.schedule-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-3));
    border-radius: 2px;
}

.schedule-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: 142px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(231, 76, 37, 0.4);
    z-index: 2;
}

.schedule-time {
    flex-shrink: 0;
    width: 100px;
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.schedule-content {
    flex: 1;
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.schedule-content h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-teal);
    margin-bottom: 8px;
}

.schedule-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

/* Responsive Design for Programs Page */
@media (max-width: 1024px) {

    .program-card,
    .program-card-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .program-card-reverse>* {
        direction: ltr;
    }

    .section-title {
        font-size: 38px;
    }

    .program-card-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .programs-overview {
        padding: 60px 0 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .age-filter-buttons {
        gap: 10px;
    }

    .age-filter-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .program-cards-section {
        padding: 30px 0 60px;
    }

    .program-card {
        margin-bottom: 60px;
    }

    .program-card-image img {
        height: 300px;
    }

    .program-card-title {
        font-size: 28px;
    }

    .program-card-description {
        font-size: 16px;
    }

    .daily-schedule-section {
        padding: 70px 0;
    }

    .schedule-timeline::before {
        left: 20px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 15px;
        padding-left: 50px;
    }

    .schedule-item::before {
        left: 12px;
    }

    .schedule-time {
        width: auto;
        text-align: left;
        position: absolute;
        left: -40px;
        top: 0;
        font-size: 14px;
        writing-mode: horizontal-tb;
        transform: rotate(0);
    }

    .schedule-content {
        padding: 20px;
    }

    .schedule-content h4 {
        font-size: 20px;
    }

    .schedule-content p {
        font-size: 15px;
    }
}

/* Footer - Matching design with decorative elements */
.footer {
    background: var(--light-bg);
    padding-top: 80px;
    position: relative;
    overflow: visible;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"%3E%3Cpath d="M0,0 C300,100 600,0 900,50 C1050,75 1150,25 1200,50 L1200,100 L0,100 Z" fill="%23FFF9F5"/%3E%3C/svg%3E') top center no-repeat;
    background-size: 100% 100px;
    z-index: 1;
}

/* Decorative elements (tree/fox) removed — kept placeholders in case they are needed later */
.footer::after {
    /* disabled decorative element */
    display: none !important;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1fr 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    padding: 0 20px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 12px;
}

.footer-links a:hover::before {
    width: 6px;
}

/* Footer Brand / Logo Section */
.footer-brand {
    text-align: center;
    position: relative;
}

.footer-logo h2 {
    font-size: 56px;
    color: var(--secondary-color);
    font-family: 'Sensei', 'Fredoka', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
    line-height: 1;
}

.footer-tagline {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 600;
    font-family: 'Sensei', 'Fredoka', sans-serif;
    margin-top: -5px;
}

/* Fox decoration near logo */
.footer-brand::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 50px;
    opacity: 0.7;
    animation: bounce 3s infinite ease-in-out;
}

/* Footer Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-location {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.contact-map {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.contact-map:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-phone {
    color: var(--text-dark);
    font-size: 15px;
    margin: 0;
}

.contact-phone a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-phone a:hover {
    color: var(--primary-color);
}

.contact-email {
    margin: 0;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer CTA Section */
.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.footer-btn {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(231, 76, 37, 0.35);
    transition: all 0.3s ease;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 37, 0.45);
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--dark-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer Bottom Section */
.footer-bottom {
    background: var(--light-bg);
    padding: 25px 0;
    border-top: 1px solid rgba(10, 48, 58, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
    padding: 0 20px;
    flex: 1;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    flex: 1;
    justify-content: center;
}

.footer-bottom-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.scroll-to-top {
    width: 55px;
    height: 55px;
    background: var(--dark-teal);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:hover::before {
    left: 100%;
}

/* Tree decoration removed */
.footer-content::after {
    /* tree removed */
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-intro {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .ages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-container {
        grid-template-columns: 1fr;
        border: 10px solid var(--text-dark);
        padding: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        order: -1;
    }

    .footer-cta {
        grid-column: 1 / -1;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 130px;
    }

    /* Mobile dropdown menu styles */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px;
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--background-light);
        margin-top: 10px;
        margin-left: 20px;
        border-radius: 8px;
    }

    .dropdown-arrow {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 80px;
    }

    .section-subtitle {
        font-size: 30px;
    }

    .hero-badge {
        width: 320px;
        height: 320px;
        border-width: 12px;
    }

    .hero-badge::before {
        top: -25px;
        left: -25px;
        right: -25px;
        bottom: -25px;
    }

    .hero-badge::after {
        top: -40px;
        left: -40px;
        right: -40px;
        bottom: -40px;
    }

    .badge-text h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .badge-text h2 strong {
        font-size: 28px;
    }

    .fox-icon {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .decoration-item {
        font-size: 30px;
    }

    .ages-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .header-right .phone {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand::before {
        display: none;
    }

    .footer::after,
    .footer-content::after {
        display: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-cta {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-copyright,
    .footer-bottom-links {
        padding: 0;
    }

    .scroll-to-top {
        margin: 0;
    }

    .testimonial-container {
        border: 5px solid var(--text-dark);
        padding: 15px;
    }

    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 40px;
    }

    .cta-card {
        border-width: 1px;
        box-shadow: 4px 4px 0px 0px #EDEDED;
    }

    .cta-card:hover {
        box-shadow: 6px 6px 0px 0px var(--secondary-color);
    }

    /* Disable parallax on mobile for performance */
    .hero-bg {
        background-attachment: scroll !important;
    }

    .come-section {
        background-attachment: scroll !important;
    }

    /* Adjust curve heights on mobile */
    .hero::after {
        height: 60px;
        background-size: 100% 60px;
    }
}

/* Additional parallax and curve enhancements */
@media (prefers-reduced-motion: reduce) {

    .hero-bg,
    .come-section {
        background-attachment: scroll !important;
    }

    .hero-content,
    .hero-badge,
    .decoration-item {
        transform: none !important;
    }
}

/* Smooth transitions for parallax elements */
.hero-bg,
.hero-content,
.hero-badge,
.decoration-item {
    transition: transform 0.1s ease-out;
}

/* Enhanced curve visibility */
.hero::after,
.we-section::after,
.ages-section::after,
.come-section::after,
.news-section::after,
.cta-cards::before {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Card parallax movement */
.age-card,
.news-card,
.feature-image {
    transition: transform 0.2s ease-out;
    will-change: transform;
    transform: translateZ(0);
    /* GPU acceleration */
}

/* Add smooth scrolling momentum on iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Optimize animations with GPU acceleration */
.fade-in,
.fade-in-left,
.fade-in-right,
.scale-in,
.parallax-layer {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

/* Ensure curves are visible on all backgrounds */
@supports (mix-blend-mode: multiply) {

    .hero::after,
    .we-section::after {
        mix-blend-mode: normal;
    }
}

/* Floating decorative elements in hero */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-size: 40px;
    opacity: 0.6;
    animation: float-around 20s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.float-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.float-2 {
    top: 25%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 22s;
}

.float-3 {
    bottom: 35%;
    left: 8%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.float-4 {
    top: 55%;
    right: 12%;
    animation-delay: -9s;
    animation-duration: 19s;
}

.float-5 {
    bottom: 20%;
    right: 25%;
    animation-delay: -12s;
    animation-duration: 21s;
}

.float-6 {
    top: 40%;
    left: 20%;
    animation-delay: -15s;
    animation-duration: 23s;
}

@keyframes float-around {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(30px, -30px) rotate(10deg) scale(1.1);
    }

    50% {
        transform: translate(-20px, -50px) rotate(-5deg) scale(0.9);
    }

    75% {
        transform: translate(40px, -20px) rotate(15deg) scale(1.05);
    }
}

/* Stats Counter Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 60px 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-1), var(--accent-3), var(--accent-4));
    border-radius: 30px 30px 0 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Fredoka', sans-serif;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for important elements */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 37, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(231, 76, 37, 0);
    }
}

.btn-primary {
    animation: pulse-glow 2s infinite;
}

/* Image hover zoom effect for all images */
.feature-icon img,
.age-media img,
.news-image img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover .feature-icon img,
.age-card:hover .age-media img,
.news-card:hover .news-image img {
    transform: scale(1.08) rotate(2deg);
}

/* Glowing border effect on cards */
@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(231, 76, 37, 0.2),
            0 12px 30px rgba(10, 48, 58, 0.06);
    }

    50% {
        box-shadow: 0 0 30px rgba(231, 76, 37, 0.4),
            0 15px 40px rgba(10, 48, 58, 0.1);
    }
}

.feature-item:hover,
.age-card:hover,
.news-card:hover {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Responsive stats */
@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 42px;
    }

    .float-element {
        font-size: 28px;
    }
}

/* Decorative SVG curves between sections */
.curve {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

.curve svg {
    display: block;
    width: 100%;
    height: 100px;
}

.curve--hero svg {
    height: 120px;
}

.curve--soft svg {
    height: 140px;
}

.curve--wave svg {
    height: 120px;
}

.curve--prefooter svg {
    height: 160px;
}

/* Ensure curves blend and are layered correctly */
.curve {
    z-index: 2;
}

@media (max-width: 900px) {
    .curve svg {
        height: 80px;
    }

    .curve--soft svg {
        height: 100px;
    }
}

/* ===================================
   Our History Section
   =================================== */
.history-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* TV Frame Styling */
.history-media {
    position: relative;
    animation: fadeInLeft 1s ease-out;
}

.tv-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.tv-antenna {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    z-index: 1;
}

.antenna-left,
.antenna-right {
    position: absolute;
    width: 8px;
    height: 70px;
    background: var(--dark-teal);
    border-radius: 4px;
}

.antenna-left {
    left: 0;
    transform: rotate(-35deg);
    transform-origin: bottom center;
}

.antenna-left::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--dark-teal);
    border-radius: 50%;
}

.antenna-right {
    right: 0;
    transform: rotate(35deg);
    transform-origin: bottom center;
}

.antenna-right::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--dark-teal);
    border-radius: 50%;
}

.tv-screen {
    position: relative;
    width: 100%;
    background: var(--dark-teal);
    border-radius: 30px;
    padding: 25px;
    box-shadow:
        0 20px 60px rgba(10, 48, 58, 0.3),
        inset 0 0 0 8px rgba(10, 48, 58, 0.4);
    overflow: hidden;
}

.tv-screen::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
}

.tv-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--dark-teal);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding-left: 6px;
}

.play-button-large:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.tv-stand {
    width: 180px;
    height: 30px;
    background: var(--dark-teal);
    margin: 0 auto;
    position: relative;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(10, 48, 58, 0.2);
}

.tv-stand::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 20px;
    background: var(--dark-teal);
    border-radius: 40px;
    opacity: 0.6;
}

/* History Text Content */
.history-text {
    animation: fadeInRight 1s ease-out;
}

.history-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 30px;
    font-family: 'Fredoka', sans-serif;
    line-height: 1.1;
}

.history-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
    opacity: 0.9;
}

.history-stats {
    margin-bottom: 40px;
}

.history-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1px;
    margin-bottom: 20px;
    padding: 4px 0;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.stat-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.6;
}

.history-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.history-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 37, 0.3);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .history-media {
        max-width: 400px;
        margin: 0 auto;
    }

    .history-title {
        font-size: 42px;
    }

    .tv-frame {
        max-width: 400px;
    }

    .tv-antenna {
        top: -50px;
        width: 100px;
        height: 60px;
    }

    .antenna-left,
    .antenna-right {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .history-section {
        padding: 60px 0;
    }

    .history-title {
        font-size: 36px;
    }

    .history-description {
        font-size: 15px;
    }

    .stat-text {
        font-size: 14px;
    }

    .tv-screen {
        padding: 20px;
        border-radius: 20px;
    }

    .play-button-large {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .tv-stand {
        width: 140px;
        height: 25px;
    }

    .tv-stand::before {
        width: 180px;
        height: 15px;
        bottom: -15px;
    }
}

@media (max-width: 480px) {
    .history-section {
        padding: 40px 0;
    }

    .history-content {
        gap: 30px;
    }

    .history-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .history-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .history-stat-item {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 15px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .stat-text {
        font-size: 13px;
    }

    .tv-frame {
        max-width: 100%;
    }

    .tv-antenna {
        top: -35px;
        width: 80px;
    }

    .antenna-left,
    .antenna-right {
        width: 6px;
        height: 40px;
    }

    .antenna-left::after,
    .antenna-right::after {
        width: 16px;
        height: 16px;
    }

    .tv-screen {
        padding: 15px;
    }

    .play-button-large {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .tv-stand {
        width: 120px;
        height: 20px;
    }

    .tv-stand::before {
        width: 150px;
        height: 12px;
    }
}

/* Slight color adjustments for dark sections if needed */
.curve.dark svg path {
    fill: var(--dark-teal);
}

/* =====================================
   Blog Page Styles
   ===================================== */

/* Blog Categories Section */
.blog-categories-section {
    padding: 40px 0;
    background: #ffffff;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--primary-orange);
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 37, 0.3);
}

/* Featured Blog Section */
.featured-blog-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F5EFE7 0%, #ffffff 100%);
}

.featured-blog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.featured-blog-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-blog:hover .featured-blog-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--primary-orange);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-blog-content {
    padding: 40px 50px 40px 0;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-category {
    background: var(--soft-peach);
    color: var(--primary-orange);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date,
.blog-read-time {
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

.featured-blog-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-teal);
    line-height: 1.3;
    margin-bottom: 25px;
}

.featured-blog-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 80px 0;
    background: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-card-date,
.blog-card-read-time {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
}

.blog-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-teal);
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-orange);
}

.blog-card-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.blog-card-link {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    gap: 8px;
}

/* Load More Button */
.blog-load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-outline-large {
    padding: 16px 50px;
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--primary-orange);
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-large:hover {
    background: var(--primary-orange);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 37, 0.3);
}

/* Blog Page Responsive Styles */
@media (max-width: 1024px) {
    .featured-blog {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-blog-image {
        height: 400px;
    }

    .featured-blog-content {
        padding: 40px;
    }

    .featured-blog-title {
        font-size: 36px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-categories-section {
        padding: 30px 0;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .featured-blog-section {
        padding: 60px 0;
    }

    .featured-blog-image {
        height: 300px;
    }

    .featured-blog-content {
        padding: 30px;
    }

    .featured-blog-title {
        font-size: 28px;
    }

    .featured-blog-excerpt {
        font-size: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-grid-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .blog-categories {
        gap: 10px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .featured-badge {
        top: 20px;
        left: 20px;
        padding: 8px 20px;
        font-size: 12px;
    }

    .featured-blog-content {
        padding: 25px;
    }

    .featured-blog-title {
        font-size: 24px;
    }

    .featured-blog-excerpt {
        font-size: 15px;
    }

    .blog-card-content {
        padding: 25px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .btn-outline-large {
        padding: 14px 40px;
        font-size: 15px;
    }
}

/* =====================================
   Shop Page Styles
   ===================================== */

/* Shop Filter Section */
.shop-filter-section {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-categories {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: var(--text-primary);
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 37, 0.3);
}

.filter-sort {
    display: flex;
    align-items: center;
}

.sort-dropdown {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-dropdown:hover,
.sort-dropdown:focus {
    border-color: var(--primary-orange);
    outline: none;
}

/* Shop Products Section */
.shop-products-section {
    padding: 80px 0;
    background: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-orange);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.badge-new {
    background: #4CAF50;
}

.product-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-quick-view,
.product-wishlist {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-quick-view:hover,
.product-wishlist:hover {
    background: var(--primary-orange);
    color: #ffffff;
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
}

.product-category {
    display: inline-block;
    background: var(--soft-peach);
    color: var(--primary-orange);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-teal);
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-orange);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: #FFC107;
    font-size: 16px;
    letter-spacing: 2px;
}

.product-rating .rating-count {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}

.product-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-orange);
}

.price-original {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.btn-add-cart {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* Shop Load More */
.shop-load-more {
    text-align: center;
    margin-top: 40px;
}

/* Shop Page Responsive Styles */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .shop-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-categories {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .shop-filter-section {
        padding: 30px 0;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .shop-products-section {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image {
        height: 250px;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-add-cart {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-categories {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-badge {
        top: 15px;
        left: 15px;
        padding: 6px 16px;
        font-size: 11px;
    }

    .product-actions {
        right: 15px;
    }

    .product-quick-view,
    .product-wishlist {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .price-current {
        font-size: 20px;
    }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES FOR PROGRAMS PAGE
   ======================================== */

/* Tablet Landscape - 1024px and below */
@media (max-width: 1024px) {
    .programs-overview {
        padding: 60px 0 40px;
    }

    .programs-intro {
        max-width: 90%;
        margin: 0 auto 40px;
    }

    .age-filter-buttons {
        margin-top: 30px;
    }

    .program-card-image img {
        height: 380px;
    }

    .daily-schedule-section {
        padding: 80px 0;
    }

    .schedule-timeline {
        max-width: 800px;
    }
}

/* Tablet Portrait - 768px and below */
@media (max-width: 768px) {

    /* Breadcrumb Section */
    .breadcrumb-hero {
        padding: 50px 0 40px;
    }

    .breadcrumb-title {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .breadcrumb-subtitle {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 15px;
    }

    /* Programs Overview Section */
    .programs-overview {
        padding: 50px 0 30px;
    }

    .programs-intro {
        max-width: 100%;
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 36px !important;
        margin-bottom: 15px;
    }

    .section-description {
        font-size: 16px;
        line-height: 1.7;
        padding: 0 10px;
    }

    /* Age Filter Buttons */
    .age-filter-buttons {
        gap: 10px;
        margin-top: 25px;
        padding: 0 10px;
    }

    .age-filter-btn {
        padding: 11px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Program Cards */
    .program-cards-section {
        padding: 20px 0 50px;
    }

    .program-card {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .program-card-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .program-card-image {
        border-radius: 20px;
    }

    .program-card-image img {
        height: 280px;
        border-radius: 20px;
        transform: none;
    }

    .program-card-badge {
        top: 15px;
        left: 15px;
        padding: 8px 20px;
        font-size: 14px;
    }

    .program-card-content {
        padding: 15px 10px;
    }

    .program-card-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .program-card-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .program-features li {
        font-size: 15px;
        line-height: 1.8;
    }

    .btn {
        padding: 11px 26px;
        font-size: 15px;
    }

    /* Daily Schedule Section */
    .daily-schedule-section {
        padding: 60px 0;
    }

    .daily-schedule-section .section-title {
        font-size: 34px !important;
        margin-bottom: 12px;
    }

    .daily-schedule-section .section-description {
        margin-bottom: 45px;
        font-size: 16px;
    }

    .schedule-timeline {
        max-width: 100%;
        padding: 0 15px 0 18px;
    }

    .schedule-timeline::before {
        left: 35px;
        width: 3px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 10px;
        padding-left: 70px;
        margin-bottom: 32px;
        position: relative;
    }

    .schedule-item::before {
        left: 25px;
        width: 20px;
        height: 20px;
        border-width: 3px;
        top: 5px;
    }

    .schedule-time {
        position: absolute;
        left: 0;
        top: 2px;
        width: 55px;
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        color: var(--primary-color);
    }

    .schedule-content {
        padding: 20px 22px;
        border-radius: 16px;
    }

    .schedule-content:hover {
        transform: translateX(5px);
    }

    .schedule-content h4 {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .schedule-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Newsletter Section */
    .newsletter-section {
        padding: 50px 0;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .newsletter-text {
        max-width: 100%;
    }

    .newsletter-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .newsletter-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input {
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
    }

    .newsletter-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    .newsletter-privacy {
        font-size: 12px;
        margin-top: 12px;
    }

    .newsletter-waves {
        height: 70px;
    }

    .newsletter-waves svg {
        height: 70px;
    }
}

/* Mobile Landscape - 600px and below */
@media (max-width: 600px) {
    .age-filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .age-filter-btn {
        flex: 0 1 auto;
        min-width: 120px;
    }
}

/* Mobile Portrait - 480px and below */
@media (max-width: 480px) {

    /* Breadcrumb Section */
    .breadcrumb-hero {
        padding: 40px 0 35px;
    }

    .breadcrumb-content {
        padding: 25px 15px;
    }

    .breadcrumb-title {
        font-size: 32px;
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .breadcrumb-subtitle {
        font-size: 14px;
        line-height: 1.5;
        padding: 0 10px;
    }

    .breadcrumb-waves {
        height: 50px;
    }

    .breadcrumb-waves svg {
        height: 50px;
    }

    /* Programs Overview */
    .programs-overview {
        padding: 40px 0 25px;
    }

    .programs-intro {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 28px !important;
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .section-description {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 5px;
    }

    /* Age Filter Buttons */
    .age-filter-buttons {
        gap: 8px;
        margin-top: 20px;
        padding: 0 5px;
    }

    .age-filter-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 30px;
        min-width: 100px;
    }

    /* Program Cards */
    .program-cards-section {
        padding: 15px 0 40px;
    }

    .program-card {
        gap: 25px;
        margin-bottom: 40px;
    }

    .program-card-image {
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    .program-card-image:hover {
        transform: translateY(-5px);
    }

    .program-card-image img {
        height: 220px;
        border-radius: 15px;
    }

    .program-card-badge {
        top: 12px;
        left: 12px;
        padding: 7px 16px;
        font-size: 12px;
        border-radius: 30px;
    }

    .program-card-content {
        padding: 10px 5px;
    }

    .program-card-title {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .program-card-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .program-features {
        margin-bottom: 20px;
    }

    .program-features li {
        font-size: 14px;
        line-height: 1.7;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 20px;
    }

    /* Daily Schedule Section */
    .daily-schedule-section {
        padding: 50px 0;
    }

    .daily-schedule-section .section-title {
        font-size: 28px !important;
        margin-bottom: 10px;
    }

    .daily-schedule-section .section-description {
        margin-bottom: 35px;
        font-size: 14px;
        padding: 0 10px;
    }

    .schedule-timeline {
        padding: 0 10px 0 15px;
        max-width: 100%;
    }

    .schedule-timeline::before {
        left: 30px;
        width: 3px;
    }

    .schedule-item {
        padding-left: 65px;
        margin-bottom: 25px;
        position: relative;
    }

    .schedule-item::before {
        left: 21px;
        width: 18px;
        height: 18px;
        border-width: 3px;
        top: 4px;
    }

    .schedule-time {
        position: absolute;
        left: 0;
        top: 1px;
        width: 50px;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
        color: var(--primary-color);
    }

    .schedule-content {
        padding: 16px 18px;
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .schedule-content:hover {
        transform: translateX(3px);
    }

    .schedule-content h4 {
        font-size: 18px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .schedule-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Newsletter Section */
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-content {
        gap: 25px;
        padding: 0 15px;
    }

    .newsletter-title {
        font-size: 26px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .newsletter-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .newsletter-input-group {
        gap: 10px;
    }

    .newsletter-input {
        padding: 13px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .newsletter-btn {
        padding: 13px 26px;
        font-size: 15px;
        border-radius: 10px;
    }

    .newsletter-privacy {
        font-size: 11px;
        margin-top: 10px;
    }

    .newsletter-waves {
        height: 60px;
    }

    .newsletter-waves svg {
        height: 60px;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    .breadcrumb-title {
        font-size: 28px;
    }

    .breadcrumb-subtitle {
        font-size: 13px;
    }

    .section-title {
        font-size: 24px !important;
    }

    .section-description {
        font-size: 13px;
    }

    .age-filter-btn {
        padding: 9px 14px;
        font-size: 12px;
        min-width: 90px;
    }

    .program-card-image img {
        height: 200px;
    }

    .program-card-title {
        font-size: 22px;
    }

    .program-card-description {
        font-size: 13px;
    }

    .program-features li {
        font-size: 13px;
    }

    .schedule-timeline {
        padding: 0 8px 0 12px;
    }

    .schedule-timeline::before {
        left: 27px;
    }

    .schedule-item {
        padding-left: 58px;
    }

    .schedule-item::before {
        left: 18px;
        width: 18px;
        height: 18px;
    }

    .schedule-time {
        left: 0;
        width: 45px;
        font-size: 14px;
    }

    .schedule-content {
        padding: 14px 15px;
    }

    .schedule-content h4 {
        font-size: 16px;
    }

    .schedule-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-description {
        font-size: 13px;
    }
}

/* Horizontal Touch Devices - Better touch targets */
@media (hover: none) and (pointer: coarse) {
    .age-filter-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .btn {
        min-height: 44px;
        padding: 12px 28px;
    }

    .newsletter-btn {
        min-height: 48px;
    }

    .newsletter-input {
        min-height: 48px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .program-card-image img,
    .breadcrumb-hero {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Orientation on Small Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .breadcrumb-hero {
        padding: 30px 0 25px;
    }

    .breadcrumb-title {
        font-size: 32px;
    }

    .programs-overview {
        padding: 40px 0 25px;
    }

    .daily-schedule-section {
        padding: 40px 0;
    }
}

/* ============================================================================
   Learning Roadmap / Timeline Layout
   ============================================================================ */
.age-pathways-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.age-pathways-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(22, 114, 135, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(233, 93, 58, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.age-pathways-section .section-title {
    text-align: center;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-teal);
    position: relative;
}

.age-pathways-section .section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 5rem;
    line-height: 1.8;
}

/* Roadmap Container */
.learning-roadmap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical Timeline Line */
.roadmap-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
            var(--accent-1) 0%,
            var(--accent-3) 50%,
            var(--accent-4) 100%);
    z-index: 1;
}

.roadmap-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 0 8px rgba(22, 114, 135, 0.1);
}

.roadmap-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 16px solid var(--accent-4);
}

/* Roadmap Item */
.roadmap-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    z-index: 2;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

/* Left Aligned Items */
.roadmap-item--left {
    justify-content: flex-start;
}

.roadmap-item--left .roadmap-content {
    margin-right: auto;
    margin-left: 0;
    padding-right: 60px;
}

.roadmap-item--left .roadmap-marker {
    order: 2;
}

/* Right Aligned Items */
.roadmap-item--right {
    justify-content: flex-end;
}

.roadmap-item--right .roadmap-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 60px;
}

.roadmap-item--right .roadmap-marker {
    order: 1;
}

/* Roadmap Content Box */
.roadmap-content {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(10, 48, 58, 0.08);
    width: calc(50% - 50px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

.roadmap-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 3px;
    background: currentColor;
    transform: translateY(-50%);
}

.roadmap-item--left .roadmap-content::before {
    right: -40px;
}

.roadmap-item--right .roadmap-content::before {
    left: -40px;
}

.roadmap-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 56px rgba(10, 48, 58, 0.12);
}

/* Color Variants */
.roadmap-content--primary {
    background: linear-gradient(135deg, #fff 0%, rgba(223, 248, 255, 0.4) 100%);
    border-color: rgba(22, 114, 135, 0.15);
    color: var(--accent-1);
}

.roadmap-content--primary:hover {
    border-color: rgba(22, 114, 135, 0.3);
}

.roadmap-content--secondary {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 239, 223, 0.4) 100%);
    border-color: rgba(246, 143, 41, 0.15);
    color: var(--accent-3);
}

.roadmap-content--secondary:hover {
    border-color: rgba(246, 143, 41, 0.3);
}

.roadmap-content--accent {
    background: linear-gradient(135deg, #fff 0%, rgba(230, 249, 229, 0.4) 100%);
    border-color: rgba(94, 159, 90, 0.15);
    color: var(--accent-4);
}

.roadmap-content--accent:hover {
    border-color: rgba(94, 159, 90, 0.3);
}

/* Roadmap Marker (Center Circle) */
.roadmap-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(10, 48, 58, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-marker:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 12px 32px rgba(10, 48, 58, 0.2);
}

.roadmap-marker--primary {
    background: linear-gradient(135deg, var(--accent-1), #1a8da8);
}

.roadmap-marker--secondary {
    background: linear-gradient(135deg, var(--accent-3), #ff9f3d);
}

.roadmap-marker--accent {
    background: linear-gradient(135deg, var(--accent-4), #6fb56b);
}

.marker-icon {
    font-size: 2.2rem;
}

/* Content Styling */
.roadmap-header {
    margin-bottom: 1.5rem;
}

.roadmap-age-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(22, 114, 135, 0.2);
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
}

.roadmap-content--primary .roadmap-age-badge {
    background: linear-gradient(135deg, var(--accent-1), #1a8da8);
}

.roadmap-content--secondary .roadmap-age-badge {
    background: linear-gradient(135deg, var(--accent-3), #ff9f3d);
}

.roadmap-content--accent .roadmap-age-badge {
    background: linear-gradient(135deg, var(--accent-4), #6fb56b);
}

.roadmap-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Fredoka', sans-serif;
}

.roadmap-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
}

.roadmap-outcomes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadmap-outcomes li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.roadmap-outcomes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 114, 135, 0.25);
}

.roadmap-content--primary .roadmap-outcomes li::before {
    background: linear-gradient(135deg, var(--accent-1), #1a8da8);
}

.roadmap-content--secondary .roadmap-outcomes li::before {
    background: linear-gradient(135deg, var(--accent-3), #ff9f3d);
}

.roadmap-content--accent .roadmap-outcomes li::before {
    background: linear-gradient(135deg, var(--accent-4), #6fb56b);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .roadmap-content {
        padding: 2rem;
        width: calc(50% - 40px);
    }

    .roadmap-title {
        font-size: 1.6rem;
    }

    .roadmap-marker {
        width: 70px;
        height: 70px;
    }

    .marker-icon {
        font-size: 2rem;
    }

    .age-pathways-section .section-title {
        font-size: 3.2rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .age-pathways-section {
        padding: 60px 0;
    }

    .age-pathways-section .section-description {
        font-size: 1.05rem;
        margin-bottom: 3rem;
    }

    .learning-roadmap {
        padding: 20px 0 20px 40px;
    }

    /* Move timeline line to left on mobile */
    .roadmap-line {
        left: 0;
        transform: none;
    }

    .roadmap-line::before {
        left: -8px;
    }

    .roadmap-line::after {
        left: -10px;
    }

    /* Stack all items to the right of the line */
    .roadmap-item,
    .roadmap-item--left,
    .roadmap-item--right {
        flex-direction: row;
        justify-content: flex-start;
    }

    .roadmap-content,
    .roadmap-item--left .roadmap-content,
    .roadmap-item--right .roadmap-content {
        width: calc(100% - 50px);
        margin: 0;
        padding: 1.8rem;
        padding-left: 1.8rem;
        padding-right: 1.8rem;
    }

    .roadmap-content::before {
        display: none;
    }

    .roadmap-marker {
        position: absolute;
        left: 0;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        order: 1;
    }

    .roadmap-item--left .roadmap-marker,
    .roadmap-item--right .roadmap-marker {
        order: 1;
    }

    .marker-icon {
        font-size: 1.6rem;
    }

    .roadmap-item {
        margin-bottom: 60px;
    }

    .roadmap-title {
        font-size: 1.5rem;
    }

    .roadmap-intro {
        font-size: 1rem;
    }

    .roadmap-outcomes li {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }

    .age-pathways-section .section-title {
        font-size: 2.5rem;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .age-pathways-section {
        padding: 50px 0;
    }

    .learning-roadmap {
        padding: 20px 0 20px 30px;
    }

    .roadmap-content {
        padding: 1.5rem;
        border-radius: 18px;
        width: calc(100% - 40px);
    }

    .roadmap-marker {
        width: 50px;
        height: 50px;
    }

    .marker-icon {
        font-size: 1.4rem;
    }

    .roadmap-title {
        font-size: 1.3rem;
    }

    .roadmap-age-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .roadmap-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .roadmap-outcomes li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .roadmap-outcomes li::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .roadmap-item {
        margin-bottom: 50px;
    }

    .age-pathways-section .section-title {
        font-size: 2rem;
    }

    .age-pathways-section .section-description {
        font-size: 1rem;
    }
}


/* ============================================================================
   Age-Based Learning Pathways Section
   ============================================================================ */
.age-pathways-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.age-pathways-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(22, 114, 135, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(233, 93, 58, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.age-pathways-section .section-title {
    text-align: center;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-teal);
    position: relative;
}

.age-pathways-section .section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.pathway-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(10, 48, 58, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pathway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(10, 48, 58, 0.12);
    border-color: rgba(22, 114, 135, 0.15);
}

.pathway-card:hover::before {
    transform: scaleX(1);
}

/* Color variants for each age group */
.pathway-card--primary {
    background: linear-gradient(135deg, #fff 0%, rgba(223, 248, 255, 0.3) 100%);
}

.pathway-card--primary .pathway-age-badge {
    background: linear-gradient(135deg, var(--accent-1), #1a8da8);
    color: #fff;
}

.pathway-card--secondary {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 239, 223, 0.3) 100%);
}

.pathway-card--secondary .pathway-age-badge {
    background: linear-gradient(135deg, var(--accent-3), #ff9f3d);
    color: #fff;
}

.pathway-card--accent {
    background: linear-gradient(135deg, #fff 0%, rgba(230, 249, 229, 0.3) 100%);
}

.pathway-card--accent .pathway-age-badge {
    background: linear-gradient(135deg, var(--accent-4), #6fb56b);
    color: #fff;
}

.pathway-header {
    margin-bottom: 1.5rem;
}

.pathway-age-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(22, 114, 135, 0.2);
    text-transform: uppercase;
}

.pathway-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Fredoka', sans-serif;
}

.pathway-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
}

.pathway-outcomes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pathway-outcomes li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.pathway-outcomes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 114, 135, 0.25);
}

.pathway-card--primary .pathway-outcomes li::before {
    background: linear-gradient(135deg, var(--accent-1), #1a8da8);
}

.pathway-card--secondary .pathway-outcomes li::before {
    background: linear-gradient(135deg, var(--accent-3), #ff9f3d);
}

.pathway-card--accent .pathway-outcomes li::before {
    background: linear-gradient(135deg, var(--accent-4), #6fb56b);
}

/* Responsive Design for Age Pathways */
@media (max-width: 1024px) {
    .pathways-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .pathway-card {
        padding: 2rem;
    }

    .pathway-title {
        font-size: 1.6rem;
    }

    .age-pathways-section .section-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .age-pathways-section {
        padding: 60px 0;
    }

    .pathways-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pathway-card {
        padding: 1.8rem;
    }

    .pathway-title {
        font-size: 1.5rem;
    }

    .pathway-intro {
        font-size: 1rem;
    }

    .pathway-outcomes li {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }

    .age-pathways-section .section-title {
        font-size: 2.5rem;
    }

    .age-pathways-section .section-description {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .age-pathways-section {
        padding: 50px 0;
    }

    .pathway-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .pathway-title {
        font-size: 1.3rem;
    }

    .pathway-age-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .pathway-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .pathway-outcomes li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .pathway-outcomes li::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .age-pathways-section .section-title {
        font-size: 2rem;
    }

    .age-pathways-section .section-description {
        font-size: 1rem;
    }
}

/* Investor Relations — Full-Width Card With 4 Visual Blocks */
.investor-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg,#FBF8F6 0%, #F8F6F3 100%);
}

.investor-card {
    background: white;
    border-radius: 28px;
    padding: 34px 28px;
    box-shadow: 0 30px 80px rgba(10,48,58,0.06);
    border: 1px solid rgba(10,48,58,0.03);
}

.investor-head { text-align: center; margin-bottom: 18px; }
.investor-title { font-family: 'Fredoka', sans-serif; font-size: 30px; color: var(--secondary-color); margin-bottom: 6px; font-weight:800; }
.investor-sub { color: var(--text-gray); font-size: 15px; margin-bottom: 8px; }

.investor-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 12px;
}

.investor-block {
    background: linear-gradient(180deg,#FFFFFF 0%, #FFFEFC 100%);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(10,48,58,0.04);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.investor-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(10,48,58,0.04);
    margin-bottom: 4px;
}

.investor-block h4 { font-size: 18px; margin: 0; color: var(--secondary-color); font-weight: 800; }
.investor-block p { color: var(--text-gray); line-height:1.6; margin: 0; }
.investor-block ul { margin: 6px 0 0 18px; color: var(--text-gray); }
.investor-block ul li { margin-bottom: 6px; }

/* Gentle icon background variants to keep playful palette */
.investor-block:nth-child(1) .investor-icon { background: linear-gradient(180deg,#FFF6ED,#FFE8D0); }
.investor-block:nth-child(2) .investor-icon { background: linear-gradient(180deg,#FFF8F9,#FFEFF3); }
.investor-block:nth-child(3) .investor-icon { background: linear-gradient(180deg,#F1FBF9,#E6F6F4); }
.investor-block:nth-child(4) .investor-icon { background: linear-gradient(180deg,#EEF9FF,#EAF7FB); }

.investor-icon svg { width:28px; height:28px; }
.investor-icon svg * { stroke: var(--secondary-color); stroke-width: 1.2; }

@media (max-width: 900px) {
    .investor-body { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
    .investor-card { padding: 42px 48px; }
    .investor-body { gap: 28px; }
}

/* ==============================
   Foundation Section - Enhanced Design with Animations
   ============================== */
.foundation-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFF9F5 0%, #FAF6F2 50%, #FFF9F5 100%);
    position: relative;
    overflow: hidden;
}

.foundation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(94, 159, 90, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(231, 76, 37, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.foundation-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.foundation-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    color: #000000 !important;
    margin-bottom: 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4),
                0 0 0 0 rgba(56, 142, 60, 0.5);
    animation: badgePulseGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.foundation-badge span {
    position: relative;
    z-index: 2;
    color: #000000 !important;
}

.foundation-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes badgePulseGlow {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 8px 25px rgba(94, 159, 90, 0.35),
                    0 0 0 0 rgba(94, 159, 90, 0.4);
    }
    50% {
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 12px 35px rgba(94, 159, 90, 0.45),
                    0 0 30px 10px rgba(94, 159, 90, 0.2);
    }
}

.foundation-badge .badge-icon {
    font-size: 24px;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: iconSparkle 4s ease-in-out infinite;
}

@keyframes iconSparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) brightness(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.6)) brightness(1.3);
    }
    50% {
        transform: rotate(0deg) scale(1.15);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) brightness(1.4);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.6)) brightness(1.3);
    }
}

.foundation-main-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-teal);
    margin-bottom: 16px;
    line-height: 1.2;
}

.foundation-tagline {
    font-size: 22px;
    color: var(--text-gray);
    font-weight: 600;
}

.foundation-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.foundation-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.foundation-intro-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 245, 0.9));
    padding: 28px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(10, 48, 58, 0.08);
    border: 1px solid rgba(10, 48, 58, 0.04);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.foundation-intro-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(94, 159, 90, 0.1) 0%, transparent 70%);
    animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.foundation-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.foundation-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.foundation-block {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(10, 48, 58, 0.08);
    border: 1px solid rgba(10, 48, 58, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out backwards;
}

.foundation-block:nth-child(1) {
    animation-delay: 0.2s;
}

.foundation-block:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.foundation-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(94, 159, 90, 0.1), transparent);
    transition: left 0.6s ease;
}

.foundation-block:hover::before {
    left: 100%;
}

.foundation-block:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(10, 48, 58, 0.15);
    border-color: rgba(94, 159, 90, 0.2);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.block-icon {
    font-size: 32px;
    display: inline-block;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.block-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-teal);
    margin: 0;
}

.foundation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foundation-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 15px;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-4), #6fb56b);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    animation: checkPop 0.5s ease-out backwards;
}

.foundation-list li:nth-child(1) .check-icon { animation-delay: 0.1s; }
.foundation-list li:nth-child(2) .check-icon { animation-delay: 0.2s; }
.foundation-list li:nth-child(3) .check-icon { animation-delay: 0.3s; }

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.foundation-sidebar {
    position: sticky;
    top: 120px;
}

.community-card {
    background: linear-gradient(135deg, #ffffff 0%, rgba(223, 248, 255, 0.3) 100%);
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(10, 48, 58, 0.1);
    border: 2px solid rgba(22, 114, 135, 0.1);
    animation: slideInRight 0.6s ease-out;
    transition: all 0.4s ease;
    position: relative;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(22, 114, 135, 0.15);
    border-color: rgba(22, 114, 135, 0.2);
}

.community-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.community-icon {
    font-size: 36px;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

.community-header h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-teal);
    margin: 0;
}

.community-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.community-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

.arrow-icon {
    color: var(--accent-1);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    display: inline-block;
    animation: arrowSlide 2s ease-in-out infinite;
}

.community-list li:nth-child(1) .arrow-icon { animation-delay: 0s; }
.community-list li:nth-child(2) .arrow-icon { animation-delay: 0.2s; }
.community-list li:nth-child(3) .arrow-icon { animation-delay: 0.4s; }

@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.btn-foundation {
    width: 100%;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(231, 76, 37, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-foundation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-foundation:hover::before {
    width: 300px;
    height: 300px;
}

.btn-foundation:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(231, 76, 37, 0.35);
}

/* ==============================
   Investor Relations Section - Enhanced Design with Animations
   ============================== */
.investor-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #F8F6F3 0%, #FFFFFF 100%);
    position: relative;
}

.investor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(22, 114, 135, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(246, 143, 41, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientPulse 12s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.investor-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.investor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(22, 114, 135, 0.12), rgba(22, 114, 135, 0.06));
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 20px;
    border: 2px solid rgba(22, 114, 135, 0.15);
    box-shadow: 0 4px 15px rgba(22, 114, 135, 0.1);
    animation: investorBadgePulse 3s ease-in-out infinite;
}

@keyframes investorBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(22, 114, 135, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(22, 114, 135, 0.2);
    }
}

.investor-badge .badge-icon {
    font-size: 20px;
    animation: iconSwing 3s ease-in-out infinite;
}

@keyframes iconSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.investor-main-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-teal);
    margin: 0;
    line-height: 1.2;
}

.investor-wrapper {
    position: relative;
    z-index: 2;
}

.investor-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.investor-card {
    background: white;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(10, 48, 58, 0.08);
    border: 1px solid rgba(10, 48, 58, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardFadeInUp 0.6s ease-out backwards;
    transform-style: preserve-3d;
}

.investor-card > * {
    position: relative;
    z-index: 2;
}

.investor-card:nth-child(1) {
    animation-delay: 0.1s;
}

.investor-card:nth-child(2) {
    animation-delay: 0.2s;
}

.investor-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.investor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 10;
}

.investor-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 114, 135, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.investor-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(10, 48, 58, 0.15);
}

.investor-card:hover::before {
    transform: scaleX(1);
}

.investor-card:hover::after {
    width: 400px;
    height: 400px;
}

.card-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(22, 114, 135, 0.1), rgba(22, 114, 135, 0.05));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    animation: iconWrapFloat 3s ease-in-out infinite;
}

@keyframes iconWrapFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.investor-card:hover .card-icon-wrap {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, rgba(22, 114, 135, 0.2), rgba(22, 114, 135, 0.1));
}

.card-icon {
    font-size: 36px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-teal);
    margin: 0 0 16px 0;
}

.card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-dark);
    animation: slideInLeft 0.5s ease-out backwards;
}

.focus-list li:nth-child(1) { animation-delay: 0.2s; }
.focus-list li:nth-child(2) { animation-delay: 0.3s; }
.focus-list li:nth-child(3) { animation-delay: 0.4s; }
.focus-list li:nth-child(4) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dot-icon {
    color: var(--accent-1);
    font-size: 12px;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.funding-section {
    max-width: 1000px;
    margin: 0 auto;
}

.funding-card {
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 239, 223, 0.3) 100%);
    padding: 48px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(10, 48, 58, 0.1);
    border: 2px solid rgba(246, 143, 41, 0.1);
    animation: fundingCardEntrance 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fundingCardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.funding-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(246, 143, 41, 0.05) 0%, transparent 70%);
    animation: rotateShine 15s linear infinite;
}

@keyframes rotateShine {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.funding-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.funding-icon {
    font-size: 42px;
    display: inline-block;
    animation: fundingIconSpin 4s ease-in-out infinite;
}

@keyframes fundingIconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.funding-header h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-teal);
    margin: 0;
}

.funding-intro {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    font-weight: 500;
}

.funding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.funding-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(10, 48, 58, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fundingItemFade 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.funding-item:nth-child(1) { animation-delay: 0.1s; }
.funding-item:nth-child(2) { animation-delay: 0.2s; }
.funding-item:nth-child(3) { animation-delay: 0.3s; }
.funding-item:nth-child(4) { animation-delay: 0.4s; }
.funding-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fundingItemFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funding-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-3));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.funding-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(10, 48, 58, 0.12);
}

.funding-item:hover::before {
    transform: scaleY(1);
}

.item-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: itemIconBounce 2s ease-in-out infinite;
}

@keyframes itemIconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.funding-item span:last-child {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

.btn-investor {
    width: 100%;
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(231, 76, 37, 0.25);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-investor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-investor:hover::before {
    width: 400px;
    height: 400px;
}

.btn-investor:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(231, 76, 37, 0.35);
}

.btn-investor:active {
    transform: translateY(-1px) scale(0.98);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .foundation-grid {
        grid-template-columns: 1fr 350px;
        gap: 32px;
    }

    .investor-cards {
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .foundation-blocks {
        grid-template-columns: 1fr;
    }

    .investor-cards {
        grid-template-columns: 1fr;
    }

    .funding-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .foundation-section,
    .investor-section {
        padding: 60px 0;
    }

    .foundation-main-title,
    .investor-main-title {
        font-size: 36px;
    }

    .foundation-tagline {
        font-size: 18px;
    }

    .foundation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .foundation-sidebar {
        position: static;
    }

    .foundation-intro-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .foundation-block {
        padding: 24px;
    }

    .community-card {
        padding: 28px;
    }

    .investor-card {
        padding: 28px;
    }

    .funding-card {
        padding: 32px;
    }

    .funding-header h3 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .foundation-main-title,
    .investor-main-title {
        font-size: 28px;
    }

    .foundation-badge,
    .investor-badge {
        padding: 8px 18px;
        font-size: 14px;
    }

    .foundation-intro-box {
        padding: 20px;
    }

    .foundation-block {
        padding: 20px;
    }

    .block-header h3 {
        font-size: 18px;
    }

    .community-card {
        padding: 24px;
    }

    .funding-card {
        padding: 24px;
    }

    .funding-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .funding-header h3 {
        font-size: 22px;
    }
}
