:root {
    --green-deep: #0D1B0F;
    --green-dark: #1B5E20;
    --green: #2E7D32;
    --green-light: #4CAF50;
    --copper: #F4C430;
    --copper-dark: #C8A02E;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --red: #d32f2f;
    --red-light: #ffebee;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Site-wide heading scale (consistent sizes and weights). */
    --heading-weight: 700;
    --h1-size: 1.7rem;
    --h2-size: 1.3rem;
    --h3-size: 1.15rem;
    --h4-size: 1.0rem;

    /* Typography: Pinar for headings, Yekan Bakh for body (see fonts.css). */
    --font-heading: 'Pinar', 'YekanBakhFaNum', 'Vazirmatn', Tahoma, Arial, sans-serif;
    --font-body: 'YekanBakhFaNum', 'Vazirmatn', Tahoma, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
    --font-size-body: 0.9rem;
    --line-height-body: 1.7;
    --line-height-prose: 2;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    background: var(--white);
    color: var(--gray-800);
    line-height: var(--line-height-body);
    /* Page shell: the footer always sits at (or below) the viewport bottom,
       even on short pages, without a padding-bottom hack. Each page supplies
       its own <main>; the shell itself stays in base.html. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-content { flex: 1 0 auto; width: 100%; }

/* Headings use the display font (Pinar). */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-subtitle,
.brand-name {
    font-family: var(--font-heading);
}

/* Consistent heading scale. Context rules below may adjust size, but all
   headings share this weight/line-height rhythm and the variables. */
h1 { font-size: var(--h1-size); font-weight: var(--heading-weight); line-height: 1.35; }
h2 { font-size: var(--h2-size); font-weight: 700; line-height: 1.4; }
h3 { font-size: var(--h3-size); font-weight: 700; line-height: 1.4; }
h4, h5, h6 { font-size: var(--h4-size); font-weight: 600; line-height: 1.4; }

/* Code-like PCB terminology, URLs, and serial values keep a stable Latin
   monospace fallback without changing the surrounding Persian prose. */
code, kbd, pre, samp {
    font-family: var(--font-mono);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
/* Top-level page sections (homepage bands, layout-level FAQ blocks) get the
   large vertical rhythm. Nested <section> inside content surfaces
   (.page-content, article bodies, tab panels) must NOT inherit 5rem padding.
   Only the inherited rhythm itself is neutralized; components that define
   their own intentional padding (e.g. .course-tab-panel) keep theirs. */
main.page > section,
body > section { padding: 5rem 0; }
.page-content > section { padding: 0; }
/* FAQ bands keep a compact intentional rhythm even inside content surfaces. */
.page-content section.bg-light { padding: 2.5rem 0; }
.bg-light { background: var(--gray-50); }
.text-center { text-align: center; }
.text-eng { font-size: 1.1rem; color: var(--gray-500); font-weight: 400; display: block; margin-bottom: 0.5rem; }

/* LTR field values inside the RTL layout: emails, URLs, phone numbers
   and password masks read best left-to-right. Use the .ltr utility on
   any other control (e.g. usernames) whose value is Latin. */
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"] {
    direction: ltr;
    text-align: left;
}
.ltr { direction: ltr; text-align: left; }

/* ====== TEXT LINKS (inline links inside article / richtext content) ======
   Distinguishable from body text but gentle: brand-green with a soft
   underline, darkening on hover/visited. Buttons (.btn) are excluded. */
.rich-text a:not(.btn):not(.social-icon-link):not(.listing-title-link),
.article-content a:not(.btn):not(.social-icon-link):not(.listing-title-link),
.article-body a:not(.btn):not(.social-icon-link):not(.listing-title-link),
.page-content a:not(.btn):not(.social-icon-link):not(.listing-title-link):not(.category-btn) {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(46, 125, 50, 0.35);
    transition: color var(--transition), text-decoration-color var(--transition);
}
.rich-text a:not(.btn):not(.social-icon-link):not(.listing-title-link):hover,
.article-content a:not(.btn):not(.social-icon-link):not(.listing-title-link):hover,
.article-body a:not(.btn):not(.social-icon-link):not(.listing-title-link):hover,
.page-content a:not(.btn):not(.social-icon-link):not(.listing-title-link):not(.category-btn):hover {
    color: var(--green-dark);
    text-decoration-color: var(--green-dark);
}
.rich-text a:not(.btn):not(.social-icon-link):not(.listing-title-link):visited,
.article-content a:not(.btn):not(.social-icon-link):not(.listing-title-link):visited,
.article-body a:not(.btn):not(.social-icon-link):not(.listing-title-link):visited,
.page-content a:not(.btn):not(.social-icon-link):not(.listing-title-link):not(.category-btn):visited {
    color: var(--green-dark);
}

/* Dashboard paragraphs and form text sit outside the article/page-content
   surfaces, so their bare anchors used to fall back to the browser default.
   They get the same gentle treatment; .btn, icon links, and component-owned
   links keep their own presentation. */
.dashboard-main p a:not(.btn):not(.social-icon-link),
.form-group a:not(.btn):not(.social-icon-link) {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(46, 125, 50, 0.35);
    transition: color var(--transition), text-decoration-color var(--transition);
}
.dashboard-main p a:not(.btn):not(.social-icon-link):hover,
.form-group a:not(.btn):not(.social-icon-link):hover {
    color: var(--green-dark);
    text-decoration-color: var(--green-dark);
}
.dashboard-main p a:not(.btn):not(.social-icon-link):visited,
.form-group a:not(.btn):not(.social-icon-link):visited {
    color: var(--green-dark);
}

/* Bare anchors with no class/id of their own are easy to leave as browser
   defaults (e.g. table empty-state copy). Give them the same gentle text-link
   treatment as a fallback. `:where()` keeps this at zero specificity, so any
   component-owned rule (.nav a, .footer-links a, .footer-legal a, ...) still
   keeps its own presentation above. */
:where(a:not([class]):not([id])),
.dashboard-main td a:not(.btn):not(.social-icon-link) {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(46, 125, 50, 0.35);
    transition: color var(--transition), text-decoration-color var(--transition);
}
:where(a:not([class]):not([id])):hover,
.dashboard-main td a:not(.btn):not(.social-icon-link):hover {
    color: var(--green-dark);
    text-decoration-color: var(--green-dark);
}
:where(a:not([class]):not([id])):visited,
.dashboard-main td a:not(.btn):not(.social-icon-link):visited {
    color: var(--green-dark);
}

/* ====== HEADER ====== */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 var(--gray-200);
    transition: box-shadow var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.brand-logo {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: none; }
.brand-name {
    font-weight: 700; font-size: 1.3rem; color: var(--green-dark);
    line-height: 1.3;
}
.brand-tagline {
    font-size: 0.7rem; color: var(--gray-500); font-weight: 500;
    white-space: nowrap;
}

/* Nav */
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a {
    text-decoration: none; color: var(--gray-700); font-weight: 500;
    font-size: 0.95rem; transition: color var(--transition);
    white-space: nowrap;
}
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--green); font-weight: 700; position: relative; }
.nav a.active::after {
    content: ""; position: absolute; bottom: -6px; right: 50%; transform: translateX(50%);
    width: 6px; height: 6px; background: var(--copper); border-radius: 50%;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger {
    display: flex; align-items: center; gap: 0.2rem; padding: 0;
    border: 0; background: transparent; color: var(--gray-700);
    font: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer;
}
.dropdown-trigger:hover { color: var(--green); }
.dropdown-trigger .arrow {
    display: inline-block; transition: transform var(--transition);
    font-size: 0.7rem; margin-inline-start: 0.25rem;
}
.dropdown-menu {
    position: absolute; top: 100%; inset-inline-start: 0; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    list-style: none; padding: 0.75rem; min-width: 320px;
    z-index: 200; margin-top: 0.5rem; border: 1px solid var(--gray-200);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown:hover .dropdown-menu {
    visibility: visible; opacity: 1; transform: translateY(0);
}
.dropdown-menu .path-link {
    display: block; padding: 0.75rem 1rem; border-radius: 0.5rem;
    text-decoration: none; color: var(--gray-700); transition: background var(--transition);
    font-size: 0.9rem;
}
.dropdown-menu .path-link:hover { background: var(--gray-50); }
.dropdown-menu .path-link strong { display: block; color: var(--gray-800); margin-bottom: 0.2rem; }
.dropdown-menu .path-link span { font-size: 0.75rem; color: var(--gray-400); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.5rem 0; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1.25rem; border-radius: var(--radius); font-weight: 600;
    text-decoration: none; transition: all var(--transition); border: none;
    font-family: inherit; font-size: 0.9rem; cursor: pointer;
}
.btn.btn-primary,
.btn.btn-primary:visited { background: var(--green); color: white; }
.btn.btn-primary:hover { background: var(--green-dark); color: white; transform: translateY(-1px); }
.wiki-index .wiki-submit-cta,
.wiki-index .wiki-submit-cta:visited {
    color: white;
    gap: 0.35rem;
    text-decoration: none;
}
.wiki-submit-icon { color: currentColor; font-size: 1.25em; font-weight: 700; line-height: 1; }
.wiki-index .wiki-submit-cta:hover {
    color: white;
    background: var(--green-dark);
}
.wiki-index .wiki-submit-cta:focus-visible {
    color: white;
    outline: 3px solid var(--copper);
    outline-offset: 3px;
}
.wiki-index { margin-top: 2rem; margin-bottom: 2rem; }
.wiki-index-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.wiki-index-description { color: var(--gray-600); margin-bottom: 1rem; }
.wiki-index-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; background: var(--gray-50); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.wiki-index-count { color: var(--green); font-size: 1.6rem; font-weight: 700; }
.wiki-index-latest { color: var(--green-dark); font-size: 1.1rem; font-weight: 700; }
.wiki-index-stat-label { color: var(--gray-600); font-size: 0.85rem; }
.wiki-index-search { display: flex; align-items: stretch; gap: 0.75rem; margin-bottom: 1.5rem; }
.wiki-index-search-field { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.wiki-index-search-field input { width: 100%; height: 100%; min-height: 3rem; text-align: right; }
.wiki-index-search .btn { flex: 0 0 auto; min-height: 3rem; min-width: 6rem; white-space: nowrap; }
.wiki-index-search .wiki-index-search-submit { min-height: 3rem; min-width: auto; padding: 0.4rem 1.1rem; font-size: 0.9rem; }
/* Ensure the embedded .form-group does not add extra block margin inside the flex row */
.wiki-index-search .form-group { margin-bottom: 0; }
.wiki-entry-no-description { color: var(--gray-400); }
.wiki-entry-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.wiki-entry-synonyms { color: var(--gray-500); font-size: 0.72rem; }
.wiki-index-empty { color: var(--gray-500); padding: 3rem 0; text-align: center; }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn-copper { background: var(--copper); color: var(--green-dark); font-weight: 700; }
.btn-copper:hover { filter: brightness(0.95); transform: translateY(-2px); }
.btn-ghost {
    background: transparent; color: var(--gray-600); border: none;
    padding: 0.5rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color var(--transition), transform var(--transition);
}
.btn-ghost .icon-search { display: block; }
.btn-ghost:hover { color: var(--green); }
.btn-ghost:active { transform: scale(0.9); }

/* Mobile Toggle */
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--green-dark); padding: 0.25rem; }

/* Search Overlay */
.search-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 27, 15, 0.85);
    backdrop-filter: blur(10px);
    z-index: 300; display: none;
    align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.search-overlay.open { display: flex; }
