/* ============================================
   SECRET GARDEN SCRAPBOOK — CSS
   Little Angels Kindergarten
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Kalam:wght@300;400;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
    --green-organic: #9BBA8E;
    --coral: #FF8B8B;
    --sky-mist: #A7D8F0;
    --lavender: #D6C4E1;
    --primary-bg: #fcfbf2;
    --buttercream: #FFF4BD;
    --text-dark: #3D2B1F;
    --text-body: #5a4a3f;
    --white: #ffffff;
    --yellow: #fff59c;
    --pink-mist: #fab3f6;
    --shadow-soft: 0 4px 20px rgba(61,43,31,0.08);
    --shadow-sticker: 3px 4px 8px rgba(61,43,31,0.12);
    --radius-blob: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Body & Grain Texture Overlay --- */
body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-body);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Chewy', cursive;
    color: var(--text-dark);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.handwritten {
    font-family: 'Kalam', cursive;
    color: var(--text-dark);
}

p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    max-width: 60ch;
}

/* --- Scribble Underline Keyword --- */
.keyword {
    position: relative;
    display: inline-block;
    font-family: 'Kalam', cursive;
    font-weight: 700;
}

.keyword svg.scribble {
    position: absolute;
    bottom: -6px;
    left: -4px;
    width: calc(100% + 8px);
    height: 12px;
    pointer-events: none;
}

