/* Friendly Training Center (FTC) - LittleSteps Inspired Custom Theme */
:root {
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --yellow: #facc15;
    --orange: #f97316;
    --green: #65a30d;
    --green-bright: #4ade80;
    --teal: #14b8a6;
    --pink: #ec4899;
    --coral: #fb7185;
    --blue: #3b82f6;
    --bg-cream: #fffdf9;
    --text-dark: #1e1b4b;
    --text-muted: #4b5563;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Kantumruy Pro', 'Fredoka', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Bar */
.top-header {
    padding: 18px 0;
    background: #ffffff;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

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

.flower-icon {
    width: 58px;
    height: 58px;
    background: radial-gradient(circle, #fde047 35%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
    border: 3px solid #fff;
}

.brand-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: #311068;
    line-height: 1.25;
}

.brand-text h1 span.abbr {
    color: var(--orange);
    font-weight: 800;
}

.brand-text p {
    font-size: 12.5px;
    color: #6b7280;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.phone-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ede9fe;
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.phone-details span {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.phone-details strong {
    font-size: 16px;
    color: var(--text-dark);
}

.lang-switcher {
    display: inline-flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.lang-switcher a {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    transition: all 0.2s;
}

.lang-switcher a.active {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.btn-enroll-top {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    padding: 11px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-enroll-top:hover {
    transform: translateY(-2px);
}

/* Rainbow Segmented Pill Navbar (Exact match to LittleSteps image) */
.rainbow-nav-wrap {
    margin-bottom: 24px;
}

.rainbow-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 3px solid #fff;
}

.rainbow-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: filter 0.2s;
    text-align: center;
}

.rainbow-nav a:hover {
    filter: brightness(1.08);
}

.nav-1 { background: #7c4dff; }
.nav-2 { background: #fbbf24; color: #1e1b4b !important; }
.nav-3 { background: #65a30d; }
.nav-4 { background: #2dd4bf; }
.nav-5 { background: #ec4899; }
.nav-6 { background: #f97316; }
.nav-7 { background: #3b82f6; }

/* Hero Section */
.hero-banner {
    background: linear-gradient(125deg, #f5f3ff 0%, #ede9fe 45%, #fef3c7 100%);
    border-radius: 32px;
    padding: 45px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.08);
    margin-bottom: 40px;
    border: 3px solid #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 35px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-content h2 {
    font-size: 38px;
    line-height: 1.3;
    color: #2e1065;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-content h2 span.highlight {
    color: var(--purple);
}

.hero-content p {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 26px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
    border: none;
    cursor: pointer;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.85);
    padding: 16px 20px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.hero-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

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

.hero-image-box img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 26px;
    border: 6px solid #ffffff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* 4 Colored Program Cards */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.prog-card {
    border-radius: 26px;
    padding: 24px 20px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s;
    position: relative;
    overflow: hidden;
}

.prog-card:hover {
    transform: translateY(-6px);
}

.prog-card.purple { background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%); }
.prog-card.orange { background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%); }
.prog-card.green  { background: linear-gradient(180deg, #65a30d 0%, #4d7c0f 100%); }
.prog-card.blue   { background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%); }

.prog-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.prog-card .age-badge {
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 14px;
    display: block;
    font-weight: 600;
}

.prog-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255,255,255,0.85);
    margin-bottom: 14px;
}

.prog-card p {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 18px;
    opacity: 0.95;
}

.prog-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.8);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    align-self: center;
}

.prog-btn:hover {
    background: #fff;
    color: var(--text-dark);
}

/* Middle Admission CTA Strip */
.cta-strip {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #ffedd5 100%);
    border: 2px solid #fde68a;
    border-radius: 24px;
    padding: 26px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 45px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
}

.cta-strip-text h3 {
    font-size: 22px;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.cta-strip-text p {
    font-size: 15px;
    color: #b45309;
    font-weight: 600;
}

.btn-cta-orange {
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: #fff;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    border: none;
    cursor: pointer;
}

/* Split Welcome & News Section */
.split-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    margin-bottom: 50px;
}

.section-heading {
    font-size: 24px;
    color: #2e1065;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-box-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 16px;
}

.welcome-box-grid img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.welcome-text p {
    font-size: 14.5px;
    color: #4b5563;
    margin-bottom: 12px;
}

.btn-green-pill {
    display: inline-block;
    background: #65a30d;
    color: #fff;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    background: #fff;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    align-items: center;
}

.news-card img {
    width: 130px;
    height: 105px;
    object-fit: cover;
    border-radius: 14px;
}

.news-meta {
    font-size: 12px;
    color: #f97316;
    font-weight: 700;
    margin-bottom: 4px;
}

.news-card h4 {
    font-size: 16px;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.news-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

/* Classes K-12 Schedule Table Section */
.classes-section {
    background: #ffffff;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    border: 2px solid #f3e8ff;
}

.table-responsive {
    overflow-x: auto;
}

.ftc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ftc-table th {
    background: #f5f3ff;
    color: #4c1d95;
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 2px solid #ddd6fe;
}

.ftc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.badge-level {
    background: #ede9fe;
    color: #6d28d9;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Captured Moments Gallery */
.gallery-section {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.gallery-title {
    font-size: 26px;
    color: #1e1b4b;
    margin-bottom: 28px;
    font-weight: 800;
}

.gallery-title span {
    color: #ec4899;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-item {
    background: #fff;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.04);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.gallery-item p {
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 8px;
    color: #374151;
}

/* Nature Green Hill Footer (Matching image) */
.hill-footer {
    background: linear-gradient(180deg, #65a30d 0%, #4d7c0f 100%);
    color: #ffffff;
    padding: 60px 0 25px 0;
    margin-top: -20px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
    gap: 30px;
    margin-bottom: 35px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #fef08a;
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fef08a;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.9;
    flex-wrap: wrap;
}

/* Modal Enrollment Form */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background: #fff;
    max-width: 580px;
    width: 100%;
    border-radius: 26px;
    padding: 30px 35px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-height: 92vh;
    overflow-y: auto;
    border-top: 8px solid var(--purple);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #374151;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
}

@media (max-width: 992px) {
    .rainbow-nav { grid-template-columns: repeat(4, 1fr); border-radius: 24px; }
    .hero-grid, .split-section { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .rainbow-nav { grid-template-columns: repeat(2, 1fr); }
    .programs-grid, .footer-grid, .form-grid, .welcome-box-grid { grid-template-columns: 1fr; }
}
