/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --bg: #f5f7fa;
    --fg: #0f1729;
    --card: #ffffff;
    --card-fg: #0f1729;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-fg: #ffffff;
    --primary-light: rgba(37, 99, 235, 0.08);
    --muted: #eff3f8;
    --muted-fg: #64748b;
    --border: #dde3ed;
    --accent: #22c55e;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    --transition: 200ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
img {
    max-width: 100%;
    display: block;
}
ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

#main {
    flex: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 247, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(221, 227, 237, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
}

.logo-text {
    line-height: 1.1;
}
.logo-text strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg);
    display: block;
}
.logo-text span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted-fg);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-fg);
    transition:
        color var(--transition),
        background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg);
    background: var(--muted);
}

.mobile-toggle {
    display: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background var(--transition);
    color: var(--fg);
}

.mobile-toggle:hover {
    background: var(--muted);
}
.mobile-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(221, 227, 237, 0.5);
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav.open {
    display: flex;
}
.mobile-nav .nav-link {
    padding: 0.75rem 1rem;
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
    text-align: center;
}

.hero-blob-1 {
    position: absolute;
    top: 20px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-blob-2 {
    position: absolute;
    bottom: 0;
    left: -80px;
    width: 240px;
    height: 240px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-fg);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-fg);
    pointer-events: none;
}

.search-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 2.75rem 0 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--card);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--fg);
    box-shadow: var(--shadow-sm);
    transition:
        box-shadow var(--transition),
        border-color var(--transition);
    outline: none;
}

.search-input::placeholder {
    color: var(--muted-fg);
}
.search-input:focus {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.4);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem;
    border-radius: 50%;
    color: var(--muted-fg);
    transition:
        background var(--transition),
        color var(--transition);
    display: none;
}

.search-clear.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-clear:hover {
    background: var(--muted);
    color: var(--fg);
}
.search-clear svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ============================================================
   ALPHABET NAV
   ============================================================ */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.letter-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-btn.all-btn {
    width: auto;
    padding: 0 0.625rem;
}

.letter-btn.available {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
}

.letter-btn.available:hover {
    background: var(--muted);
}

.letter-btn.active {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.letter-btn.unavailable {
    background: transparent;
    color: rgba(100, 116, 139, 0.3);
    cursor: not-allowed;
}

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    background: var(--card);
    color: var(--muted-fg);
    border: 1px solid var(--border);
}

.cat-btn:hover {
    background: var(--muted);
    color: var(--fg);
}

.cat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cat-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    transition: color var(--transition);
}

.see-all-link:hover {
    color: var(--primary-dark);
}
.see-all-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ============================================================
   GRID
   ============================================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1023px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 639px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FLIP CARD
   ============================================================ */
.flip-card {
    perspective: 1200px;
    height: 340px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flip-card-front {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.flip-card:hover .flip-card-front {
    box-shadow: var(--shadow-lg);
}

.flip-card-back {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-md);
    transform: rotateY(180deg);
}

.card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.625rem;
    line-height: 1.25;
}

.flip-card-back .card-title {
    color: white;
}

.card-desc {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    line-height: 1.65;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.flip-card-back .card-desc {
    color: rgba(255, 255, 255, 0.88);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.flip-card-back .card-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.flip-card-back .card-label {
    color: rgba(255, 255, 255, 0.85);
}

.card-hint {
    font-size: 0.75rem;
    color: var(--muted-fg);
}
.flip-card-back .card-hint {
    color: rgba(255, 255, 255, 0.6);
}

.card-views {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-fg);
}

.card-views svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
}

.card-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.card-more-link:hover {
    color: white;
}
.card-more-link svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
}

.share-btn {
    padding: 0.375rem;
    border-radius: var(--radius);
    color: var(--muted-fg);
    transition:
        background var(--transition),
        color var(--transition);
    opacity: 0;
    transition:
        opacity var(--transition),
        background var(--transition);
}

.flip-card:hover .share-btn {
    opacity: 1;
}
.share-btn:hover {
    background: var(--muted);
    color: var(--fg);
}
.share-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.flip-card-back .share-btn {
    opacity: 1;
    color: rgba(255, 255, 255, 0.7);
}

.flip-card-back .share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid;
    letter-spacing: 0.01em;
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.article-card {
    display: block;
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition:
        box-shadow var(--transition),
        transform var(--transition);
    text-decoration: none;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--muted);
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 1.25rem;
}

.article-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card-title {
    color: var(--primary);
}

.article-card-excerpt {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    line-height: 1.6;
    margin-bottom: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.read-more svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    transition: transform var(--transition);
}
.article-card:hover .read-more svg {
    transform: translateX(3px);
}

/* ============================================================
   VIDEO CARD
   ============================================================ */
.video-card {
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
}

