/* ==========================================================================
   Exploring Scholar Theme - Main Stylesheet
   Color palette matched to current Squarespace site
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --es-primary: #0a2caa;
    --es-primary-rgb: 10, 44, 170;
    --es-primary-light: #1a3cc0;
    --es-primary-dark: #071e7a;
    --es-accent: #f78f45;
    --es-accent-rgb: 247, 143, 69;
    --es-accent-light: #f9a76a;
    --es-accent-dark: #e07530;

    /* Neutrals */
    --es-white: #ffffff;
    --es-off-white: #fafafa;
    --es-gray-50: #f5f5f7;
    --es-gray-100: #efefef;
    --es-gray-200: #dcdcdc;
    --es-gray-300: #b0b0b0;
    --es-gray-500: #6b6b6b;
    --es-gray-700: #3a3a3a;
    --es-gray-900: #171627;
    --es-body-text: rgba(39, 25, 22, 0.85);

    /* Typography */
    --es-font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --es-font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --es-font-body: var(--es-font-en);

    /* Spacing */
    --es-section-padding: 80px;
    --es-container-width: 1200px;
    --es-gap: 24px;

    /* Borders & Radius */
    --es-radius-sm: 6px;
    --es-radius-md: 12px;
    --es-radius-lg: 20px;
    --es-radius-pill: 50px;

    /* Shadows */
    --es-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --es-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --es-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --es-shadow-card: 0 2px 16px rgba(10, 44, 170, 0.08);

    /* Transitions */
    --es-transition: 0.3s ease;
}

/* Chinese language body font override */
.lang-zh {
    --es-font-body: var(--es-font-zh);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--es-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--es-body-text);
    background-color: var(--es-off-white);
}

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

a {
    color: var(--es-primary);
    text-decoration: none;
    transition: color var(--es-transition);
}

a:hover {
    color: var(--es-primary-light);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--es-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

.lang-zh h1, .lang-zh h2, .lang-zh h3 {
    font-family: var(--es-font-zh);
}

/* ---------- Layout ---------- */
.es-container {
    max-width: var(--es-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.es-section {
    padding: var(--es-section-padding) 0;
}

.es-section-alt {
    background-color: var(--es-white);
}

.es-grid {
    display: grid;
    gap: var(--es-gap);
}

.es-grid-2 { grid-template-columns: repeat(2, 1fr); }
.es-grid-3 { grid-template-columns: repeat(3, 1fr); }
.es-grid-4 { grid-template-columns: repeat(4, 1fr); }

.es-text-center { text-align: center; }

/* ---------- Header & Navigation ---------- */
.es-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--es-white);
    box-shadow: var(--es-shadow-sm);
    transition: box-shadow var(--es-transition);
}

.es-header.scrolled {
    box-shadow: var(--es-shadow-md);
}

.es-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--es-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.es-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.es-logo img {
    height: 80px;
    width: auto;
}

/* Hide duplicate text when the full logo image (with text baked in) is used */
.es-logo img ~ .es-logo-text {
    display: none;
}

.es-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--es-primary);
    line-height: 1.2;
}

.es-logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--es-gray-500);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Primary Nav */
.es-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.es-nav .menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.es-nav .menu li a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--es-radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--es-white);
    background: var(--es-primary);
    transition: all var(--es-transition);
    white-space: nowrap;
}

.es-nav .menu li a:hover,
.es-nav .menu li.current-menu-item a,
.es-nav .menu li.current_page_item a {
    background: var(--es-primary-light);
    transform: translateY(-1px);
}

/* Header actions (language switcher + CTA) */
.es-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Language Switcher */
.es-lang-switcher {
    display: flex;
    list-style: none;
    gap: 4px;
    background: var(--es-gray-50);
    border-radius: var(--es-radius-pill);
    padding: 3px;
}

.es-lang-switcher li a {
    display: block;
    padding: 5px 14px;
    border-radius: var(--es-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--es-gray-700);
    text-transform: uppercase;
    transition: all var(--es-transition);
}

.es-lang-switcher li.current-lang a {
    background: var(--es-primary);
    color: var(--es-white);
}

.es-lang-switcher li a:hover {
    color: var(--es-primary);
}

/* Mobile Menu Toggle */
.es-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.es-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--es-gray-900);
    transition: all var(--es-transition);
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.es-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--es-radius-pill);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--es-transition);
    border: 2px solid transparent;
    line-height: 1.4;
}

.es-btn-primary {
    background: var(--es-accent);
    color: var(--es-white);
    border-color: var(--es-accent);
}

.es-btn-primary:hover {
    background: var(--es-accent-dark);
    border-color: var(--es-accent-dark);
    color: var(--es-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--es-accent-rgb), 0.4);
}

.es-btn-secondary {
    background: var(--es-primary);
    color: var(--es-white);
    border-color: var(--es-primary);
}

.es-btn-secondary:hover {
    background: var(--es-primary-light);
    border-color: var(--es-primary-light);
    color: var(--es-white);
    transform: translateY(-2px);
}

.es-btn-outline {
    background: transparent;
    color: var(--es-primary);
    border-color: var(--es-primary);
}

.es-btn-outline:hover {
    background: var(--es-primary);
    color: var(--es-white);
}

.es-btn-white {
    background: var(--es-white);
    color: var(--es-primary);
    border-color: var(--es-white);
}

.es-btn-white:hover {
    background: var(--es-gray-50);
    transform: translateY(-2px);
    color: var(--es-primary);
}

.es-btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.es-btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ---------- Hero Section ---------- */
.es-hero {
    position: relative;
    background: linear-gradient(135deg, var(--es-primary) 0%, var(--es-primary-dark) 100%);
    color: var(--es-white);
    padding: 100px 0 80px;
    overflow: hidden;
}

.es-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.es-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(var(--es-accent-rgb), 0.08);
}

.es-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.es-hero h1 {
    color: var(--es-white);
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
}

.es-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.es-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Chinese Hero */
.es-hero-chn {
    background: linear-gradient(135deg, rgba(10, 44, 170, 0.85) 0%, rgba(7, 30, 122, 0.9) 100%),
                url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?w=1920&q=80') center/cover no-repeat;
    text-align: center;
}

.es-hero-chn .es-hero-content {
    margin: 0 auto;
    text-align: center;
}

/* English Hero */
.es-hero-en {
    background: linear-gradient(135deg, rgba(10, 44, 170, 0.88) 0%, rgba(7, 30, 122, 0.95) 100%),
                url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1920&q=80') center/cover no-repeat;
}

/* Outline-white button (for use on dark hero backgrounds) */
.es-btn-outline-white {
    background: transparent;
    color: var(--es-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.es-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--es-white);
    color: var(--es-white);
}

/* Two-Column Layout (Chinese sections) */
.es-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.es-two-col-reverse {
    direction: ltr;
}

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

.es-two-col-text p:last-child {
    margin-bottom: 0;
}

/* Page Hero (smaller, for inner pages) */
.es-page-hero {
    background: linear-gradient(135deg, var(--es-primary) 0%, var(--es-primary-dark) 100%);
    color: var(--es-white);
    padding: 60px 0 40px;
    text-align: center;
}

.es-page-hero h1 {
    color: var(--es-white);
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.es-page-hero .es-breadcrumbs {
    margin-top: 12px;
}

.es-page-hero .es-breadcrumbs,
.es-page-hero .es-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.es-page-hero .es-breadcrumbs a:hover {
    color: var(--es-white);
}

.es-page-hero .es-breadcrumb-current {
    color: var(--es-white);
}

/* ---------- Section Headings ---------- */
.es-section-heading {
    margin-bottom: 48px;
}

.es-section-title {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
}

.es-text-center .es-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--es-accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

.es-section-subtitle {
    font-size: 1.1rem;
    color: var(--es-gray-500);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Feature Cards ---------- */
.es-feature-card {
    background: var(--es-white);
    border-radius: var(--es-radius-md);
    padding: 40px 32px;
    box-shadow: var(--es-shadow-card);
    transition: all var(--es-transition);
    border: 1px solid var(--es-gray-100);
}

.es-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--es-shadow-lg);
    border-color: rgba(var(--es-primary-rgb), 0.15);
}

.es-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--es-radius-md);
    background: linear-gradient(135deg, rgba(var(--es-primary-rgb), 0.1), rgba(var(--es-primary-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.es-feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.es-feature-desc {
    color: var(--es-gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

.es-feature-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--es-accent);
}

.es-feature-link:hover {
    color: var(--es-accent-dark);
}

.es-arrow {
    display: inline-block;
    transition: transform var(--es-transition);
}

.es-feature-link:hover .es-arrow {
    transform: translateX(4px);
}

/* ---------- Stats Bar ---------- */
.es-stats {
    background: var(--es-primary);
    color: var(--es-white);
    padding: 48px 0;
}

.es-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--es-gap);
    text-align: center;
}

.es-stat-block {
    padding: 16px;
}

.es-stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--es-accent);
}

.es-stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Testimonials ---------- */
.es-testimonial-card {
    background: var(--es-white);
    border-radius: var(--es-radius-md);
    padding: 32px;
    box-shadow: var(--es-shadow-card);
    border-left: 4px solid var(--es-accent);
}

.es-testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--es-gray-700);
}

.es-testimonial-text::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--es-accent);
    line-height: 0;
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.es-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.es-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--es-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--es-primary);
    font-size: 1.1rem;
}

.es-testimonial-name {
    font-weight: 600;
    color: var(--es-gray-900);
}

.es-testimonial-role {
    font-size: 0.85rem;
    color: var(--es-gray-500);
}

/* ---------- CTA Banner ---------- */
.es-cta-banner {
    background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-dark) 100%);
    color: var(--es-white);
    padding: 64px 0;
    text-align: center;
}

.es-cta-banner h2 {
    color: var(--es-white);
    font-size: 2rem;
    margin-bottom: 16px;
}