.search-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%; max-width: 640px;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}
@keyframes slideUp { to { transform: translateY(0); } }
.search-modal .search-title {
    font-size: 1.3rem; font-weight: 700; color: var(--gray-800);
    margin-bottom: 1.5rem;
}
.search-modal .search-field {
    display: flex; gap: 0.75rem; justify-content: center;
}
.search-modal input {
    flex-grow: 1; padding: 0.9rem 1.25rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius); font-family: inherit; font-size: 1rem;
    transition: border-color var(--transition);
}
.search-modal input:focus { outline: none; border-color: var(--green); }
.search-modal button {
    padding: 0.9rem 1.75rem; background: var(--green); color: white;
    border: none; border-radius: var(--radius); font-family: inherit;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: background var(--transition);
}
.search-modal button:hover { background: var(--green-dark); }
.search-modal .search-hint { font-size: 0.8rem; color: var(--gray-400); margin-top: 1rem; }
.search-close {
    position: absolute; top: 1.5rem; inset-inline-end: 1.5rem;
    background: rgba(255,255,255,0.2); border: none;
    color: white; font-size: 1.5rem; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.search-close:hover { background: rgba(255,255,255,0.3); }

/* ====== HERO ====== */
.hero {
    padding: 5rem 0 4rem; text-align: center;
    background: linear-gradient(135deg, #1B5E20, #2E7D32); color: white;
}
.hero .text-eng { color: rgba(255,255,255,0.7); }
.hero h1 { font-size: calc(var(--h1-size) * 1.2); font-weight: var(--heading-weight); margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 650px; margin: 0 auto 2rem; }
.hero .hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .hero-cta .btn { padding: 0.75rem 2rem; }
.hero .btn-outline { border-color: white; color: white; }
.hero .btn-outline:hover { background: white; color: var(--green-dark); }

/* ====== SECTION TITLES ====== */
.section-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 3rem; }
.bg-gradient .section-title, .bg-gradient .section-subtitle { color: white; }

/* ====== NEEDS / TASK CARDS ====== */
.needs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.need-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1.8rem; transition: box-shadow var(--transition);
    border: 1px solid var(--gray-100);
    display: flex; flex-direction: column;
}
.need-card:hover { box-shadow: var(--shadow); }
.need-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--gray-800); }
.need-card p { color: var(--gray-600); margin-bottom: 0; }
.need-card .service-intro { font-size: 0.9rem; }
.need-card .link { display: inline-block; margin-top: 1.25rem; color: var(--green); font-weight: 600; text-decoration: none; }
.need-card .link::after { display: inline-block; }
html[dir="ltr"] .need-card .link::after { content: " →"; }
html[dir="rtl"] .need-card .link::after { content: " ←"; }
.need-card img { width: calc(100% + 3.6rem); max-width: none; height: 180px; object-fit: cover; margin: -1.8rem -1.8rem 1.25rem; }

/* ====== KNOWLEDGE HUB ====== */
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.knowledge-card {
    background: var(--white); border-radius: var(--radius); padding: 1.75rem;
    box-shadow: var(--shadow-sm); transition: all var(--transition); text-align: center;
}
.knowledge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.knowledge-card .k-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.knowledge-card h3, .knowledge-card h4 { font-size: 1.15rem; color: var(--gray-800); margin-bottom: 0.5rem; }
.knowledge-card p { color: var(--gray-500); font-size: 0.9rem; }

/* ====== CASE STUDIES ====== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.case-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: all var(--transition);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-body { padding: 1.5rem; }
.case-body h4 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.case-meta span { background: var(--gray-100); padding: 0.25rem 0.75rem; border-radius: var(--radius); font-size: 0.8rem; color: var(--gray-600); }
.case-body blockquote { border-inline-start: 3px solid var(--green); padding-inline-start: 1rem; color: var(--gray-700); font-style: italic; margin: 1rem 0; }

/* ====== EVIDENCE / CASE STUDIES (prestigious grid, after hero) ====== */
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.case-studies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: stretch; }
.case-study {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: box-shadow var(--transition);
    border: 1px solid var(--gray-200); display: flex; flex-direction: column; height: 100%;
}
.case-study:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-study-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.case-study img { width: 100%; height: 220px; object-fit: cover; border-bottom: 3px solid var(--green-light); flex-shrink: 0; }
.case-study-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.case-study-body h3, .case-study-body h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.case-meta span { background: var(--gray-100); padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; color: var(--gray-500); }
.case-study-body blockquote { border-inline-start: 3px solid var(--green); padding-inline-start: 1rem; color: var(--gray-700); font-style: italic; margin: 1rem 0 0; }
.case-study-body .case-study-outcome { font-size: 0.9rem; }

/* ====== TESTIMONIALS / CREDIBILITY ====== */
.credibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.cred-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.cred-card .person { font-weight: 700; color: var(--gray-800); }
.cred-card .role { font-size: 0.85rem; color: var(--green); margin-bottom: 0.75rem; }
.cred-card blockquote { font-style: italic; color: var(--gray-700); margin: 0.5rem 0 0; border-inline-start: 3px solid var(--green); padding-inline-start: 1rem; }

.grid-empty { grid-column: 1 / -1; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.project-quote { border-inline-start: 3px solid var(--green); padding-inline-start: 1rem; color: var(--gray-700); font-style: italic; margin: 1.5rem 0; font-size: 1.05rem; }
.article-tag { background: var(--gray-100); color: var(--gray-600); padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; display: inline-block; }
.code-block { background: var(--gray-900); color: var(--gray-100); padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin: 2.5rem 0; }
.page-header-intro { opacity: 0.9; font-size: 1.1rem; }
.article-card-link { display: block; text-decoration: none; color: inherit; }

/* ====== INSTRUCTOR ====== */
.instructor-block {
    display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center;
    background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md);
    border-inline-start: 4px solid var(--green);
}
.instructor-block.without-image { grid-template-columns: 1fr; }
.instructor-block img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }
.instructor-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.instructor-info .badge { background: #e8f5e9; color: var(--green-dark); padding: 0.25rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; display: inline-block; margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.skill-tag { background: var(--gray-100); padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.85rem; }

/* ====== COURSES (subtle, lower priority) ====== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.course-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
    border: 1px solid var(--gray-100); display: flex; flex-direction: column; height: 100%;
}
.course-card:hover { box-shadow: var(--shadow); }
.course-card img { width: 100%; height: 160px; object-fit: cover; background: var(--gray-50); flex-shrink: 0; }
.course-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.course-body h2, .course-body h3, .course-body h4 { font-size: 1.0rem; margin-bottom: 0.5rem; }
.listing-title-link { color: inherit; text-decoration: none; }
.listing-title-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.2em; }

/* ====== SHARED LISTING FAMILY (Courses / Services / Projects) ======
   One calm engineering card language: white card, hairline border, subtle
   shadow, hover lift capped to a small offset, clamped summaries. */
.course-card,
.listing-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
}
.course-card:hover,
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course-card img,
.listing-card img { width: 100%; height: 200px; object-fit: cover; flex-shrink: 0; display: block; }
.course-card > .article-body,
.listing-card > .article-body,
.course-card > .course-body,
.listing-card > .listing-body {
    padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column;
}
.course-card h3,
.course-card h4,
.listing-card h3,
.listing-card h4 { font-size: 1.1rem; line-height: 1.55; margin-bottom: 0.5rem; color: var(--gray-800); }
.listing-meta { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); font-size: 0.8rem; color: var(--gray-400); }
.listing-grid { margin-bottom: 3rem; }
.index-body { max-width: 48rem; margin: 2.5rem auto 0; }
.index-body p { margin-bottom: 1rem; }
/* The global `* { padding: 0 }` reset strips the list marker gutter, so
   RichText lists on body blocks draw their markers outside the text column.
   Restore the indent (same convention as .standard-page/.article-content). */
.index-body ul,
.index-body ol { padding-inline-start: 1.5rem; margin: 0 0 1.3rem; color: var(--gray-700); }
.index-body li { margin-bottom: 0.5rem; }
/* /membership/: keep the text card's right edge aligned with the purchase card. */
.membership-page .index-body { margin-inline: 0 auto; }
.course-feedback-callout { max-width: 48rem; margin: 2.5rem auto; padding: 1rem 1.25rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-inline-start: 4px solid var(--green); border-radius: var(--radius); }
.course-feedback-callout p { margin: 0; color: var(--gray-700); line-height: 1.9; }
.course-feedback-callout a { color: var(--green); font-weight: 700; }
/* Workshop photos: centered when they fit, horizontally scrollable carousel
   (RTL-aware) when there are more than fit the container. */
.workshop-photos-carousel { position: relative; margin: 1.5rem 0; }
.workshop-photos-scroll { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.workshop-photos-row { display: flex; flex-wrap: nowrap; gap: 0.75rem; width: max-content; margin-inline: auto; }
.workshop-photos-row img { flex: 0 0 auto; width: 14rem; height: 10rem; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }
.workshop-photos-nav { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--gray-200); border-radius: 50%; background: rgba(255,255,255,0.95); color: var(--gray-700); font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.12); z-index: 2; padding: 0; }
.workshop-photos-nav:hover { color: var(--green); border-color: var(--green); }
.workshop-photos-nav:disabled { opacity: 0.45; cursor: default; }
.workshop-photos-nav[hidden] { display: none; }
.workshop-photos-prev { inset-inline-start: -0.6rem; }
.workshop-photos-next { inset-inline-end: -0.6rem; }
.course-body p { color: var(--gray-600); margin-bottom: 1rem; flex-grow: 1; }
.course-summary,
.article-summary,
.case-study-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
    min-height: 0;
}
.course-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); gap: 0.5rem; flex-wrap: wrap; }
.course-price { font-weight: 700; color: var(--green-dark); }
.courses-more { display: flex; justify-content: center; margin-top: 2rem; }

/* Course listing card convergence (task jb97YGMXD6nzbz): one calm card
   language shared with the Bazar grid, equal-height cards, fixed metadata and
   action areas, and RTL-safe wrapping. */
.courses-grid.listing-grid { grid-auto-rows: 1fr; }
.course-listing-card .listing-body { gap: 0.4rem; min-width: 0; }
.course-listing-card h3,
.course-listing-card .listing-title-link { overflow-wrap: anywhere; }
.course-card-intro {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    min-height: 0;
}
.course-card-meta {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.course-card-meta li { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.course-card-meta-icon { flex-shrink: 0; color: var(--green); }
.course-card-updated time { color: var(--gray-500); }
.course-card-benefit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dark);
}
.course-card-benefit-icon { flex-shrink: 0; }
.course-card-action { margin-top: auto; }
.course-card-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e8f5e9;
    color: var(--green-dark);
    flex-shrink: 0;
}
.course-card-unavailable { color: var(--gray-500); font-size: 0.85rem; }
@media (max-width: 480px) {
    .courses-grid.listing-grid { grid-template-columns: 1fr; }
}

/* Public course preview / sample videos (never purchase-gated). */
.course-preview { margin: 2.5rem 0; }
.course-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.course-sample-video { margin: 0; display: flex; flex-direction: column; }
.course-sample-video .public-video { margin: 0; }
.course-sample-video-caption { margin-top: 0.9rem; }
.course-sample-video-title { font-size: 1.05rem; margin: 0 0 0.35rem; color: var(--gray-800); }
.course-sample-video-description { color: var(--gray-600); font-size: 0.9rem; line-height: 1.8; margin: 0; }
@media (max-width: 480px) {
    .course-preview-grid { grid-template-columns: 1fr; }
}

