: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);

    /* Typography: Pinar for headings, Yekan Bakh for body (see fonts.css). */
    --font-heading: 'Pinar', 'YekanBakhFaNum', 'IRANSans', Tahoma, sans-serif;
    --font-body: 'YekanBakhFaNum', 'IRANSans', Tahoma, sans-serif;
}

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; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.7;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.bg-light { background: var(--gray-50); }
.bg-gradient { background: linear-gradient(135deg, #1B5E20, #2E7D32); color: white; }
.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,
.article-content a,
.article-body a,
.page-content a {
    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):hover,
.article-content a:not(.btn):hover,
.article-body a:not(.btn):hover,
.page-content a:not(.btn):hover {
    color: var(--green-dark);
    text-decoration-color: var(--green-dark);
}
.rich-text a:not(.btn):visited,
.article-content a:not(.btn):visited,
.article-body a:not(.btn):visited,
.page-content a:not(.btn):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 svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.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-right: 0.25rem;
}
.dropdown-menu {
    position: absolute; top: 100%; right: 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-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.page-content .wiki-submit-cta,
.page-content .wiki-submit-cta:visited {
    color: white;
    text-decoration: none;
}
.page-content .wiki-submit-cta:hover {
    color: white;
    background: var(--green-dark);
}
.page-content .wiki-submit-cta:focus-visible {
    color: white;
    outline: 3px solid var(--copper);
    outline-offset: 3px;
}
.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; left: 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: 2.6rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; 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: 2rem; font-weight: 800; 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.25rem; margin-bottom: 0.75rem; color: var(--gray-800); }
.need-card p { color: var(--gray-600); margin-bottom: 0; }
.need-card .link { display: inline-block; margin-top: 1.25rem; color: var(--green); font-weight: 600; text-decoration: none; }
.need-card .link::after { content: " ←"; }
.need-card img { width: calc(100% + 3.6rem); 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 h4 { font-size: 1.1rem; 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-right: 3px solid var(--green); padding-right: 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; }
.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);
}
.case-study:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-study-link { display: block; text-decoration: none; color: inherit; }
.case-study img { width: 100%; height: 220px; object-fit: cover; border-bottom: 3px solid var(--green-light); }
.case-study-body { padding: 1.5rem; }
.case-study-body h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.8rem; color: var(--gray-500); }
.case-meta span { background: var(--gray-100); padding: 0.15rem 0.6rem; border-radius: 999px; }
.case-study-body blockquote { border-right: 3px solid var(--green); padding-right: 1rem; color: var(--gray-700); font-style: italic; margin: 1rem 0 0; }