.es-cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Content Area ---------- */
.es-content {
    padding: 60px 0;
}

.es-content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.es-content h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.es-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.es-content ul, .es-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.es-content li {
    margin-bottom: 0.5em;
}

.es-content blockquote {
    border-left: 4px solid var(--es-accent);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: var(--es-gray-50);
    border-radius: 0 var(--es-radius-sm) var(--es-radius-sm) 0;
    font-style: italic;
}

.es-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.es-content th, .es-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--es-gray-200);
}

.es-content th {
    background: var(--es-primary);
    color: var(--es-white);
    font-weight: 600;
}

.es-content tr:hover td {
    background: var(--es-gray-50);
}

/* ---------- Password Form (Workbook pages) ---------- */
.es-password-form {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    background: var(--es-white);
    padding: 48px;
    border-radius: var(--es-radius-md);
    box-shadow: var(--es-shadow-md);
}

.es-password-form p {
    color: var(--es-gray-500);
    margin-bottom: 24px;
}

.es-password-input-group {
    display: flex;
    gap: 8px;
}

.es-password-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--es-gray-200);
    border-radius: var(--es-radius-pill);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--es-transition);
}

.es-password-input-group input:focus {
    border-color: var(--es-primary);
}

/* ---------- Blog / Archive ---------- */
.es-post-card {
    background: var(--es-white);
    border-radius: var(--es-radius-md);
    overflow: hidden;
    box-shadow: var(--es-shadow-card);
    transition: all var(--es-transition);
}

.es-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--es-shadow-lg);
}

.es-post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.es-post-card-body {
    padding: 24px;
}

.es-post-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.es-post-card-body h3 a {
    color: var(--es-gray-900);
}

.es-post-card-body h3 a:hover {
    color: var(--es-primary);
}

.es-post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--es-gray-500);
    margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.es-footer {
    background: var(--es-gray-900);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}

.es-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.es-footer-service-areas {
    columns: 2;
    column-gap: 16px;
    font-size: 0.88rem;
}

.es-footer-service-areas li {
    break-inside: avoid;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .es-footer-service-areas { columns: 1; }
}

.es-footer h4,
.es-footer .widget-title {
    color: var(--es-white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.es-footer-brand {
    max-width: 300px;
}

.es-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
}

.es-footer-brand .es-logo-text {
    color: var(--es-white);
}

.es-footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--es-transition);
}

.es-footer a:hover {
    color: var(--es-accent);
}

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

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

.es-footer ul li a {
    font-size: 0.9rem;
}

.es-footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.es-footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 24px;
}

.es-footer-legal a:hover {
    color: var(--es-accent);
}

/* ---------- Breadcrumbs ---------- */
.es-breadcrumbs {
    font-size: 0.9rem;
}

.es-breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* ---------- Pagination ---------- */
.es-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.es-pagination a,
.es-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--es-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--es-gray-200);
    color: var(--es-gray-700);
    transition: all var(--es-transition);
}

.es-pagination a:hover {
    border-color: var(--es-primary);
    color: var(--es-primary);
}

.es-pagination .current {
    background: var(--es-primary);
    color: var(--es-white);
    border-color: var(--es-primary);
}

/* ---------- Shop pagination (modern, obvious) ---------- */
.es-shop-pagination {
    margin: 56px auto 24px;
    display: flex;
    justify-content: center;
}
.es-shop-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.es-shop-pagination li { margin: 0; padding: 0; display: flex; }
.es-shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid #d8dde8;
    border-radius: 10px;
    color: var(--es-gray-900, #171627);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
    box-sizing: border-box;
}
.es-shop-pagination .page-numbers:hover {
    border-color: var(--es-primary, #0a2caa);
    color: var(--es-primary, #0a2caa);
    background: #f5f7fc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 44, 170, 0.12);
}
.es-shop-pagination .page-numbers.current,
.es-shop-pagination span.page-numbers.current {
    background: var(--es-primary, #0a2caa);
    color: #fff;
    border-color: var(--es-primary, #0a2caa);
    box-shadow: 0 4px 14px rgba(10, 44, 170, 0.30);
    cursor: default;
}
.es-shop-pagination .page-numbers.current:hover { transform: none; }
.es-shop-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--es-gray-500, #6b6b6b);
    box-shadow: none;
    cursor: default;
    padding: 0 4px;
    min-width: auto;
}
.es-shop-pagination .page-numbers.dots:hover { transform: none; background: transparent; }
.es-shop-pagination .page-numbers.prev,
.es-shop-pagination .page-numbers.next {
    padding: 0 18px;
    gap: 8px;
    background: var(--es-primary, #0a2caa);
    color: #fff;
    border-color: var(--es-primary, #0a2caa);
}
.es-shop-pagination .page-numbers.prev:hover,
.es-shop-pagination .page-numbers.next:hover {
    background: #081fa0;
    color: #fff;
    border-color: #081fa0;
}
.es-shop-pagination .es-pag-arrow {
    font-size: 1.15em;
    line-height: 1;
    display: inline-flex;
    font-weight: 700;
}
.es-shop-pagination .es-pag-label { letter-spacing: 0.02em; }

@media (max-width: 600px) {
    .es-shop-pagination { margin: 40px auto 16px; }
    .es-shop-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; font-size: 0.9rem; }
    .es-shop-pagination .page-numbers.prev,
    .es-shop-pagination .page-numbers.next { padding: 0 12px; }
    .es-shop-pagination .es-pag-label { display: none; }
    .es-shop-pagination .page-numbers.prev,
    .es-shop-pagination .page-numbers.next { min-width: 44px; padding: 0; }
}

/* ---------- 404 Page ---------- */
.es-404 {
    text-align: center;
    padding: 100px 24px;
}

.es-404 h1 {
    font-size: 6rem;
    color: var(--es-gray-200);
    margin-bottom: 16px;
}

.es-404 h2 {
    margin-bottom: 16px;
}

.es-404 p {
    color: var(--es-gray-500);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .es-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .es-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .es-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .es-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .es-hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    :root {
        --es-section-padding: 48px;
    }

    .es-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--es-white);
        box-shadow: var(--es-shadow-lg);
        padding: 24px;
        flex-direction: column;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .es-nav.is-open {
        display: flex;
    }

    .es-nav .menu {
        flex-direction: column;
        width: 100%;
    }

    .es-nav .menu li a {
        display: block;
        text-align: center;
    }

    .es-menu-toggle {
        display: flex;
    }

    .es-menu-toggle.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .es-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .es-menu-toggle.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .es-grid-2,
    .es-grid-3,
    .es-grid-4 {
        grid-template-columns: 1fr;
    }

    .es-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .es-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .es-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .es-hero h1 { font-size: 2rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .es-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .es-hero { padding: 60px 0 48px; }

    .es-hero-actions {
        flex-direction: column;
    }

    .es-password-input-group {
        flex-direction: column;
    }

    .es-header-actions {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .es-lang-switcher li a {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* ---------- Homepage: Programs Grid ---------- */
.es-grid-programs {
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- Homepage: Why Us Section ---------- */
.es-why-us-grid {
    gap: 48px;
    align-items: center;
}

.es-why-us-heading {
    color: var(--es-accent);
    margin-bottom: 24px;
}

.es-why-us-cta {
    margin-top: 24px;
}

.es-why-us-cards {
    gap: 16px;
}

/* ---------- Homepage: Workbooks Section ---------- */
.es-workbooks-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.es-workbooks-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Homepage: Hero Subtitle (Chinese) ---------- */
.es-hero-subtitle-large {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

/* ---------- Single Post ---------- */
.es-post-thumbnail-wrap {
    margin-bottom: 32px;
    border-radius: var(--es-radius-md);
    overflow: hidden;
}

.es-post-navigation {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--es-gray-200);
}

.es-post-nav-label {
    font-size: 0.85rem;
    color: var(--es-gray-500);
}

/* ---------- Empty State ---------- */
.es-empty-state {
    padding: 60px 0;
    text-align: center;
}

/* ---------- Footer Extras ---------- */
.es-footer .es-footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ---------- Inline SVG Compass Logo ---------- */
.es-logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.es-logo-icon svg {
    height: 46px;
    width: auto;
    color: var(--es-primary);
    transition: color var(--es-transition);
}

.es-footer .es-logo-icon svg,
.es-footer-logo-icon svg {
    color: var(--es-white);
    height: 38px;
}

/* ---------- CTA Banner Compass Watermark ---------- */
.es-cta-banner {
    position: relative;
    overflow: hidden;
}

.es-cta-compass {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    opacity: 0.1;
    pointer-events: none;
    display: flex;
}

.es-cta-compass svg {
    width: 100%;
    height: 100%;
    color: var(--es-white);
}

.es-cta-compass img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .es-cta-compass {
        width: 180px;
        height: 180px;
        right: -40px;
        opacity: 0.07;
    }
}

.es-footer-contact-link {
    margin-top: 12px;
}

/* ---------- Chinese Homepage: YouTube + Apply ---------- */
.es-chn-youtube-section {
    text-align: center;
}

.es-youtube-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.es-youtube-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.es-chn-apply-wrap {
    margin-top: 1.5rem;
}

/* ---------- Chinese Homepage: Quote + Universities + Links + Closing ---------- */
.es-chn-quote-section {
    text-align: center;
}

.es-chn-quote {
    border: none;
    margin: 0 auto 2.5rem;
    max-width: 800px;
    padding: 0;
}

.es-chn-quote p {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--es-primary);
    line-height: 1.6;
    font-style: normal;
}

.es-universities-img {
    max-width: 800px;
    margin: 0 auto;
}

.es-universities-img img {
    width: 100%;
    height: auto;
    display: block;
}

.es-chn-links-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.es-chn-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.es-chn-closing {
    text-align: center;
}

.es-chn-closing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--es-primary);
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.es-chn-closing-text {
    font-size: 1.05rem;
    color: var(--es-gray-500);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .es-chn-quote p {
        font-size: 1.1rem;
    }
    .es-chn-closing-title {
        font-size: 1.2rem;
    }
    .es-chn-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- Utility Classes ---------- */
.es-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.es-mb-0 { margin-bottom: 0; }
.es-mt-2 { margin-top: 2rem; }
.es-mb-2 { margin-bottom: 2rem; }

/* ==========================================================================
   Workbooks Page Template
   ========================================================================== */

/* Section Label (reusable orange uppercase label) */
.es-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--es-accent);
    margin-bottom: 16px;
}

/* --- Workbooks Hero --- */
.es-wb-hero {
    background: linear-gradient(135deg, rgba(var(--es-primary-rgb), 0.92), rgba(var(--es-primary-rgb), 0.85)),
                url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1400&q=80') center / cover no-repeat;
    color: var(--es-white);
    padding: 100px 0 80px;
}

.es-wb-hero .es-section-label {
    color: var(--es-accent-light);
}

.es-wb-hero h1 {
    color: var(--es-white);
    font-size: 3rem;
    max-width: 700px;
    margin-bottom: 24px;
}

.es-wb-hero-desc {
    font-size: 1.15rem;
    max-width: 650px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 32px;
}

.es-wb-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Workbooks About Section --- */
.es-wb-about {
    max-width: 800px;
}

.es-wb-about h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
}

.es-wb-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.es-wb-feature h3 {
    color: var(--es-primary);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.es-wb-feature p {
    color: var(--es-gray-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- Series Editor --- */
.es-wb-editor {
    max-width: 800px;
}

.es-wb-editor h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.es-wb-editor p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--es-gray-700);
}

/* --- Workbook Series Grid --- */
.es-wb-series-intro {
    font-size: 1.1rem;
    color: var(--es-gray-500);
    max-width: 600px;
    margin-bottom: 48px;
}

.es-wb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.es-wb-card {
    background: var(--es-white);
    border-radius: var(--es-radius-md);
    overflow: hidden;
    box-shadow: var(--es-shadow-card);
    border: 1px solid var(--es-gray-100);
    transition: all var(--es-transition);
}

.es-wb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--es-shadow-lg);
    border-color: rgba(var(--es-primary-rgb), 0.15);
}

.es-wb-card-cover {
    background: var(--es-gray-50);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.es-wb-card-cover img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: var(--es-radius-sm);
    box-shadow: var(--es-shadow-md);
}

.es-wb-card-info {
    padding: 20px;
}

.es-wb-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--es-accent);
    margin-bottom: 4px;
}