/* Homepage course and project sections share a predictable responsive rhythm. */
.home-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ====== CORPORATE ====== */
.corp-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.corp-block.without-image { grid-template-columns: 1fr; }
.corp-text h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.corp-text p { color: var(--gray-600); margin-bottom: 1.5rem; line-height: 1.8; }
.corp-features { list-style: none; margin-bottom: 2rem; }
.corp-features li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.corp-features li::before { content: "✓"; color: var(--green); font-weight: 700; }
.corp-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ====== STUDENT VOICE ====== */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.voice-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem;
    box-shadow: var(--shadow); text-align: center; transition: all var(--transition);
}
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.voice-card .avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 1rem; border: 3px solid var(--green-light);
}
.voice-card h3, .voice-card h4 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.voice-card .role { color: var(--green); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.voice-card .skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.voice-card .skills span { background: var(--gray-100); padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.75rem; color: var(--gray-600); }

/* ====== CONTINUOUS LEARNING ====== */
.continuous-block {
    background: linear-gradient(135deg, #0D1B0F, #1B5E20);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 1rem;
}
.continuous-block h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.continuous-block p { opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }
.continuous-features {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
    margin: 1.5rem 0;
}
.continuous-features span {
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ====== FAQ ACCORDION ====== */
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1rem; overflow: hidden; }
.faq-question {
    width: 100%; text-align: start; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--gray-800);
    display: flex; justify-content: space-between; align-items: center; transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.faq-question-heading { margin: 0; }
.faq-question .icon { font-size: 1.5rem; font-weight: 300; color: var(--green); transition: transform var(--transition); flex-shrink: 0; margin-inline-start: 1rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1); padding: 0 1.5rem; color: var(--gray-600); line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 1.5rem 1.25rem; }
.faq-item.active .faq-question .icon { transform: rotate(45deg); }

/* ====== COURSE DETAIL TABS ====== */
.course-tabs { margin-top: 2rem; }
.course-tab-list { display: flex; gap: 0.5rem; overflow-x: auto; border-bottom: 1px solid var(--gray-200); }
.course-tab-list [role="tab"] { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--gray-600); cursor: pointer; font: inherit; font-weight: 600; padding: 0.8rem 1rem; }
.course-tab-list [role="tab"][aria-selected="true"] { border-bottom-color: var(--green); color: var(--green-dark); }
.course-tab-list [role="tab"]:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.course-tab-panel { padding-top: 2.5rem; }
.course-tab-panel[hidden] { display: none; }
.course-tab-panel--intro { padding: 2.5rem 1.5rem 0; max-width: 760px; margin-inline: auto; }
.course-tab-panel--framed { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--white); box-shadow: var(--shadow-sm); }
.course-tab-panel--framed { margin-top: 0.75rem; }
.course-intro { margin-bottom: 1rem; }
.course-tab-panel--framed .article-content > *:first-child { margin-top: 0; }
.course-tab-panel--framed .article-content > *:last-child { margin-bottom: 0; }
.course-tab-panel--syllabus .faq-list { margin-top: 0; }
.course-reviews-guidance { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: var(--gray-50); border-radius: var(--radius); border-inline-start: 3px solid var(--green); }
.course-instructor { display: flex; align-items: flex-start; gap: 1.25rem; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.course-instructor-photo-link { display: block; flex: 0 0 auto; }
.course-instructor-avatar { display: block; width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; }
.course-instructor-avatar-fallback { align-items: center; background: var(--green); color: var(--white); display: flex; font-size: 3rem; font-weight: 700; justify-content: center; }
.course-instructor-copy { min-width: 0; }
.course-instructor-label { color: var(--gray-500); font-size: 0.85rem; margin: 0 0 0.25rem; }
.course-instructor-name { margin: 0; }
.course-instructor-name a { color: var(--green-dark); text-decoration: none; }
.course-instructor-name a:hover { text-decoration: underline; }
.course-instructor-role, .course-instructor-credentials { color: var(--gray-600); margin: 0.3rem 0; }
.course-instructor-credentials { font-weight: 600; }
.course-instructor-bio { margin: 0.75rem 0 0; white-space: pre-line; }
@media (max-width: 600px) { .course-instructor { align-items: center; flex-direction: column; } .course-instructor-avatar { width: 7rem; height: 7rem; } }

/* ====== NEWSLETTER ====== */
.newsletter-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(46,125,50,0.15);
}
.newsletter-box h3, .newsletter-box h4 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.newsletter-box p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }
.newsletter-box .newsletter-form {
    display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
}
.newsletter-box input {
    padding: 0.6rem 1rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius); font-family: inherit; font-size: 0.9rem;
    min-width: 220px;
}
.newsletter-box input:focus { outline: none; border-color: var(--green); }
.newsletter-box button {
    padding: 0.6rem 1.5rem; background: var(--green); color: white;
    border: none; border-radius: var(--radius); font-family: inherit;
    font-weight: 600; cursor: pointer; font-size: 0.9rem;
    transition: background var(--transition);
}
.newsletter-box button:hover { background: var(--green-dark); }

/* ====== PAGE CONTENT (About, Contact, Privacy) ====== */
.page-content {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 3rem; margin: 2rem auto; max-width: 960px;
    width: calc(100% - 3rem);
    box-sizing: border-box;
}
.page-content.checkout-gate { max-width: 40rem; }
.checkout-gate-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-inline-start: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.checkout-gate-card h1 { font-size: 1.35rem; margin-top: 0; }
.checkout-gate-lead { font-weight: 600; color: var(--gray-700); }
.checkout-gate-actions { margin-top: 1.5rem; margin-bottom: 0; }
/* Ensure modifier classes do not override the canonical frame width */
.page-content.workshop-index,
.page-content.workshop-page,
.page-content.course-page,
.page-content.course-reviews,
.page-content.wiki-entry,
.page-content.wiki-submission,
.page-content.profile-detail,
.page-content.blog-index,
.page-content.blog-category,
.page-content.blog-post,
.page-content.contact-page,
.page-content.evaluation-page {
    max-width: 960px;
}
.page-content h1 { font-size: var(--h1-size); font-weight: var(--heading-weight); color: var(--gray-800); margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--green-dark); }
.page-content p { margin-bottom: 1.2rem; color: var(--gray-600); }
/* The global `* { padding: 0 }` reset strips the list marker gutter, so
   RichText lists on standard pages draw their markers outside the frame.
   Restore the indent (matching .article-content) inside the body blocks. */
