/*
Theme Name: English Smarter
Theme URI: https://englishsmarter.com
Author: English Smarter Team
Author URI: https://englishsmarter.com
Description: A modern WordPress theme for English learning websites with speaking practice, vocabulary, grammar, IELTS/TOEIC preparation and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: english-smarter
Tags: education, english, learning, responsive, custom-menu, featured-images, blog
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary: #0e9bb5;
    --primary-dark: #0a7a91;
    --primary-light: #e0f5f9;
    --accent: #f5a623;
    --accent-dark: #d4891a;
    --text-dark: #1a2340;
    --text-body: #444c5e;
    --text-muted: #7a8499;
    --bg-light: #f4f8fc;
    --bg-white: #ffffff;
    --border: #e2eaf2;
    --shadow-sm: 0 2px 8px rgba(14,155,181,0.08);
    --shadow-md: 0 4px 20px rgba(14,155,181,0.13);
    --shadow-lg: 0 8px 40px rgba(14,155,181,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
    --transition: 0.25s ease;
    --container: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: var(--text-dark); font-weight: 700; line-height: 1.25; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: #fef4e2; color: var(--accent); }

.section-title {
    font-size: 1.85rem;
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 40px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}
.logo-text { line-height: 1; }
.logo-text strong { display: block; font-size: 1rem; color: var(--text-dark); }
.logo-text span { font-size: 0.72rem; color: var(--text-muted); }

/* Nav */
#primary-navigation { flex: 1; }
#primary-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
#primary-navigation ul li { position: relative; }
#primary-navigation ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown — parent li làm vùng hover chính */
#primary-navigation ul > li {
    position: relative;
}

/* Bridge vô hình: lấp khoảng trống giữa menu item và dropdown */
#primary-navigation ul > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 12px; /* bằng với khoảng cách top của dropdown */
}

#primary-navigation ul > li > ul {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    border-radius: 12px;
    min-width: 220px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--border);
    z-index: 1050;
}

#primary-navigation ul > li:hover > ul { display: flex; }

#primary-navigation ul > li > ul li {
    display: block;
}
#primary-navigation ul > li > ul li a {
    padding: 9px 14px;
    font-size: .88rem;
    border-radius: 8px;
    white-space: nowrap;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
#primary-navigation ul > li > ul li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-cta {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User avatar + dropdown */
.header-user-wrap {
    position: relative;
}
.header-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e9bb5, #f5a623);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: .5px;
    transition: box-shadow .2s;
    flex-shrink: 0;
}
.header-user-avatar:hover {
    box-shadow: 0 0 0 3px rgba(14,155,181,.25);
}
.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    border: 1px solid #eee;
    min-width: 220px;
    padding: 8px;
    z-index: 1100;
    flex-direction: column;
}
.header-user-wrap:hover .header-user-dropdown {
    display: flex;
}
.header-user-name {
    font-weight: 700;
    font-size: .88rem;
    color: #1a1a2e;
    padding: 8px 12px 2px;
}
.header-user-email {
    font-size: .75rem;
    color: #aaa;
    padding: 0 12px 8px;
    word-break: break-all;
}
.header-user-sep {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 4px 0;
}
.header-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: .87rem;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}
.header-user-dropdown a:hover {
    background: #f5f5f5;
    color: #0e9bb5;
}
.header-logout-link {
    color: #c0392b !important;
}
.header-logout-link:hover {
    background: #fee !important;
    color: #c0392b !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #f0fafd 0%, #e8f6fa 50%, #fff8ee 100%);
    padding: 72px 0 60px;
    overflow: hidden;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(14,155,181,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-title em { color: var(--primary); font-style: normal; display: block; }

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 480px;
}

/* Search bar */
.hero-search {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-search input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
}
.hero-search input:focus { border-color: var(--primary); }
.hero-search button {
    padding: 14px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    cursor: pointer;
    transition: background var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }

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

/* Hero image float cards */
.hero-visual { position: relative; }
.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image-wrap img { width: 100%; object-fit: cover; aspect-ratio: 4/3; }

.float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    animation: floatY 3s ease-in-out infinite;
}
.float-card .fc-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.float-card-1 { top: 16px; right: -20px; }
.float-card-2 { bottom: 30px; left: -20px; animation-delay: 1.5s; }