.es-wb-card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.es-wb-card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.es-wb-buy-btn,
.es-wb-pickup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--es-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--es-transition);
}

.es-wb-buy-ca {
    background: var(--es-accent);
    color: var(--es-white);
}

.es-wb-buy-ca:hover {
    background: var(--es-accent-dark);
    color: var(--es-white);
}

.es-wb-buy-us {
    background: var(--es-primary);
    color: var(--es-white);
}

.es-wb-buy-us:hover {
    background: var(--es-primary-dark);
    color: var(--es-white);
}

.es-wb-buy-pickup {
    background: var(--es-accent);
    color: var(--es-white);
    order: -1;
}

.es-wb-buy-pickup:hover {
    background: #e07a35;
    color: var(--es-white);
}

.es-wb-pickup-btn {
    background: transparent;
    border: 1px solid var(--es-gray-200);
    color: var(--es-gray-700);
}

.es-wb-pickup-btn:hover {
    border-color: var(--es-primary);
    color: var(--es-primary);
}

.es-wb-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* --- Pickup CTA Section --- */
.es-wb-pickup-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.es-wb-pickup-cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.es-wb-pickup-cta p {
    font-size: 1.1rem;
    color: var(--es-gray-500);
    line-height: 1.8;
    margin-bottom: 32px;
}

.es-wb-pickup-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Workbooks Responsive --- */
@media (max-width: 1024px) {
    .es-wb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .es-wb-hero {
        padding: 60px 0 48px;
    }

    .es-wb-hero h1 {
        font-size: 2rem;
    }

    .es-wb-hero-actions {
        flex-direction: column;
    }

    .es-wb-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .es-wb-pickup-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   One-on-One Page Styles
   ========================================================================== */

/* Hero */
.es-page-hero {
    background: linear-gradient(135deg, rgba(10, 44, 170, 0.92), rgba(10, 44, 170, 0.80)),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1400&q=80') center / cover no-repeat;
    color: var(--es-white);
    text-align: center;
    padding: 5rem 1.5rem 4rem;
}

.es-page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--es-white);
    margin-bottom: 1rem;
}

.es-page-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Intro */
.es-oto-intro {
    max-width: 820px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--es-body-text);
    text-align: center;
}

/* Steps */
.es-oto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.es-oto-step {
    background: var(--es-white);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.es-oto-step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--es-accent);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.es-oto-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--es-primary);
    margin-bottom: 0.5rem;
}

.es-oto-step p {
    font-size: 0.9rem;
    color: var(--es-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Subject Grid */
.es-oto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.es-oto-card {
    background: var(--es-white);
    border: 1px solid var(--es-gray-200);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.es-oto-card:hover {
    box-shadow: 0 6px 24px rgba(10, 44, 170, 0.1);
    transform: translateY(-2px);
}

.es-oto-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.es-oto-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--es-primary);
    margin-bottom: 0.75rem;
}

.es-oto-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-oto-card ul li {
    font-size: 0.88rem;
    color: var(--es-gray-500);
    padding: 0.3rem 0 0.3rem 1rem;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid var(--es-gray-100);
}

.es-oto-card ul li:last-child {
    border-bottom: none;
}

.es-oto-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--es-accent);
}

.es-oto-card-more {
    background: var(--es-gray-50);
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.es-oto-card-more p {
    font-size: 0.9rem;
    color: var(--es-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Teacher */
.es-oto-teacher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.es-oto-teacher-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--es-primary);
    margin-bottom: 1rem;
}

.es-oto-teacher-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--es-body-text);
    margin-bottom: 1.5rem;
}

.es-oto-teacher-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 340px;
}

/* ==========================================================================
   Schedule Table (2026summer pages — targeted via WP body class)
   ========================================================================== */

.page-id-205 table,
.page-id-204 table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--es-white);
    border-radius: var(--es-radius-md);
    overflow: hidden;
    box-shadow: var(--es-shadow-md);
    /* Make table itself scroll horizontally on mobile */
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Header row */
.page-id-205 table thead tr,
.page-id-204 table thead tr {
    background: var(--es-primary);
}

.page-id-205 table thead th,
.page-id-204 table thead th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    color: var(--es-white);
    border: none;
}

/* Price header highlight */
.page-id-204 table thead th:last-child {
    color: #ffd580;
    text-align: right;
}

/* Body rows */
.page-id-205 table tbody tr,
.page-id-204 table tbody tr {
    border-bottom: 1px solid var(--es-gray-100);
    transition: background 0.15s;
}

.page-id-205 table tbody tr:nth-child(even),
.page-id-204 table tbody tr:nth-child(even) {
    background: var(--es-gray-50);
}

.page-id-205 table tbody tr:hover,
.page-id-204 table tbody tr:hover {
    background: rgba(var(--es-primary-rgb), 0.05);
}

.page-id-205 table tbody td,
.page-id-204 table tbody td {
    padding: 11px 16px;
    vertical-align: middle;
    color: var(--es-body-text);
    border: none;
    white-space: nowrap;
}

/* Course name — bold */
.page-id-205 table tbody td:first-child,
.page-id-204 table tbody td:first-child {
    font-weight: 600;
    color: var(--es-gray-900);
}

/* 次数 and 上课形式 — centered */
.page-id-205 table tbody td:nth-child(6),
.page-id-205 table tbody td:nth-child(7),
.page-id-204 table tbody td:nth-child(6),
.page-id-204 table tbody td:nth-child(7) {
    text-align: center;
}

/* Price column */
.page-id-204 table tbody td:last-child {
    font-weight: 700;
    color: var(--es-primary);
    text-align: right;
}

/* Last two rows (研究项目, 一对一) — muted */
.page-id-205 table tbody tr:nth-last-child(-n+2) td,
.page-id-204 table tbody tr:nth-last-child(-n+2) td {
    color: var(--es-gray-500);
    font-style: italic;
}

/* ==========================================================================
   Testimonials Page Template
   ========================================================================== */

/* Stats bar */
.es-testimonials-stats {
    background: var(--es-primary);
    padding: 48px 0;
}

.es-testimonials-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.es-testimonials-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--es-white);
    line-height: 1.2;
    margin-bottom: 6px;
}

.es-testimonials-stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.4;
}

/* Testimonials masonry-style grid */
.es-testimonials-grid {
    columns: 3;
    column-gap: 28px;
}