.standard-page > div ul,
.standard-page > div ol { padding-inline-start: 1.5rem; margin: 0 0 1.3rem; color: var(--gray-700); }
.standard-page > div li { margin-bottom: 0.5rem; }
.page-content .lead { font-size: 1.15rem; color: var(--gray-700); margin-bottom: 2rem; }
.content-index-header h1 { margin-bottom: 0.5rem; }
.content-index-header .article-index-intro { color: var(--gray-600); }
.stat-card .number { font-size: 1.7rem; font-weight: 700; color: var(--green); }
.stat-card .label { color: var(--gray-500); font-size: 0.9rem; margin-top: 0.3rem; }
.timeline-item::before { content: ""; position: absolute; right: -2.45rem; top: 0.4rem; width: 12px; height: 12px; background: var(--green); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green-light); }
.team-photo img { width: 100%; display: block; }
.team-photo .caption { padding: 0.8rem 1.2rem; background: var(--gray-50); color: var(--gray-500); font-size: 0.9rem; }
.brands-strip {
    background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
    padding: 2rem 0; margin: 2.5rem 0; display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 2.5rem; opacity: 0.8;
}
.brands-strip span { font-weight: 700; font-size: 1.2rem; color: var(--gray-400); }
.cta-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-radius: var(--radius);
    padding: 2rem; text-align: center; margin-top: 2.5rem;
}
.cta-box h3 { margin-bottom: 0.5rem; color: var(--green-dark); }
.cta-box a { color: var(--green); font-weight: 600; text-decoration: none; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.8rem 1rem; margin-bottom: 1rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
    background: var(--white); transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.contact-info .info-card { background: var(--gray-50); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.contact-info .info-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ====== FOOTER ====== */
.site-footer {
    background: linear-gradient(135deg, #0D1B0F 0%, #1B5E20 100%);
    color: rgba(255,255,255,0.9);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    /* Flex-shell child: absorb leftover viewport space above the footer. */
    margin-top: auto;
}
.site-footer::before {
    content: ""; position: absolute; top: -30%; left: -10%;
    width: 60%; height: 160%;
    background: radial-gradient(circle at 30% 50%, rgba(244, 196, 48, 0.04) 0%, transparent 60%);
    pointer-events: none;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
.footer-trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.trust-item { text-align: center; }
.trust-item .t-icon { font-size: 2rem; margin-bottom: 0.5rem; color: var(--copper); }
.trust-item .t-value { font-size: 1.7rem; font-weight: 700; color: var(--copper); }
.trust-item .t-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--copper); display: flex; align-items: center; gap: 0.25rem; }
.footer-col h4::after { content: ""; display: block; width: 24px; height: 2px; background: var(--copper); border-radius: 2px; }
.brand-col p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; font-size: 0.9rem; line-height: 1.9; }
.instructor-mini { display: flex; gap: 1rem; align-items: center; background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 1rem; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.instructor-mini img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--copper); }
.instructor-mini .im-name { font-weight: 700; color: white; }
.instructor-mini .im-title { font-size: 0.8rem; color: var(--copper); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: all var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: var(--copper); }
.footer-links a::before { content: "▸"; color: var(--copper); font-size: 0.7rem; }
html[dir="ltr"] .footer-links a:hover { transform: translateX(4px); }
html[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
html[dir="rtl"] .footer-links a::before { transform: scaleX(-1); }
.contact-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.contact-row .c-icon { font-size: 1.2rem; color: inherit; flex-shrink: 0; }
.contact-btn { display: inline-block; margin-top: 0.5rem; padding: 0.5rem 1.25rem; background: var(--copper); color: #1B5E20; border-radius: var(--radius); font-weight: 700; text-decoration: none; font-size: 0.9rem; transition: all var(--transition); }
.contact-btn:hover { background: var(--copper-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-bottom .copyright { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); text-decoration: none; transition: all var(--transition); font-size: 1.1rem; }
.social-links a:hover { background: var(--copper); color: #1B5E20; }

/* ====== TRUST BADGES ====== */
.trust-badges {
    display: flex; gap: 1rem; justify-content: flex-end; align-items: center;
    flex-wrap: wrap;
}
.trust-badges span {
    background: rgba(255,255,255,0.1); padding: 0.3rem 0.8rem;
    border-radius: var(--radius); font-size: 0.75rem; color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ====== FOOTER ACCORDION (MOBILE) ====== */
.footer-col-title {
    width: auto; border: 0; background: transparent; color: inherit;
    cursor: pointer; user-select: none; font: inherit; text-align: start;
}
.footer-col-title .accordion-arrow {
    display: none; transition: transform var(--transition); margin-inline-start: auto;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col h4::after { display: none; }
    .footer-col-title { width: 100%; }
    .footer-col-title .accordion-arrow { display: inline-block; }
    .footer-col.collapsed .footer-links,
    .footer-col.collapsed .instructor-mini,
    .footer-col.collapsed > p:not(.footer-col-title) { display: none; }
}
@media (max-width: 600px) {
    .site-footer { padding-top: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 1rem; }
    .footer-trust-bar { gap: 1.5rem; }
    .footer-col.collapsed .footer-links,
    .footer-col.collapsed .instructor-mini,
    .footer-col.collapsed .social-links,
    .footer-col.collapsed > p { display: none; }
}

/* ====== FLOATING CTA (MOBILE) ====== */
.floating-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); padding: 0.75rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15); z-index: 200;
    justify-content: space-between; align-items: center; gap: 1rem;
    box-sizing: border-box; min-height: 5rem;
}
.floating-cta span { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.floating-cta .btn { white-space: nowrap; }

/* ====== PAGE SWITCHING ====== */
.page { display: none; }
.page.active { display: block; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
    .nav a { font-size: 0.9rem; }
    .nav { gap: 1rem; }
}
@media (max-width: 980px) {
    .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav {
        display: none; flex-direction: column; position: absolute;
        top: 100%; right: 0; left: 0; background: var(--white);
        box-shadow: var(--shadow-lg); padding: 1.5rem; gap: 1rem;
        z-index: 99; border-bottom: 3px solid var(--green-light);
    }
    .nav.open { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; margin-top: 0; padding: 0.5rem 0; min-width: auto; border: none; opacity: 1; transform: none; display: none; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu { display: block; }
    .menu-toggle { display: block; }
    .header-actions .btn-ghost { display: flex; }
    .instructor-block { grid-template-columns: 1fr; }
    .corp-block { grid-template-columns: 1fr; }
    .hero h1 { font-size: calc(var(--h1-size) * 1.05); }
    .floating-cta { display: flex; }
    /* Keep the last content region scrollable above the fixed mobile CTA. */
    body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
    .brand-tagline { display: none; }
    .brand-logo { height: 38px; max-width: 150px; }
}
@media (max-width: 600px) {
    .home-card-grid { grid-template-columns: minmax(0, 1fr); }
    .nav { gap: 0.75rem; }
    .header { padding: 0.6rem 0; }
    .brand svg { width: 32px; height: 32px; }
    .brand-logo { height: 34px; max-width: 130px; }
    .brand-name { font-size: 1.1rem; }
}
.btn-danger:hover { background: #b71c1c; transform: translateY(-1px); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
/* ====== FORM STYLES ====== */
.profile-form-section-title { margin: 1.75rem 0 0.9rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--gray-100); font-size: 1.05rem; font-weight: 700; color: var(--gray-800); }
.profile-form-section-title:first-of-type { margin-top: 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--gray-700); font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
    transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .help-text { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.3rem; }
.form-group .error-text { font-size: 0.8rem; color: var(--red); margin-top: 0.3rem; }
.form-group input.error { border-color: var(--red); }
/* Clearable file field: the current file, its clear control, and the replacement
   input read as separate rows instead of one inline soup. The clear checkbox
   must not inherit the full-width field input box. */
.form-group .form-file-current,
.form-group .form-file-change { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.form-group .form-file-current { padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.form-group .form-file-change { margin-bottom: 0.3rem; }
.form-group .form-file-current-label,
.form-group .form-file-change-label { color: var(--gray-500); font-size: 0.85rem; }
.form-group .form-file-clear { display: inline-flex; align-items: center; gap: 0.4rem; margin-inline-start: auto; padding: 0.2rem 0.7rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; }
.form-group .form-file-clear input[type="checkbox"] { width: auto; padding: 0; margin: 0; border: none; background: none; accent-color: var(--green); }
.form-group .form-file-clear label { display: inline; margin: 0; font-weight: 500; font-size: 0.85rem; color: var(--gray-700); cursor: pointer; }
/* ====== HUB / LISTING HEADER (unified shell for all hub pages) ====== */
.page-header-hub,
.page-header-blog {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: white; padding: 3rem 0; text-align: center; margin-bottom: 3rem;
}
.page-header-hub h1,
.page-header-blog h1 { font-size: var(--h1-size); font-weight: var(--heading-weight); margin-bottom: 0.5rem; }
.page-header-hub .page-header-intro,
.page-header-blog .page-header-intro { opacity: 0.9; font-size: 1.1rem; }
.category-btn {
    background: var(--white); color: var(--green-dark); border: 2px solid var(--green-light);
    padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.category-btn:hover, .category-btn.active-cat { background: var(--green); color: white; border-color: var(--green); box-shadow: var(--shadow-md); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; margin-bottom: 3rem; align-items: stretch; }
.article-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: all var(--transition); display: flex; flex-direction: column; height: 100%;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card img { width: 100%; height: 200px; object-fit: cover; flex-shrink: 0; }
.article-card.article-card-link { display: flex; flex-direction: column; height: 100%; }
.article-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-body h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--gray-800); line-height: 1.5; }
.article-body p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; flex-grow: 1; }
.article-meta { font-size: 0.8rem; color: var(--gray-400); border-top: 1px solid var(--gray-100); padding-top: 0.75rem; margin-top: auto; }
.tag-btn {
    background: var(--gray-100); color: var(--gray-600); padding: 0.3rem 1rem;
    border-radius: 50px; font-size: 0.8rem; font-weight: 500; text-decoration: none;
    transition: all var(--transition); border: 1px solid transparent;
}
.tag-btn:hover { background: var(--green); color: white; border-color: var(--green); }

/* ====== SINGLE ARTICLE ====== */
.article-hero {
    position: relative; width: 100%; min-height: 200px; max-height: 460px; overflow: hidden; margin-bottom: 2rem;
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    display: flex; align-items: center; justify-content: center;
}
.article-hero img { width: auto; max-width: 100%; max-height: 460px; height: auto; display: block; object-fit: contain; }
.article-hero:has(img) { min-height: auto; }
/* Compact title hero for service/project detail shells: a stable green band
   with title metadata, no image container. */
.article-hero-compact { min-height: 220px; max-height: 300px; display: flex; align-items: center; text-align: center; }
.article-hero-compact .container { width: 100%; }
.article-hero-compact h1 { color: var(--white); margin: 0 0 0.5rem; font-size: var(--h1-size); font-weight: var(--heading-weight); }
.article-hero-compact .hero-lead { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.article-hero-compact .hero-meta { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 0.75rem; }
.article-featured-image { margin: 0 0 2.5rem; }
.article-hero::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%); pointer-events: none; }
.article-hero-plain {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
}
.article-hero-plain::after { display: none; }
.article-main {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 3rem; margin-top: -4rem; position: relative; z-index: 10; margin-bottom: 3rem;
}
.article-main h1 { font-size: var(--h1-size); font-weight: var(--heading-weight); color: var(--gray-800); line-height: 1.4; margin-bottom: 1rem; }
.article-excerpt { font-size: 1.2rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.article-meta-big { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 2rem; color: var(--gray-500); font-size: 0.9rem; }
.article-meta-big .author { font-weight: 600; color: var(--green); }
.article-attribution { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.article-attribution:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.article-category-badge:hover { background: var(--green); color: white; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.article-tags a { background: var(--gray-100); color: var(--gray-600); padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; text-decoration: none; transition: all var(--transition); }
.article-tags a:hover { background: var(--green); color: white; }
.article-content h2 { font-size: 1.3rem; color: var(--green-dark); margin: 2.5rem 0 1rem; }
.article-content h3 { font-size: 1.15rem; margin: 1.8rem 0 0.8rem; color: var(--gray-800); }
.article-content p { margin-bottom: 1.3rem; color: var(--gray-700); line-height: var(--line-height-prose); }
.article-content blockquote {
    background: var(--gray-50); border-inline-start: 4px solid var(--green); border-radius: var(--radius-sm);
    color: var(--gray-700); margin: 2rem 0; padding: 1.25rem 1.5rem;
}
.article-content ul, .article-content ol { margin-bottom: 1.3rem; padding-inline-start: 1.5rem; color: var(--gray-700); }
.article-content li { margin-bottom: 0.5rem; }
.article-image { margin: 2.5rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--gray-50); }
.article-image img { width: 100%; display: block; }
.article-image figcaption { padding: 0.8rem 1.2rem; color: var(--gray-500); font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; background: var(--gray-50); }
.article-image figcaption .caption-text { color: var(--gray-700); font-weight: 500; }
.article-image figcaption .source { color: var(--gray-400); font-size: 0.8rem; }
.course-featured-image,
.course-content-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-50);
    box-shadow: var(--shadow-md);
}
.course-featured-image img,
.course-content-image img {
    display: block;
    width: 100%;
    height: auto;
}
.course-content-image figcaption {
    position: relative;
    margin-top: -2.6rem;
    padding: 0.65rem 1rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    font-size: 0.85rem;
}
.article-card-link { color: inherit; text-decoration: none; }
.article-index-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.related-posts h3 { margin-bottom: 1.5rem; color: var(--gray-800); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-card .related-body { padding: 0.8rem; }
.related-card h4 { font-size: 0.9rem; color: var(--gray-800); }

/* ====== SEARCH RESULTS ====== */
.search-result-item {
    padding: 1.5rem 0; border-bottom: 1px solid var(--gray-200);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.search-result-item h3 a { color: var(--green-dark); text-decoration: none; }
.search-result-item h3 a:hover { color: var(--green); }
.search-result-item .result-url { font-size: 0.85rem; color: var(--green); margin-bottom: 0.5rem; }
.search-result-item p { color: var(--gray-600); font-size: 0.95rem; }

/* ====== LOGIN / REGISTER ====== */
.auth-container {
    max-width: 480px; margin: 3rem auto; width: 100%; padding: 0 1rem;
    box-sizing: border-box;
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.5rem;
}
.auth-card h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.auth-card .auth-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 2rem; }
.auth-card .auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.auth-card .auth-switch a { color: var(--green); font-weight: 600; text-decoration: none; }
.auth-separator::before, .auth-separator::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }

/* ====== DASHBOARD ====== */
/* RTL (dir=rtl): the 280px column flows to the RIGHT of the 1fr main
   area, so .dashboard-sidebar is always on the right. Sticky keeps it
   visible while the main content scrolls. */
.dashboard-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; margin: 2rem auto; max-width: 1200px; width: calc(100% - 2rem); }
.dashboard-sidebar {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 2rem; height: fit-content; align-self: start; position: sticky; top: 1.5rem;
}
.dashboard-sidebar .user-info { text-align: center; margin-bottom: 2rem; }
.dashboard-sidebar .avatar-wrap {
    align-items: center; aspect-ratio: 1; background: var(--gray-100); border-radius: 50%;
    display: flex; justify-content: center; margin: 0 auto 1rem; overflow: hidden; width: 100px;
}
.dashboard-sidebar .user-avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    margin: 0; border: 4px solid var(--green-light);
}
.dashboard-sidebar .user-name { font-weight: 700; font-size: 1.2rem; }
.dashboard-sidebar .user-role { color: var(--green); font-size: 0.85rem; font-weight: 600; }
.verified-badge { align-items: center; display: inline-flex; flex-shrink: 0; }
.verified-badge svg { fill: #1D9BF0; height: 1.25rem; width: 1.25rem; }
.profile-identifier { direction: ltr; color: var(--gray-500); font-size: 0.9rem; margin: 0.5rem 0 0; text-align: match-parent; unicode-bidi: isolate; }
.profile-about { margin-bottom: 1.5rem; text-align: start; }
.profile-about h2 { margin-bottom: 0.5rem; }
.profile-about p { color: var(--gray-700); }
.profile-certificate { background: #f0fdfa; border-inline-start: 4px solid #0f766e; border-radius: var(--radius); color: var(--gray-700); margin: 0 0 1.5rem; padding: 1rem 1.25rem; }
.profile-certificate p { margin: 0; }
.dashboard-sidebar .sidebar-nav { list-style: none; }
.dashboard-sidebar .sidebar-nav li { margin-bottom: 0.5rem; }
.dashboard-sidebar .sidebar-nav a {
    display: block; padding: 0.6rem 1rem; border-radius: var(--radius); text-decoration: none;
    color: var(--gray-700); font-weight: 500; transition: all var(--transition);
}
.dashboard-sidebar .sidebar-nav a:hover, .dashboard-sidebar .sidebar-nav a.active { background: #e8f5e9; color: var(--green-dark); }
.dashboard-main { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.dashboard-page-title { font-size: 1.5rem; color: var(--gray-800); margin: 0 0 0.25rem; }
.dashboard-page-lead { margin: 0; }
.form-errors,
.auth-error,
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.dashboard-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; min-width: 0;
}
.dashboard-card h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--gray-800); }
.dashboard-card table { width: 100%; border-collapse: collapse; }
.dashboard-card table th, .dashboard-card table td { text-align: start; padding: 0.75rem; border-bottom: 1px solid var(--gray-100); }
.dashboard-card table th { font-weight: 600; color: var(--gray-500); font-size: 0.85rem; background: var(--gray-50); }
.dashboard-card table td { font-size: 0.9rem; }
.dashboard-card .badge-active { background: #e8f5e9; color: var(--green-dark); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.dashboard-card .badge-expired { background: var(--red-light); color: var(--red); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.dashboard-title + .lead { margin: 0; }
.dashboard-logout-form { display: inline; }
.dashboard-logout-btn { color: var(--red); border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; }
.dashboard-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1rem; }
.dashboard-fact { display: flex; align-items: center; gap: 0.5rem; }
.dashboard-fact-label { color: var(--gray-500); font-size: 0.85rem; font-weight: 600; }
.dashboard-fact-value { font-size: 0.9rem; color: var(--gray-800); }
.dashboard-prompts { display: flex; flex-direction: column; gap: 0.5rem; }
.dashboard-prompt { margin: 0; font-size: 0.9rem; color: var(--gray-700); }
.dashboard-coupon-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.75rem; padding: 1rem 1.25rem; background: var(--gray-50); border: 1px dashed var(--green-light); border-radius: var(--radius); }
.dashboard-coupon-code { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.15em; color: var(--green-dark); }
.dashboard-coupon-meta { font-size: 0.85rem; color: var(--gray-500); }
.dashboard-note { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--gray-600); }
.dashboard-mono { font-family: monospace; }
.dashboard-muted { color: var(--gray-500); }
.dashboard-empty { text-align: center; color: var(--gray-500); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* ====== DIRECTORY ====== */
.directory-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.directory-entry {
    background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 1.5rem;
}
.directory-entry h3 { margin-bottom: 0.5rem; }
.directory-entry h3 a { color: var(--green-dark); text-decoration: none; }
.directory-entry h3 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.2em; }
.directory-grade { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0.5rem; }
.directory-entry-expired { border-color: var(--red-light); }
.directory-expired-label { display: inline-block; margin-top: 0.75rem; background: var(--red-light); color: var(--red); font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; }
.directory-cta { text-align: center; margin: 3rem 0 0; }
/* Directory body owns its own bottom rhythm; the trailing pagination/CTA must
   not stack a second margin on top of it before the footer. */