.video-aspect {
    aspect-ratio: 16/9;
}
.video-aspect iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-card-body {
    padding: 1rem;
}

.video-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-desc {
    font-size: 0.8125rem;
    color: var(--muted-fg);
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: var(--card);
    color: var(--fg);
    border-color: var(--border);
    padding: 0.625rem 2rem;
    font-size: 0.9375rem;
}

.btn-outline:hover {
    background: var(--muted);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-fg);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius);
}

.btn-ghost:hover {
    background: var(--muted);
    color: var(--fg);
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* ============================================================
   PAGE SPECIFIC
   ============================================================ */
.page-section {
    padding: 3rem 0;
}
.page-section + .page-section {
    padding-top: 0;
}

.page-hero {
    padding: 4rem 0 2rem;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--fg);
}
.page-hero p {
    color: var(--muted-fg);
    margin-top: 0.25rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-fg);
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--fg);
}
.back-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.filters-section {
    padding: 0 0 1.5rem;
}
.filters-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pagination-info {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-fg);
    margin-bottom: 0.75rem;
}

/* Term detail */
.term-detail-hero {
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--muted-fg);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    transition: color var(--transition);
}
.breadcrumb a:hover {
    color: var(--fg);
}
.breadcrumb svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}
.breadcrumb .current {
    color: var(--fg);
    font-weight: 500;
}

.term-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.term-hero-content {
    flex: 1;
}

.term-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--fg);
    margin: 0.75rem 0 0.75rem;
    line-height: 1.1;
}

.term-subtitle {
    font-size: 0.9375rem;
    color: var(--muted-fg);
}
.term-subtitle strong {
    color: var(--fg);
}

.term-share-btn {
    flex-shrink: 0;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--muted);
    color: var(--muted-fg);
    transition:
        background var(--transition),
        color var(--transition);
    margin-top: 4px;
}

.term-share-btn:hover {
    background: var(--border);
    color: var(--fg);
}
.term-share-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.term-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.term-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.explanation-box {
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
}

.explanation-box.young {
    background: var(--card);
    border: 1px solid var(--border);
}

.explanation-box.formal {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.explanation-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.explanation-box.young .explanation-label {
    color: var(--primary);
}
.explanation-box.formal .explanation-label {
    color: rgba(255, 255, 255, 0.75);
}
.explanation-label svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

.explanation-text {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.explanation-box.young .explanation-text {
    color: var(--fg);
}
.explanation-box.formal .explanation-text {
    color: rgba(255, 255, 255, 0.95);
}

.letter-badge-box {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    background: rgba(245, 247, 250, 0.8);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.letter-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.letter-icon span {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

.letter-badge-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg);
}
.letter-badge-box a {
    font-size: 0.75rem;
    color: var(--primary);
}
.letter-badge-box a:hover {
    text-decoration: underline;
}

.related-section {
    margin-bottom: 3rem;
}

.cta-box {
    padding: 1.75rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.04) 0%,
        rgba(34, 197, 94, 0.04) 100%
    );
    border: 1px solid var(--border);
    text-align: center;
    margin-top: 3.5rem;
}

.cta-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.25rem;
}
.cta-box p {
    font-size: 0.875rem;
    color: var(--muted-fg);
    margin-bottom: 1.25rem;
}

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (max-width: 767px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    border-radius: var(--radius-xl);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.about-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.about-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
}
.about-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.about-card p {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.65;
}

.how-to-box {
    border-radius: var(--radius-xl);
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
    padding: 1.75rem 2rem;
}