.es-testimonial-card {
    break-inside: avoid;
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: var(--es-radius-md);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--es-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.es-testimonial-tag {
    display: inline-block;
    background: var(--es-gray-50);
    border: 1px solid var(--es-gray-200);
    color: var(--es-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: var(--es-radius-pill);
    width: fit-content;
}

.es-testimonial-stars {
    color: var(--es-accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.es-testimonial-quote {
    margin: 0;
    padding: 0;
    border: none;
}

.es-testimonial-quote p {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--es-body-text);
    margin: 0;
    font-style: italic;
}

.es-testimonial-footer {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--es-gray-100);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.es-testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--es-gray-900);
}

.es-testimonial-detail {
    font-size: 0.82rem;
    color: var(--es-gray-500);
}

@media (max-width: 960px) {
    .es-testimonials-grid {
        columns: 2;
    }
    .es-testimonials-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .es-testimonials-grid {
        columns: 1;
    }
    .es-testimonials-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .es-testimonials-stat-num {
        font-size: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .es-oto-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .es-oto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .es-oto-steps {
        grid-template-columns: 1fr;
    }
    .es-oto-grid {
        grid-template-columns: 1fr;
    }
    .es-oto-teacher {
        grid-template-columns: 1fr;
    }
    .es-oto-teacher-image {
        order: -1;
    }
    .es-oto-teacher-image img {
        height: 240px;
    }
}

/* ==========================================================================
   Programs Page Styles
   ========================================================================== */

.es-pg-hero {
    background: linear-gradient(135deg, rgba(var(--es-primary-rgb), 0.88), rgba(var(--es-primary-rgb), 0.78)),
                url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1400&q=80') center / cover no-repeat;
    color: var(--es-white);
    padding: 100px 0 80px;
    text-align: left;
}

.es-pg-hero .es-section-label {
    color: var(--es-accent-light);
}

.es-pg-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 12px 0 20px;
    max-width: 700px;
    color: var(--es-white);
}

.es-pg-hero-desc {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 600px;
    line-height: 1.6;
}

/* Program Cards Grid */
.es-pg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.es-pg-card {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 12px;
    padding: 36px 32px 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.es-pg-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.es-pg-card-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--es-accent);
}

.es-pg-card .es-section-label {
    margin-top: 4px;
}

.es-pg-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 8px 0 20px;
    line-height: 1.25;
}

/* Detail list */
.es-pg-details {
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
}

.es-pg-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
}

.es-pg-detail-row dt {
    font-weight: 700;
    color: var(--es-gray-900);
    font-size: 0.95rem;
}

.es-pg-detail-row dd {
    margin: 0;
    color: var(--es-gray-500);
    font-size: 0.95rem;
    line-height: 1.5;
}

.es-pg-tagline {
    font-style: italic;
    color: var(--es-gray-500);
    font-size: 0.95rem;
    margin: 0 0 24px;
    line-height: 1.5;
}

.es-pg-learn-more {
    align-self: flex-start;
    margin-top: auto;
}

/* Programs CTA */
.es-pg-cta {
    text-align: center;
    padding: 40px 0;
}

.es-pg-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--es-primary);
    margin-bottom: 12px;
}

.es-pg-cta p {
    font-size: 1.1rem;
    color: var(--es-gray-500);
    margin-bottom: 28px;
}

/* Programs Responsive */
@media (max-width: 1024px) {
    .es-pg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .es-pg-hero h1 {
        font-size: 2rem;
    }

    .es-pg-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .es-pg-cta h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Gallery UX Enhancement (whyes section on homepage)
   Adds arrow controls, counter, and scroll hints to the tabbed photo galleries
   ========================================================================== */

/* Give the wrap a stacking context */
.es-gallery-wrap {
    position: relative;
}

/* Remove bottom radius from the active gallery so controls attach flush */
.es-gallery-wrap .es-gallery.active {
    border-radius: 0 !important;
    border-bottom: none !important;
}

/* Controls bar injected by JS below each active gallery */
.es-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 16px;
    background: #f0f2f7;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Prev / Next arrow buttons */
.es-gallery-btn {
    background: #2c3e6b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.es-gallery-btn:hover:not(:disabled) {
    background: #1a2c5b;
}

.es-gallery-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ============================================================
   WOOCOMMERCE SHOP
   ============================================================ */

.es-shop-hero {
    padding: 80px 0 60px;
}

.es-shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.es-shop-tab {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1px solid var(--es-gray-200);
    color: var(--es-gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.es-shop-tab:hover {
    border-color: var(--es-primary);
    color: var(--es-primary);
}

.es-shop-tab-active {
    background: var(--es-primary);
    border-color: var(--es-primary);
    color: var(--es-white);
}

.es-shop-tab-active:hover {
    color: var(--es-white);
}

/* WooCommerce product grid */
ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

ul.products li.product {
    /* Override WooCommerce's default width: 22.05% (woocommerce-layout.css)
       which collapses each li to ~60px inside our CSS grid tracks. */
    width: 100%;
    float: none;
    margin: 0;
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

/* Same override for the small-screen breakpoint where WC applies width: 48% */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
    width: 100%;
}

ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(10, 44, 170, 0.1);
    transform: translateY(-2px);
}

ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--es-gray-900);
    padding: 16px 16px 4px;
    margin: 0;
}

ul.products li.product .price {
    padding: 0 16px 8px;
    color: var(--es-primary);
    font-weight: 600;
    font-size: 1.05rem;
}

ul.products li.product .button {
    margin: auto 16px 16px;
    padding: 10px 20px;
    background: var(--es-primary);
    color: var(--es-white);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

ul.products li.product .button:hover,
ul.products li.product .button.added {
    background: var(--es-primary-dark, #081fa0);
    color: var(--es-white);
}

/* ============================================================
   Single product page - wider, card-based layout
   ============================================================ */

/* Page wrapper - give it serious breathing room */
.single-product .es-main,
.single-product main,
.single-product #primary { background: linear-gradient(180deg, #f5f7fc 0%, #ffffff 280px); }

.woocommerce div.product {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 32px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
    align-items: start;
}

/* Kill WC default 48% float widths on direct children - they fight the grid */
.woocommerce div.product .images,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary,
.woocommerce div.product .entry-summary {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Gallery side - rounded, subtle shadow, white card */
.woocommerce div.product .woocommerce-product-gallery {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(10, 44, 170, 0.06);
    border: 1px solid #e9ecf5;
}

/* Gallery wrapper and inner image - fill the card */
.woocommerce div.product .woocommerce-product-gallery .flex-viewport,
.woocommerce div.product .woocommerce-product-gallery__wrapper,
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery__image > a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
.woocommerce div.product .woocommerce-product-gallery__image > a img,
.woocommerce div.product .woocommerce-product-gallery img.wp-post-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}
.woocommerce div.product .woocommerce-product-gallery img { border-radius: 10px; max-width: 100%; height: auto; display: block; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs { display:flex; gap:8px; margin-top:16px; padding:0; list-style:none; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { cursor: pointer; opacity: 0.7; border: 2px solid transparent; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--es-primary); }

/* Summary side - card with strong CTA */
.woocommerce div.product .summary {
    background: #fff;
    border-radius: 16px;
    padding: 36px 36px 32px;
    box-shadow: 0 4px 20px rgba(10, 44, 170, 0.06);
    border: 1px solid #e9ecf5;
}

.woocommerce div.product .summary .product_title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--es-gray-900);
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.woocommerce div.product .summary .price,
.woocommerce div.product p.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--es-primary);
    margin: 0 0 24px;
    line-height: 1;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f7;
}
.woocommerce div.product .summary .price .woocommerce-Price-amount { color: var(--es-primary); }

/* Short description - more readable, slightly larger */
.woocommerce div.product .summary .woocommerce-product-details__short-description {
    color: rgba(39, 25, 22, 0.78);
    margin: 0 0 28px;
    line-height: 1.7;
    font-size: 1rem;
}
.woocommerce div.product .summary .woocommerce-product-details__short-description p { margin: 0 0 12px; }
.woocommerce div.product .summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Quantity selector + button row */
.woocommerce div.product .summary form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    flex-wrap: wrap;
}
.woocommerce div.product .summary form.cart .quantity { display:flex; align-items:center; }
.woocommerce div.product .summary form.cart .quantity input.qty {
    width: 64px; padding: 14px 8px; text-align: center;
    border: 1.5px solid #d8dde8; border-radius: 8px; font-size: 1rem; font-weight: 600;
}

/* Big bold CTA */
.woocommerce div.product .summary .single_add_to_cart_button,
.woocommerce div.product .summary button.single_add_to_cart_button {
    background: var(--es-primary) !important;
    color: #fff !important;
    padding: 16px 38px !important;
    border-radius: 10px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border: none !important;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(10, 44, 170, 0.25);
    text-transform: none;
    flex: 1;
    min-width: 160px;
    text-align: center;
}
.woocommerce div.product .summary .single_add_to_cart_button:hover {
    background: #081fa0 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 44, 170, 0.35);
}

/* Meta info row (SKU, Category) under the button */
.woocommerce div.product .summary .product_meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef0f7;
    font-size: 13px;
    color: var(--es-gray-500);
    line-height: 1.7;
}
.woocommerce div.product .summary .product_meta > span { display:block; }
.woocommerce div.product .summary .product_meta a { color: var(--es-primary); text-decoration: none; }
.woocommerce div.product .summary .product_meta a:hover { text-decoration: underline; }

/* "What you get" trust signals */
.woocommerce div.product .summary .woocommerce-product-details__short-description ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
.woocommerce div.product .summary .woocommerce-product-details__short-description ul li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 0.95rem;
}
.woocommerce div.product .summary .woocommerce-product-details__short-description ul li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 6px;
    width: 20px; height: 20px;
    background: #e8f0fe;
    color: var(--es-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Long description / product tabs below the two-column section */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 4px 20px rgba(10, 44, 170, 0.06);
    border: 1px solid #e9ecf5;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0 0 12px;
    margin: 0 0 28px;
    border-bottom: 2px solid #eef0f7;
    display: flex;
    gap: 4px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    color: var(--es-gray-500);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -14px;
    transition: color 0.15s, border-color 0.15s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--es-primary);
    border-color: var(--es-primary);
}
.woocommerce div.product .woocommerce-tabs .panel {
    color: rgba(39, 25, 22, 0.85);
    line-height: 1.75;
    font-size: 1rem;
    padding: 0;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.5rem;
    color: var(--es-gray-900);
    margin: 0 0 18px;
    font-weight: 700;
}
.woocommerce div.product .woocommerce-tabs .panel p { margin: 0 0 16px; }
.woocommerce div.product .woocommerce-tabs .panel ul,
.woocommerce div.product .woocommerce-tabs .panel ol { padding-left: 24px; margin: 0 0 16px; }
.woocommerce div.product .woocommerce-tabs .panel li { margin: 6px 0; }