@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-section { background: var(--bg-white); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all var(--transition);
    cursor: pointer;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--primary-light);
}
.feature-card h3 { font-size: 0.88rem; margin-bottom: 4px; color: var(--text-dark); }
.feature-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ============================================================
   HOT TRENDS
   ============================================================ */
.hot-trends-section { background: var(--bg-light); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.section-header-left { display: flex; align-items: center; gap: 12px; }
.fire-icon { font-size: 1.4rem; }

.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.trend-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.trend-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--primary-light);
}
.trend-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.trend-card:hover .trend-card-thumb img { transform: scale(1.05); }

.trend-card-body { padding: 18px; }
.trend-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}
.trend-card-body h3 { font-size: 0.95rem; margin-bottom: 12px; line-height: 1.4; }
.trend-card-body h3 a { color: var(--text-dark); }
.trend-card-body h3 a:hover { color: var(--primary); }
.trend-meta { display: flex; align-items: center; gap: 14px; font-size: 0.75rem; color: var(--text-muted); }
.trend-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   LEARNING PATHS
   ============================================================ */
.learning-paths-section { background: var(--bg-white); }

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.path-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.path-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.path-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background var(--transition);
}
.path-card:hover .path-icon { background: var(--primary); }
.path-card h3 { font-size: 0.88rem; color: var(--text-dark); margin-bottom: 2px; }
.path-card p { font-size: 0.75rem; color: var(--text-muted); }

/* IELTS / TOEIC badges on path cards */
.path-badge-ielts { background: #1a5276; color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.path-badge-toeic { background: #145a32; color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; }

/* ============================================================
   FREE RESOURCES
   ============================================================ */
.resources-section { background: var(--bg-light); }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.resource-icon-wrap {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.resource-icon-pdf { background: #fde8e8; }
.resource-icon-sheet { background: #e8f5e9; }
.resource-icon-doc { background: #e8eeff; }
.resource-icon-quiz { background: #fef4e2; }

.resource-card h3 { font-size: 0.9rem; color: var(--text-dark); line-height: 1.35; }
.resource-card p { font-size: 0.78rem; color: var(--text-muted); flex: 1; }
.resource-card .btn { font-size: 0.8rem; padding: 8px 18px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg-white); }

/* Slider wrapper */
.testimonials-slider {
    position: relative;
    min-height: 220px;
}

.testimonial-card {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    position: relative;
    animation: testi-fade .4s ease;
}
.testimonial-card.active { display: block; }

@keyframes testi-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 8px; right: 24px;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-light);
    font-family: Georgia, serif;
    pointer-events: none;
    opacity: .6;
}

.stars { color: #f5a623; font-size: 0.82rem; margin-bottom: 14px; letter-spacing: 3px; }

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 22px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
.author-info span { font-size: 0.76rem; color: var(--text-muted); }

/* Controls: prev · dots · next */
.testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.testi-arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    color: var(--text-muted);
    font-size: .8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.testi-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}
.testi-dot.active {
    background: var(--primary);
    transform: scale(1.35);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background: var(--bg-light); }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(14,155,181,.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
    user-select: none;
}
.faq-question:hover { background: var(--primary-light); color: var(--primary-dark); }
.faq-item.open .faq-question { color: var(--primary); background: var(--primary-light); }

.faq-toggle {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-style: normal; font-weight: 400;
    color: var(--text-muted);
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    flex-shrink: 0;
    line-height: 1;
}
.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 20px;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 20px 16px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: 2.2rem; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0fafd; color: var(--primary-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

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

.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 0.86rem; margin: 16px 0 24px; line-height: 1.65; }

.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.86rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }

.footer-contact p {
    font-size: 0.86rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

.posts-grid { display: flex; flex-direction: column; gap: 32px; }

.post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); }

.post-thumb { overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-body { padding: 28px 28px 28px 0; }
.post-category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.post-body h2 { font-size: 1.25rem; margin-bottom: 12px; }
.post-body h2 a { color: var(--text-dark); }
.post-body h2 a:hover { color: var(--primary); }
.post-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; color: var(--text-muted); }
.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--primary); }