.keyword svg.scribble path {
    fill: none;
    stroke: var(--coral);
    stroke-width: 3;
    stroke-linecap: round;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 249, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(61,43,31,0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand .leaf-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-brand .brand-logo {
    height: 42px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.nav-brand span {
    font-family: 'Chewy', cursive;
    font-size: 1.35rem;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #7ab866;
}

.nav-cta {
    display: inline-block;
    background: var(--coral);
    color: var(--white) !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-cta:hover {
    background: transparent;
    border-color: var(--coral);
    color: var(--coral) !important;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-text h1 .highlight {
    color: #7ab866;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 36px;
    color: var(--text-body);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrap {
    position: relative;
}

/* Wobbly SVG Border for hero image */
.wobbly-frame {
    position: relative;
    display: inline-block;
}

.wobbly-frame img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.wobbly-frame svg.wobbly-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Doodle decorations */
.doodle {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.doodle.sun {
    top: -30px;
    right: -20px;
    width: 80px;
    height: 80px;
    animation: float 5s ease-in-out infinite;
}

.doodle.flower {
    bottom: -20px;
    left: -25px;
    width: 60px;
    height: 60px;
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.btn-primary {
    background: var(--coral);
    color: var(--text-dark);
}

.btn-primary:hover {
    animation: jiggle 0.4s ease;
    box-shadow: 0 4px 16px rgba(255, 139, 139, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--lavender);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--lavender);
    animation: jiggle 0.4s ease;
}

@keyframes jiggle {
    0% { transform: rotate(0); }
    20% { transform: rotate(-2deg); }
    40% { transform: rotate(2deg); }
    60% { transform: rotate(-1deg); }
    80% { transform: rotate(1deg); }
    100% { transform: rotate(0); }
}

/* ============================================
   GRASS DIVIDER
   ============================================ */
.grass-divider {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.grass-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.grass-divider.flip {
    transform: scaleY(-1);
    margin-bottom: -1px;
    margin-top: 0;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-section {
    padding: 110px 0 70px 0;
    background: var(--buttercream);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Side: Image & Avatars */
.about-image-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-image-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.about-main-img {
    width: 90%;
    max-height: 400px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    display: block;
    transform: translateY(-70px);
}

.about-quote-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    background: var(--primary-bg);
    border: 2px dashed var(--coral);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(61,43,31,0.05);
    z-index: 2;
}

.about-quote-card .quote-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-body);
}

.about-quote-card .quote-text strong {
    color: var(--text-dark);
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-author .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-author .author-info {
    display: flex;
    flex-direction: column;
}

.quote-author .author-info strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.quote-author .author-info span {
    color: var(--coral);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Avatars Wrap */
.about-avatars-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 20px;
}

.avatars-group {
    display: flex;
}

.avatars-group img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-bg);
    margin-left: -16px;
}

.avatars-group img:first-child {
    margin-left: 0;
}

.avatars-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.avatars-text strong {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.avatars-text span {
    color: var(--text-body);
    font-size: 0.85rem;
}

/* Right Side: Stats & Content */
.about-content-col {
    display: flex;
    gap: 40px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 120px;
    padding-top: 10px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.stat-item p {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-body);
    text-transform: uppercase;
    margin: 0;
}

.about-text-content {
    flex: 1;
}

.about-text-content h2 {
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-text-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-body);
    max-width: 100%;
}

.about-text-content p strong {
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content-col {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: flex-start;
        gap: 60px;
        min-width: auto;
        padding-top: 0;
        margin-bottom: 30px;
    }
    
    .about-image-wrapper {
        padding-bottom: 60px;
    }
    
    .about-quote-card {
        width: 90%;
        bottom: 0;
    }
}

/* ============================================
   NATURE vs CONCRETE  (Comparison)
   ============================================ */
.comparison-section {
    padding: 100px 0;
}

.comparison-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   T-CHART COMPARISON (SCRAPBOOK THEME)
   ============================================ */
.comparison-t-chart {
    background: var(--white);
    border: 3px solid var(--text-dark);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: var(--shadow-sticker);
    position: relative;
    max-width: 960px;
    margin: 60px auto 0;
    overflow: hidden;
    transform: rotate(-0.5deg);
}

/* Faint scrapbook graph paper pattern inside the card */
.comparison-t-chart::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(61, 43, 31, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 43, 31, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.t-chart-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Vertical divider line drawn down the center */
.t-chart-divider {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background-color: var(--text-dark);
    border-radius: 5px;
}

.t-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.t-chart-col h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
}

/* Horizontal underline drawn beneath header */
.t-chart-underline {
    width: 85%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 5px;
    margin-bottom: 35px;
}

.t-chart-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    width: 100%;
    padding-left: 24px;
}

.t-chart-col ul li {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-body);
    font-weight: 600;
    position: relative;
}

/* Whimsical custom T-chart bullet marks */
.left-col ul li::before {
    content: '✕';
    position: absolute;
    left: -24px;
    top: 2px;
    color: var(--coral);
    font-weight: bold;
    font-size: 0.95rem;
}

.right-col ul li::before {
    content: '✿';
    position: absolute;
    left: -24px;
    top: 2px;
    color: #6a9e56;
    font-weight: bold;
    font-size: 0.95rem;
}

/* Responsive collapse on mobile */
@media (max-width: 768px) {
    .comparison-t-chart {
        padding: 40px 20px;
        transform: none;
    }
    
    .t-chart-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .t-chart-divider {
        display: none; /* Hide vertical divider on mobile stack */
    }
    
    .t-chart-underline {
        width: 70%;
        margin-bottom: 24px;
    }
    
    .t-chart-col ul {
        padding-left: 28px;
        gap: 16px;
    }
}

/* ============================================
   BLOB CONTAINERS  (School Life)
   ============================================ */
.school-life-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.school-life-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.blob-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 36px;
}

.blob-card {
    background: var(--pink-mist);
    padding: 32px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    text-align: center;
    transition: all 0.5s var(--spring-ease);
    position: relative;
}

.blob-card:nth-child(2) {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

.blob-card:nth-child(3) {
    border-radius: 50% 50% 30% 70% / 40% 60% 50% 50%;
}

.blob-card:hover {
    border-radius: 50%;
    transform: scale(1.03);
}

.blob-card .blob-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.blob-card h3 {
    margin-bottom: 12px;
}

.blob-card p {
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ============================================
   STICKER EFFECT  (Images & Cards)
   ============================================ */
.sticker {
    transform: rotate(-1.5deg);
    border: 1px solid rgba(61,43,31,0.12);
    box-shadow: var(--shadow-sticker);
    transition: transform 0.4s var(--spring-ease);
    border-radius: 6px;
    overflow: hidden;
}

.sticker:nth-child(even) {
    transform: rotate(1.2deg);
}

.sticker:hover {
    transform: rotate(0deg) scale(1.04);
}

.sticker img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ============================================
   PROGRAMMES
   ============================================ */
.programmes-section {
    padding: 100px 0;
    background: var(--pink-mist);
}

.thick-underline {
    width: 60px;
    height: 8px;
    background: var(--buttercream);
    border-radius: 4px;
    margin-bottom: 40px;
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prog-card {
    height: 320px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.prog-card-inner {
    width: 100%;
    height: 100%;
}

.prog-card-front, .prog-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.prog-card-front {
    background: var(--buttercream);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.prog-card-front img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.prog-banner {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.prog-banner h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

.prog-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.prog-card-back {
    background: var(--white);
    padding: 24px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.prog-card:hover .prog-card-back {
    opacity: 1;
    visibility: visible;
}

.prog-card-back .back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.prog-card-back .back-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

.prog-card-back .prog-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prog-card-back .prog-details li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prog-card-back .prog-details .icon {
    font-size: 1.5rem;
}

.prog-card-back .prog-details div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.prog-card-back .prog-details div strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.prog-card-back .prog-details div span {
    color: var(--text-body);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   POLAROID TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--sky-mist);
    position: relative;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    justify-items: center;
}

.polaroid {
    background: var(--white);
    padding: 12px 12px 36px;
    box-shadow: 4px 6px 20px rgba(61,43,31,0.12);
    transform: rotate(-1.5deg);
    transition: transform 0.5s var(--spring-ease);
    max-width: 250px;
    width: 100%;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 6px 8px 28px rgba(61,43,31,0.16);
}

.polaroid .video-wrap {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #f0ece4;
    overflow: hidden;
    position: relative;
}

.polaroid .video-wrap iframe,
.polaroid .video-wrap img,
.polaroid .video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.polaroid .video-wrap .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.3s;
}

.polaroid .video-wrap .play-overlay:hover {
    background: rgba(0,0,0,0.25);
}

.polaroid .video-wrap .play-overlay svg {
    width: 56px;
    height: 56px;
    fill: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.polaroid .caption {
    padding: 16px 4px 0;
    text-align: center;
}

.polaroid .caption .name {
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.polaroid .caption .role {
    font-size: 0.9rem;
    color: var(--text-body);
    opacity: 0.7;
    margin-top: 2px;
    font-weight: 600;
}

/* ============================================
   MEET THE TEAM — SCRAPBOOK THEME
   ============================================ */
.team-section {
    position: relative;
    background-color: var(--primary-bg);
    /* Faint scrapbook graph paper pattern */
    background-image: 
        linear-gradient(rgba(61, 43, 31, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 43, 31, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow: hidden;
    padding: 100px 0;
}

/* Faint floating watercolor gradient blobs for a playful garden depth */
.team-section::before {
    content: '';
    position: absolute;
    top: 5%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 216, 240, 0.4) 0%, rgba(167, 216, 240, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(214, 196, 225, 0.4) 0%, rgba(214, 196, 225, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Scattered background doodles */
.team-bg-doodle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12; /* Subtle background texture */
    max-width: 120px;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.5s var(--spring-ease), opacity 0.3s;
}

.team-bg-doodle:hover {
    transform: scale(1.15) rotate(8deg);
    opacity: 0.25;
}

/* Custom wobbly avatar containers that crop faculty images into uniform sticker-style circles */
.faculty-avatar-container {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden; /* Crops everything uniformly inside the wobbly border */
    margin: 0 auto 15px;
    transition: all 0.3s var(--spring-ease);
    z-index: 2;
    box-shadow: var(--shadow-sticker);
}

/* Internal background blob for the dashed border line effect in the scrapbook theme */
.faculty-bg-blob {
    position: absolute;
    inset: 6px; /* slightly inset to create a dashed frame outline inside the sticker */
    border-radius: inherit; /* inherits wobbly shape of container */
    border: 2px dashed rgba(61,43,31,0.15);
    z-index: 1; /* sits behind the photo */
    pointer-events: none;
    transition: all 0.4s var(--spring-ease);
}

/* Wobbly shape definitions with soft pastel colors matching theme (cycled every 7 cards) */
.faculty-card:nth-child(7n+1) .faculty-avatar-container {
    border-radius: 60% 40% 50% 50% / 60% 50% 50% 40%;
    background-color: #E3D7ED; /* Soft lavender */
    border: 3px solid var(--white);
}

.faculty-card:nth-child(7n+2) .faculty-avatar-container {
    border-radius: 40% 60% 45% 55% / 45% 55% 45% 55%;
    background-color: #C4E6F7; /* Soft sky-mist */
    border: 3px solid var(--white);
}

.faculty-card:nth-child(7n+3) .faculty-avatar-container {
    border-radius: 50% 50% 60% 40% / 50% 40% 60% 50%;
    background-color: #FFF8D4; /* Soft buttercream */
    border: 3px solid var(--white);
}

.faculty-card:nth-child(7n+4) .faculty-avatar-container {
    border-radius: 55% 45% 40% 60% / 40% 60% 40% 60%;
    background-color: #B8D1AD; /* Soft green-organic */
    border: 3px solid var(--white);
}

.faculty-card:nth-child(7n+5) .faculty-avatar-container {
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    background-color: #FAD4F5; /* Soft pink-mist */
    border: 3px solid var(--white);
}

.faculty-card:nth-child(7n+6) .faculty-avatar-container {
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    background-color: #FFD4D4; /* Soft coral */
    border: 3px solid var(--white);
}

.faculty-card:nth-child(7n) .faculty-avatar-container {
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    background-color: #FFF6C4; /* Soft yellow */
    border: 3px solid var(--white);
}

/* The faculty photo styling - cover ensures it fills the container and aligns top/center */
.faculty-photo {
    position: relative;
    z-index: 2; /* sits in front of the dashed border */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zooms/scales transparent PNGs & square JPGs uniformly */
    object-position: center top; /* Centers the face of the teachers */
    transition: transform 0.4s var(--spring-ease);
}

/* Interactive transitions on hover */
.faculty-card:hover .faculty-avatar-container {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 4px 8px 16px rgba(61,43,31,0.15);
}

.faculty-card:hover .faculty-photo {
    transform: scale(1.08); /* slight zoom in effect on hover */
}

.faculty-card:hover .faculty-bg-blob {
    transform: scale(0.96) rotate(-2deg); /* subtle counter-rotation on dashed border */
}

/* Placeholder styling for missing faculty photos (e.g. Junior KG) */
.faculty-placeholder-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 20px;
    color: var(--text-dark);
}

.faculty-placeholder-content .placeholder-emoji {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(61,43,31,0.1));
    animation: placeholder-bob 3s ease-in-out infinite;
}

.faculty-placeholder-content .placeholder-text {
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px dashed rgba(61,43,31,0.2);
}

@keyframes placeholder-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 100px 0;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(61,43,31,0.05);
}

.faq-question {
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(167,216,240,0.2);
}

.faq-question .faq-toggle {
    font-family: 'Kalam', cursive;
    font-size: 1.5rem;
    color: var(--coral);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

.faq-answer p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--coral);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    margin: 0 auto 36px;
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
}

.cta-section .btn-primary {
    background: var(--text-dark);
    color: var(--white);
}

.cta-section .btn-primary:hover {
    background: #2c1e14;
}

/* ============================================
   FOOTER (Wavy & Bubbles)
   ============================================ */
.footer {
    position: relative;
    background: transparent;
    padding: 0;
    margin-top: 100px;
    border-top: none;
}

.footer-wave {
    position: absolute;
    top: -118px; /* Adjusted based on SVG height */
    left: 0;
    width: 100%;
    line-height: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

.footer-content {
    background: var(--pink-mist);
    padding: 60px 0 30px;
    position: relative;
}

/* Floating Organic Elements */
.floating-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    animation: float-subtle 6s ease-in-out infinite;
}

.floating-deco svg {
    width: 100%;
    height: 100%;
    display: block;
}

.deco-1 { width: 80px; height: 80px; top: -20px; left: 5%; animation-delay: 0s; }
.deco-2 { width: 60px; height: 60px; top: 40%; right: 45%; animation-delay: 1.5s; opacity: 0.7; }
.deco-3 { width: 50px; height: 50px; bottom: 15%; left: 25%; animation-delay: 0.5s; opacity: 0.6; }
.deco-4 { width: 90px; height: 90px; top: 15%; right: 6%; animation-delay: 2s; }

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

.footer-top .nav-brand {
    flex-direction: column;
    gap: 12px;
}

.footer-top .nav-brand .leaf-icon {
    width: 80px;
    height: 80px;
}

.footer-top .nav-brand .brand-logo {
    height: 55px;
    max-width: 280px;
    margin-left: 0 !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    font-family: 'Chewy', cursive;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: normal;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-col ul li a:hover {
    color: var(--buttercream);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.footer-bottom .copyright {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-bottom .copyright a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom .copyright a:hover {
    color: var(--buttercream);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon.fb { background: #1877F2; }
.social-icon.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.yt { background: #FF0000; }

/* ============================================
   SPRING SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.8s var(--spring-ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header .section-label {
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    color: #7ab866;
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    margin: 0 auto;
    text-align: center;
    opacity: 0.7;
}

/* ============================================
   INSTAGRAM REELS
   ============================================ */
.reels-section {
    padding: 100px 0;
    background: var(--white);
}

.reels-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.reel-card {
    background: var(--white);
    padding: 12px;
    box-shadow: 4px 6px 20px rgba(61,43,31,0.08);
    border-radius: 16px;
    transform: rotate(1.5deg);
    transition: transform 0.5s var(--spring-ease);
    max-width: 250px;
    width: 100%;
}

.reel-card:nth-child(even) {
    transform: rotate(-1.5deg);
}

.reel-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 6px 8px 28px rgba(61,43,31,0.12);
}

.reel-video-wrap {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #f0ece4;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.reel-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.reel-video-wrap iframe {
    position: absolute;
    top: -54px;
    left: 0;
    width: 100%;
    height: calc(100% + 134px);
    border: none;
}

.reel-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

.reel-overlay svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   SCROLLING GALLERY
   ============================================ */
.scrolling-gallery-section {
    padding: 100px 0;
    background: var(--buttercream);
    overflow: hidden;
}

.scrolling-gallery-section .section-header {
    text-align: center;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 24px;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    min-width: 100%;
}

.marquee-track.track-left .marquee-content {
    animation: scroll-left 30s linear infinite;
}

.marquee-track.track-right .marquee-content {
    animation: scroll-right 30s linear infinite;
}

.gallery-img {
    width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sticker);
    border: 6px solid white;
    transform: rotate(2deg);
    transition: transform 0.4s var(--spring-ease);
}

.gallery-img:nth-child(even) {
    transform: rotate(-2deg);
}

.gallery-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.border-coral { border-color: var(--coral); }
.border-sky { border-color: var(--sky-mist); }
.border-butter { border-color: var(--buttercream); }
.border-lavender { border-color: var(--lavender); }
.border-green { border-color: var(--green-organic); }

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 24px)); }
}

@keyframes scroll-right {
    from { transform: translateX(calc(-100% - 24px)); }
    to { transform: translateX(0); }
}

/* ============================================
   ALTERNATIVE DIVIDERS (SCRAPBOOK THEME)
   ============================================ */

/* 1. Torn Paper Edge */
.divider-torn {
    width: 100%;
    height: 40px;
    background-color: var(--white);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 40' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 L0,20 L30,35 L60,15 L100,30 L150,10 L190,25 L240,5 L280,20 L320,10 L370,30 L420,15 L460,25 L500,5 L550,30 L600,10 L650,25 L700,5 L750,35 L800,15 L850,25 L900,10 L950,30 L1000,15 L1050,35 L1100,10 L1150,25 L1200,15 L1200,40 Z' /%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 40' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 L0,20 L30,35 L60,15 L100,30 L150,10 L190,25 L240,5 L280,20 L320,10 L370,30 L420,15 L460,25 L500,5 L550,30 L600,10 L650,25 L700,5 L750,35 L800,15 L850,25 L900,10 L950,30 L1000,15 L1050,35 L1100,10 L1150,25 L1200,15 L1200,40 Z' /%3E%3C/svg%3E");
    mask-size: 100% 100%;
    margin-top: -1px;
}

/* 2. Scalloped "Cloud" Bumps */
.divider-cloud {
    width: 100%;
    height: 40px;
    background-color: var(--white);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L0,0 C25,50 75,50 100,0 L100,50 Z' /%3E%3C/svg%3E");
    -webkit-mask-size: 80px 100%;
    -webkit-mask-repeat: repeat-x;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L0,0 C25,50 75,50 100,0 L100,50 Z' /%3E%3C/svg%3E");
    mask-size: 80px 100%;
    mask-repeat: repeat-x;
    margin-top: -1px;
}

/* 3. Wavy / Liquid Hills */
.divider-wave {
    width: 100%;
    height: 60px;
    background-color: var(--lavender);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 L0,20 C300,80 900,-40 1200,20 L1200,60 Z' /%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 L0,20 C300,80 900,-40 1200,20 L1200,60 Z' /%3E%3C/svg%3E");
    mask-size: 100% 100%;
    margin-top: -1px;
}

/* 4. Crayon Scribble Line */
.divider-scribble {
    width: 100%;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 C30,0 40,40 70,20 C100,0 120,40 150,20 C180,0 190,40 220,20 C250,0 270,40 300,20' fill='none' stroke='%233D2B1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='10 6 18 6 8 8' /%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 300px 40px;
}

/* 5. Washi Tape Connections */
.divider-washi-seam {
    position: relative;
    width: 100%;
    height: 60px; /* gap between sections */
    background: transparent;
    overflow: hidden;
}

.divider-washi-seam::before,
.divider-washi-seam::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 32px;
    opacity: 0.6;
    border-radius: 2px;
}

.divider-washi-seam::before {
    left: 20%;
    top: 14px;
    transform: rotate(-3deg);
    background: var(--sky-mist);
}

.divider-washi-seam::after {
    right: 25%;
    top: 10px;
    transform: rotate(4deg);
    background: var(--green-organic);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .programmes-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrap { max-width: 500px; margin: 0 auto; }

    .comparison-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,249,240,0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .paper-notes-grid { grid-template-columns: 1fr; }
    .blob-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .reels-grid { grid-template-columns: 1fr; }

    .gallery-img {
        width: 200px;
        height: 150px;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-top .nav-brand {
        gap: 8px;
    }

    .footer-top .nav-brand .leaf-icon {
        width: 65px;
        height: 65px;
    }

    .footer-top .nav-brand .brand-logo {
        height: 45px;
        max-width: 240px;
        margin-left: 0 !important;
    }

    .grass-divider { height: 50px; }

    .blob-card {
        border-radius: 24px !important;
    }
    .blob-card:hover {
        border-radius: 24px !important;
    }

    /* Responsive team section styles */
    .team-section {
        padding: 60px 0;
    }
    .team-bg-doodle {
        max-width: 70px;
        opacity: 0.08; /* subtler on smaller screens */
    }
}

@media (max-width: 480px) {
    .programmes-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    .hero { padding-top: 110px; }
    .btn { padding: 12px 28px; font-size: 0.85rem; }

    /* Hide background doodles on mobile to avoid card overlap */
    .team-bg-doodle {
        display: none;
    }
}

/* ============================================
   DECORATIVE SCRAPBOOK DOODLES
   ============================================ */
.scrapbook-doodle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
    width: auto;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.4s var(--spring-ease), opacity 0.3s;
}
.scrapbook-doodle:hover {
    transform: scale(1.1) rotate(5deg) !important;
    opacity: 1;
}

/* Specific positioning helper classes */
.doodle-hero-1 {
    top: -20px;
    left: -40px;
    width: 80px;
    transform: rotate(-15deg);
}

.doodle-hero-2 {
    bottom: -30px;
    right: -20px;
    width: 90px;
    transform: rotate(12deg);
}

.doodle-section-1 {
    top: -40px;
    left: 4%;
    width: 80px;
    transform: rotate(-10deg);
}

.doodle-section-2 {
    top: -20px;
    right: 5%;
    width: 70px;
    transform: rotate(15deg);
}

.doodle-card-corner {
    top: -25px;
    right: -15px;
    width: 60px;
    transform: rotate(15deg);
    z-index: 12;
}

.doodle-card-left {
    bottom: -20px;
    left: -15px;
    width: 60px;
    transform: rotate(-12deg);
    z-index: 12;
}

/* Ensure parents of absolute doodles have position: relative */
.hero-image-wrap,
.about-content-col,
.process-step,
.sticker,
.polaroid,
.info-card,
.requirements-card,
.section-header {
    position: relative;
}

/* Mobile Responsive Adjustments for Doodles */
@media (max-width: 768px) {
    .scrapbook-doodle {
        max-width: 45px !important;
        opacity: 0.65;
    }
    .doodle-hero-1 {
        left: -15px;
        top: -15px;
        width: 45px;
    }
    .doodle-hero-2 {
        right: -10px;
        bottom: -15px;
        width: 50px;
    }
    .doodle-card-corner {
        top: -15px;
        right: -10px;
        width: 40px;
    }
    .doodle-card-left {
        bottom: -10px;
        left: -10px;
        width: 40px;
    }
}

/* Whimsical Centered Rainbow Doodle */
.doodle-rainbow {
    position: absolute;
    top: -46px; /* float exactly in the cloud divider gap */
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(61,43,31,0.06));
    animation: float-rainbow 6s ease-in-out infinite;
}

@keyframes float-rainbow {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-6px) rotate(2deg); }
}

@media (max-width: 768px) {
    .doodle-rainbow {
        width: 90px;
        top: -30px;
    }
}

/* ============================================
   ADMISSION ENQUIRY POPUP
   ============================================ */
.enquiry-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--coral);
    color: var(--text-dark);
    padding: 14px 24px;
    border-radius: 50px;
    border: 3px solid var(--text-dark);
    font-family: 'Chewy', cursive;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sticker);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s var(--spring-ease), background 0.3s;
    animation: float-subtle 4s ease-in-out infinite;
}

.enquiry-trigger:hover {
    transform: scale(1.08) rotate(-2deg);
    background: var(--yellow);
}

.enquiry-trigger span {
    font-size: 1.2rem;
}

/* Modal Overlay */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(61, 43, 31, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.enquiry-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.enquiry-card {
    background: var(--primary-bg);
    border: 3px solid var(--text-dark);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(61,43,31,0.15);
    position: relative;
    transform: scale(0.8) rotate(-1.5deg);
    transition: transform 0.5s var(--spring-ease);
    overflow: hidden;
}

.enquiry-modal.active .enquiry-card {
    transform: scale(1) rotate(0deg);
}

/* Scrapbook graph paper decoration */
.enquiry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(61, 43, 31, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 43, 31, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.enquiry-card-inner {
    position: relative;
    z-index: 1;
}

/* Close Button */
.enquiry-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--text-dark);
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Kalam', cursive;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s var(--spring-ease), background 0.3s;
    line-height: 1;
    z-index: 10;
}

.enquiry-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--coral);
}

