/* ==========================================================================
   East West School Page — Scoped Styles
   Loaded conditionally by the East West School page template.
   ========================================================================== */


/* ── Intro Section ────────────────────────────────────────────────────── */
.hw-ews-intro {
    background: var(--hw-bg-cream);
    text-align: center;
    padding: var(--hw-space-2xl) var(--hw-space-lg) var(--hw-space-xl);
}

.hw-ews-intro__heading {
    font-family: var(--hw-font-heading);
    font-size: 2.5rem;
    color: var(--hw-brown);
    margin-bottom: var(--hw-space-lg);
    line-height: 1.15;
}

.hw-ews-intro__body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--hw-text);
}

.hw-ews-intro__body p {
    margin-bottom: var(--hw-space-md);
}

.hw-ews-intro__body p:last-child {
    margin-bottom: 0;
}


/* ── Curve Dividers ───────────────────────────────────────────────────── */
.hw-ews-page .hw-curve-divider--cream-to-white {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: -1px;
    background: var(--hw-bg-cream);
}

.hw-ews-page .hw-curve-divider--white-to-cream {
    display: block;
    width: 100%;
    height: 48px;
    margin-bottom: -1px;
    background: var(--hw-bg);
}


/* ==========================================================================
   Course Tiles — One per course, image + content side by side
   ========================================================================== */

.hw-ews-courses {
    background: var(--hw-bg);
    padding: var(--hw-space-2xl) var(--hw-space-lg);
}

.hw-ews-tiles {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

/* Each tile is a clickable card link */
.hw-ews-tile {
    display: grid;
    grid-template-columns: 2fr 3fr;
    background: #fff;
    border: 1px solid var(--hw-border-light, #ece7df);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hw-ews-tile:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Featured tile (Professional) gets green accent */
.hw-ews-tile--featured {
    border-color: var(--hw-green, #2d5a27);
    border-width: 2px;
}

/* ── Image column ── */
.hw-ews-tile__image {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--hw-green-pale, #e8f0e6);
}

.hw-ews-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hw-ews-tile:hover .hw-ews-tile__image img {
    transform: scale(1.04);
}

.hw-ews-tile__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0e6 0%, #d4e8d0 100%);
    font-size: 4rem;
    opacity: 0.35;
}

/* Badge overlay */
.hw-ews-tile__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--hw-earth, #8b6914);
}

.hw-ews-tile__badge--pro {
    background: rgba(45, 90, 39, 0.92);
    color: #fff;
}

/* ── Content column ── */
.hw-ews-tile__body {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
}

.hw-ews-tile__title {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--hw-brown, #3d2b1f);
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.hw-ews-tile__desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--hw-text-light, #5a5a5a);
    margin-bottom: 1.25rem;
}

.hw-ews-tile__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hw-border-light, #ece7df);
}

.hw-ews-tile__features li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: var(--hw-text-light, #5a5a5a);
    line-height: 1.55;
}

.hw-ews-tile__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hw-green, #2d5a27);
    font-weight: 700;
}

/* CTA styled as inline link within the clickable card */
.hw-ews-tile__cta {
    display: inline-block;
    margin-top: auto;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hw-green, #2d5a27);
    transition: color 0.2s;
}

.hw-ews-tile:hover .hw-ews-tile__cta {
    color: var(--hw-green-light, #3e7a35);
}


/* ==========================================================================
   Learning Center Section
   ========================================================================== */

.hw-ews-learning-center {
    background: var(--hw-bg-cream, #f8f5ef);
    padding: var(--hw-space-2xl) var(--hw-space-lg);
}

.hw-ews-lc__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: var(--hw-max-width, 1100px);
    margin: 0 auto;
}

.hw-ews-lc__text h2 {
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hw-brown, #3d2b1f);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.hw-ews-lc__text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--hw-text-light, #5a5a5a);
    margin-bottom: 1em;
}

.hw-ews-lc__text .hw-btn {
    margin-top: 0.5rem;
}

.hw-ews-lc__photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
}

.hw-ews-lc__photo-item {
    border-radius: 8px;
    overflow: hidden;
}

.hw-ews-lc__photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hw-ews-lc__photo-item--1 {
    grid-row: span 2;
}

.hw-ews-lc__photo-item--2,
.hw-ews-lc__photo-item--3 {
    aspect-ratio: 4 / 3;
}

