:root {
    --primary: #382d70;
    --primary-dark: #241b52;
    --primary-light: #f1eefa;
    --ink: #1d1832;
    --body-text: #494949;
    --muted: #7a7686;
    --line: #e6e2ef;
    --paper: #ffffff;
    --panel: #f7f5fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(56, 45, 112, 0.1);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1140px, calc(100% - 3rem));
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.6rem;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

h3 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1rem;
    color: var(--body-text);
}

ul {
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-mark {
    height: 42px;
    width: auto;
}

.logo.small .logo-mark {
    height: 32px;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--body-text);
}

.primary-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn.ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn.ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.small {
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
}

/* Page hero (inner pages) & detail hero */
.page-hero,
.detail-hero {
    padding: 3.75rem 0 2.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.page-hero .eyebrow,
.detail-hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.page-hero h1,
.detail-hero h1 {
    color: #fff;
    margin: 0;
}

/* Home hero */
.hero {
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(180deg, var(--panel) 0%, var(--paper) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.lead {
    font-size: 1.05rem;
    max-width: 46ch;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-copy {
    max-width: 560px;
}

.hero-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Section heading */
.section-heading {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Programs */
.programs {
    padding: 4.5rem 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.program-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(56, 45, 112, 0.16);
}

.program-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.program-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    flex: 1;
}

.program-card-body p {
    font-size: 0.92rem;
    margin: 0;
}

.more-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    align-self: flex-start;
}

.more-link:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials {
    padding: 4.5rem 0;
    background: var(--panel);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.quote-mark {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.35;
    margin-bottom: 0.5rem;
}

.quote-text {
    font-size: 0.92rem;
}

.quote-name {
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

/* Split block (about, books, faqs, blog wrapper) */
.split-block {
    padding: 4.5rem 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.split-grid.reverse .split-image {
    order: 2;
}

.split-grid.reverse .split-text {
    order: 1;
}

.split-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.split-text .name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.plain-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--body-text);
}

/* Books */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    display: flex;
    gap: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.book-cover {
    width: 110px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.book-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.book-title a {
    color: var(--ink);
}

.book-title a:hover {
    color: var(--primary);
}

.book-card p {
    font-size: 0.88rem;
    margin: 0;
}

/* Program detail pages */
.detail-grid {
    width: min(1140px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 3.5rem 0 4.5rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.detail-left img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.detail-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.value {
    font-weight: 700;
    color: var(--ink);
}

.enroll-btn {
    width: 100%;
    margin-top: 0.25rem;
}

.detail-right {
    max-width: 640px;
}

.overview-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.question {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.75rem 0 0.75rem;
}

.overview-label + .question {
    margin-top: 0;
}

.gains-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 0 1rem;
}

.gains-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--body-text);
}

.gains-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--primary);
}

/* FAQs */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.faq-question .icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-question .icon {
    transform: rotate(45deg);
}

.faq-item[data-open="true"] .faq-question {
    border-bottom: 1px solid var(--line);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item[data-open="true"] .faq-answer {
    max-height: 480px;
}

.faq-answer-inner {
    padding: 1.1rem 1.5rem 1.4rem;
    color: var(--body-text);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Blog listing */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.blog-card img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card-body time {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.blog-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
}

.readmore {
    margin-top: 0.25rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
}

.readmore:hover {
    text-decoration: underline;
}

/* Blog post detail */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.blog-back-link:hover {
    text-decoration: underline;
}

.blog-post-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.blog-post-body h1 {
    margin-bottom: 0.5rem;
}

.blog-related h4 {
    margin-bottom: 1rem;
}

.blog-related-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.blog-related-item:last-child {
    border-bottom: none;
}

.blog-related-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-related-item p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

/* Contact */
.contact {
    padding: 4.5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.contact-info-list .icon {
    display: inline-flex;
    margin-right: 0.4rem;
}

.contact-info-list a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    transition: background 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-block + .form-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin: -0.5rem 0 0;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font: inherit;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

.contact-form .btn.primary {
    align-self: flex-start;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 30;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    padding: 3.5rem 0 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
}

.footer-flex {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-flex p {
    font-size: 0.9rem;
}

.footer-flex h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--body-text);
    margin: 0;
    padding: 0;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

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

/* Responsive */
@media (max-width: 860px) {
    .hero-grid,
    .split-grid,
    .contact-grid,
    .detail-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .split-grid.reverse .split-image,
    .split-grid.reverse .split-text {
        order: initial;
    }

    .footer-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .primary-nav.open {
        max-height: 360px;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .primary-nav li {
        padding: 0.75rem 1.5rem;
    }

    .header-flex {
        position: relative;
    }

    .book-card {
        flex-direction: column;
    }

    .book-cover {
        width: 100%;
        height: 220px;
    }
}