/* Related products section */
.woocommerce div.product .related,
.woocommerce div.product .up-sells {
    grid-column: 1 / -1;
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #e9ecf5;
}
.woocommerce div.product .related > h2,
.woocommerce div.product .up-sells > h2 {
    font-size: 1.5rem;
    color: var(--es-gray-900);
    margin: 0 0 28px;
    font-weight: 700;
    text-align: center;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    list-style: none;
}

.woocommerce-message { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #43a047; }
.woocommerce-error   { background: #fdecea; color: #c62828; border-left: 4px solid #e53935; }
.woocommerce-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1e88e5; }

/* Cart & Checkout */
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--es-gray-100);
    text-align: left;
}

.woocommerce table.shop_table th {
    font-weight: 600;
    color: var(--es-gray-900);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce #place_order {
    background: var(--es-primary);
    color: var(--es-white);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce #place_order:hover {
    background: var(--es-primary-dark, #081fa0);
    color: var(--es-white);
}

.es-shop-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--es-gray-500);
}

.es-shop-empty p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* WC coupon field */
.woocommerce .coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.woocommerce .coupon input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--es-gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .woocommerce div.product { gap: 48px; padding: 48px 24px 60px; }
    .woocommerce div.product .summary { padding: 30px; }
}
@media (max-width: 900px) {
    ul.products { grid-template-columns: repeat(2, 1fr); }
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 20px 60px;
    }
    .woocommerce div.product .summary { padding: 28px; }
    .woocommerce div.product .summary .product_title { font-size: 1.6rem; }
    .woocommerce div.product .summary .price,
    .woocommerce div.product p.price { font-size: 1.5rem; }
    .woocommerce div.product .woocommerce-tabs { padding: 28px 24px; }
}

@media (max-width: 600px) {
    ul.products { grid-template-columns: 1fr; }
    .woocommerce div.product .summary form.cart .quantity input.qty { width: 56px; }
    .woocommerce div.product .summary .single_add_to_cart_button { width: 100%; }
}

/* Image counter (e.g. "3 / 11") */
.es-gallery-counter {
    font-size: 13px;
    color: #666;
    min-width: 52px;
    text-align: center;
    font-family: inherit;
    font-weight: 500;
}

/* Swipe hint label */
.es-gallery-hint {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Always show a thin scrollbar so the gallery is visually scannable */
.es-gallery {
    scrollbar-width: thin !important;
}

.es-gallery::-webkit-scrollbar {
    height: 4px;
}

.es-gallery::-webkit-scrollbar-track {
    background: #e8eaf0;
}

.es-gallery::-webkit-scrollbar-thumb {
    background: #2c3e6b;
    border-radius: 2px;
}

/* Mobile: shrink images so users can see partial next image, hinting at scroll */
@media (max-width: 767px) {
    .es-gallery img {
        height: 230px !important;
    }

    .es-gallery-hint {
        display: none;
    }

    .es-gallery-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .es-gallery-controls {
        gap: 10px;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   FAQ Page
   ========================================================================== */

.es-faq-hero {
    background: linear-gradient(135deg, rgba(var(--es-primary-rgb), 0.90), rgba(var(--es-primary-rgb), 0.80)),
                url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1400&q=80') center / cover no-repeat;
}

.es-faq-categories {
    max-width: 800px;
    margin: 0 auto;
}

.es-faq-category {
    margin-bottom: 48px;
}

.es-faq-category:last-child {
    margin-bottom: 0;
}

.es-faq-category-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--es-accent);
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--es-gray-100);
}

.es-faq-item {
    border-bottom: 1px solid var(--es-gray-200);
}

.es-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 48px 20px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--es-gray-900);
    position: relative;
    user-select: none;
    line-height: 1.4;
    transition: color var(--es-transition);
}

.es-faq-item summary::-webkit-details-marker {
    display: none;
}

.es-faq-item summary::marker {
    display: none;
}

/* + / - toggle indicator */
.es-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--es-primary);
    line-height: 1;
    transition: color var(--es-transition);
}

.es-faq-item[open] > summary::after {
    content: '\2212'; /* minus sign */
}

.es-faq-item summary:hover {
    color: var(--es-primary);
}

.es-faq-answer {
    padding: 4px 48px 24px 0;
    color: var(--es-gray-700);
    line-height: 1.75;
    font-size: 0.98rem;
}

.es-faq-answer p {
    margin-bottom: 10px;
}

.es-faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .es-faq-item summary {
        font-size: 0.95rem;
        padding: 16px 40px 16px 0;
    }

    .es-faq-answer {
        padding-right: 40px;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.es-about-hero {
    background: linear-gradient(135deg, rgba(7, 30, 122, 0.94), rgba(10, 44, 170, 0.80)),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1400&q=80') center / cover no-repeat;
}

/* Our Story */
.es-about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.es-about-story-text h2 {
    font-size: 1.9rem;
    margin: 12px 0 20px;
    line-height: 1.25;
}

.es-about-story-text p {
    color: var(--es-gray-700);
    line-height: 1.75;
    margin-bottom: 16px;
}

.es-about-story-text p:last-child {
    margin-bottom: 0;
}

.es-about-story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.es-about-stat {
    background: var(--es-gray-50);
    border-radius: 12px;
    padding: 24px 20px;
    border-top: 3px solid var(--es-accent);
}

.es-about-stat .es-stat-number,
.es-about-stat .es-about-stat-text {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--es-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.es-about-stat-label {
    font-size: 0.82rem;
    color: var(--es-gray-500);
    line-height: 1.4;
}

/* Bilingual Community */
.es-about-bilingual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.es-about-bilingual-text h2 {
    font-size: 1.9rem;
    margin: 12px 0 20px;
    line-height: 1.25;
}

.es-about-bilingual-text p {
    color: var(--es-gray-700);
    line-height: 1.75;
    margin-bottom: 16px;
}

.es-about-phones {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.es-about-phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.es-about-phone-lang {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--es-accent);
    min-width: 140px;
}

.es-about-phone-num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--es-primary);
    text-decoration: none;
}

.es-about-phone-num:hover {
    text-decoration: underline;
}

.es-about-service-areas {
    background: var(--es-primary);
    color: #fff;
    border-radius: 14px;
    padding: 32px 28px;
}

.es-about-service-areas h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.es-about-service-areas ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.es-about-service-areas li {
    font-size: 1.05rem;
    color: #fff;
    padding-left: 18px;
    position: relative;
}

.es-about-service-areas li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--es-accent);
    border-radius: 50%;
}

/* Philosophy cards */
.es-about-philosophy-cards {
    margin-top: 40px;
}

/* Results */
.es-about-results-heading {
    font-size: 2rem;
    margin: 12px 0 16px;
}

.es-about-results-intro {
    color: var(--es-gray-700);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.es-about-admissions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.es-about-admissions span {
    background: var(--es-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.es-about-testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Location */
.es-about-location h2 {
    font-size: 1.9rem;
    margin: 12px 0 20px;
    line-height: 1.25;
}

.es-about-location p {
    color: var(--es-gray-700);
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 24px;
}

.es-about-address {
    font-style: normal;
    color: var(--es-gray-700);
    line-height: 2;
    font-size: 1rem;
}

.es-about-address a {
    color: var(--es-primary);
    text-decoration: none;
    font-weight: 600;
}

.es-about-address a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .es-about-story,
    .es-about-bilingual {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .es-about-story-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .es-about-testimonials {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .es-about-story-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .es-about-stat {
        padding: 18px 14px;
    }

    .es-about-stat .es-stat-number,
    .es-about-stat .es-about-stat-text {
        font-size: 1.6rem;
    }

    .es-about-phones {
        gap: 16px;
    }

    .es-about-phone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ==========================================================================
   Subjects Page
   ========================================================================== */

.es-subjects-hero {
    background: linear-gradient(135deg, rgba(7, 30, 122, 0.94), rgba(10, 44, 170, 0.80)),
                url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?w=1400&q=80') center / cover no-repeat;
}

.es-subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
}

.es-subject-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.es-subject-icon {
    color: var(--es-accent);
    flex-shrink: 0;
}

.es-subject-category-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--es-gray-900);
    margin: 0;
}

.es-subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.es-subject-pill {
    background: var(--es-gray-50);
    border: 1px solid var(--es-gray-200);
    color: var(--es-gray-700);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background var(--es-transition), border-color var(--es-transition), color var(--es-transition);
}

.es-subject-pill:hover {
    background: var(--es-primary);
    border-color: var(--es-primary);
    color: #fff;
}

.es-subjects-grade-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.es-subjects-grade-item {
    text-align: center;
    padding: 24px 40px;
    flex: 1;
    min-width: 160px;
}

.es-subjects-grade-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--es-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.es-subjects-grade-label {
    font-size: 0.82rem;
    color: var(--es-gray-500);
}

.es-subjects-grade-divider {
    width: 1px;
    height: 48px;
    background: var(--es-gray-200);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .es-subjects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .es-subjects-grade-divider {
        display: none;
    }

    .es-subjects-grade-banner {
        gap: 0;
    }

    .es-subjects-grade-item {
        padding: 16px 20px;
        min-width: 140px;
    }
}

/* ==========================================================================
   Careers Page
   ========================================================================== */

.es-careers-hero {
    background: linear-gradient(135deg, rgba(7, 30, 122, 0.94), rgba(10, 44, 170, 0.80)),
                url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1400&q=80') center / cover no-repeat;
}

.es-careers-roles {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 780px;
    margin: 40px auto 0;
}

.es-careers-role {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid var(--es-gray-200);
}

.es-careers-role:first-child {
    border-top: 1px solid var(--es-gray-200);
}

.es-careers-role-dot {
    width: 12px;
    height: 12px;
    background: var(--es-accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.es-careers-role h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--es-gray-900);
    margin-bottom: 8px;
}

.es-careers-role p {
    color: var(--es-gray-700);
    line-height: 1.7;
    font-size: 0.97rem;
    margin: 0;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.es-contact-hero {
    background: linear-gradient(135deg, rgba(7, 30, 122, 0.94), rgba(10, 44, 170, 0.80)),
                url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1400&q=80') center / cover no-repeat;
}

.es-contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}

.es-contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.es-contact-detail-block h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--es-accent);
    margin-bottom: 10px;
}