/* ============================================================
   SINGLE POST — Header, Footer, Sidebar
   ============================================================ */

/* Header */
.sp-header {
    background: linear-gradient(135deg, #f0fafd 0%, #e8f6fa 60%, #fff8ee 100%);
    padding: 36px 0 32px;
    border-bottom: 1px solid var(--border);
}
.sp-header__badges {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    margin-top: 10px;
}
.sp-badge--cat {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--primary, #0e9bb5);
    color: #fff;
    text-decoration: none;
}
.sp-header__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--heading, #1a1a2e);
    margin-bottom: 14px;
    max-width: 780px;
}
.sp-header__excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 20px;
}
.sp-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.sp-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
}
.sp-meta-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover;
}
.sp-meta-sep { color: #ccc; }

/* Article */
.sp-article { max-width: 100%; }
.sp-thumb {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 36px;
}
.sp-thumb img { width: 100%; height: auto; display: block; }

/* Tags + Share footer */
.sp-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sp-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sp-tags__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.sp-tag {
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--bg-light, #f7f9fc);
    border: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-body);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sp-tag:hover { background: var(--primary-light); color: var(--primary); }

.sp-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sp-share__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.sp-share__btns { display: flex; gap: 8px; }
.sp-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.sp-share-btn:hover { opacity: .85; transform: translateY(-2px); }
.sp-share-btn--fb  { background: #1877f2; }
.sp-share-btn--msg { background: #0084ff; }
.sp-share-btn--zalo { background: #0068ff; font-weight: 800; }
.sp-share-btn--copy { background: #6b7280; }

/* Prev/Next nav */
.sp-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}
.sp-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    transition: box-shadow .15s, border-color .15s;
}
.sp-nav__item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--primary); }
.sp-nav__item--next { justify-content: flex-end; }
.sp-nav__thumb {
    width: 56px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sp-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-nav__dir {
    display: block;
    font-size: .72rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sp-nav__text strong {
    font-size: .85rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Sidebar */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}
.sp-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}
.sp-widget__title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Author */
.sp-author { display: flex; flex-direction: column; gap: 12px; }
.sp-author__avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
}
.sp-author__name { font-weight: 700; font-size: .95rem; color: var(--heading); margin-bottom: 4px; }
.sp-author__bio { font-size: .8rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 8px; }
.sp-author__link { font-size: .82rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.sp-author__link:hover { text-decoration: underline; }

/* Related posts */
.sp-related {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: opacity .15s;
}
.sp-related:last-child { border-bottom: none; }
.sp-related:hover { opacity: .8; }
.sp-related__thumb {
    width: 64px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.sp-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-related__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #e0f5f9, #f0fafd);
}
.sp-related__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-related__date { font-size: .72rem; color: #aaa; margin-top: 4px; }

/* Newsletter */
.sp-newsletter {
    background: linear-gradient(145deg, #0e9bb5, #0aabb0);
    border-color: transparent;
    color: #fff;
    text-align: center;
}
.sp-newsletter__icon { font-size: 2rem; margin-bottom: 8px; }
.sp-newsletter h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.sp-newsletter p { font-size: .8rem; opacity: .9; margin-bottom: 14px; line-height: 1.5; }
.sp-newsletter__form { display: flex; flex-direction: column; gap: 8px; }
.sp-newsletter__form input {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-size: .85rem;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.sp-newsletter__form button {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #f5a623;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}
.sp-newsletter__form button:hover { opacity: .9; }
.sp-newsletter__note { font-size: .72rem; opacity: .75; margin-top: 8px; display: block; }

/* Category list */
.sp-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: background .15s;
}
.sp-cat-list li:hover, .sp-cat-list li.active { background: var(--primary-light, #e0f5f9); }
.sp-cat-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: .83rem;
    color: var(--text-dark);
    flex: 1;
    text-decoration: none;
}
.sp-cat-list li.active a { color: var(--primary); font-weight: 600; }
.sp-cat-icon {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}
.sp-cat-count { font-size: .72rem; color: #aaa; padding-right: 10px; }

/* CTA box */
.sp-cta-box {
    background: var(--bg-light);
    border-color: var(--border);
    text-align: center;
}
.sp-cta-box__icon { font-size: 2rem; margin-bottom: 8px; }
.sp-cta-box h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--heading); }
.sp-cta-box p { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.sp-cta-btn {
    display: block;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0e9bb5, #f5a623);
    color: #fff;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
}
.sp-cta-btn:hover { opacity: .88; }

/* Responsive */
@media (max-width: 768px) {
    .sp-nav { grid-template-columns: 1fr; }
    .sp-sidebar { position: static; }
    .sp-header__title { font-size: 1.6rem; }
}

/* ============================================================
   COMMENTS — Form + List
   ============================================================ */
.comments-area {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #f0f0f0;
}

/* Tiêu đề */
.comments-title,
.comment-reply-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading, #1a1a2e);
    margin-bottom: 20px;
}
.comment-reply-title { margin-top: 36px; }
.comment-reply-title small { float: right; font-size: .8rem; font-weight: 400; }
.comment-reply-title small a { color: var(--primary); text-decoration: none; }

/* Comment list */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.comment-list .children {
    list-style: none;
    margin: 16px 0 0 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Comment item */
.comment-body {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}
.bypostauthor > .comment-body {
    border-color: var(--primary, #0e9bb5);
    background: #f0fafd;
}
.comment-author .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
}
.comment-content-wrap { min-width: 0; }
.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.comment-author b { font-size: .92rem; font-weight: 700; color: var(--heading); }
.comment-author b a { color: inherit; text-decoration: none; }
.comment-author .says { display: none; }
.comment-metadata {
    font-size: .75rem;
    color: #aaa;
}
.comment-metadata a { color: #aaa; text-decoration: none; }
.comment-metadata a:hover { color: var(--primary); }

/* Badge tác giả */
.bypostauthor > .comment-body .comment-author b::after {
    content: 'Tác giả';
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 20px;
    vertical-align: middle;
}

.comment-content p {
    font-size: .9rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 6px;
}
.comment-content p:last-child { margin-bottom: 0; }

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    padding: 3px 0;
}
.comment-reply-link:hover { opacity: .8; }
.comment-reply-link::before { content: '↩'; }

/* Awaiting moderation */
.comment-awaiting-moderation {
    display: inline-block;
    margin-top: 6px;
    font-size: .75rem;
    color: #f5a623;
    background: #fff8ee;
    border: 1px solid #fde68a;
    padding: 2px 10px;
    border-radius: 20px;
}

/* No comments */
.no-comments {
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: .9rem;
}

/* Comment form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.comment-notes {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
    flex: 1;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
}
.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--primary, #0e9bb5);
    background: #fff;
}
.comment-form textarea { min-height: 120px; resize: vertical; }

/* 2 cột cho tên + email */
.comment-form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
/* WP mặc định không có wrapper row — ta dùng CSS nth */
.comment-form p.comment-form-author,
.comment-form p.comment-form-email,
.comment-form p.comment-form-url {
    margin: 0;
}

/* Cookie consent */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
}
.comment-form-cookies-consent input { margin-top: 3px; flex-shrink: 0; }

/* Submit */
.form-submit { margin: 0; }
#submit,
.comment-form input[type="submit"] {
    padding: 11px 28px;
    background: linear-gradient(135deg, #0e9bb5, #f5a623);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s;
}
#submit:hover,
.comment-form input[type="submit"]:hover { opacity: .88; }

/* Custom comment form fields */
.comment-form { gap: 0; }
.es-comment-field {
    margin-bottom: 14px;
}
.es-comment-field label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.es-comment-field .required { color: var(--primary); }
.es-comment-field input[type="text"],
.es-comment-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
    outline: none;
}
.es-comment-field input:focus,
.es-comment-field textarea:focus {
    border-color: var(--primary, #0e9bb5);
    background: #fff;
}
.es-comment-field--textarea textarea {
    min-height: 130px;
    resize: vertical;
}
.es-comment-submit-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.es-comment-submit {
    padding: 11px 28px;
    background: linear-gradient(135deg, #0e9bb5, #f5a623);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s;
}
.es-comment-submit:hover { opacity: .88; }

@media (max-width: 600px) {
    .comment-list .children { margin-left: 20px; }
    .comment-body { grid-template-columns: 36px 1fr; }
    .comment-form-fields-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE POST — Blog content styles
   ============================================================ */
.english-blog-content {
    font-size: 17px;
    line-height: 1.75;
}
.english-blog-content h2 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.3;
}
.english-blog-content h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.4;
}
.english-blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}
.english-blog-content table th,
.english-blog-content table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    vertical-align: top;
}
.english-blog-content table th {
    background: #f8fafc;
    font-weight: 700;
}
.blog-example-box,
.blog-exercise-box,
.blog-answer-box,
.blog-translation-box {
    padding: 16px 18px;
    margin: 16px 0;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}
.blog-example-box p,
.blog-exercise-box p,
.blog-answer-box p,
.blog-translation-box p {
    margin-bottom: 6px;
}
.blog-cta-box {
    margin-top: 36px;
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e9fbff 0%, #fff8ef 100%);
    border: 1px solid #d7eef5;
    text-align: center;
}
.blog-cta-box h3 {
    margin-top: 0;
    font-size: 24px;
}
.blog-cta-box .button {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    background: #f5a623;
    color: #fff;
}

/* Single post */
.single-post-header { padding: 60px 0 40px; background: var(--bg-light); }
.single-post-header .badge { margin-bottom: 16px; }
.single-post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 20px; max-width: 800px; }
.single-post-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.87rem; flex-wrap: wrap; }

.single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }

.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}
.post-content h2 { font-size: 1.5rem; margin: 36px 0 16px; }
.post-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-dark);
}
.post-content img { border-radius: var(--radius-md); margin: 24px 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.87em;
    font-family: monospace;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.widget ul { display: flex; flex-direction: column; gap: 10px; }
.widget ul li a {
    font-size: 0.88rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.widget ul li a:hover { color: var(--primary); }
.widget ul li a span { background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }

/* Recent posts widget */
.recent-post-item { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.recent-post-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.recent-post-info h4 { font-size: 0.85rem; line-height: 1.35; margin-bottom: 4px; }
.recent-post-info h4 a { color: var(--text-dark); }
.recent-post-info h4 a:hover { color: var(--primary); }
.recent-post-info span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-hero { padding: 56px 0; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 2.2rem; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--primary); }

.page-content-wrap { padding: 60px 0; }
.page-content { max-width: 820px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-body);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   VOCABULARY PAGE
   ============================================================ */
.vocab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.vocab-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
    cursor: pointer;
    background: var(--bg-white);
}
.vocab-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.vocab-word { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.vocab-phonetic { font-size: 0.82rem; color: var(--primary); margin-bottom: 8px; }
.vocab-type { font-size: 0.75rem; color: var(--bg-white); background: var(--primary); padding: 2px 10px; border-radius: 50px; display: inline-block; margin-bottom: 10px; }
.vocab-meaning { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .float-card-1 { right: 16px; }
    .float-card-2 { left: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .blog-layout, .single-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section-pad { padding: 48px 0; }
    #primary-navigation, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    #primary-navigation.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--bg-white);
        padding: 16px 24px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
    }
    #primary-navigation.open ul { flex-direction: column; gap: 2px; }
    .hero-title { font-size: 2rem; }
    .post-card { grid-template-columns: 1fr; }
    .post-thumb { height: 220px; }
    .post-body { padding: 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .paths-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .paths-grid { grid-template-columns: 1fr 1fr; }
    .trends-grid { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   WOOCOMMERCE BASIC COMPAT
   ============================================================ */
.woocommerce-notices-wrapper { margin-bottom: 20px; }

/* ============================================================
   HEADER — nút logged-in vs guest
   ============================================================ */
.btn-outline-header {
    padding: 7px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--primary, #0e9bb5);
    color: var(--primary, #0e9bb5);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}
.btn-outline-header:hover { background: var(--primary, #0e9bb5); color: #fff; }

/* Nút "Đăng ký" trong header — khớp kích thước với nút outline */
.header-cta .btn-primary {
    padding: 7px 18px;
    font-size: .88rem;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1.5;
    letter-spacing: 0;
    transform: none;
    box-shadow: none;
}
.header-cta .btn-primary:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(245,166,35,.35);
}

.btn-ghost-header {
    padding: 9px 16px;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color .15s;
}
.btn-ghost-header:hover { color: #111; }

/* ============================================================
   ARCHIVE — Hero, Filter, Grid, Sidebar
   ============================================================ */

/* Hero */
.arc-hero {
    background: linear-gradient(135deg, #f0fafd 0%, #e8f6fa 60%, #fff8ee 100%);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.arc-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.arc-hero__text { flex: 1; }
.arc-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--heading, #1a1a2e);
    margin: 12px 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.arc-hero__icon { font-size: 2rem; line-height: 1; }
.arc-hero__desc { color: var(--text-muted); font-size: .95rem; max-width: 540px; }
.arc-hero__art {
    position: relative;
    width: 160px;
    height: 120px;
    flex-shrink: 0;
}
.arc-hero__blob {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(14,155,181,.12) 0%, transparent 70%);
    border-radius: 50%;
}
.arc-hero__book {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.1));
}

/* Layout */
.arc-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Filter bar */
.arc-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.arc-filter__search {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
}
.arc-filter__search input {
    border: none;
    outline: none;
    font-size: .9rem;
    color: var(--text-dark);
    width: 100%;
    background: transparent;
    font-family: inherit;
}
.arc-filter__search input::placeholder { color: #bbb; }
.arc-filter__select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: .85rem;
    color: var(--text-dark);
    background: #fafafa;
    cursor: pointer;
    font-family: inherit;
}
.arc-filter__select:focus { outline: none; border-color: var(--primary); }

/* Post grid (3 cột) */
.arc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* Card dọc */
.arc-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.arc-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.arc-card__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f0f0f0;
}
.arc-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.arc-card:hover .arc-card__thumb img { transform: scale(1.05); }
.arc-card__thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #e0f5f9, #f0fafd);
}
.arc-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary, #0e9bb5);
    color: #fff;
    font-size: .7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.arc-card__badge-parent {
    opacity: .75;
    font-weight: 500;
}
.arc-card__badge-sep {
    opacity: .6;
    font-size: .65rem;
}
.arc-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.arc-card__title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}
.arc-card__title a { color: var(--heading, #1a1a2e); }
.arc-card__title a:hover { color: var(--primary); }
.arc-card__excerpt {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.arc-card__meta {
    display: flex;
    gap: 12px;
    font-size: .76rem;
    color: #aaa;
}
.arc-card__meta i { margin-right: 4px; }

/* Empty state */
.arc-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.arc-empty__icon { font-size: 3rem; margin-bottom: 16px; }
.arc-empty h3 { font-size: 1.2rem; color: var(--heading); margin-bottom: 8px; }
.arc-empty p { margin-bottom: 20px; }

/* Sidebar */
.arc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
}
.arc-widget {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 20px;
}
.arc-widget__title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Category list */
.arc-cat-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.arc-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: background .15s;
}
.arc-cat-list li:hover,
.arc-cat-list li.active { background: var(--primary-light, #e0f5f9); }
.arc-cat-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: .85rem;
    color: var(--text-dark);
    flex: 1;
    text-decoration: none;
}
.arc-cat-list li.active a { color: var(--primary); font-weight: 600; }
.arc-cat-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.arc-cat-count {
    font-size: .75rem;
    color: #aaa;
    padding-right: 10px;
    flex-shrink: 0;
}

/* Featured posts */
.arc-feat-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: opacity .15s;
}
.arc-feat-post:last-child { border-bottom: none; }
.arc-feat-post:hover { opacity: .8; }
.arc-feat-thumb {
    width: 68px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.arc-feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.arc-feat-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #e0f5f9, #f0fafd);
}
.arc-feat-title {
    font-size: .83rem;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.arc-feat-date { font-size: .72rem; color: #aaa; margin-top: 4px; }

/* CTA box */
.arc-cta-box {
    background: linear-gradient(145deg, #0e9bb5, #f5a623);
    border-radius: 14px;
    padding: 24px 20px;
    color: #fff;
    text-align: center;
}
.arc-cta-box__icon { font-size: 2.2rem; margin-bottom: 10px; }
.arc-cta-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.arc-cta-box p { font-size: .82rem; opacity: .9; line-height: 1.55; margin-bottom: 16px; }
.arc-cta-box .btn-primary {
    background: #fff;
    color: #0e9bb5;
    border-color: #fff;
    display: flex;
}
.arc-cta-box .btn-primary:hover { background: rgba(255,255,255,.9); transform: none; }

/* Search hero box */
.arc-search-hero {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--primary, #0e9bb5);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    max-width: 520px;
    box-shadow: 0 4px 20px rgba(14,155,181,.12);
}
.arc-search-hero input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 18px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}
.arc-search-hero input::placeholder { color: #bbb; }
.arc-search-hero button {
    padding: 13px 22px;
    background: var(--primary, #0e9bb5);
    color: #fff;
    border: none;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.arc-search-hero button:hover { background: #0a8ba3; }

/* Suggest category pills (empty state) */
.arc-suggest-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 8px;
}
.arc-suggest-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}
.arc-suggest-pill:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .arc-layout { grid-template-columns: 1fr; }
    .arc-sidebar { position: static; }
    .arc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .arc-grid { grid-template-columns: 1fr; }
    .arc-filter { flex-direction: column; align-items: stretch; }
    .arc-hero__art { display: none; }
}

/* ============================================================
   AUTH FORMS (đăng ký / đăng nhập / quên mật khẩu)
   ============================================================ */
.es-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 48px 16px;
}

.es-auth-box {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.es-auth-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #111;
    text-align: center;
}

.es-auth-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.es-auth-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.es-auth-form .es-field {
    margin-bottom: 16px;
}

.es-auth-form .es-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.es-auth-form input[type="text"],
.es-auth-form input[type="email"],
.es-auth-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s;
}

.es-auth-form input:focus {
    outline: none;
    border-color: #0e9bb5;
    background: #fff;
}

.es-field--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.es-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #374151;
}

.es-btn--full { width: 100%; justify-content: center; margin-top: 8px; }

.es-auth-footer {
    text-align: center;
    margin: 18px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.es-auth-footer a { color: #0e9bb5; font-weight: 600; text-decoration: none; }
.es-auth-footer a:hover { text-decoration: underline; }


/* ============================================================
   SINGLE POST � CTA BLOCK
   ============================================================ */
.es-post-cta {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #e0f5f9 0%, #f0fafd 100%);
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-top: 40px;
    margin-bottom: 8px;
}
.es-post-cta__icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}
.es-post-cta__content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.es-post-cta__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}
.es-post-cta__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .es-post-cta { flex-direction: column; padding: 20px; }
    .es-post-cta__btns { flex-direction: column; }
    .es-post-cta__btns .btn { text-align: center; }
}
