/* ========================================
   JUNIOR PAGE STYLES
   Pastel-accented, built on top of styles.css
   ======================================== */

/* ── Hero overrides ─────────────────────── */
.junior-hero {
    padding: 160px 0 70px;
    background: linear-gradient(135deg, #fff0f5 0%, #f0f4ff 60%, #f0fff8 100%);
    position: relative;
    overflow: hidden;
}

.junior-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><circle cx="40" cy="40" r="1.5" fill="%231a365d" opacity="0.08"/></svg>');
    background-size: 30px 30px;
    pointer-events: none;
}

/* Large pink glow blob top-right */
.junior-hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255,182,193,0.22) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    border-radius: 50%;
    pointer-events: none;
}

/* ── Split layout ── */
.junior-hero-split {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.junior-hero-content {
    text-align: left;
    position: relative;
    z-index: 1;
}

/* ── Image side ── */
.junior-hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-img-frame {
    position: relative;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(145deg, #ffb5c8 0%, #c8b8ff 50%, #b8e8ff 100%);
    box-shadow:
        0 20px 60px rgba(255, 150, 180, 0.30),
        0 6px 20px rgba(0, 0, 0, 0.10);
    animation: heroImgFloat 4s ease-in-out infinite;
}

@keyframes heroImgFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

.hero-img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

/* Floating tags mirroring the image's speech-bubbles */
.hero-float-tag {
    position: absolute;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    animation: tagFloat 3s ease-in-out infinite;
    pointer-events: none;
}

.tag-bold {
    background: #ffd6e7;
    color: #1a365d;
    top: 18%;
    left: -30px;
    animation-delay: 0s;
}

.tag-clear {
    background: #c8f5e0;
    color: #1a5c3a;
    top: 44%;
    left: -40px;
    animation-delay: 0.8s;
}

.tag-you {
    background: #fff3b0;
    color: #7a5c00;
    top: 68%;
    left: -24px;
    animation-delay: 1.6s;
}

@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.junior-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffb5c8;
    color: #1a365d;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(255,181,200,0.45);
    letter-spacing: 0.3px;
}

.junior-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1a365d;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.junior-hero-content h1 .hero-highlight {
    background: linear-gradient(120deg, #ff6b9d, #c850c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.junior-sub-badge {
    display: inline-block;
    background: #e8f4ff;
    color: #2d5aa0;
    border: 1.5px solid #b3d4f5;
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.junior-hero-content .hero-desc {
    font-size: 1.15rem;
    color: #4a5568;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-junior-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(26,54,93,0.25);
}

.btn-junior-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26,54,93,0.35);
}

.btn-junior-outline {
    background: transparent;
    color: #1a365d;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #1a365d;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-junior-outline:hover {
    background: #1a365d;
    color: white;
    transform: translateY(-3px);
}

/* ── Why Section ────────────────────────── */
.junior-why {
    padding: 6rem 0;
    background: #ffffff;
}

.junior-why .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0.75rem;
}

.junior-why .section-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.why-card {
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.why-card.give {
    background: #f0fff6;
    border: 1.5px solid #b8f0d0;
}

.why-card.others {
    background: #f8f0ff;
    border: 1.5px solid #ddc8f5;
}

.why-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.why-card.give .why-card-label {
    background: #d4f5e5;
    color: #1a6640;
}

.why-card.others .why-card-label {
    background: #e8d5fa;
    color: #5b21b6;
}

.why-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.25rem;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

.why-list li .wi {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

.why-card.give .wi {
    background: #10b981;
    color: white;
}

.why-card.others .wi {
    background: #d1d5db;
    color: #6b7280;
}

.why-bottom-text {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff0f5 0%, #f0f4ff 100%);
    border-radius: 16px;
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.7;
    border: 1.5px solid #e8d5f5;
}

.why-bottom-text strong {
    color: #1a365d;
}

/* ── How We Teach ────────────────────────── */
.junior-how {
    padding: 6rem 0;
    background: #f8f9ff;
    border-top: 1px solid #e8ecf5;
    border-bottom: 1px solid #e8ecf5;
}

.junior-how .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0.75rem;
}

.junior-how .section-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.how-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.25rem 1.75rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.how-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px;
}

.how-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.11);
}

.how-card:hover::before { opacity: 1; }