.es-contact-detail-block address,
.es-contact-detail-block p {
    font-style: normal;
    color: var(--es-gray-700);
    line-height: 1.75;
    font-size: 0.97rem;
    margin: 0 0 4px;
}

.es-contact-detail-block a {
    color: var(--es-primary);
    font-weight: 600;
    text-decoration: none;
}

.es-contact-detail-block a:hover {
    text-decoration: underline;
}

.es-contact-detail-note {
    font-size: 0.85rem;
    color: var(--es-gray-500);
}

/* Contact Form */
.es-contact-form-wrap {
    background: var(--es-gray-50);
    border-radius: 16px;
    padding: 40px;
}

.es-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.es-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.es-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.es-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--es-gray-900);
}

.es-required {
    color: var(--es-accent);
}

.es-optional {
    color: var(--es-gray-500);
    font-weight: 400;
}

.es-form-group input,
.es-form-group select,
.es-form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--es-gray-200);
    border-radius: 8px;
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--es-gray-900);
    background: #fff;
    transition: border-color var(--es-transition);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.es-form-group input:focus,
.es-form-group select:focus,
.es-form-group textarea:focus {
    border-color: var(--es-primary);
}

.es-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.es-form-status {
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

.es-form-status:not(:empty) {
    display: block;
}

.es-form-status-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.es-form-status-error {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.es-form-submit {
    align-self: flex-start;
}

@media (max-width: 900px) {
    .es-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .es-contact-form-wrap {
        padding: 28px 20px;
    }
}

@media (max-width: 600px) {
    .es-form-row-two {
        grid-template-columns: 1fr;
    }
}

/* Linked subject pills (subjects page) */
.es-subject-pill-link {
    background: #fff;
    border: 1.5px solid var(--es-primary);
    color: var(--es-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.es-subject-pill-link:hover {
    background: var(--es-primary);
    color: #fff;
}

.es-subject-pill-link::after {
    content: ' \2192';
    font-size: 0.85em;
    opacity: 0.75;
}

/* Subject link rows (programs page) */
.es-pg-subject-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 32px;
}

.es-pg-subject-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e4e7f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--es-gray-900);
    font-size: 0.96rem;
    font-weight: 500;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.es-pg-subject-link:hover {
    border-color: var(--es-primary);
    box-shadow: 0 2px 12px rgba(var(--es-primary-rgb), 0.10);
    background: #f7f9ff;
}

.es-pg-subject-link-arrow {
    color: var(--es-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ==========================================================================
   Program Landing Pages (page-program-landing.php)
   ========================================================================== */

.es-pl-hero {
    background: linear-gradient(135deg, rgba(var(--es-primary-rgb), 0.92), rgba(var(--es-primary-rgb), 0.80)),
                url('https://images.unsplash.com/photo-1513258496099-48168024aec0?w=1400&q=80') center / cover no-repeat;
    color: #fff;
    padding: 96px 0 80px;
    text-align: center;
}

.es-pl-hero .es-section-label {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.30);
}

.es-pl-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 780px;
    margin: 16px auto 24px;
    line-height: 1.2;
}

.es-pl-hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.es-pl-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.es-pl-hero-actions .es-btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.es-pl-hero-actions .es-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* Intro paragraph */
.es-pl-intro-wrap {
    max-width: 820px;
}

.es-pl-intro {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--es-body-text);
}

/* Topics grid */
.es-pl-topics {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.es-pl-topic-item {
    background: var(--es-gray-50);
    border: 1px solid #e4e7f0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--es-gray-900);
    line-height: 1.5;
    position: relative;
    padding-left: 36px;
}

.es-pl-topic-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--es-accent);
    border-radius: 50%;
}

/* Who it's for - definition list */
.es-pl-levels {
    max-width: 740px;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.es-pl-level-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e4e7f0;
    align-items: baseline;
}

.es-pl-level-row:first-child {
    border-top: 1px solid #e4e7f0;
}

.es-pl-levels dt {
    font-weight: 600;
    color: var(--es-gray-900);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.es-pl-levels dd {
    color: var(--es-body-text);
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

/* Results list */
.es-pl-results {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

.es-pl-results li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--es-body-text);
    line-height: 1.6;
}

.es-pl-results li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    background: var(--es-accent);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414L8.414 15l-5.121-5.121a1 1 0 011.414-1.414L8.414 12.172l6.879-6.879a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: center;
}

/* CTA section */
.es-pl-cta-section {
    background: var(--es-primary);
}

.es-pl-cta-box {
    text-align: center;
    padding: 20px 0;
}

.es-pl-cta-box h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.es-pl-cta-box > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.es-pl-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.es-pl-cta-actions .es-btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.es-pl-cta-actions .es-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.es-pl-cta-note {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.88rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .es-pl-hero {
        padding: 64px 0 56px;
    }

    .es-pl-topics {
        grid-template-columns: 1fr;
    }

    .es-pl-level-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .es-pl-levels dt {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   WooCommerce Order Confirmation (Thank You) Page
   ========================================================================== */

.es-thankyou-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Hero / success banner */
.es-thankyou-hero {
    text-align: center;
    padding: 48px 24px 40px;
    background: #f0f4ff;
    border-radius: 16px;
    margin-bottom: 40px;
}

.es-thankyou-icon {
    width: 64px;
    height: 64px;
    color: var(--es-primary);
    margin: 0 auto 20px;
}

.es-thankyou-icon svg {
    width: 100%;
    height: 100%;
}

.es-thankyou-icon--info {
    color: var(--es-accent);
}

.es-thankyou-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 12px;
}

.es-thankyou-subheading {
    font-size: 1.05rem;
    color: var(--es-gray-500);
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.6;
}

/* Summary bar (order number, date, email, total) */
.es-thankyou-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #e0e4ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.es-thankyou-summary-item {
    flex: 1 1 140px;
    padding: 18px 20px;
    border-right: 1px solid #e0e4ef;
    background: #fff;
}

.es-thankyou-summary-item:last-child {
    border-right: none;
}

.es-thankyou-summary-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--es-gray-500);
    margin-bottom: 6px;
    font-weight: 600;
}

.es-thankyou-summary-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--es-gray-900);
    word-break: break-all;
}

/* Section titles */
.es-thankyou-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--es-gray-50);
}

/* Order items table */
.es-thankyou-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 36px;
    font-size: 0.95rem;
}

.es-thankyou-table thead tr {
    background: var(--es-primary);
    color: #fff;
}

.es-thankyou-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.es-thankyou-table thead th:last-child {
    text-align: right;
}

.es-thankyou-table tbody tr {
    border-bottom: 1px solid #e8eaf0;
}

.es-thankyou-table tbody tr:last-child {
    border-bottom: none;
}

.es-thankyou-table tbody td {
    padding: 14px 16px;
    color: var(--es-gray-900);
    vertical-align: middle;
}

.es-thankyou-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
}

.es-thankyou-product-name {
    font-weight: 500;
}

.es-thankyou-product-qty {
    color: var(--es-gray-500);
    font-size: 0.9rem;
}

.es-thankyou-table tfoot tr {
    border-top: 2px solid #e8eaf0;
}

.es-thankyou-table tfoot th {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--es-gray-500);
    font-size: 0.9rem;
    text-align: left;
}

.es-thankyou-table tfoot td {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--es-gray-900);
    text-align: right;
}

.es-thankyou-table tfoot tr:last-child th,
.es-thankyou-table tfoot tr:last-child td {
    font-size: 1.05rem;
    color: var(--es-primary);
}

/* Downloads section */
.es-thankyou-downloads {
    margin-bottom: 36px;
}

.es-thankyou-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9ff;
    border: 1px solid #e0e4ef;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 16px;
}

.es-thankyou-download-info strong {
    display: block;
    color: var(--es-gray-900);
    font-weight: 600;
    margin-bottom: 4px;
}

.es-thankyou-download-remaining {
    font-size: 0.82rem;
    color: var(--es-gray-500);
}

/* Billing address */
.es-thankyou-addresses {
    margin-bottom: 36px;
}

.es-thankyou-address {
    font-style: normal;
    line-height: 1.8;
    color: var(--es-gray-900);
    font-size: 0.95rem;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e0e4ef;
    border-radius: 8px;
}

/* Error/failed notice */
.es-thankyou-notice--failed {
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 10px;
    padding: 24px;
    color: #c0392b;
    margin-bottom: 32px;
}

/* Mobile */
@media (max-width: 600px) {
    .es-thankyou-wrap {
        padding: 32px 16px 60px;
    }

    .es-thankyou-heading {
        font-size: 1.5rem;
    }

    .es-thankyou-summary {
        flex-direction: column;
    }

    .es-thankyou-summary-item {
        border-right: none;
        border-bottom: 1px solid #e0e4ef;
        padding: 14px 16px;
    }

    .es-thankyou-summary-item:last-child {
        border-bottom: none;
    }

    .es-thankyou-download-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Homepage Programs Showcase (Chinese)
   Signposts visitors to /our-courses/ with mini program tiles.
   Prefix: es-home-programs-
   ========================================================================== */

.es-home-programs-showcase {
    background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
    padding: 72px 0;
}

.es-home-programs-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.es-home-programs-intro .es-section-label {
    color: var(--es-accent);
    letter-spacing: 0.14em;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}

.es-home-programs-intro h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--es-primary);
    line-height: 1.3;
    margin: 0 0 18px;
}