/* Header */
.enquiry-header {
    text-align: center;
    margin-bottom: 24px;
}

.enquiry-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.enquiry-header p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin: 0 auto;
    font-family: 'Kalam', cursive;
}

/* Form Styles */
.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.enquiry-form-group {
    display: flex;
    flex-direction: column;
}

.enquiry-form-group.full-width {
    grid-column: span 2;
}

.enquiry-form-group label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.enquiry-form-group input,
.enquiry-form-group select,
.enquiry-form-group textarea {
    border: 2px solid var(--text-dark);
    border-radius: 12px 6px 12px 6px / 6px 12px 6px 12px;
    padding: 10px 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.3s, transform 0.2s;
}

.enquiry-form-group input:focus,
.enquiry-form-group select:focus,
.enquiry-form-group textarea:focus {
    border-color: var(--green-organic);
    background: #fafdf7;
}

.enquiry-form-group textarea {
    resize: none;
    height: 80px;
}

/* Submit Button */
.enquiry-submit-btn {
    grid-column: span 2;
    background: var(--green-organic);
    color: var(--text-dark);
    border: 3px solid var(--text-dark);
    padding: 12px;
    border-radius: 50px;
    font-family: 'Chewy', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sticker);
    transition: transform 0.3s var(--spring-ease), background 0.3s;
    margin-top: 10px;
}

.enquiry-submit-btn:hover {
    transform: scale(1.03) rotate(1deg);
    background: var(--yellow);
}

/* Success Card */
.enquiry-success {
    text-align: center;
    padding: 20px 10px;
    display: none;
}

.enquiry-success.active {
    display: block;
    animation: scale-up 0.5s var(--spring-ease);
}

.enquiry-success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

.enquiry-success h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.enquiry-success p {
    font-size: 1.1rem;
    color: var(--text-body);
    font-family: 'Kalam', cursive;
    margin: 0 auto;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
    .enquiry-trigger {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
    
    .enquiry-card {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .enquiry-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .enquiry-form-group.full-width {
        grid-column: span 1;
    }
    
    .enquiry-submit-btn {
        grid-column: span 1;
    }
}

@keyframes scale-up {
    0% { transform: scale(0.8) rotate(-3deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}