/* ====== 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-right: 3px solid var(--green); padding-right: 1rem; }

.grid-empty { grid-column: 1 / -1; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.project-quote { border-right: 3px solid var(--green); padding-right: 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-right: 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.6rem; 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: 2rem; }
.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;
}
.course-card:hover { box-shadow: var(--shadow); }
.course-card img { width: 100%; height: 160px; object-fit: cover; }
.course-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.course-body h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.course-body p { color: var(--gray-600); margin-bottom: 1rem; flex-grow: 1; }
.course-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.course-price { font-weight: 700; color: var(--green-dark); }
.courses-more { display: flex; justify-content: center; margin-top: 2rem; }
.grid-empty { grid-column: 1 / -1; }

/* 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.6rem; 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 h4 { font-size: 1.1rem; 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.5rem; 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: right; 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 .icon { font-size: 1.5rem; font-weight: 300; color: var(--green); transition: transform var(--transition); flex-shrink: 0; margin-right: 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); }

/* ====== 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 h4 { font-size: 1.2rem; 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;
}
.page-content h1 { font-size: 2rem; font-weight: 800; color: var(--gray-800); margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--green-dark); }
.page-content p { margin-bottom: 1.2rem; color: var(--gray-600); }
.page-content .lead { font-size: 1.15rem; color: var(--gray-700); margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.stat-card { background: var(--gray-50); border-radius: var(--radius); padding: 1.5rem; text-align: center; border: 1px solid var(--gray-200); }
.stat-card .number { font-size: 2rem; font-weight: 800; color: var(--green); }
.stat-card .label { color: var(--gray-500); font-size: 0.9rem; margin-top: 0.3rem; }
.timeline { position: relative; padding-right: 2rem; margin: 2rem 0; border-right: 3px solid var(--green-light); }
.timeline-item { margin-bottom: 2rem; position: relative; }
.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); }
.timeline-year { font-weight: 700; color: var(--green); font-size: 1.1rem; }
.team-photo { border-radius: var(--radius); overflow: hidden; margin: 2rem 0; box-shadow: var(--shadow-md); }
.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; margin-bottom: 1rem; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
}
.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;
}
.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.8rem; font-weight: 800; 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.5rem; }
.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); transform: translateX(-4px); }
.footer-links a::before { content: "▸"; color: var(--copper); font-size: 0.7rem; }
.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: var(--copper); 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-toggle { display: none; }
.footer-col-title {
    cursor: pointer; user-select: none;
}
.footer-col-title .accordion-arrow {
    display: none; transition: transform var(--transition); margin-right: auto;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col h4::after { display: none; }
    .footer-col-toggle { display: block; }
    .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) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-trust-bar { gap: 1.5rem; }
    .footer-col.collapsed .footer-links,
    .footer-col.collapsed .instructor-mini,
    .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;
}
.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: 2rem; }
    .floating-cta { display: flex; }
    body { padding-bottom: 70px; }
    .brand-tagline { display: none; }
}
@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-name { font-size: 1.1rem; }
}
.btn-danger { background: var(--red); color: white; }
.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 ====== */
.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); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* ====== BLOG INDEX ====== */
.page-header-blog {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: white; padding: 3rem 0; text-align: center; margin-bottom: 3rem;
}
.page-header-blog h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.category-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.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: 1rem;
    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(320px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.article-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: all var(--transition); display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-body h3 { font-size: 1.1rem; 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-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; margin-bottom: 3rem; }
.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%; height: 450px; overflow: hidden; margin-bottom: 2rem;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.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-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: 2.2rem; font-weight: 800; 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-category-badge { display: inline-block; background: #e8f5e9; color: var(--green-dark); padding: 0.3rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.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.6rem; color: var(--green-dark); margin: 2.5rem 0 1rem; }
.article-content h3 { font-size: 1.3rem; margin: 1.8rem 0 0.8rem; color: var(--gray-800); }
.article-content p { margin-bottom: 1.3rem; color: var(--gray-700); line-height: 2; }
.article-content ul, .article-content ol { margin-bottom: 1.3rem; padding-right: 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; }
.related-posts { background: var(--gray-50); border-radius: var(--radius); padding: 2rem; margin-top: 3rem; }
.related-posts h3 { margin-bottom: 1.5rem; color: var(--gray-800); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.related-card { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: all var(--transition); }
.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.2rem; 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;
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.5rem;
}
.auth-card h1 { font-size: 1.8rem; font-weight: 800; 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 { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--gray-400); font-size: 0.85rem; }
.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; }
.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 .user-avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 1rem; 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; }
.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; }
.dashboard-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem;
}
.dashboard-card h3 { font-size: 1.2rem; 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: right; 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; }

/* ====== GLOSSARY INDEX ====== */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.glossary-card {
    background: var(--white); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow-sm); border-right: 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 h4 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 0.5rem; }
.glossary-card p { font-size: 0.9rem; color: var(--gray-600); }
.glossary-alpha-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; margin-bottom: 2.5rem; }
.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 { display: inline-block; padding: 0.2rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-left: 0.5rem; }
.entity-badge.core-concept { background: #e3f2fd; color: #1565c0; }
.entity-badge.standard { background: #fff3e0; color: #e65100; }
.entity-badge.tool { background: #f3e5f5; color: #6a1b9a; }
.entity-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; font-size: 0.85rem; color: var(--gray-500); }
.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; }

/* ====== INTERNAL RESPONSIVE ====== */
@media (max-width: 980px) {
    .dashboard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .page-content { padding: 1.5rem; }
    .article-hero { height: 250px; }
    .article-main { padding: 1.5rem; }
    .article-main h1 { font-size: 1.6rem; }
    .auth-card { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}