.es-home-programs-intro p {
    font-size: 1.05rem;
    color: var(--es-body-text);
    line-height: 1.85;
    margin: 0;
}

.es-home-programs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.es-home-program-tile {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 12px;
    padding: 28px 18px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.es-home-program-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 44, 170, 0.12);
    border-color: var(--es-accent);
    text-decoration: none;
}

.es-home-program-icon {
    font-size: 2.1rem;
    line-height: 1;
    margin-bottom: 6px;
}

.es-home-program-tile h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 4px;
    line-height: 1.3;
}

.es-home-program-tile p {
    font-size: 0.85rem;
    color: var(--es-gray-500);
    line-height: 1.5;
    margin: 0;
}

.es-home-programs-cta {
    text-align: center;
}

.es-home-programs-hint {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--es-gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
    .es-home-programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .es-home-programs-showcase {
        padding: 56px 0;
    }

    .es-home-programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .es-home-program-tile {
        padding: 22px 14px 18px;
    }

    .es-home-program-icon {
        font-size: 1.7rem;
    }

    .es-home-program-tile h3 {
        font-size: 0.95rem;
    }

    .es-home-program-tile p {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Our Programs Page (Chinese) - slug: our-courses
   Five program tracks: Group, AP, IB HL, One-on-One, OSSD
   Prefix: es-op- ("our programs")
   ========================================================================== */

/* Hero */
.es-op-hero {
    background: linear-gradient(135deg, rgba(10, 44, 170, 0.94), rgba(7, 30, 122, 0.88)),
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600&q=80') center / cover no-repeat;
    color: var(--es-white);
    padding: 96px 0 88px;
    text-align: center;
}

.es-op-hero .es-section-label {
    color: var(--es-accent-light);
    display: inline-block;
    margin-bottom: 18px;
}

.es-op-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--es-white);
    line-height: 1.2;
    margin: 0 auto 22px;
    max-width: 820px;
}

.es-op-hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

.es-op-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust bar */
.es-op-trust {
    padding: 56px 0;
}

.es-op-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.es-op-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    border-right: 1px solid var(--es-gray-100);
}

.es-op-trust-item:last-child {
    border-right: none;
}

.es-op-trust-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--es-primary);
    line-height: 1;
}

.es-op-trust-label {
    font-size: 0.95rem;
    color: var(--es-gray-500);
    font-weight: 500;
}

/* Overview cards grid */
.es-op-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.es-op-card {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 14px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.es-op-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10, 44, 170, 0.12);
    text-decoration: none;
}

.es-op-card-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--es-accent);
}

.es-op-card-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 14px;
    display: inline-block;
}

.es-op-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.es-op-card p {
    font-size: 0.95rem;
    color: var(--es-gray-500);
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
}

.es-op-card-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--es-accent);
    margin-top: auto;
}

.es-op-card:hover .es-op-card-link {
    color: var(--es-accent-dark);
}

/* Detail section shared */
.es-op-detail {
    padding-top: 80px;
    padding-bottom: 80px;
    scroll-margin-top: 80px;
}

.es-op-detail-header {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.es-op-detail-header .es-section-label {
    color: var(--es-accent);
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 14px;
}

.es-op-detail-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--es-primary);
    line-height: 1.3;
    margin: 0 0 18px;
}

.es-op-detail-lead {
    font-size: 1.05rem;
    color: var(--es-body-text);
    line-height: 1.85;
    margin: 0;
}

.es-op-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 40px 0 14px;
    text-align: center;
}

.es-op-list-desc {
    text-align: center;
    color: var(--es-gray-500);
    font-size: 0.98rem;
    margin: 0 auto 28px;
    max-width: 640px;
}

/* Two-column feature blocks */
.es-op-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 16px;
}

.es-op-feature-block {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 12px;
    padding: 28px 28px 24px;
}

.es-op-feature-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--es-accent);
    display: inline-block;
}

.es-op-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-op-feature-list li {
    font-size: 0.95rem;
    color: var(--es-body-text);
    line-height: 1.75;
    padding: 8px 0 8px 22px;
    position: relative;
}

.es-op-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--es-accent);
}

.es-op-feature-list strong {
    color: var(--es-primary);
    font-weight: 700;
}

/* Pill grid (AP / IB subject lists) */
.es-op-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 980px;
    margin: 0 auto 36px;
}

.es-op-pill {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-left: 3px solid var(--es-accent);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--es-primary);
    font-weight: 500;
    transition: background 0.2s ease, transform 0.15s ease;
}

.es-op-pill:hover {
    background: var(--es-gray-50);
    transform: translateX(2px);
}

.es-op-pill-ib {
    border-left-color: var(--es-primary);
}

.es-op-pill-new {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--es-accent);
    color: var(--es-white);
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Curriculum coverage bar (Group Courses + One-on-One) */
.es-op-curricula {
    background: var(--es-gray-50);
    border: 1px solid var(--es-gray-100);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 0 auto 40px;
    max-width: 980px;
}

.es-op-curricula-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--es-primary);
    letter-spacing: 0.06em;
    margin: 0 0 16px;
    text-align: center;
    text-transform: uppercase;
}

.es-op-curricula-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--es-gray-100);
}

.es-op-curricula-row:last-child {
    border-bottom: none;
}

.es-op-curricula-label {
    flex-shrink: 0;
    width: 64px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--es-primary);
    padding-top: 4px;
}

.es-op-curricula-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.es-op-curricula-tag {
    display: inline-block;
    background: var(--es-white);
    border: 1px solid var(--es-gray-200, #e5e7ed);
    color: var(--es-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 16px;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.es-op-curricula-tag:hover {
    background: var(--es-primary);
    color: var(--es-white);
    border-color: var(--es-primary);
}

@media (max-width: 640px) {
    .es-op-curricula {
        padding: 18px 18px;
    }

    .es-op-curricula-row {
        flex-direction: column;
        gap: 8px;
    }

    .es-op-curricula-label {
        width: auto;
        padding-top: 0;
    }

    .es-op-curricula-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Highlight box (AP credentials etc.) */
.es-op-highlight-box {
    background: linear-gradient(135deg, #f8faff, #fff7ef);
    border: 1px solid rgba(247, 143, 69, 0.25);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto 36px;
}

.es-op-highlight-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.es-op-highlight-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 12px;
}

.es-op-highlight-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-op-highlight-content li {
    font-size: 0.95rem;
    color: var(--es-body-text);
    line-height: 1.7;
    padding: 4px 0 4px 22px;
    position: relative;
}

.es-op-highlight-content li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--es-accent);
    font-weight: 700;
}

/* One-on-one steps */
.es-op-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 16px 0 56px;
}

.es-op-step {
    background: var(--es-white);
    border-radius: 12px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(10, 44, 170, 0.06);
    border: 1px solid var(--es-gray-100);
}

.es-op-step-num {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--es-accent);
    line-height: 1;
    margin-bottom: 12px;
}

.es-op-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 10px;
}

.es-op-step p {
    font-size: 0.9rem;
    color: var(--es-gray-500);
    line-height: 1.65;
    margin: 0;
}

/* One-on-one subjects grid (extensive) */
.es-op-subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 8px;
}

.es-op-subject-card {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 12px;
    padding: 24px 22px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.es-op-subject-card:hover {
    box-shadow: 0 8px 24px rgba(10, 44, 170, 0.08);
    transform: translateY(-2px);
}

.es-op-subject-icon {
    font-size: 1.7rem;
    line-height: 1;
    display: inline-block;
    margin-bottom: 10px;
}

.es-op-subject-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 12px;
}

.es-op-subject-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.es-op-subject-card li {
    font-size: 0.88rem;
    color: var(--es-body-text);
    line-height: 1.55;
    padding: 7px 0 7px 16px;
    position: relative;
    border-bottom: 1px solid var(--es-gray-100);
}

.es-op-subject-card li:last-child {
    border-bottom: none;
}

.es-op-subject-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--es-accent);
}

/* OSSD grade-by-grade grid */
.es-op-ossd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 16px 0 48px;
}

.es-op-ossd-card {
    background: var(--es-white);
    border: 1px solid var(--es-gray-100);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.es-op-ossd-card:hover {
    box-shadow: 0 6px 20px rgba(10, 44, 170, 0.08);
}

.es-op-ossd-card-head {
    background: var(--es-primary);
    color: var(--es-white);
    padding: 16px 18px;
    text-align: center;
}

.es-op-ossd-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--es-white);
}

.es-op-ossd-list {
    list-style: none;
    padding: 16px 20px 20px;
    margin: 0;
    flex-grow: 1;
}

.es-op-ossd-list li {
    font-size: 0.88rem;
    color: var(--es-body-text);
    padding: 8px 0;
    border-bottom: 1px solid var(--es-gray-100);
    line-height: 1.5;
}

.es-op-ossd-list li:last-child {
    border-bottom: none;
}

/* OSSD features (4-up) */
.es-op-ossd-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.es-op-ossd-feature {
    background: var(--es-gray-50);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.es-op-ossd-feature-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 12px;
}

.es-op-ossd-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--es-primary);
    margin: 0 0 8px;
}

