/* ----- reset & base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #faf8f6;
    color: #1e1e2a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: #1e3c5f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- header / nav ----- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eae6e0;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e3c5f;
}
.logo span {
    color: #b8863a;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a {
    color: #2d3a4a;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #b8863a;
    text-decoration: none;
}
.nav-links a.active {
    color: #b8863a;
    font-weight: 600;
}

.header-cta {
    background: #1e3c5f;
    color: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.header-cta:hover {
    background: #143049;
    text-decoration: none;
}

/* ----- hero ----- */
.hero {
    padding: 64px 0 56px;
    background: linear-gradient(135deg, #f4f0ea 0%, #eae4db 100%);
    border-bottom: 1px solid #ddd8d0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #1e2c3a;
    margin-bottom: 20px;
}
.hero h1 .highlight {
    color: #b8863a;
}

.hero p {
    font-size: 1.15rem;
    color: #334155;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 28px;
}
.hero-badges span {
    background: #ffffffcc;
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d6cec4;
    color: #1e3c5f;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.btn-primary {
    background: #1e3c5f;
    color: #fff;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-block;
}
.btn-primary:hover {
    background: #143049;
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: #1e3c5f;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #1e3c5f;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}
.btn-secondary:hover {
    background: #1e3c5f0c;
    text-decoration: none;
}

.hero-image {
    background: #d9d2c8;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: #2d3a4a;
    font-weight: 500;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.08"><path d="M20 80 L30 40 L45 70 L60 20 L80 60 L90 30" stroke="%231e3c5f" stroke-width="3" fill="none"/><circle cx="30" cy="40" r="4" fill="%231e3c5f"/><circle cx="60" cy="20" r="4" fill="%231e3c5f"/><circle cx="90" cy="30" r="4" fill="%231e3c5f"/></svg>');
    background-repeat: repeat;
    background-size: 80px 80px;
}
.hero-image strong {
    font-size: 1.4rem;
    background: #ffffffd9;
    padding: 12px 28px;
    border-radius: 60px;
    backdrop-filter: blur(2px);
}

/* ----- section shared ----- */
section {
    padding: 64px 0;
    border-bottom: 1px solid #eae6e0;
}
section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e2c3a;
    margin-bottom: 12px;
}
.section-sub {
    font-size: 1.05rem;
    color: #4b5a6b;
    max-width: 680px;
    margin-bottom: 36px;
}

/* ----- about ----- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.about-text p {
    margin-bottom: 18px;
    color: #2d3a4a;
}
.about-highlights {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}
.about-highlights li {
    padding: 10px 0 10px 32px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23b8863a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') left center no-repeat;
    background-size: 20px;
    border-bottom: 1px solid #f0ebe5;
}
.about-highlights li:last-child {
    border-bottom: none;
}

.about-card {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #eae6e0;
}
.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c5f;
    margin-bottom: 8px;
}
.about-card p {
    color: #3d4b5c;
    font-size: 0.95rem;
}

/* ----- courses ----- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 12px;
}

.course-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #eae6e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.25s;
}
.course-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.course-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e2c3a;
    margin-bottom: 6px;
}
.course-card .tag {
    display: inline-block;
    background: #eae4db;
    padding: 2px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e3c5f;
    margin-bottom: 12px;
}
.course-card ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.course-card ul li {
    padding: 6px 0 6px 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23b8863a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') left center no-repeat;
    background-size: 16px;
    font-size: 0.92rem;
    color: #334155;
}

/* ----- results / stats ----- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 24px 0 8px;
}
.stat-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid #eae6e0;
}
.stat-item .number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e3c5f;
    display: block;
    line-height: 1.2;
}
.stat-item .label {
    font-size: 0.9rem;
    color: #4b5a6b;
}

/* ----- testimonials ----- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.testimonial {
    background: #ffffff;
    padding: 24px 22px;
    border-radius: 20px;
    border: 1px solid #eae6e0;
}
.testimonial .quote {
    font-style: italic;
    color: #2d3a4a;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.testimonial .attribution {
    font-weight: 600;
    color: #1e3c5f;
    font-size: 0.9rem;
}

/* ----- contact ----- */
.contact-section {
    background: #f0ebe5;
    border-radius: 24px;
    padding: 48px 40px;
    margin-top: 12px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2c3a;
    margin-bottom: 8px;
}
.contact-info p {
    color: #334155;
    margin-bottom: 20px;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #d6cec4;
}
.contact-detail:last-child {
    border-bottom: none;
}
.contact-detail .icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d6cec4;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    margin-bottom: 16px;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e3c5f;
    box-shadow: 0 0 0 3px #1e3c5f1a;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ----- BLOG LIST ----- */
.blog-section {
    padding: 48px 0 64px;
}
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px 0 40px;
}
.blog-post-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 30px;
    border: 1px solid #eae6e0;
    transition: box-shadow 0.2s;
}
.blog-post-item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.blog-post-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e2c3a;
    margin-bottom: 6px;
}
.blog-post-item h3 a {
    color: #1e2c3a;
}
.blog-post-item h3 a:hover {
    color: #b8863a;
    text-decoration: none;
}
.blog-meta {
    font-size: 0.85rem;
    color: #6b7a8b;
    margin-bottom: 10px;
}
.blog-excerpt {
    color: #334155;
    margin-bottom: 8px;
}
.blog-read-more {
    font-weight: 600;
    color: #1e3c5f;
}
.blog-read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 16px;
    flex-wrap: wrap;
}
.pagination button {
    background: #ffffff;
    border: 1px solid #d6cec4;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e3c5f;
    cursor: pointer;
    transition: all 0.15s;
}
.pagination button:hover:not(:disabled) {
    background: #1e3c5f;
    color: #ffffff;
    border-color: #1e3c5f;
}
.pagination button.active {
    background: #1e3c5f;
    color: #fff;
    border-color: #1e3c5f;
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ----- BLOG DETAIL ----- */
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 500;
    color: #1e3c5f;
    cursor: pointer;
}
.back-link:hover {
    color: #b8863a;
    text-decoration: underline;
}
.blog-detail h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e2c3a;
    margin-bottom: 8px;
}
.blog-body {
    color: #2d3a4a;
    font-size: 1.05rem;
    line-height: 1.8;
}
.blog-body p {
    margin-bottom: 18px;
}

/* ----- footer ----- */
.site-footer {
    background: #1e2c3a;
    color: #cbd5e1;
    padding: 40px 0 32px;
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-inner a {
    color: #cbd5e1;
}
.footer-inner a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-links {
    display: flex;
    gap: 28px;
}

/* ----- responsive ----- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 16px;
    }
    .nav-links {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        gap: 18px;
        font-size: 0.9rem;
    }
    .header-cta {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-section {
        padding: 32px 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .blog-post-item {
        padding: 20px;
    }
    .blog-detail h1 {
        font-size: 1.8rem;
    }
}