.directory-page { padding: 0 0 4rem; }
.directory-page .pagination { margin-bottom: 0; }
/* Latin certificate grades (A/A+/A++) inside RTL directory copy: isolate the
   token so the trailing plus signs keep their left-to-right order. */
.certificate-grade { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
/* The Latin face for this identifier lives in css/profile-certificate-code.css,
   which only the profile template loads. */
.certificate-code { direction: ltr; unicode-bidi: isolate; }
/* Public certificate verification: compact, left-aligned (LTR) fact table. */
.certificate-verification-table { border-collapse: collapse; width: 100%; max-width: 34rem; margin: 0 0 2rem; }
.certificate-verification-table th,
.certificate-verification-table td { text-align: left; padding: 0.6rem 0.9rem; border: 1px solid var(--gray-200); vertical-align: top; }
.certificate-verification-table th { width: 40%; background: var(--gray-50); color: var(--gray-700); font-weight: 600; }
.certificate-verification-table td { color: var(--gray-700); }
.certificate-verification-table a { color: var(--green); font-weight: 600; }
/* Equal-height member cards: the grid item stretches, the card fills it, and
   the social row pins to the bottom so a member with icons stays aligned. */
.directory-entry { display: flex; flex-direction: column; }
.directory-card { display: flex; flex-direction: column; flex: 1 1 auto; }
.directory-card-content { display: flex; flex-direction: column; flex: 1 1 auto; }
.directory-socials { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }
.directory-socials .social-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-50); color: var(--green-dark); text-decoration: none; transition: background var(--transition), color var(--transition); }
.directory-socials .social-link:hover { background: var(--green); color: var(--white); }
.directory-socials .social-link .icon { width: 18px; height: 18px; }
.profile-badge-area { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.profile-badge { display: inline-flex; align-items: center; justify-content: center; }
.profile-grade-icon { width: 22px; height: 22px; color: var(--green-dark); }
.profile-cert-summary { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 1.25rem 0; font-size: 0.85rem; color: var(--gray-600); line-height: 1.9; }
.profile-cert-summary a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.profile-cert-summary a:hover { text-decoration: underline; }
.directory-search {
    display: flex; align-items: stretch; gap: 0.75rem;
    max-width: 640px; margin: 0 auto 2.5rem;
}
.directory-search-input {
    flex: 1 1 0; min-width: 0; min-height: 3rem;
    padding: 0.9rem 1.25rem;
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    font-family: inherit; font-size: 1rem; text-align: right;
    transition: border-color var(--transition);
}
.directory-search-input:focus { outline: none; border-color: var(--green); }
.directory-search-input::placeholder { color: var(--gray-400); }
.directory-search-submit { flex: 0 0 auto; min-height: 3rem; min-width: 6rem; white-space: nowrap; }
@media (max-width: 480px) {
    .directory-search { flex-direction: column; }
    .directory-search-submit { width: 100%; }
}

/* ====== BREADCRUMB (shared, blog-detail language) ====== */
.breadcrumb {
    display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center;
    margin-bottom: 1.5rem; color: var(--gray-500); font-size: 0.85rem;
}
.breadcrumb a { color: var(--green-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.2em; }
.breadcrumb-sep { color: var(--gray-400); }
.breadcrumb [aria-current="page"] { color: var(--gray-700); font-weight: 600; }
.bazar-header-cta { margin-top: 1.5rem; }
.page-header-hub .btn-hero,
.page-header-blog .btn-hero {
    background: var(--white); color: var(--green-dark); border: 2px solid var(--white);
}
.page-header-hub .btn-hero:hover,
.page-header-blog .btn-hero:hover {
    background: var(--green-dark); color: var(--white); border-color: var(--white);
}
.bazar-editorial { max-width: 760px; margin: 0 auto 2.5rem; }
/* Bazar submit advertisement information panel (unified CTA + topic scope) */
.bazar-submit-panel {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1px solid rgba(46,125,50,0.18);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 0 0 3rem;
    text-align: center;
}
.bazar-submit-panel-title { font-size: 1.4rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.bazar-submit-panel-note { color: var(--gray-700); font-size: 0.95rem; max-width: 560px; margin: 0 auto 1.25rem; line-height: 1.8; }
.bazar-submit-panel-cta { display: flex; justify-content: center; }
.bazar-submit-panel-cta .btn { font-weight: 700; }
@media (max-width: 480px) {
    .bazar-submit-panel { padding: 1.5rem 1rem; }
    .bazar-submit-panel-cta .btn { width: 100%; }
}
.bazar-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem; margin-bottom: 3rem; align-items: stretch;
}
.bazar-listing-card {
    background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden;
}
.bazar-listing-media { aspect-ratio: 3 / 2; overflow: hidden; flex-shrink: 0; }
@media (max-width: 480px) {
    .bazar-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .bazar-header-cta .btn { width: 100%; }
}
.bazar-listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bazar-listing-body { padding: 1.25rem 1.4rem 1.1rem; display: flex; flex-direction: column; flex-grow: 1; }
.bazar-listing-type {
    align-self: flex-start; background: var(--gray-100); color: var(--gray-600);
    border-radius: 999px; padding: 0.15rem 0.8rem; font-size: 0.78rem; font-weight: 600;
    margin-bottom: 0.75rem;
}
.bazar-listing-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.35rem; line-height: 1.5; }
.bazar-listing-company { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 0.9rem; }
.bazar-listing-description {
    color: var(--gray-600); font-size: 0.92rem; line-height: 1.9; margin-bottom: 1.1rem; flex-grow: 1;
}
.bazar-listing-links { margin-top: 0.75rem; margin-bottom: 0.6rem; border-top: 1px solid var(--gray-200); padding-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bazar-listing-links a {
    width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--green); text-decoration: none; transition: all var(--transition);
}
.bazar-listing-links a:hover { background: var(--green); color: white; }
.bazar-listing-links a:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.bazar-listing-body time { display: block; color: var(--gray-400); font-size: 0.78rem; margin-top: 0.9rem; }
.flash-messages { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem auto; max-width: 1200px; padding: 0 1rem; }
.flash-message { border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; }
.flash-success { background: #e8f5e9; color: var(--green-dark); }
.flash-warning, .flash-debug, .flash-info { background: var(--gray-100); color: var(--gray-700); }
.dashboard-table-wrap { overflow-x: auto; }
.commerce-dashboard-note { color: var(--gray-500); margin-bottom: 1.5rem; }
.commerce-license-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.commerce-license-table th { text-align: start; padding: 0.75rem; background: var(--gray-50); }
.commerce-license-table td { padding: 0.75rem; border-bottom: 1px solid var(--gray-100); }
.commerce-license-product { font-weight: 600; }
.commerce-license-muted { color: var(--gray-600); }
.commerce-license-key { background: var(--gray-100); padding: 0.3rem 0.6rem; border-radius: 0.5rem; font-size: 0.8rem; }
.commerce-license-help { background: var(--gray-50); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; }
.commerce-license-help h3 { margin-bottom: 0.5rem; }
.commerce-license-help ol { padding-inline-start: 1.25rem; color: var(--gray-700); font-size: 0.9rem; line-height: 1.9; }
.commerce-license-empty { text-align: center; padding: 2.5rem 0; background: var(--gray-50); border-radius: var(--radius); }
.commerce-license-empty p:first-child { color: var(--gray-500); margin-bottom: 0.5rem; }
.commerce-license-empty p:last-child { font-size: 0.85rem; color: var(--gray-400); }
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page-code { font-size: 5rem; line-height: 1; margin-bottom: 1rem; color: var(--copper); font-weight: 700; }
.error-page-code.error-page-code-server { color: var(--red); }
.error-page h1 { margin-bottom: 1rem; }
.error-page-message { color: var(--gray-600); margin-bottom: 2rem; max-width: 480px; margin-inline: auto; }
.error-page-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.newsletter-confirmation { max-width: 640px; text-align: center; padding: 3rem 1.5rem; }
.newsletter-confirmation-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.newsletter-confirmation .lead { margin-bottom: 0.5rem; }
.newsletter-confirmation-description { color: var(--gray-600); }
.newsletter-confirmation-recipient { color: var(--gray-500); font-size: 0.9rem; margin-top: 1.5rem; }
.newsletter-confirmation form { margin-top: 1.5rem; }
.newsletter-confirmation-actions { margin-top: 2rem; }
.faq-list { max-width: 800px; margin: 0 auto; }
.newsletter-message { font-size: 0.85rem; color: var(--red); margin-bottom: 0.5rem; }
.home-testimonials { background: var(--gray-50); }
.continuous-action { margin-top: 1rem; }
.instructor-more-link { display: inline-block; margin-top: 1.5rem; color: var(--green); font-weight: 600; }
.knowledge-card { text-decoration: none; color: inherit; }
.footer-legal { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-legal a { color: inherit; text-decoration: none; }
.voice-quote { font-size: 0.9rem; color: var(--gray-600); margin: 0.75rem 0; }
.voice-card-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--gray-100); border: 2px dashed var(--green-light); }
.voice-card-cta-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.voice-card-cta h3, .voice-card-cta h4 { margin-bottom: 0.5rem; }
.voice-card-cta p { font-size: 0.9rem; color: var(--gray-600); }
.wiki-submission { max-width: 100%; }
.wiki-submission h1, .wiki-entry h1 { margin-bottom: 0.5rem; }
.wiki-submission .lead { margin-bottom: 2rem; }
.wiki-submission-sender { color: var(--gray-600); margin-bottom: 1.5rem; }
.wiki-submission-messages { margin-bottom: 1.5rem; }
.wiki-submission-message { background: #e8f5e9; color: var(--green-dark); padding: 1rem; border-radius: var(--radius); border: 1px solid rgba(46,125,50,0.2); }
.wiki-submission .btn { width: 100%; padding: 0.8rem; font-size: 1rem; }
.wiki-entry { max-width: 100%; }
.wiki-featured-image,
.wiki-inline-image {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0;
}
.wiki-featured-image img,
.wiki-inline-image img {
    display: block; max-width: 100%; height: auto;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.wiki-featured-image figcaption,
.wiki-inline-image figcaption {
    color: var(--gray-500); font-size: 0.85rem; text-align: center;
    margin-top: 0.5rem;
}
.wiki-back-link {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.wiki-back-link .btn { min-width: 10rem; }
.wiki-entry .wiki-entry-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.wiki-entry .wiki-entry-synonyms { color: var(--gray-600); margin-bottom: 1.25rem; }
.wiki-entry .article-content { margin-top: 1.5rem; }
.wiki-entry-references li { margin-bottom: 0.6rem; }
/* ====== PROFILE DETAIL (semantic replacements for inline styles) ====== */
.profile-header { border-bottom: 1px solid var(--gray-200); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.profile-header-inner { display: flex; align-items: center; gap: 1rem; }
.profile-avatar-wrap { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-detail-copy { min-width: 0; }
.profile-detail-name { display: flex; align-items: center; gap: 0.5rem; }
.profile-detail-name h1 { margin: 0; }
.profile-section { margin-bottom: 1.5rem; }
.profile-section h2 { margin-bottom: 0.75rem; }
.profile-section p { color: var(--gray-700); }
.profile-social-links .btn { direction: ltr; }
/* Compact accessible icon social actions (profile + cards) */
.social-icon-links { display: flex; flex-wrap: wrap; gap: 0.5rem; direction: ltr; }
.social-icon-link {
    width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--gray-100);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--green); text-decoration: none; transition: background var(--transition), color var(--transition);
}
.social-icon-link:hover { background: var(--green); color: white; }
.social-icon-link:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* ====== CODE BLOCKS ====== */
.code-block,
pre.code-block {
    background: var(--gray-900); color: var(--gray-100); padding: 1.5rem;
    border-radius: var(--radius); overflow-x: auto; margin: 2.5rem 0;
}

/* ====== WORKSHOP INDEX CARDS ====== */
.workshop-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; width: 100%; }
.workshop-card-date { font-size: 0.8rem; color: var(--gray-500); }
.workshop-card-org { font-size: 0.9rem; }
.workshop-card-org a { color: var(--green); font-weight: 600; }
.workshop-empty { background: var(--gray-50); border-radius: var(--radius); padding: 1rem; color: var(--gray-500); }
.workshop-index .needs-grid { margin-bottom: 2.5rem; }

.auth-card .btn-primary { width: 100%; }
.downloads-title { font-size: 1.5rem; color: var(--gray-800); margin: 0 0 0.25rem; }
.downloads-lead { margin: 0; }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); flex-wrap: wrap; }
.download-card-info { min-width: 0; flex: 1; }
.download-card h3 { margin: 0 0 0.25rem; }
.download-card-meta { font-size: 0.85rem; color: var(--gray-500); margin: 0 0 0.5rem; }
.download-card-description { margin: 0; color: var(--gray-600); font-size: 0.9rem; }
.download-card .btn { flex-shrink: 0; }
.download-card .download-action,
.download-card .download-action:visited { display: flex; width: fit-content; margin-inline-start: auto; margin-top: 0.75rem; background-color: #81c784; border-color: #81c784; color: var(--green-dark); }
.download-card .download-action:hover, .download-card .download-action:focus-visible { background-color: #66bb6a; border-color: #66bb6a; }
.downloads-empty, .search-empty { text-align: center; padding: 3rem 0; color: var(--gray-500); }
.search-form { display: flex; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.search-form .form-group { flex-grow: 1; margin-bottom: 0; }
.search-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.85rem; }
.search-summary { margin-bottom: 1rem; color: var(--gray-500); }
.search-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.bazar-submit-title { margin-bottom: 0.25rem; }
.bazar-submit-intro { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0.5rem; }
.bazar-submit-form { max-width: 680px; }
.bazar-submit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.profile-avatar-large { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.profile-form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.news-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.article-content pre { background: var(--gray-900); color: var(--gray-100); padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin: 2.5rem 0; }
.public-video { margin: 2rem 0; }
.public-video-poster { margin-bottom: 0.75rem; }
.public-video-poster img { display: block; height: auto; max-width: 100%; }
.public-video-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--gray-900);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    cursor: pointer;
    transition: background 0.2s;
}
.public-video-placeholder:hover,
.public-video-placeholder:focus {
    background: var(--gray-800);
    outline: none;
}
.public-video-placeholder:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
.public-video-play-icon { width: 64px; height: 64px; }
.public-video-frame { aspect-ratio: 16 / 9; background: var(--gray-900); border-radius: var(--radius); overflow: hidden; }
.public-video-frame iframe { border: 0; height: 100%; width: 100%; }
.public-video-loaded .public-video-poster,
.public-video-loaded .public-video-placeholder { display: none; }
.public-video-caption { color: var(--gray-500); font-size: 0.85rem; margin-top: 0.5rem; }
.course-preview-player { aspect-ratio: 16 / 9; background: var(--gray-900); border-radius: var(--radius); display: block; height: auto; max-width: 100%; width: 100%; }
.contact-page { max-width: 100%; }
.evaluation-page { max-width: 100%; }
.evaluation-summary { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; margin-top: 2.5rem; text-align: center; }
.evaluation-summary-label { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.evaluation-summary-price { font-size: 1.7rem; font-weight: 700; margin: 0 0 0.5rem; }
.coupon-apply { margin-top: 1rem; }
.coupon-apply-label { display: block; font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.5rem; }
.coupon-apply-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.coupon-code-input { flex: 1 1 10rem; min-width: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-family: inherit; }
.coupon-code-input:focus { outline: 2px solid var(--green-light); outline-offset: 1px; }
.coupon-apply-message { margin: 0.5rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
.coupon-apply-message.is-valid { color: var(--green-dark); }
.coupon-apply-message.is-invalid { color: #c62828; }
.evaluation-summary-duration { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 1rem; }
.evaluation-summary-unavailable { font-size: 0.9rem; color: var(--gray-500); }
.evaluation-summary-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 1rem; }
.industry-analysis-header { margin-bottom: 2rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 1.5rem; }
.industry-analysis-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.industry-analysis-sector { background: var(--green); color: #fff; font-size: 0.8rem; padding: 0.25rem 0.8rem; border-radius: 999px; font-weight: 600; }
.industry-analysis-reading-time { color: var(--gray-500); font-size: 0.85rem; }
.industry-analysis-header h1 { margin-bottom: 1rem; }
.industry-analysis-summary { background: var(--gray-50); border-inline-start: 4px solid var(--green); padding: 1.25rem; border-radius: var(--radius); color: var(--gray-700); line-height: 1.8; margin-bottom: 1.5rem; }
.industry-analysis-published { display: flex; gap: 1rem; color: var(--gray-400); font-size: 0.85rem; }
.industry-analysis-callout { background: var(--gray-50); border: 1px solid var(--gray-200); border-inline-start: 4px solid var(--green); padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; }
.industry-analysis-callout h4 { margin-top: 0; color: var(--green-dark); }
.industry-analysis-callout-content { color: var(--gray-700); font-size: 0.9rem; line-height: 1.8; }
.corporate-archive-header { margin-bottom: 2rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 1.5rem; }
.corporate-archive-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.corporate-archive-client { background: var(--green); color: #fff; font-size: 0.8rem; padding: 0.25rem 0.8rem; border-radius: 999px; font-weight: 600; }
.corporate-archive-date { color: var(--gray-500); font-size: 0.85rem; }
.corporate-archive-header h1 { margin-bottom: 1rem; }
.corporate-archive-video, .corporate-archive-gallery { margin: 2rem 0; }
.corporate-archive-video iframe { width: 100%; height: 420px; border: 0; }
.corporate-archive-gallery .case-card { margin: 0; }
.corporate-archive-gallery figcaption { padding: 0.75rem; font-size: 0.85rem; color: var(--gray-600); }
.workshop-index { max-width: 100%; }
.workshop-index h2:first-of-type { margin-top: 1.5rem; }
.workshop-index-card { text-decoration: none; }
.workshop-index-card-completed { opacity: 0.9; }
.workshop-index-actions,
.workshop-index-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.workshop-index-actions {
    margin: 0 0 1.5rem;
}
.workshop-index-forms {
    margin: 2rem 0 0;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}
.workshop-index-actions .btn,
.workshop-index-forms .btn {
    flex: 0 0 auto;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 999px;
}
@media (max-width: 600px) {
    .workshop-index-actions,
    .workshop-index-forms { flex-direction: row; }
    .workshop-index-actions .btn,
    .workshop-index-forms .btn { flex: 1 1 auto; text-align: center; }
}
.workshop-page { max-width: 100%; }
/* Workshop detail follows the site detail family: compact metadata labels
   above the title, no large green hero band. */
.workshop-meta-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.workshop-meta-tag { background: var(--gray-100); border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.78rem; color: var(--gray-600); font-weight: 500; }
.workshop-meta-tag-upcoming { background: #fff8e1; color: #8a6d00; font-weight: 600; }
.workshop-org-line { color: var(--gray-600); margin: 0.5rem 0 1.25rem; }
.workshop-org-line a { color: var(--green); font-weight: 600; }
.workshop-organization-callout { background: var(--gray-50); border-inline-start: 4px solid var(--green); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.workshop-organization-callout p { margin: 0; color: var(--gray-700); }
.workshop-organization-callout a { color: var(--green); font-weight: 700; }
.workshop-gallery-title { margin-top: 2.5rem; margin-bottom: 1rem; }
.workshop-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); gap: 1rem; }
.workshop-gallery-item { margin: 0; background: var(--gray-50); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); }
.workshop-gallery-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.workshop-gallery-thumb { display: block; width: 100%; height: 200px; object-fit: cover; }
.workshop-gallery-trigger:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.workshop-gallery-item figcaption { padding: 0.6rem 0.9rem; font-size: 0.85rem; color: var(--gray-600); }
/* ====== LIGHTBOX (native dialog, accessible) ====== */
.lightbox-dialog { position: fixed; inset: 0; margin: auto; border: 0; border-radius: var(--radius-lg); padding: 0; background: var(--white); max-width: min(1100px, 92vw); max-height: 88vh; box-shadow: var(--shadow-xl); opacity: 0; transform: scale(0.96); transition: opacity 180ms ease, transform 180ms ease, display 180ms allow-discrete; }
.lightbox-dialog[open] { opacity: 1; transform: scale(1); }
@starting-style { .lightbox-dialog[open] { opacity: 0; } }
.lightbox-dialog::backdrop { background: rgba(13,27,15,0.8); }
.lightbox-body { display: flex; flex-direction: column; max-height: 86vh; }
.lightbox-body img { max-width: 100%; max-height: 74vh; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; }
.lightbox-caption { padding: 0.85rem 1.25rem; color: var(--gray-600); font-size: 0.9rem; border-top: 1px solid var(--gray-100); margin: 0; text-align: center; }
.lightbox-close { position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: var(--gray-100); color: var(--gray-700); cursor: pointer; font-size: 1rem; line-height: 1; }
.lightbox-close:hover { background: var(--green); color: white; }
.lightbox-close:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.workshop-request { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin-top: 2.5rem; }
.workshop-request p { margin-bottom: 1rem; }
.course-page { max-width: 100%; }
.course-access { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.course-access h3 { color: var(--green-dark); margin-bottom: 0.75rem; }
.course-license { background: #e8f5e9; border: 1px solid var(--green-light); border-radius: var(--radius); padding: 1rem; }
.course-license-label { font-size: 0.9rem; margin-bottom: 0.5rem; }
.course-license code { background: var(--white); padding: 0.4rem 0.8rem; border: 1px solid var(--green-light); border-radius: 0.5rem; font-size: 0.9rem; display: inline-block; }
.course-license-note { font-size: 0.85rem; color: var(--green-dark); }
.course-access-prompt { text-align: center; padding: 1.5rem 0; }
.course-access-prompt .course-access-message { margin-bottom: 1rem; }
.course-access-unavailable { font-size: 0.9rem; color: var(--gray-500); }
.course-faq { background: var(--gray-50); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.course-faq h4 { margin-bottom: 0.5rem; }.course-faq div { color: var(--gray-600); }
.course-instructor { border-top: 1px solid var(--gray-200); margin-top: 2rem; padding-top: 1.5rem; }
.course-instructor-label, .course-instructor-role { font-size: 0.85rem; color: var(--gray-500); margin: 0; }.course-instructor-label { margin-bottom: 0.25rem; }.course-instructor-name { font-weight: 600; margin: 0; }
.course-reviews { max-width: 100%; margin-top: 0; }.course-reviews > h2 { margin-top: 0; margin-bottom: 1rem; }.course-reviews-grid { margin-bottom: 2rem; }
.course-review { padding: 1.25rem; }.course-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }.course-review-author { font-weight: 600; color: var(--green); text-decoration: none; }.course-review-date { font-size: 0.8rem; color: var(--gray-400); }.course-review video { width: 100%; border-radius: var(--radius); max-height: 20rem; background: var(--gray-900); }.course-review-comment { color: var(--gray-700); font-size: 0.9rem; margin-top: 0.75rem; }blockquote.course-review-comment { border-inline-start: 3px solid var(--green); font-style: italic; margin: 0.75rem 0 0; padding-inline-start: 1rem; }.course-reviews-empty { color: var(--gray-500); font-size: 0.9rem; grid-column: 1 / -1; }.course-review-form { background: var(--gray-50); border-radius: var(--radius); padding: 1.25rem; }.course-review-form h3, .course-review-form h4 { margin-bottom: 1rem; }
.feedback-index-intro { color: var(--gray-600); line-height: 1.9; margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--gray-50); border-inline-start: 3px solid var(--green); border-radius: var(--radius); }
.feedback-index-intro a { color: var(--green); font-weight: 700; }
.feedback-card-course a { color: var(--green); font-weight: 700; }
.profile-detail { max-width: 100%; }.profile-detail-header { border-bottom: 1px solid var(--gray-200); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }.profile-detail-heading { display: flex; align-items: center; gap: 1rem; }.profile-avatar-medium { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }.profile-premium { display: inline-block; margin-top: 0.75rem; font-size: 0.8rem; font-weight: 700; color: var(--green-dark); background: #e8f5e9; padding: 0.2rem 0.8rem; border-radius: 999px; }.profile-socials h2 { margin-bottom: 0.75rem; }
.admin-profile-heading { display: flex; align-items: center; gap: 1rem; }.admin-profile-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }.admin-profile-copy { min-width: 0; }.admin-profile-title { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; color: var(--gray-800); }.admin-profile-role { font-size: 0.75rem; color: #fff; padding: 0.2rem 0.6rem; border-radius: 999px; }.admin-profile-role-superuser { background: #1B5E20; }.admin-profile-role-staff { background: #1565C0; }.admin-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }.admin-profile-grid a { display: block; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.85rem 1rem; text-decoration: none; background: var(--gray-50, #f9fafb); }.admin-profile-grid strong { display: block; color: var(--green-dark); }.admin-profile-grid span { font-size: 0.8rem; color: var(--gray-600); }.admin-profile-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; font-size: 0.9rem; }.admin-profile-stats span { background: var(--gray-100); padding: 0.3rem 0.9rem; border-radius: 999px; }.dashboard-card > h3 { margin-bottom: 1rem; }

/* ====== GLOSSARY INDEX ====== */
.blog-index, .blog-category, .blog-post { max-width: 960px; margin-inline: auto; }
.blog-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-block: 2rem 3rem; }
.blog-category-card { display: block; padding: 1.5rem; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); }
.blog-category-card h2 { margin-top: 0; color: var(--green-dark); font-size: 1.3rem; }
.blog-featured img, .article-content img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.blog-featured { max-width: 960px; margin: 2rem auto; overflow: hidden; }
#recent-blog-posts { margin-bottom: 1.5rem; }
.blog-featured-image { max-width: 100%; height: auto; }
.article-content figure { max-width: 100%; margin: 2rem 0; overflow: hidden; }
.article-content figure picture { display: block; max-width: 100%; }
/* Bounded, responsive article images (blog, wiki, standard pages) so an
   inserted image is never dropped in at its full original size. */
.blog-post .article-content > figure img,
.wiki-entry .article-content img,
.standard-page .article-image img {
    display: block;
    width: auto;
    max-width: min(100%, 46rem);
    height: auto;
    margin: 2rem auto;
    border-radius: var(--radius);
}
.standard-page .article-image--small img { max-width: min(100%, 22rem); }
.standard-page .article-image--medium img { max-width: min(100%, 34rem); }
.standard-page .article-image--large img { max-width: min(100%, 46rem); }
/* Standard-page figures center their image, so their caption must center too
   instead of inheriting the site-wide space-between caption alignment. */
.standard-page .article-image figcaption { justify-content: center; text-align: center; }
/* Blog body images sit centered in the article column, so their captions
   center too instead of inheriting the right-aligned RTL default. */
.blog-post .article-content figure figcaption { text-align: center; }
.blog-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 2rem; }
.blog-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--gray-50); box-shadow: var(--shadow-sm); }
.blog-gallery img { width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.blog-gallery figcaption { padding: 0.8rem 1rem; color: var(--gray-500); font-size: 0.85rem; background: var(--gray-50); text-align: center; }
.blog-gallery figcaption .caption-text { color: var(--gray-700); font-weight: 500; }
/* ====== BLOG AI DEEPER ====== */
.blog-ai-deeper { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2rem 0; }
.blog-ai-deeper-title { font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--gray-800); }
.blog-ai-deeper-hint { font-size: 0.85rem; color: var(--gray-500); margin: 0 0 1rem; }
.blog-ai-providers { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.blog-ai-btn { font-size: 0.85rem; padding: 0.4rem 1rem; }
.blog-ai-feedback { margin-top: 0.6rem; font-size: 0.8rem; color: var(--green-dark); background: #e8f5e9; padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); }

/* ====== BLOG SERIES ====== */
.blog-series { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.blog-series-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.blog-series-image img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.blog-series-title { font-size: 1.15rem; color: var(--green-dark); margin: 0; }
.blog-series-description { color: var(--gray-500); font-size: 0.9rem; margin: 0.2rem 0 0; }
.blog-series-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.blog-series-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); flex-wrap: wrap; }
.blog-series-item.is-current { background: #e8f5e9; border: 1px solid rgba(46,125,50,0.2); font-weight: 600; }
.blog-series-number { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 1.7rem; padding: 0 0.4rem; border-radius: 999px; background: var(--gray-100); font-size: 0.78rem; font-family: var(--font-mono); color: var(--gray-600); }
.blog-series-item.is-current .blog-series-number { background: var(--green); color: white; }
.blog-series-link { color: var(--green-dark); text-decoration: none; flex: 1; min-width: 0; word-break: break-word; }
.blog-series-link:hover { text-decoration: underline; }
.blog-series-current { flex: 1; min-width: 0; word-break: break-word; color: var(--gray-800); }
.blog-series-date { font-size: 0.78rem; color: var(--gray-400); white-space: nowrap; }
.blog-series-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.blog-series-nav-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--gray-700); font-weight: 600; font-size: 0.9rem; max-width: 48%; word-break: break-word; }
.blog-series-nav-link:hover { border-color: var(--green); color: var(--green-dark); }

.blog-attachments, .blog-comments, .blog-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.blog-comments article { padding: 1rem; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 0.75rem; }
@media (max-width: 768px) { .blog-category-grid, .blog-gallery { grid-template-columns: 1fr; } }

.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.wiki-entry-facts { margin: 1rem 0 1.75rem; padding: 1rem 1.25rem; background: var(--gray-50); border-radius: var(--radius); border-inline-start: 4px solid var(--green-light); }
.wiki-entry-facts dt { font-weight: 700; color: var(--green-dark); margin-top: 0.8rem; }
.wiki-entry-facts dt:first-child { margin-top: 0; }
.wiki-entry-facts dd { margin: 0.15rem 0 0; color: var(--gray-700); }

/* ====== WIKI LANDING ====== */
.wiki-feature { margin-bottom: 2.5rem; }
.wiki-feature-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.wiki-feature-media img { display: block; width: 100%; height: 100%; max-height: 24rem; object-fit: cover; }
.wiki-feature-body { padding: 1.75rem; }
.wiki-feature-title { font-size: 1.6rem; margin: 0 0 0.75rem; color: var(--gray-800); }
.wiki-feature-summary { color: var(--gray-600); margin: 0 0 1rem; line-height: 1.8; }
.wiki-feature-date { color: var(--gray-400); font-size: 0.85rem; }
.wiki-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.wiki-recent-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); }
.wiki-recent-media img { display: block; width: 100%; height: 10rem; object-fit: cover; }
.wiki-recent-title { font-size: 1.05rem; margin: 0.9rem 1rem 0.35rem; color: var(--gray-800); }
.wiki-recent-summary { margin: 0 1rem 0.35rem; color: var(--gray-600); font-size: 0.85rem; line-height: 1.7; }
.wiki-recent-date { margin: 0 1rem 1rem; color: var(--gray-400); font-size: 0.8rem; }
.wiki-recent-list { margin: 2.5rem 0; }
.wiki-recent-list-heading { font-size: 1.25rem; margin: 0 0 1rem; color: var(--gray-800); }
.wiki-recent-list-items { list-style: none; padding: 0; margin: 0; }
.wiki-recent-list-item { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--gray-100); }
.wiki-recent-list-item a { color: var(--gray-800); font-weight: 600; text-decoration: none; }
.wiki-recent-list-item a:hover { color: var(--green-dark); }
.wiki-recent-list-item time { color: var(--gray-400); font-size: 0.8rem; white-space: nowrap; }
.wiki-group-nav { display: flex; flex-direction: column; gap: 0.5rem; margin: 2.5rem 0 1.5rem; padding: 1rem 1.25rem; background: var(--gray-50); border-radius: var(--radius); direction: ltr; text-align: left; align-items: flex-start; }
.wiki-group-nav-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wiki-group-nav-link { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-800); text-decoration: none; font-weight: 600; font-size: 0.85rem; font-family: var(--font-mono); direction: ltr; }
.wiki-group-nav-link:hover { border-color: var(--green); color: var(--green-dark); }
.wiki-group-nav-link.is-disabled { opacity: 0.4; color: var(--gray-400); background: var(--gray-100); border-color: var(--gray-100); cursor: not-allowed; }
.wiki-group { margin: 2rem 0; scroll-margin-top: 5rem; }
.wiki-group-heading { font-size: 1.15rem; margin: 0 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--green-light); color: var(--green-dark); }
.wiki-group-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem 1.5rem; }
.wiki-group-item { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0; border-bottom: 1px solid var(--gray-100); }
.wiki-group-item a { color: var(--gray-800); font-weight: 600; text-decoration: none; }
.wiki-group-item a:hover { color: var(--green-dark); }
.wiki-group-definition { color: var(--gray-500); font-size: 0.85rem; }
@media (max-width: 900px) { .wiki-feature-main { grid-template-columns: 1fr; } .wiki-recent-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .wiki-feature-body { padding: 1.25rem; } }
.glossary-card {
    background: var(--white); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow-sm); border-inline-start: 3px solid var(--green); transition: all var(--transition);
    text-decoration: none; color: inherit; display: block;
}
.glossary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.glossary-card h2, .glossary-card h3, .glossary-card h4 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.glossary-card p { font-size: 0.9rem; color: var(--gray-600); }
.glossary-alpha-nav a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; text-decoration: none;
    font-weight: 600; color: var(--gray-600); transition: all var(--transition);
}
.glossary-alpha-nav a:hover, .glossary-alpha-nav a.active { background: var(--green); color: white; }