.es-op-ossd-feature p {
    font-size: 0.88rem;
    color: var(--es-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Per-section CTA */
.es-op-detail-cta {
    text-align: center;
    margin-top: 44px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Final CTA */
.es-op-final-cta {
    text-align: center;
}

.es-op-final-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.es-op-final-note {
    margin-top: 22px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 1024px) {
    .es-op-grid,
    .es-op-pill-grid,
    .es-op-subjects-grid,
    .es-op-ossd-grid,
    .es-op-ossd-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .es-op-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .es-op-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .es-op-trust-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 720px) {
    .es-op-hero {
        padding: 64px 0 56px;
    }

    .es-op-hero h1 {
        font-size: 1.85rem;
    }

    .es-op-hero-sub {
        font-size: 1rem;
    }

    .es-op-trust {
        padding: 36px 0;
    }

    .es-op-trust-num {
        font-size: 2rem;
    }

    .es-op-detail {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .es-op-grid,
    .es-op-pill-grid,
    .es-op-subjects-grid,
    .es-op-ossd-grid,
    .es-op-ossd-features,
    .es-op-two-col,
    .es-op-steps {
        grid-template-columns: 1fr;
    }

    .es-op-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .es-op-trust-item {
        border-right: none;
        border-bottom: 1px solid var(--es-gray-100);
        padding-bottom: 14px;
    }

    .es-op-highlight-box {
        flex-direction: column;
        padding: 22px;
    }
}


/* =============================================================
 * End of Lesson Report form (page-end-of-lesson-report.php)
 * Internal teacher submission form, extends .es-contact-form base.
 * ============================================================= */

.es-lr-container {
    max-width: 760px;
}

.es-lr-required-mark {
    color: #c62828;
    font-weight: 600;
}

.es-lr-required-note {
    color: var(--es-gray-500, #6b6b6b);
    font-size: 0.88rem;
    margin: 0 0 18px;
}

.es-lr-form-wrap {
    background: #ffffff;
    border: 1px solid var(--es-gray-100, #e6e6ea);
    border-radius: 12px;
    padding: 32px;
}
@media (max-width: 640px) {
    .es-lr-form-wrap { padding: 22px 18px; }
}

.es-lr-group-label {
    display: block;
    font-weight: 600;
    color: var(--es-gray-900, #171627);
    margin-bottom: 6px;
}

.es-lr-help {
    color: var(--es-gray-500, #6b6b6b);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 10px;
}

/* Radio group */
.es-lr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.es-lr-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--es-gray-100, #e6e6ea);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.95rem;
    color: var(--es-body-text, #271916d9);
}
.es-lr-radio:hover {
    background: #f5f7fc;
    border-color: rgba(10, 44, 170, 0.30);
}
.es-lr-radio input[type="radio"] {
    flex-shrink: 0;
    accent-color: var(--es-primary, #0a2caa);
    width: 18px;
    height: 18px;
    margin: 0;
}
.es-lr-radio input[type="radio"]:checked + span {
    color: var(--es-gray-900, #171627);
    font-weight: 500;
}

/* Checkbox group */
.es-lr-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.es-lr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--es-gray-100, #e6e6ea);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.94rem;
    color: var(--es-body-text, #271916d9);
    line-height: 1.45;
}
.es-lr-checkbox:hover {
    background: #f5f7fc;
    border-color: rgba(10, 44, 170, 0.30);
}
.es-lr-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    accent-color: var(--es-primary, #0a2caa);
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

/* "Send me a copy" sits as a single-row checkbox without the group framing */
.es-lr-copy-row .es-lr-checkbox {
    border: none;
    padding: 4px 0;
    background: transparent !important;
}
.es-lr-copy-row .es-lr-checkbox:hover {
    border: none;
    background: transparent !important;
}

/* Actions row */
.es-lr-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}
@media (max-width: 480px) {
    .es-lr-actions { flex-direction: column; align-items: stretch; }
    .es-lr-actions .es-btn { width: 100%; }
}
.es-lr-clear {
    color: var(--es-gray-500, #6b6b6b);
}

.es-lr-footnote {
    text-align: center;
    color: var(--es-gray-500, #6b6b6b);
    font-size: 0.85rem;
    margin: 22px 0 0;
}
.es-lr-footnote a {
    color: var(--es-primary, #0a2caa);
    text-decoration: underline;
}

/* ============================================================
   Blog Index Page (page-blog.php)
   ============================================================ */

.es-blog-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--es-gray-500, #6b6b6b);
    font-size: 1.05rem;
    line-height: 1.6;
}

.es-blog-grid {
    margin-top: 16px;
}

.es-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.es-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #ececf2;
    color: var(--es-gray-900, #171627);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.18s ease;
}

.es-pagination .page-numbers:hover {
    border-color: var(--es-primary, #0a2caa);
    color: var(--es-primary, #0a2caa);
}

.es-pagination .page-numbers.current {
    background: var(--es-primary, #0a2caa);
    border-color: var(--es-primary, #0a2caa);
    color: #ffffff;
}

/* ============================================================
   Blog Post Layout - AI-crawler friendly single-post styling
   Used by single.php and blog-style content
   ============================================================ */

.es-content-narrow {
    max-width: 760px;
}

.es-post-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 0 22px;
    border-bottom: 1px solid #eaeaee;
    margin-bottom: 28px;
    font-size: 0.92rem;
    color: var(--es-gray-500, #6b6b6b);
}

.es-post-byline .es-byline-name {
    color: var(--es-gray-900, #171627);
    font-weight: 600;
}

.es-post-byline .es-byline-sep {
    color: #cfcfd6;
}

.es-quick-answer {
    background: #f6f8ff;
    border-left: 4px solid var(--es-primary, #0a2caa);
    border-radius: 8px;
    padding: 22px 26px;
    margin: 0 0 36px;
}

.es-quick-answer-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--es-accent, #f78f45);
    margin-bottom: 8px;
}

.es-quick-answer p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--es-gray-900, #171627);
}

.es-post-toc {
    background: #fafafa;
    border: 1px solid #ececf2;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 36px;
}

.es-post-toc-title {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--es-gray-500, #6b6b6b);
    margin: 0 0 12px;
}

.es-post-toc ol {
    margin: 0;
    padding-left: 22px;
    color: var(--es-gray-900, #171627);
}

.es-post-toc li {
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.es-post-toc a {
    color: var(--es-primary, #0a2caa);
    text-decoration: none;
}

.es-post-toc a:hover {
    text-decoration: underline;
}

.es-content article p,
.es-content .es-post-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(39, 25, 22, 0.88);
    margin: 0 0 1.1em;
}

.es-content h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--es-gray-900, #171627);
    margin: 2.2em 0 0.6em;
    line-height: 1.25;
}

.es-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--es-gray-900, #171627);
    margin: 1.6em 0 0.5em;
}

.es-content ul,
.es-content ol {
    padding-left: 1.4em;
    margin: 0 0 1.2em;
    color: rgba(39, 25, 22, 0.88);
    line-height: 1.7;
}

.es-content li {
    margin-bottom: 0.5em;
}

.es-post-callout {
    background: linear-gradient(135deg, rgba(10, 44, 170, 0.05), rgba(247, 143, 69, 0.08));
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
    border: 1px solid rgba(10, 44, 170, 0.08);
}

.es-post-callout p {
    margin: 0;
    font-size: 1.02rem;
    color: var(--es-gray-900, #171627);
}

.es-post-callout a {
    color: var(--es-primary, #0a2caa);
    font-weight: 600;
    text-decoration: underline;
}

.es-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 36px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #ececf2;
    font-size: 0.96rem;
}

.es-compare-table th,
.es-compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #ececf2;
    vertical-align: top;
}

.es-compare-table thead th {
    background: var(--es-primary, #0a2caa);
    color: #ffffff;
    font-weight: 600;
    text-transform: none;
}

.es-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.es-compare-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.es-compare-table td:first-child {
    font-weight: 600;
    color: var(--es-gray-900, #171627);
}

.es-post-pullquote {
    border-left: 4px solid var(--es-accent, #f78f45);
    margin: 32px 0;
    padding: 4px 0 4px 24px;
    font-size: 1.18rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--es-gray-900, #171627);
}

.es-post-faq {
    margin: 40px 0 24px;
    padding-top: 32px;
    border-top: 1px solid #ececf2;
}

.es-post-faq-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--es-gray-900, #171627);
    margin: 0 0 22px;
}

.es-post-faq details {
    border: 1px solid #ececf2;
    border-radius: 8px;
    padding: 16px 22px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: box-shadow 0.18s ease;
}

.es-post-faq details[open] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(10, 44, 170, 0.18);
}

.es-post-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.04rem;
    color: var(--es-gray-900, #171627);
    list-style: none;
    position: relative;
    padding-right: 32px;
    outline: none;
}

.es-post-faq summary::-webkit-details-marker {
    display: none;
}

.es-post-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--es-primary, #0a2caa);
    font-weight: 400;
    line-height: 1;
}

.es-post-faq details[open] summary::after {
    content: "–";
}

.es-post-faq details p {
    margin: 14px 0 0;
    color: rgba(39, 25, 22, 0.85);
    line-height: 1.7;
    font-size: 1rem;
}

.es-post-cta {
    background: var(--es-primary, #0a2caa);
    color: #ffffff;
    padding: 36px 32px;
    border-radius: 12px;
    margin: 48px 0 24px;
    text-align: center;
}

.es-post-cta h3 {
    color: #ffffff;
    font-size: 1.45rem;
    margin: 0 0 10px;
}

.es-post-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    font-size: 1.02rem;
}

.es-post-cta .es-btn {
    background: var(--es-accent, #f78f45);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.18s ease;
}

.es-post-cta .es-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .es-quick-answer { padding: 18px 20px; }
    .es-quick-answer p { font-size: 1rem; }
    .es-content h2 { font-size: 1.45rem; margin-top: 1.8em; }
    .es-content h3 { font-size: 1.12rem; }
    .es-content article p { font-size: 1rem; }
    .es-post-callout { padding: 18px 20px; }
    .es-compare-table { font-size: 0.88rem; }
    .es-compare-table th, .es-compare-table td { padding: 10px 12px; }
    .es-post-cta { padding: 28px 22px; }
}