.how-to-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 1.25rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.step-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.step-item span {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

.step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white !important;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Article detail / prose */
.article-detail {
    max-width: 720px;
}
.article-detail h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--fg);
}
.prose h2 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2rem 0 0.875rem;
    color: var(--fg);
}
.prose h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.625rem;
}
.prose p {
    margin-bottom: 20px !important;
    font-size: 16px !important;
    line-height: 26px !important;
}
.prose p span {
    margin-bottom: 0 !important;
    font-size: 16px !important;
    line-height: 26px !important;
}
.prose strong {
    font-weight: 700;
}
.prose ul,
.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.prose ul {
    list-style: disc;
}
.prose ol {
    list-style: decimal;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose a {
    color: #1e8cbb;
    text-decoration: underline;
    font-weight: 600;
}

.more-articles {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.more-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.more-articles-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
}

.prose .wp-caption {
    max-width: 100%;
}
.prose .wp-caption img {
    height: auto;
}
.prose .wp-caption .wp-caption-text {
    font-size: 12px;
    line-height: 25px;
    text-align: center;
    color: rgba(50, 48, 70, 0.8);
}
.prose .highlighted-article .highlighted-article--title {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 700;
    margin-bottom: 20px !important;
}
.prose .highlighted-article .article-list--item {
    padding-top: 26px;
    border-top: 1px solid rgba(50, 48, 70, 0.6);
    margin-bottom: 35px;
}
.prose .highlighted-article .article-list--item a {
    display: flex;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 24px;
    text-decoration: none;
    border-bottom: 1px solid rgba(50, 48, 70, 0.6);
}
.prose .highlighted-article .article-list--item a:last-of-type {
    margin-bottom: 0;
}
.prose .highlighted-article .article-list--item a .img {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 100px;
    width: 100px;
}
.prose .highlighted-article .article-list--item a .img::after {
    padding-top: 100%;
    content: "";
    display: block;
}
.prose .highlighted-article .article-list--item a .img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.prose .highlighted-article .article-list--item a .text {
    padding-left: 14px;
}
.prose .highlighted-article .article-list--item a .text h3 {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.16px;
    text-decoration: none !important;
    color: #323046 !important;
}
.prose iframe {
    display: block;
    margin-inline: auto;
    max-width: 100% !important;
}
.prose .instagram-media {
    max-width: 540px !important;
    min-width: 300px !important;
    margin-bottom: 3.5rem !important;
    margin-top: 3.5rem !important;
    margin-inline: auto !important;
}
.prose .youtube {
    margin: 35px auto;
    position: relative;
    display: block;
    max-width: 540px;
}
.prose #tpYtContainer iframe {
    max-width: 100% !important;
}
.prose .twitter-tweet,
.prose .twitter {
    margin: 30px auto !important;
}
.prose .facebook {
    margin: 35px auto;
    position: relative;
    display: block;
    max-width: 540px;
}
.prose .embed-responsive .tiktok-embed p {
    font-size: 0 !important;
    line-height: 0 !important;
}
.prose .embed-responsive .tiktok-embed a {
    font-size: 0 !important;
    line-height: 0 !important;
}
.prose .embed-responsive .tiktok-embed {
    font-size: 0 !important;
    line-height: 0 !important;
}

@media (min-width: 576px) {
    .prose .highlighted-article .article-list--item a .img::after {
        padding-top: 68.7%;
    }
}
@media (min-width: 768px) {
    .prose .highlighted-article .article-list--item a .text h3 {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.18px;
    }
}
@media (min-width: 1400px) {
    .prose .highlighted-article .article-list--item a .text {
        padding-left: 30px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.footer-inner {
    padding: 3.5rem 0;
}

.footer-main-partner {
    text-align: center;
    margin-bottom: 2.5rem;
}
.footer-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-fg);
    margin-bottom: 1rem;
}

.footer-partner-logo img {
    height: 48px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity var(--transition);
    margin: 0 auto;
}

.footer-partner-logo:hover img {
    opacity: 1;
}
.footer-partner-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fg);
}
.footer-partner-name:hover {
    color: var(--primary);
}

.footer-other-partners {
    text-align: center;
    margin-bottom: 2.5rem;
}
.footer-partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    font-size: 0.75rem;
    color: var(--muted-fg);
    transition: color var(--transition);
}
.footer-nav a:hover {
    color: var(--fg);
}
.footer-nav span {
    color: var(--border);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted-fg);
}

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--muted) 25%,
        var(--border) 50%,
        var(--muted) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xl);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 5rem 0;
}
.empty-state p {
    font-size: 1.0625rem;
    color: var(--muted-fg);
}

/* ============================================================
   TOAST
   ============================================================ */
#toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--fg);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    z-index: 100;
    white-space: nowrap;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.4s ease forwards;
}

/* ============================================================
   NOT FOUND
   ============================================================ */
.not-found {
    text-align: center;
    padding: 6rem 0;
}
.not-found .emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.not-found h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.not-found p {
    color: var(--muted-fg);
    margin-bottom: 2rem;
}

.footer-main-partner{
  margin-bottom: 30px;
}

.footer-main-partner:first-of-type .partner-grid a img{
    height: 65px;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partner-grid a {
     flex: 0 0 calc(50% - 20px/2);
        width: calc(50% - 20px/2);
    display: flex;
    justify-content: center;
}

.partner-grid img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .partner-grid a {
        flex: 0 0 calc(100%/3 - 40px/3);
        width: calc(100%/3 - 40px/3);
    }
}

@media (min-width: 992px) {
    .footer-main-partner{
        margin-bottom: 50px;
    }
    .partner-grid a {
        flex: 0 0 calc(100%/4 - 60px/4);
        width: calc(100%/4 - 60px/4);
    }
    .partner-grid img {
      height: 100px;
    }
    .footer-main-partner:first-of-type .partner-grid a img{
        height: 70px;
    }
}

@media (min-width: 1200px) {
    .partner-grid img {
      height: 115px;
    }
    .footer-main-partner:first-of-type .partner-grid a img{
        height: 78px;
    }
}