/* ================================================================
   FOUNDATIONAL PROGRAMME — FUN & PLAYFUL DESIGN
   Pragati Academy | Crimson #980D1A + Gold #B09845
   All body text: Poppins 600 / 17px / #454545
   ================================================================ */

html { scroll-behavior: smooth; }

/* ================================================================
   CONSISTENT BODY TYPOGRAPHY
   ================================================================ */
.page-foundational p,
.page-foundational li,
.page-foundational .fdn-hero__desc,
.page-foundational .fdn-why__body,
.page-foundational .fdn-pillar__text,
.page-foundational .fdn-feat-card__text,
.page-foundational .fdn-bento__card-text,
.page-foundational .fdn-accordion__body p,
.page-foundational .fdn-faq__subtext,
.page-foundational .fdn-features__subtitle,
.page-foundational .fdn-why__check-item p,
.page-foundational .fdn-philosophy__quote {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 27px;
    color: #454545;
}

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.reveal {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
    will-change: opacity, transform;
}
.reveal[data-reveal="fade-up"], .reveal:not([data-reveal]) { transform: translateY(36px); }
.reveal[data-reveal="fade-down"] { transform: translateY(-36px); }
.reveal[data-reveal="fade-left"]  { transform: translateX(42px); }
.reveal[data-reveal="fade-right"] { transform: translateX(-42px); }
.reveal[data-reveal="zoom-in"]    { transform: scale(0.92); }
.reveal[data-reveal="fade"]       { transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================================================================
   KEYFRAMES — Fun bouncy playful animations
   ================================================================ */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatYSlow { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes shimmerBar { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes confettiFall1 { 0% { transform: translateY(-10px) rotate(0deg); opacity: 0.6; } 100% { transform: translateY(20px) rotate(360deg); opacity: 0.3; } }
@keyframes confettiFall2 { 0% { transform: translateY(0) rotate(0deg) scale(1); } 50% { transform: translateY(12px) rotate(180deg) scale(1.1); } 100% { transform: translateY(0) rotate(360deg) scale(1); } }
@keyframes popIn { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rainbowBorder { 0% { border-color: #e74c3c; } 25% { border-color: #f39c12; } 50% { border-color: #27ae60; } 75% { border-color: #3498db; } 100% { border-color: #e74c3c; } }

/* ================================================================
   DECORATIVE: CONFETTI SHAPES & BLOBS
   ================================================================ */
.deco-float {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.deco-float--circle {
    border: 3px solid;
    border-radius: 50%;
    animation: floatY 5s ease-in-out infinite;
}
.deco-float--dots {
    background-image: radial-gradient(circle, currentColor 2px, transparent 2px);
    background-size: 14px 14px;
    animation: floatYSlow 7s ease-in-out infinite;
}
.deco-float--star {
    animation: confettiFall2 6s ease-in-out infinite;
}
.deco-float--zigzag {
    animation: wiggle 4s ease-in-out infinite;
}

.fdn-confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
    animation: confettiFall2 5s ease-in-out infinite;
}

/* ================================================================
   EYEBROW LABEL (shared)
   ================================================================ */
.fdn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 14px;
}
.fdn-eyebrow__line {
    width: 32px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 3px;
}
.fdn-eyebrow--light { color: #fff; }
.fdn-eyebrow--light .fdn-eyebrow__line { background: #fff; }

/* ================================================================
   WAVE DIVIDER
   ================================================================ */
.wave-divider { display: block; width: 100%; margin-top: -1px; line-height: 0; position: relative; z-index: 2; }
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-divider--flip svg { transform: scaleY(-1); }

.parallax-bg { transition: transform 0.1s linear; will-change: transform; }

/* ================================================================
   HERO
   ================================================================ */
.fdn-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    min-height: 540px;
}
.fdn-hero__grid { display: flex; height: 620px; }

.fdn-hero__text-col {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 60px 48px 60px max(calc((100vw - var(--main-container)) / 2 + 24px), 24px);
    background: #fff;
    position: relative;
}
.fdn-hero__text-col::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(231,76,60,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.fdn-hero__text-col::after {
    content: "";
    position: absolute;
    bottom: 30px; left: 30px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(52,152,219,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.fdn-hero__text-inner { max-width: 520px; }

.fdn-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 14px;
    background: rgba(152,13,26,0.06);
    padding: 6px 16px 6px 10px;
    border-radius: 30px;
}
.fdn-hero__eyebrow-line {
    width: 28px; height: 3px;
    background: var(--theme-color);
    border-radius: 3px;
}

.fdn-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 3.4vw, 48px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.12;
    margin-bottom: 10px;
}
.fdn-hero__title em { font-style: normal; color: var(--theme-color); }

.fdn-hero__quote {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--theme-color2);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 27px;
    padding-left: 14px;
    border-left: 4px solid var(--theme-color2);
}

.fdn-hero__desc {
    margin-bottom: 20px;
    text-align: justify;
    padding-left: 14px;
    border-left: 4px solid var(--theme-color);
}

.fdn-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.fdn-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--theme-color);
    color: #fff;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 6px 20px rgba(152,13,26,0.3);
}
.fdn-hero__btn-primary:hover {
    background: #7a0a14;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(152,13,26,0.4);
    color: #fff;
}
.fdn-hero__btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: #1a1a1a;
    border: 2.5px solid #ddd;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.fdn-hero__btn-outline:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    transform: translateY(-3px);
    background: rgba(152,13,26,0.04);
}

.fdn-hero__breadcrumb {
    display: flex; gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #999; list-style: none; padding: 0; margin: 0;
}
.fdn-hero__breadcrumb a { color: var(--theme-color); text-decoration: none; }
.fdn-hero__breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #ccc; }

.fdn-hero__image-col {
    flex: 1;
    position: relative;
    overflow: hidden;
    clip-path: polygon(7% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: #111;
}
.fdn-hero__slide {
    position: absolute; inset: 0;
    object-fit: cover !important; object-position: center;
    opacity: 0; transition: opacity 1s ease;
    display: block; width: 100% !important; height: 100% !important;
    max-width: none; max-height: none;
}
.fdn-hero__slide--active { opacity: 1; }
.fdn-hero__image-accent {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 30%, rgba(0,0,0,0.35) 100%),
        linear-gradient(135deg, rgba(152,13,26,0.2) 0%, transparent 50%);
    pointer-events: none; z-index: 1;
}
.fdn-hero__image-col::after {
    content: "";
    position: absolute; bottom: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60, #3498db, #9b59b6, #e74c3c);
    background-size: 300% 100%;
    animation: shimmerBar 4s linear infinite;
    z-index: 3;
}

/* ================================================================
   MARQUEE — Rainbow gradient
   ================================================================ */
.fdn-marquee {
    background: linear-gradient(90deg, #980D1A, #b81c2e, #980D1A);
    padding: 14px 0;
    overflow: hidden;
    position: relative;
    z-index: 4;
}
.fdn-marquee__track {
    display: flex; white-space: nowrap;
    animation: marqueeScroll 28s linear infinite;
}
.fdn-marquee__item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0 36px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 700;
    color: #fff; letter-spacing: 1.5px; text-transform: uppercase;
}
.fdn-marquee__item i { font-size: 14px; opacity: 0.85; }

/* ================================================================
   PILLARS — COLORFUL TILTED CARDS
   ================================================================ */
.fdn-pillars {
    padding: 70px 0 60px;
    background: linear-gradient(175deg, #fdf0e0 0%, #fef9f3 40%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
    z-index: 3;
}
.fdn-pillars .container { position: relative; z-index: 2; }
.fdn-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fdn-pillar {
    border-radius: 24px;
    padding: 38px 28px 34px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    position: relative;
    overflow: hidden;
    border: none;
    color: #fff;
}
.fdn-pillar:nth-child(1) { background: linear-gradient(135deg, #e74c3c, #c0392b); transform: rotate(-1.5deg); }
.fdn-pillar:nth-child(2) { background: linear-gradient(135deg, #3498db, #2980b9); transform: rotate(1deg); }
.fdn-pillar:nth-child(3) { background: linear-gradient(135deg, #27ae60, #1e8449); transform: rotate(-0.8deg); }
.fdn-pillar:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.fdn-pillar::after {
    content: "";
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -30px; right: -30px;
    pointer-events: none;
}
.fdn-pillar__icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px; color: #fff;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    backdrop-filter: blur(4px);
}
.fdn-pillar:hover .fdn-pillar__icon {
    background: rgba(255,255,255,0.35);
    transform: scale(1.12);
}
.fdn-pillar__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px; font-weight: 800;
    color: #fff;
    margin-bottom: 10px; line-height: 1.25;
}
.fdn-pillar__text {
    color: rgba(255,255,255,0.92) !important;
    font-size: 15px !important;
    line-height: 25px !important;
}

/* ================================================================
   WHY CHOOSE — Tight, bold, impactful
   ================================================================ */
.fdn-why {
    padding: 70px 0;
    background: #fff;
    overflow: visible;
    position: relative;
}
.fdn-why__inner {
    max-width: var(--main-container); margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative; z-index: 1;
}
.fdn-why__media {
    position: relative;
}
.fdn-why__img-stack {
    position: relative;
    padding-bottom: 40px;
    padding-right: 28px;
    z-index: 0;
}
.fdn-why__frame-border {
    position: absolute;
    left: 0;
    top: -8px;
    right: 6px;
    bottom: 40px;
    width: auto;
    height: auto;
    border: 4px solid;
    animation: rainbowBorder 6s linear infinite;
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
}
.fdn-why__img-wrap {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
}
.fdn-why__img-wrap--main {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
}
.fdn-why__img-wrap--secondary {
    position: absolute;
    bottom: -14px;
    right: 0;
    z-index: 3;
    width: 46%;
    min-width: 200px;
    max-width: 320px;
    aspect-ratio: 5 / 4;
    border: 5px solid #fff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.fdn-why__img-wrap--main .fdn-why__img--main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}
.fdn-why__img-wrap--secondary .fdn-why__img--secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    box-shadow: none;
}
.fdn-why__img {
    display: block;
}
.fdn-why__img--main,
.fdn-why__img--secondary {
    border-radius: 0;
    box-shadow: none;
}
.fdn-why__float-badge {
    position: absolute; top: 20px; right: -12px; z-index: 4;
    width: 94px; height: 94px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 28px rgba(231,76,60,0.4);
    animation: floatY 3s ease-in-out infinite;
    border: 4px solid #fff;
}
.fdn-why__float-num { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 900; line-height: 1; }
.fdn-why__float-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; text-align: center; }

.fdn-why__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800; color: #1a1a1a;
    line-height: 1.15; margin-bottom: 16px;
}
.fdn-why__title em { font-style: normal; color: var(--theme-color); }

.fdn-why__checklist { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.fdn-why__check-item { display: flex; gap: 14px; align-items: flex-start; }
.fdn-why__check-icon {
    flex-shrink: 0; font-size: 20px; margin-top: 3px;
}
.fdn-why__check-item:nth-child(1) .fdn-why__check-icon { color: #e74c3c; }
.fdn-why__check-item:nth-child(2) .fdn-why__check-icon { color: #3498db; }
.fdn-why__check-item:nth-child(3) .fdn-why__check-icon { color: #27ae60; }
.fdn-why__check-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 17px; font-weight: 800;
    color: #1a1a1a; margin-bottom: 2px;
}

.fdn-why__btn {
    display: inline-flex; align-items: center;
    padding: 14px 34px;
    background: var(--theme-color); color: #fff;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 6px 22px rgba(152,13,26,0.3);
}
.fdn-why__btn:hover {
    background: #7a0a14; color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(152,13,26,0.4);
}

/* ================================================================
   PHILOSOPHY — Vibrant Parallax CTA
   ================================================================ */
.fdn-philosophy {
    position: relative; overflow: hidden;
    min-height: 540px;
    display: flex; align-items: center;
    isolation: isolate;
}
.fdn-philosophy__parallax {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    filter: brightness(0.5) saturate(1.3);
}
.fdn-philosophy__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(15,52,96,0.7) 40%, rgba(122,10,20,0.65) 100%);
    z-index: -1;
}
.fdn-philosophy__ring {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.fdn-philosophy__ring--1 {
    width: 500px; height: 500px;
    top: -180px; right: -120px;
    animation: floatYSlow 10s ease-in-out infinite;
}
.fdn-philosophy__ring--2 {
    width: 350px; height: 350px;
    bottom: -100px; left: -80px;
    animation: floatY 8s ease-in-out infinite;
    animation-delay: 2s;
}
.fdn-philosophy .container { position: relative; z-index: 2; }
.fdn-philosophy__inner {
    max-width: 860px; margin: 0 auto;
    text-align: center; padding: 80px 0;
}
.fdn-philosophy__icon-badge {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px; color: #fff;
    box-shadow: 0 8px 30px rgba(231,76,60,0.45);
    animation: floatY 3s ease-in-out infinite;
    border: 3px solid rgba(255,255,255,0.25);
}
.fdn-philosophy .fdn-eyebrow--light { color: rgba(255,255,255,0.92); }
.fdn-philosophy .fdn-eyebrow--light .fdn-eyebrow__line { background: rgba(255,255,255,0.75); }
.fdn-philosophy__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 900; color: #fff;
    margin-bottom: 20px; line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.fdn-philosophy__title em {
    font-style: normal;
    background: linear-gradient(90deg, #f6c850, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fdn-philosophy__quote {
    color: rgba(255,255,255,0.96) !important;
    font-style: italic;
    max-width: 740px;
    margin: 0 auto 32px;
    padding: 22px 30px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
}
.fdn-philosophy__quote::before {
    content: "\201C";
    position: absolute;
    top: -8px; left: 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 64px; font-weight: 900;
    color: rgba(246,200,80,0.35);
    line-height: 1;
    pointer-events: none;
}
.fdn-philosophy__btn {
    display: inline-flex; align-items: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, #f6c850, #f39c12);
    color: #1a1a2e;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px; font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 8px 28px rgba(243,156,18,0.35);
    border: none;
}
.fdn-philosophy__btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 40px rgba(243,156,18,0.5);
    color: #1a1a2e;
}

/* ================================================================
   GALLERY — Fun & colorful
   ================================================================ */
.fdn-gallery {
    padding: 64px 0 70px;
    background: linear-gradient(175deg, #fff5e6 0%, #fef9f3 50%, #f2f6ff 100%);
    overflow: hidden;
    position: relative;
}
.fdn-gallery__header {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    gap: 20px; margin-bottom: 32px;
}
.fdn-gallery__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800; color: #1a1a1a;
    line-height: 1.15; margin: 0;
}
.fdn-gallery__badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 170px; text-align: center;
    box-shadow: 0 8px 24px rgba(231,76,60,0.25);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}
.fdn-gallery__badge:hover { transform: rotate(0deg) scale(1.05); }
.fdn-gallery__badge strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    color: #fff; font-size: 17px; font-weight: 800; line-height: 1.2;
}
.fdn-gallery__badge span { color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.fdn-gallery__slider-wrap { position: relative; }
.fdn-gallery__slider { position: relative; }
.fdn-gallery__slide { padding: 0 10px; }
.fdn-gallery__frame {
    border-radius: 20px;
    overflow: hidden; position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 4px solid transparent;
    transition: border-color 0.4s ease;
}
.fdn-gallery__frame img {
    width: 100%; height: 420px;
    object-fit: cover; display: block;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
}
.fdn-gallery__slide:hover .fdn-gallery__frame img { transform: scale(1.06); }

.fdn-gallery__slider .slick-list { overflow: visible; }
.fdn-gallery__slider .slick-slide {
    opacity: 0.4; transform: scale(0.88);
    transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.fdn-gallery__slider .slick-slide .fdn-gallery__frame img { filter: grayscale(0.8) blur(1.5px); }
.fdn-gallery__slider .slick-slide.slick-center { opacity: 1; transform: scale(1); }
.fdn-gallery__slider .slick-slide.slick-center .fdn-gallery__frame {
    box-shadow: 0 24px 60px rgba(152,13,26,0.22);
    border-color: var(--theme-color);
}
.fdn-gallery__slider .slick-slide.slick-center .fdn-gallery__frame img { filter: none; }

.fdn-gallery__btn {
    position: absolute; top: 50%;
    transform: translateY(-50%); z-index: 10;
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 3px solid var(--theme-color);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--theme-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.fdn-gallery__btn:hover {
    background: var(--theme-color); color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.fdn-gallery__btn--prev { left: 16px; }
.fdn-gallery__btn--next { right: 16px; }

.fdn-gallery .slick-dots {
    display: flex; justify-content: center;
    gap: 8px; margin: 24px 0 0; padding: 0; list-style: none;
}
.fdn-gallery .slick-dots li button {
    width: 12px; height: 12px; border: none;
    border-radius: 50%; background: #ddd;
    font-size: 0; padding: 0; cursor: pointer;
    transition: all 0.28s ease;
}
.fdn-gallery .slick-dots li.slick-active button {
    width: 32px; border-radius: 999px;
    background: var(--theme-color);
}

/* ================================================================
   FEATURES — VIBRANT COLORFUL CARDS
   ================================================================ */
.fdn-features {
    padding: 70px 0;
    background: linear-gradient(175deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.fdn-features::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(231,76,60,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52,152,219,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.fdn-features__header {
    text-align: center;
    max-width: 700px; margin: 0 auto 44px;
    position: relative; z-index: 1;
}
.fdn-features .fdn-eyebrow { color: rgba(255,255,255,0.9); }
.fdn-features .fdn-eyebrow__line { background: rgba(255,255,255,0.8); }
.fdn-features__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 900; color: #fff;
    margin-bottom: 14px; line-height: 1.15;
}
.fdn-features__subtitle { color: rgba(255,255,255,0.78) !important; }

.fdn-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative; z-index: 1;
}

.fdn-feat-card {
    border-radius: 22px;
    padding: 34px 24px 30px;
    position: relative; overflow: hidden;
    border: none;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    color: #fff;
}
.fdn-feat-card:nth-child(1) { background: linear-gradient(145deg, #e74c3c, #c0392b); transform: rotate(-1deg); }
.fdn-feat-card:nth-child(2) { background: linear-gradient(145deg, #3498db, #2471a3); transform: rotate(0.8deg); }
.fdn-feat-card:nth-child(3) { background: linear-gradient(145deg, #27ae60, #1e8449); transform: rotate(-0.5deg); }
.fdn-feat-card:nth-child(4) { background: linear-gradient(145deg, #e67e22, #ca6f1e); transform: rotate(1deg); }
.fdn-feat-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04);
    box-shadow: 0 24px 56px rgba(0,0,0,0.35);
}
.fdn-feat-card::after {
    content: "";
    position: absolute; width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    bottom: -30px; right: -20px;
    pointer-events: none;
}

.fdn-feat-card__num {
    font-family: 'Poppins', sans-serif;
    font-size: 64px; font-weight: 900;
    color: rgba(255,255,255,0.15);
    line-height: 0.85;
    position: absolute; top: 14px; right: 14px;
}
.fdn-feat-card__icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    margin-bottom: 18px;
    position: relative; z-index: 1;
    transition: all 0.3s ease;
}
.fdn-feat-card:hover .fdn-feat-card__icon { background: rgba(255,255,255,0.32); transform: scale(1.1); }
.fdn-feat-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 19px; font-weight: 800;
    color: #fff; margin-bottom: 10px;
    line-height: 1.25;
    position: relative; z-index: 1;
}
.fdn-feat-card__text {
    color: rgba(255,255,255,0.9) !important;
    font-size: 15px !important;
    line-height: 25px !important;
    margin-bottom: 16px;
    position: relative; z-index: 1;
}
.fdn-feat-card__line {
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative; z-index: 1;
}
.fdn-feat-card:hover .fdn-feat-card__line { width: 60px; background: rgba(255,255,255,0.8); }

/* ================================================================
   FACILITIES — Fun dark bento
   ================================================================ */
.fdn-facilities {
    padding: 70px 0;
    background: #fff;
    position: relative; overflow: hidden;
}
.fdn-facilities__header {
    text-align: center;
    max-width: 720px; margin: 0 auto 44px;
    position: relative; z-index: 2;
}
.fdn-facilities__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 900; color: #1a1a1a;
    margin-bottom: 0; line-height: 1.15;
}
.fdn-facilities .fdn-eyebrow--light { color: var(--theme-color); }
.fdn-facilities .fdn-eyebrow--light .fdn-eyebrow__line { background: var(--theme-color); }

.fdn-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    position: relative; z-index: 2;
}
.fdn-bento__card {
    border-radius: 20px;
    transition: all 0.38s cubic-bezier(0.22,1,0.36,1);
    position: relative; overflow: hidden;
    min-height: 280px;
}
.fdn-bento__card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 46px rgba(0,0,0,0.22); }
.fdn-bento__card--large { grid-column: span 2; }
.fdn-bento__card--wide { grid-column: span 2; }

.fdn-bento__card--img { padding: 0; overflow: hidden; }
.fdn-bento__card--img .fdn-bento__card-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.fdn-bento__card--img:hover .fdn-bento__card-bg { transform: scale(1.1); }
.fdn-bento__card-overlay {
    position: relative; z-index: 2;
    padding: 30px 22px 24px;
    min-height: 280px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.02) 100%);
}
.fdn-bento__card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}
.fdn-bento__card:hover .fdn-bento__card-icon { background: rgba(255,255,255,0.35); transform: scale(1.08); }
.fdn-bento__card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; font-weight: 800;
    color: #fff; margin-bottom: 6px; line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.fdn-bento__card-text {
    color: rgba(255,255,255,0.92) !important;
    font-size: 14px !important;
    line-height: 22px !important;
}

/* ================================================================
   FAQ — Warm playful
   ================================================================ */
.fdn-faq {
    padding: 70px 0;
    background: linear-gradient(175deg, #fdf0e0, #fef9f3 60%, #fff);
    position: relative; overflow: hidden;
}
.fdn-faq__grid {
    max-width: var(--main-container); margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: flex-start;
    position: relative; z-index: 2;
}
.fdn-faq__heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 900; color: #1a1a1a;
    margin-bottom: 14px; line-height: 1.15;
}
.fdn-faq__heading em { font-style: normal; color: var(--theme-color); }
.fdn-faq__btn {
    display: inline-flex; align-items: center;
    padding: 13px 28px;
    background: var(--theme-color); color: #fff;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 6px 20px rgba(152,13,26,0.25);
}
.fdn-faq__btn:hover { background: #7a0a14; transform: translateY(-3px); color: #fff; }

.fdn-accordion { display: flex; flex-direction: column; gap: 10px; }
.fdn-accordion__item {
    background: #fff;
    border: 2px solid #f0e6d4;
    border-left: 5px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.fdn-accordion__item--active {
    border-color: rgba(152,13,26,0.15);
    border-left-color: var(--theme-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.fdn-accordion__header {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 18px 22px;
    background: none; border: none; cursor: pointer;
    text-align: left; transition: all 0.3s ease;
}
.fdn-accordion__header:hover { background: rgba(152,13,26,0.03); }
.fdn-accordion__q {
    font-family: 'Poppins', sans-serif;
    font-size: 16px; font-weight: 700;
    color: #1a1a1a; flex: 1;
    padding-right: 14px; line-height: 1.4;
}
.fdn-accordion__item--active .fdn-accordion__q { color: var(--theme-color); }
.fdn-accordion__icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(52,152,219,0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--theme-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.fdn-accordion__item--active .fdn-accordion__icon { background: var(--theme-color); color: #fff; }
.fdn-accordion__body { display: none; padding: 0 22px 18px; }

/* ================================================================
   ENQUIRY + MAP
   ================================================================ */
.fdn-enquiry { position: relative; overflow: hidden; }
.fdn-enquiry__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.fdn-enquiry__map-col { position: relative; min-height: 480px; }
.fdn-enquiry__map-col iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.fdn-enquiry__form-col {
    background: linear-gradient(135deg, #7a0a14, #5a0710);
    display: flex; align-items: center; justify-content: center;
    padding: 50px 44px;
    position: relative;
}
.fdn-enquiry__form-col::before {
    content: "";
    position: absolute; top: -80px; right: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.fdn-enquiry__form-col::after {
    content: "";
    position: absolute; bottom: -50px; left: -50px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(176,152,69,0.08);
    pointer-events: none;
}
.fdn-enquiry__form-inner { width: 100%; max-width: 440px; position: relative; z-index: 2; }
.fdn-enquiry__logo { margin-bottom: 24px; }
.fdn-enquiry__logo img { max-height: 56px; filter: brightness(0) invert(1); }
.fdn-enquiry__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 28px;
}
.fdn-enquiry__field { margin-bottom: 14px; }
.fdn-enquiry__field input,
.fdn-enquiry__field textarea {
    width: 100%; padding: 15px 20px;
    background: rgba(255,255,255,0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 600;
    color: #333; outline: none;
    transition: all 0.3s ease;
}
.fdn-enquiry__field input::placeholder,
.fdn-enquiry__field textarea::placeholder { color: #999; font-weight: 500; }
.fdn-enquiry__field input:focus,
.fdn-enquiry__field textarea:focus {
    border-color: var(--theme-color2);
    box-shadow: 0 0 0 4px rgba(176,152,69,0.15);
}
.fdn-enquiry__field textarea { resize: vertical; min-height: 90px; }
.fdn-enquiry__submit {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 16px 32px;
    background: #fff; color: var(--theme-color);
    border: none; border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px; font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    margin-top: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.fdn-enquiry__submit:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.fdn-enquiry__admission-link {
    display: inline-flex; align-items: center;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--theme-color2);
    text-decoration: none;
    transition: all 0.3s ease;
    float: right;
}
.fdn-enquiry__admission-link:hover { color: #fff; transform: translateX(4px); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1199px) {
    .fdn-features__grid { grid-template-columns: repeat(2, 1fr); }
    .fdn-bento { grid-template-columns: repeat(2, 1fr); }
    .fdn-bento__card--large,
    .fdn-bento__card--wide { grid-column: span 2; }
}

@media (max-width: 991px) {
    .fdn-hero__grid { flex-direction: column; height: auto; }
    .fdn-hero__text-col { flex: unset; padding: 48px 24px; }
    .fdn-hero__text-inner { max-width: 100%; }
    .fdn-hero__image-col { order: -1; flex: unset; height: 360px; clip-path: none; }

    .fdn-pillars__grid { grid-template-columns: 1fr; gap: 18px; }
    .fdn-pillar { transform: none !important; }
    .fdn-pillar:hover { transform: translateY(-6px) scale(1.02) !important; }

    .fdn-why__inner { grid-template-columns: 1fr; gap: 36px; }
    .fdn-why__img-wrap--main { max-height: none; aspect-ratio: 16 / 10; }
    .fdn-why__img-wrap--secondary {
        width: 42%;
        min-width: 180px;
        max-width: 280px;
    }
    .fdn-why__frame-border { display: none; }

    .fdn-philosophy { min-height: auto; }
    .fdn-philosophy__inner { padding: 70px 0; }
    .fdn-philosophy__ring { display: none; }

    .fdn-gallery__header { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
    .fdn-gallery__badge { text-align: left; transform: none; }
    .fdn-gallery__frame img { height: 300px; }
    .fdn-gallery__btn { display: none !important; }

    .fdn-features__grid { grid-template-columns: 1fr 1fr; }
    .fdn-feat-card { transform: none !important; }
    .fdn-feat-card:hover { transform: translateY(-8px) scale(1.02) !important; }

    .fdn-faq__grid { grid-template-columns: 1fr; gap: 32px; }

    .fdn-enquiry__grid { grid-template-columns: 1fr; }
    .fdn-enquiry__map-col { min-height: 320px; }
    .fdn-enquiry__form-col { padding: 44px 24px; }
}

@media (max-width: 767px) {
    .fdn-features__grid { grid-template-columns: 1fr; }
    .fdn-bento { grid-template-columns: 1fr; }
    .fdn-bento__card--large,
    .fdn-bento__card--wide { grid-column: span 1; }

    .fdn-hero__image-col { height: 280px; }
    .fdn-hero__text-col { padding: 36px 20px; }
    .fdn-hero__actions { flex-direction: column; }
    .fdn-hero__btn-primary,
    .fdn-hero__btn-outline { width: 100%; justify-content: center; }

    .fdn-gallery { padding: 56px 0 64px; }
    .fdn-gallery__frame img { height: 230px; }

    .fdn-why__img-wrap--main { aspect-ratio: 4 / 3; }
    .fdn-why__img-wrap--secondary {
        width: 46%;
        min-width: 140px;
        max-width: 220px;
        aspect-ratio: 1 / 1;
    }

    .fdn-marquee__item { padding: 0 22px; font-size: 13px; }
    .fdn-philosophy__title { font-size: 28px; }
    .fdn-philosophy__icon-badge { width: 60px; height: 60px; font-size: 22px; }
    .fdn-philosophy__quote { padding: 16px 20px; font-size: 15px !important; }
    .fdn-philosophy__quote::before { font-size: 48px; top: -4px; left: 12px; }
    .fdn-facilities__title { font-size: 26px; }
    .fdn-enquiry__title { font-size: 24px; }

    .wave-divider svg { height: 36px; }
}

@media (max-width: 480px) {
    .fdn-pillars__grid { gap: 14px; }
    .fdn-pillar { padding: 30px 22px 26px; }
    .fdn-feat-card { padding: 28px 20px 24px; }
}

/* ================================================================
   ACTIVE NAV STATE
   ================================================================ */
body.page-foundational .main-menu a[href="foundational.php"],
body.page-foundational .main-menu a[href="foundational.php"]:hover {
    color: #980D1A !important;
    font-weight: 600;
}