/* ====== GLOSSARY SINGLE ====== */
.entity-badge.standard { background: #fff3e0; color: #e65100; }
.entity-badge.tool { background: #f3e5f5; color: #6a1b9a; }
.entity-related { margin-top: 2.5rem; }
.entity-related h3 { margin-bottom: 1rem; }
.entity-related .related-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entity-related .related-tags a {
    background: var(--gray-100); color: var(--gray-600); padding: 0.4rem 1rem;
    border-radius: 999px; font-size: 0.85rem; text-decoration: none; transition: all var(--transition);
}
.entity-related .related-tags a:hover { background: var(--green); color: white; }

/* ====== WIKI TERM TABLE ====== */
.wiki-term-table-wrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wiki-term-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.92rem;
}
.wiki-term-table th,
.wiki-term-table td {
    padding: 0.75rem 1rem;
    text-align: start;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
    word-break: break-word;
}
.wiki-term-table thead th {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--gray-700);
    white-space: nowrap;
}
.wiki-term-table tbody tr:last-child td {
    border-bottom: 0;
}
.wiki-term-table tbody tr:hover {
    background: var(--gray-50);
}
.wiki-term-table-col-term { width: 25%; }
.wiki-term-table-col-persian { width: 25%; }
.wiki-term-table-col-definition { width: 50%; }
.wiki-term-table-col-term-half { width: 50%; }
.wiki-term-table-col-persian-half { width: 50%; }
.wiki-term-table-col-term-third { width: 30%; }
.wiki-term-table-col-persian-third { width: 30%; }
.wiki-term-table-col-definition-two-third { width: 70%; }
.wiki-term-link {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(46, 125, 50, 0.35);
}
.wiki-term-link:hover {
    color: var(--green-dark);
    text-decoration-color: var(--green-dark);
}
.wiki-term-link:visited {
    color: var(--green-dark);
}
.wiki-term-empty {
    color: var(--gray-400);
}
.wiki-term-table-cell-term {
    font-family: var(--font-mono);
    direction: ltr;
    unicode-bidi: embed;
}
.wiki-term-table-cell-persian {
    direction: rtl;
}
.wiki-term-table-cell-definition {
    line-height: var(--line-height-body);
}
@media (max-width: 768px) {
    .wiki-term-table-wrapper {
        overflow-x: visible;
    }
    .wiki-term-table,
    .wiki-term-table thead,
    .wiki-term-table tbody,
    .wiki-term-table th,
    .wiki-term-table td,
    .wiki-term-table tr {
        display: block;
        width: 100%;
    }
    .wiki-term-table thead {
        display: none;
    }
    .wiki-term-table {
        border: 0;
        background: transparent;
    }
    .wiki-term-table tbody tr {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        margin-bottom: 1rem;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    .wiki-term-table tbody tr:hover {
        background: var(--white);
    }
    .wiki-term-table td {
        border-bottom: 1px solid var(--gray-100);
        padding: 0.6rem 1rem;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        text-align: start;
    }
    .wiki-term-table td:last-child {
        border-bottom: 0;
    }
    .wiki-term-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gray-600);
        flex: 0 0 auto;
        max-width: 40%;
        text-align: start;
    }
    .wiki-term-table td > * {
        flex: 1;
        text-align: end;
    }
    .wiki-term-table td.wiki-term-table-cell-term > *,
    .wiki-term-table td.wiki-term-table-cell-term {
        direction: ltr;
        unicode-bidi: embed;
    }
    .wiki-term-table colgroup,
    .wiki-term-table col {
        display: none;
    }
}