/* Per-card accent colors: border-top + icon bg gradient */
.how-card--1 { border-top-color: #ffb5c8; }
.how-card--2 { border-top-color: #b5f5c8; }
.how-card--3 { border-top-color: #ffd6a0; }
.how-card--4 { border-top-color: #b5c8ff; }
.how-card--5 { border-top-color: #ffb5f5; }
.how-card--6 { border-top-color: #ffe4a0; }
.how-card--7 { border-top-color: #a0f0e8; }
.how-card--8 { border-top-color: #d4b5ff; }

/* Icon circle */
.how-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    transition: transform 0.3s ease;
}

.how-card:hover .how-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}

.how-icon-wrap i {
    font-size: 1.65rem;
}

/* Per-card icon circle gradients */
.how-card--1 .how-icon-wrap { background: linear-gradient(135deg, #ffd6e7, #ffb5c8); }
.how-card--2 .how-icon-wrap { background: linear-gradient(135deg, #d6f5e3, #b5f5c8); }
.how-card--3 .how-icon-wrap { background: linear-gradient(135deg, #ffe8c0, #ffd6a0); }
.how-card--4 .how-icon-wrap { background: linear-gradient(135deg, #d6e4ff, #b5c8ff); }
.how-card--5 .how-icon-wrap { background: linear-gradient(135deg, #ffd6f8, #ffb5f5); }
.how-card--6 .how-icon-wrap { background: linear-gradient(135deg, #fff0c0, #ffe4a0); }
.how-card--7 .how-icon-wrap { background: linear-gradient(135deg, #c0f5f0, #a0f0e8); }
.how-card--8 .how-icon-wrap { background: linear-gradient(135deg, #e8d6ff, #d4b5ff); }

/* Icon colors */
.how-card--1 .how-icon-wrap i { color: #c0375a; }
.how-card--2 .how-icon-wrap i { color: #1a7a45; }
.how-card--3 .how-icon-wrap i { color: #b56a00; }
.how-card--4 .how-icon-wrap i { color: #1a365d; }
.how-card--5 .how-icon-wrap i { color: #8b1a8b; }
.how-card--6 .how-icon-wrap i { color: #8b6a00; }
.how-card--7 .how-icon-wrap i { color: #1a6a65; }
.how-card--8 .how-icon-wrap i { color: #5a1a9a; }

.how-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 0.4rem;
}

.how-card p {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}



/* ── FAQ ──────────────────────────────────── */
.junior-faq {
    padding: 6rem 0;
    background: #ffffff;
}

.junior-faq .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0.75rem;
}

.junior-faq .section-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    background: #fff;
}

.faq-item.open {
    border-color: #b3d4f5;
    box-shadow: 0 4px 16px rgba(45,90,160,0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f4ff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item.open .faq-toggle {
    background: #1a365d;
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.75;
    font-size: 0.97rem;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-grade-block {
    background: #f8f9ff;
    border-left: 3px solid #2d5aa0;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-grade-block:last-child {
    margin-bottom: 0;
}

.faq-grade-block strong {
    display: block;
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.faq-grade-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-grade-block ul li {
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.faq-grade-block ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2d5aa0;
}

/* ── CTA Section ─────────────────────────── */
.junior-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.junior-cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -200px;
    left: -200px;
    pointer-events: none;
}

.junior-cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.junior-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.junior-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.junior-cta-content p {
    color: rgba(255,255,255,0.88);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.junior-cta-content .cta-tagline {
    color: #ffb5c8;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.cta-boxes {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    flex: 1;
    max-width: 280px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-box:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.cta-box .cta-box-icon {
    font-size: 2.2rem;
}

.cta-box .cta-box-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
}

.cta-box .cta-box-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.cta-box.primary-box {
    background: #ffb5c8;
    border-color: #ffb5c8;
}

.cta-box.primary-box:hover {
    background: #ffa0ba;
    border-color: #ffa0ba;
}

.cta-box.primary-box .cta-box-title {
    color: #1a365d;
}

.cta-box.primary-box .cta-box-sub {
    color: rgba(26,54,93,0.75);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 992px) {
    .junior-hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .junior-hero-content { text-align: center; }
    .hero-cta-group { justify-content: center; }
    .junior-hero-image-wrap { margin-top: 1rem; }
    .hero-img { max-width: 360px; }
    .tag-bold  { left: 0; top: 8%;  }
    .tag-clear { left: 0; top: 38%; }
    .tag-you   { left: 0; top: 64%; }
    .junior-hero-content h1 { font-size: 2.5rem; }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .junior-hero { padding: 150px 0 60px; }
    .junior-hero-content h1 { font-size: 2rem; }

    .junior-why,
    .junior-how,
    .junior-faq,
    .junior-cta { padding: 4rem 0; }

    .junior-cta-content h2 { font-size: 2rem; }

    .cta-boxes { flex-direction: column; align-items: center; }
    .cta-box { max-width: 100%; width: 100%; }

    .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .junior-hero-content h1 { font-size: 1.7rem; }
    .how-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .hero-cta-group { flex-direction: column; align-items: center; }
}