.hw-ews-lc__photo-placeholder {
    background: linear-gradient(135deg, var(--hw-green-pale, #e8f0e6) 0%, #d4e8d0 50%, var(--hw-earth-pale, #faf5e8) 100%);
    border-radius: 12px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hw-ews-lc__placeholder-inner {
    text-align: center;
    color: var(--hw-text-muted, #8a8a8a);
}

.hw-ews-lc__placeholder-inner span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.hw-ews-lc__placeholder-inner p {
    font-size: 0.9rem;
    font-style: italic;
}


/* ==========================================================================
   Testimonials
   ========================================================================== */

.hw-ews-testimonials {
    background: var(--hw-bg, #fff);
    padding: var(--hw-space-2xl) var(--hw-space-lg);
}

.hw-ews-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    max-width: var(--hw-max-width, 1100px);
    margin: 0 auto;
}

.hw-ews-testimonial {
    background: var(--hw-bg-cream, #f8f5ef);
    border: 1px solid var(--hw-border-light, #ece7df);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hw-ews-testimonial__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 3px solid var(--hw-green-pale, #e8f0e6);
}

.hw-ews-testimonial__photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hw-green-pale, #e8f0e6);
    color: var(--hw-green, #2d5a27);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hw-font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hw-ews-testimonial__quote {
    font-family: var(--hw-font-body, 'Source Sans 3', sans-serif);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--hw-text, #2c2c2c);
    font-style: italic;
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
}

.hw-ews-testimonial__author {
    margin-top: auto;
}

.hw-ews-testimonial__author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--hw-text, #2c2c2c);
    margin-bottom: 0.2rem;
}

.hw-ews-testimonial__author span {
    font-size: 0.75rem;
    color: var(--hw-text-muted, #8a8a8a);
    line-height: 1.4;
}


/* ── Why Study Section ────────────────────────────────────────────────── */
.hw-ews-why {
    background: var(--hw-bg-cream);
    padding: var(--hw-space-2xl) var(--hw-space-lg);
}

.hw-ews-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hw-space-lg);
    max-width: var(--hw-max-width);
    margin: 0 auto;
}

.hw-ews-why__item { text-align: center; }

.hw-ews-why__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--hw-space-md);
    color: var(--hw-green);
}

.hw-ews-why__icon svg { width: 48px; height: 48px; }

.hw-ews-why__item h3 {
    font-family: var(--hw-font-heading);
    font-size: 1.1rem;
    color: var(--hw-brown);
    margin-bottom: var(--hw-space-sm);
}

.hw-ews-why__item p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--hw-text-light);
}


/* ── Instructor Section ───────────────────────────────────────────────── */
.hw-ews-instructor {
    background: var(--hw-bg);
    padding: var(--hw-space-2xl) var(--hw-space-lg);
}

.hw-ews-instructor__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--hw-space-2xl);
    align-items: center;
    max-width: var(--hw-max-width);
    margin: 0 auto;
}

.hw-ews-instructor__img {
    width: 100%;
    border-radius: var(--hw-radius-lg);
    box-shadow: var(--hw-shadow-md);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.hw-ews-instructor__placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, var(--hw-bg-cream) 0%, #e2e4d5 100%);
    border-radius: var(--hw-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hw-shadow-sm);
}

.hw-ews-instructor__placeholder span { font-size: 4rem; opacity: 0.35; }
.hw-ews-instructor__bio .hw-eyebrow { margin-bottom: var(--hw-space-sm); }

.hw-ews-instructor__bio h2 {
    font-size: 2rem;
    color: var(--hw-brown);
    margin-bottom: var(--hw-space-md);
}

.hw-ews-instructor__bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--hw-text);
    margin-bottom: var(--hw-space-md);
}

.hw-ews-instructor__bio .hw-btn { margin-top: var(--hw-space-sm); }


/* ── CTA Section ──────────────────────────────────────────────────────── */
.hw-ews-cta {
    background: linear-gradient(135deg, var(--hw-green) 0%, var(--hw-green-dark) 60%, var(--hw-leaf) 100%);
    color: var(--hw-white);
    padding: var(--hw-space-2xl) var(--hw-space-lg);
    position: relative;
    overflow: hidden;
}

.hw-ews-cta::before,
.hw-ews-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.hw-ews-cta::before { width: 300px; height: 300px; top: -80px; left: -60px; }
.hw-ews-cta::after { width: 200px; height: 200px; bottom: -50px; right: 10%; }
.hw-ews-cta .hw-section-inner { position: relative; z-index: 1; }

.hw-ews-cta h2 {
    color: var(--hw-white);
    font-size: 2rem;
    margin-bottom: var(--hw-space-md);
}

.hw-ews-cta p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto var(--hw-space-lg);
    line-height: 1.7;
}

.hw-ews-cta .hw-cta-buttons {
    display: flex;
    gap: var(--hw-space-md);
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .hw-ews-tile {
        grid-template-columns: 1fr;
    }

    .hw-ews-tile__image {
        min-height: 220px;
        max-height: 280px;
    }

    .hw-ews-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hw-ews-lc__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hw-ews-testimonials__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hw-ews-intro__heading {
        font-size: 2rem;
    }

    .hw-ews-tile__body {
        padding: 1.5rem;
    }

    .hw-ews-tile__title {
        font-size: 1.35rem;
    }

    .hw-ews-why__grid {
        grid-template-columns: 1fr;
        gap: var(--hw-space-xl);
    }

    .hw-ews-instructor__grid {
        grid-template-columns: 1fr;
        gap: var(--hw-space-xl);
    }

    .hw-ews-instructor__photo {
        max-width: 360px;
        margin: 0 auto;
    }

    .hw-ews-cta h2 {
        font-size: 1.6rem;
    }

    .hw-ews-testimonial {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hw-ews-intro__heading {
        font-size: 1.7rem;
    }

    .hw-ews-tile__image {
        min-height: 180px;
    }
}