/* ====== INTERNAL RESPONSIVE ====== */
@media (max-width: 980px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
}
@media (max-width: 600px) {
    html, body { max-width: 100%; overflow-x: clip; }
    .header .container, .header-actions { min-width: 0; }
    .page-content { padding: 1.5rem; margin: 1rem auto; width: calc(100% - 2rem); }
    .wiki-index-search { display: grid; grid-template-columns: 1fr; }
    .wiki-index-search .btn { width: 100%; }
    .article-hero { height: 250px; }
    .article-hero-compact { min-height: 200px; max-height: 260px; }
    .article-hero-compact h1 { font-size: 1.5rem; }
    .article-main { padding: 1.5rem; }
    .article-main h1 { font-size: 1.6rem; }
    .auth-card { padding: 1.5rem; }
    .dashboard-layout { width: calc(100% - 2rem); margin: 1rem auto; gap: 1rem; }
    .dashboard-sidebar { padding: 1rem; }
    .dashboard-main { gap: 1rem; }
    .dashboard-card { padding: 1rem; }
    .dashboard-card table { min-width: 640px; }
    .dashboard-facts { flex-direction: column; gap: 0.75rem; }
    .dashboard-fact { justify-content: space-between; flex-wrap: wrap; }
    .download-card { align-items: flex-start; }
    .download-card .btn { flex: 1 1 100%; text-align: center; }
    .profile-form-actions,
    .form-actions { flex-wrap: wrap; }
    .profile-form-actions .btn,
    .form-actions .btn { flex: 1 1 10rem; text-align: center; }
    .admin-profile-heading,
    .admin-profile-title { flex-wrap: wrap; }
}

/* ====== RESTORED FEATURE STYLING ======
   These rules previously existed only in the collected STATIC_ROOT copy
   (static/css/website.css), so the served site never applied them. Ported
   here by task gZ8ycWZjWQdzpc so website/static/css/website.css is the
   single source of site styling.
   Sections: directory cards, profile certification badge, wiki code block,
   HTML sitemap. */

/* --- DIRECTORY CARDS --- */
.directory-card-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--gray-100); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.directory-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.directory-avatar { width: 96px; height: 96px; object-fit: cover; }
.directory-about { color: var(--gray-600); font-size: 0.85rem; line-height: 1.5; margin: 0 0 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- PROFILE CERTIFICATION BADGE --- */
.profile-badge-certification { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); color: #fff; box-shadow: 0 1px 3px rgba(15, 118, 110, 0.3); }
.profile-badge-certification sup { font-size: 0.65em; vertical-align: super; margin-left: 1px; }

/* --- WIKI CODE BLOCK --- */
.wiki-code-block { background: var(--gray-900); border-radius: var(--radius); color: var(--gray-100); direction: ltr; margin: 2.5rem 0; overflow: hidden; text-align: left; }
.wiki-code-toolbar { align-items: center; background: var(--gray-800); display: flex; gap: 0.5rem; justify-content: flex-start; padding: 0.4rem 0.6rem; }
.wiki-code-language { color: var(--gray-300); font-family: var(--font-mono); font-size: 0.8rem; margin-inline-end: auto; }
.wiki-code-copy { align-items: center; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--gray-300); cursor: pointer; display: inline-flex; height: 1.9rem; justify-content: center; padding: 0; width: 1.9rem; }
.wiki-code-copy:hover { background: var(--gray-700); border-color: var(--gray-600); color: var(--gray-100); }
.wiki-code-copy:focus-visible { background: var(--gray-700); border-color: var(--gray-300); color: var(--gray-100); outline: 2px solid var(--green); outline-offset: 2px; }
.wiki-code-copy-status { color: #a5d6a7; font-size: 0.8rem; }
.wiki-code-source { background: transparent; border: 0; color: inherit; direction: ltr; margin: 0; max-width: 100%; overflow-x: auto; padding: 1.25rem; text-align: left; white-space: pre; }
.wiki-copy-helper { opacity: 0; position: fixed; pointer-events: none; }

/* --- HTML SITEMAP --- */
.html-sitemap { background: var(--gray-50); }
.html-sitemap-header { text-align: center; border-bottom: 1px solid var(--gray-200); }
.html-sitemap-header .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.html-sitemap-eyebrow { color: var(--green); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 0.5rem; text-transform: uppercase; }
.html-sitemap-content { display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 4rem; }
.html-sitemap-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.html-sitemap-section h2 { color: var(--gray-900); margin-bottom: 1rem; }
.html-sitemap-tree-branch h3 { color: var(--gray-900); margin-bottom: 1rem; }
.html-sitemap-entity-columns h3 { color: var(--gray-900); margin-bottom: 1rem; }
.html-sitemap-section h2 { font-size: 1.3rem; }
.html-sitemap-section h2 a { color: inherit; text-decoration: none; }
.html-sitemap-tree-branch h3 a { color: inherit; text-decoration: none; }
.html-sitemap-section h2 a:hover { color: var(--green); }
.html-sitemap-tree-branch h3 a:hover { color: var(--green); }
.html-sitemap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.55rem 1.5rem; list-style: none; }
.html-sitemap-list li { min-width: 0; border-bottom: 1px solid var(--gray-100); padding: 0.4rem 0; }
.html-sitemap-list a { color: var(--gray-700); display: block; overflow-wrap: anywhere; text-decoration: none; }
.html-sitemap-list span { color: var(--gray-700); display: block; overflow-wrap: anywhere; text-decoration: none; }
.html-sitemap-list a:hover { color: var(--green); }
.html-sitemap-list--leaf li::before { color: var(--copper-dark); content: "•"; margin-inline-end: 0.45rem; }
.html-sitemap-list--nested li::before { color: var(--copper-dark); content: "•"; margin-inline-end: 0.45rem; }
.html-sitemap-tree { display: grid; gap: 1.25rem; }
.html-sitemap-tree-branch { border-inline-start: 3px solid var(--gray-200); padding-inline-start: 1rem; }
.html-sitemap-tree-branch h3 { font-size: 1.15rem; }
.html-sitemap-list--nested { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.html-sitemap-entity-columns { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.html-sitemap-empty { color: var(--gray-500); list-style: none; }
.html-sitemap section { margin: 2.5rem 0; }
.html-sitemap section:first-of-type { margin-top: 0; }
.html-sitemap section h2 { margin-top: 0; }
.html-sitemap section h2 a { color: inherit; text-decoration: none; }
.html-sitemap section h3 a { color: inherit; text-decoration: none; }
.html-sitemap section h2 a:hover { color: var(--green); }
.html-sitemap section h3 a:hover { color: var(--green); }
.html-sitemap-subsection { margin-top: 1.5rem; }
.html-sitemap-section--courses { border-top: 2px solid var(--green); padding-top: 1.5rem; }

@media (max-width: 600px) {
    .html-sitemap-header .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .html-sitemap-content { padding-top: 1.5rem; padding-bottom: 2rem; }
    .html-sitemap-section { padding: 1.1rem; }
    .html-sitemap-entity-columns { grid-template-columns: 1fr; }
}
