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

:root {
    --primary: #4f8ef7;
    --primary-dark: #2563eb;
    --danger: #f44336;
    --warning: #ff9800;
    --success: #4caf50;
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #1a202c;
    --muted: #718096;
    --radius: 8px;
    --shadow: 0 1px 4px rgba(0,0,0,0.08);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       font-size: 15px; color: var(--text); background: var(--bg); line-height: 1.6; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; border-radius: var(--radius); border: none;
    font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-danger   { background: var(--danger);  color: #fff; }
.btn-full     { width: 100%; }
.btn-sm       { padding: 5px 12px; font-size: 13px; }

/* ===== Logo ===== */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-img { width: 28px; height: 28px; flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 18px; color: var(--primary); letter-spacing: -0.3px; }
.logo-text .logo-deg { color: #ff9800; }

/* ===== Navbar ===== */
.navbar {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 56px; position: sticky; top: 0; z-index: 100;
}
.navbar-brand { font-weight: 700; font-size: 18px; color: var(--primary); margin-right: auto; }
.navbar-info  { display: flex; flex-direction: column; font-size: 13px; }
.navbar-info .text-muted { color: var(--muted); font-size: 12px; }
.navbar-nav   { display: flex; gap: 4px; align-items: center; }
.nav-link     { padding: 6px 12px; border-radius: var(--radius); color: var(--muted);
                font-size: 14px; transition: background 0.15s; }
.nav-link:hover, .nav-link.active { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-logout   { color: var(--danger); }

/* ===== Main Content ===== */
.main-content { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.page-title   { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between;
                  margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }

/* ===== Cards ===== */
.card { background: var(--card); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
        box-shadow: var(--shadow); }

/* ===== Metrics Grid ===== */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                gap: 16px; margin-bottom: 28px; }
.metric-card  { background: var(--card); border: 1px solid var(--border);
                border-radius: var(--radius); padding: 20px; text-align: center;
                box-shadow: var(--shadow); }
.metric-value { font-size: 36px; font-weight: 700; color: var(--primary); }
.metric-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.metric-alert .metric-value  { color: var(--danger); }
.metric-promoter .metric-value { color: var(--success); }

/* ===== Charts ===== */
.chart-section  { background: var(--card); border: 1px solid var(--border);
                  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
                  box-shadow: var(--shadow); }
.chart-header   { display: flex; align-items: center; justify-content: space-between;
                  margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.chart-header h3 { font-size: 16px; font-weight: 600; }
.chart-wrapper  { position: relative; height: 260px; }
.chart-wrapper-sm { height: 180px; }
.charts-row     { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ===== Period Switcher ===== */
.period-switcher { display: flex; gap: 4px; }
.period-btn { padding: 4px 12px; border: 1px solid var(--border); border-radius: 20px;
              background: transparent; cursor: pointer; font-size: 13px; transition: all 0.15s; }
.period-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Filters ===== */
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn   { padding: 5px 14px; border: 1px solid var(--border); border-radius: 20px;
                background: transparent; cursor: pointer; font-size: 13px;
                color: var(--text); transition: all 0.15s; text-decoration: none; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff;
                                         border-color: var(--primary); text-decoration: none; }
.filters-bar  { display: flex; align-items: center; justify-content: space-between;
                flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.search-form  { display: flex; gap: 8px; }
.search-input { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
                font-size: 14px; width: 220px; }

/* ===== Table ===== */
.table-wrapper { overflow-x: auto; }
.responses-table { width: 100%; border-collapse: collapse; background: var(--card);
                   border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.responses-table th { background: var(--bg); padding: 10px 14px; text-align: left;
                      font-size: 13px; font-weight: 600; color: var(--muted);
                      border-bottom: 1px solid var(--border); }
.responses-table td { padding: 10px 14px; border-bottom: 1px solid var(--border);
                      font-size: 14px; vertical-align: middle; }
.responses-table tr:last-child td { border-bottom: none; }
.responses-table tr:hover td { background: var(--bg); }
.comment-cell { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td.empty, td.loading { text-align: center; color: var(--muted); padding: 32px; }

/* ===== Score Badge ===== */
.score-badge { display: inline-flex; align-items: center; justify-content: center;
               width: 32px; height: 32px; border-radius: 50%; font-weight: 700;
               font-size: 13px; color: #fff; }
.score-badge.score-promoter { background: var(--success); }
.score-badge.score-passive  { background: var(--warning); }
.score-badge.score-detractor { background: var(--danger); }

/* ===== Status Badge ===== */
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px;
                font-size: 12px; font-weight: 500; }
.status-open     { background: #fff3e0; color: #e65100; }
.status-resolved { background: #e8f5e9; color: #2e7d32; }
.status-active   { background: #e8f5e9; color: #2e7d32; }
.status-inactive { background: #f5f5f5; color: var(--muted); }

/* ===== Alert Note ===== */
.alert-note { font-size: 12px; color: var(--muted); margin-top: 4px; font-style: italic; }

/* ===== Note Input ===== */
.note-input { padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px;
              font-size: 13px; width: 140px; margin-right: 4px; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 6px; margin-top: 20px; justify-content: center; }
.page-btn   { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
              font-size: 14px; color: var(--text); text-decoration: none; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:hover  { text-decoration: none; background: var(--bg); }

/* ===== Responses Section ===== */
.responses-section { background: var(--card); border: 1px solid var(--border);
                     border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ===== Surveys Grid ===== */
.surveys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
                gap: 16px; }
.survey-card-item { background: var(--card); border: 1px solid var(--border);
                    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.survey-card-item.survey-inactive { opacity: 0.6; }
.survey-card-header { display: flex; align-items: center; justify-content: space-between;
                      margin-bottom: 8px; gap: 8px; }
.survey-card-header h3 { font-size: 16px; font-weight: 600; }
.survey-slug { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.survey-extra-count { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.survey-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Survey templates picker ===== */
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.template-btn   { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
                  padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius);
                  background: #fff; cursor: pointer; text-align: left; transition: all 0.15s; }
.template-btn:hover   { border-color: var(--primary); background: #f0f5ff; }
.template-btn.active  { border-color: var(--primary); background: #e8f0fe; }
.template-icon  { font-size: 20px; line-height: 1; }
.template-label { font-size: 13px; font-weight: 600; color: var(--text); }
.template-desc  { font-size: 11px; color: var(--muted); }

/* ===== Extra questions editor ===== */
.extra-q-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.extra-q-item   { margin-bottom: 8px; }
.extra-q-row    { display: flex; align-items: center; gap: 8px; }
.extra-q-num    { display: flex; align-items: center; justify-content: center;
                  min-width: 24px; height: 24px; border-radius: 50%;
                  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; }
.extra-q-text        { flex: 1; padding: 7px 10px; border: 1px solid var(--border);
                       border-radius: var(--radius); font-size: 13px; min-width: 0; }
.extra-q-type-toggle { padding: 5px 10px; border: 1px solid var(--border); border-radius: 20px;
                       font-size: 12px; font-weight: 500; background: #f0f5ff; color: var(--primary);
                       cursor: pointer; white-space: nowrap; flex-shrink: 0;
                       transition: all 0.15s; }
.extra-q-type-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.extra-q-remove      { display: flex; align-items: center; justify-content: center;
                       width: 26px; height: 26px; border: none; border-radius: 50%;
                       background: #fff0f0; color: var(--danger); font-size: 13px;
                       cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.extra-q-remove:hover { background: var(--danger); color: #fff; }

/* ===== Dashboard top (title + survey filter) ===== */
.dashboard-top  { display: flex; align-items: center; justify-content: space-between;
                  flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dashboard-top .page-title { margin-bottom: 0; }
.survey-select  { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
                  font-size: 14px; background: #fff; min-width: 200px; }

/* ===== Recommendations ===== */
.recommendations-block  { background: var(--card); border: 1px solid var(--border);
                           border-radius: var(--radius); margin-bottom: 20px;
                           box-shadow: var(--shadow); overflow: hidden; }
.recommendations-header { padding: 12px 20px; border-bottom: 1px solid var(--border);
                           background: #f8faff; }
.recommendations-title  { font-size: 14px; font-weight: 600; color: var(--text); }
.recommendations-list   { padding: 8px 0; }
.rec-item   { display: flex; align-items: flex-start; gap: 10px;
              padding: 10px 20px; border-left: 3px solid transparent; }
.rec-item + .rec-item { border-top: 1px solid var(--border); }
.rec-icon   { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.rec-text   { font-size: 14px; color: var(--text); line-height: 1.5; }
.rec-positive { border-color: var(--success); background: #f1f8e9; }
.rec-warning  { border-color: var(--warning); background: #fff8e1; }
.rec-danger   { border-color: var(--danger);  background: #fff3f3; }
.rec-info     { border-color: var(--primary); background: #f0f5ff; }

/* ===== Survey form: extra questions ===== */
.survey-question-block { margin-bottom: 28px; }
.question-label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.question-num   { display: flex; align-items: center; justify-content: center;
                  min-width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
                  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.question-label .survey-question { margin-bottom: 0; }
.extra-questions { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 4px; }
.rating-group   { margin-bottom: 4px; }
.rating-labels  { display: flex; justify-content: space-between; font-size: 11px;
                  color: var(--muted); margin-bottom: 6px; }
.rating-buttons { display: flex; gap: 8px; }
.rating-label   { position: relative; }
.rating-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-btn     { display: flex; align-items: center; justify-content: center;
                  width: 44px; height: 44px; border-radius: 50%; font-weight: 700;
                  font-size: 15px; cursor: pointer; border: 2px solid var(--border);
                  background: #fff; color: var(--text); transition: all 0.15s; }
.rating-btn:hover { border-color: var(--primary); background: #f0f5ff; }
.rating-label input:checked + .rating-btn { background: var(--primary); color: #fff;
                                             border-color: var(--primary); transform: scale(1.1); }
.extra-text-input { width: 100%; padding: 9px 12px; border: 1px solid var(--border);
                    border-radius: var(--radius); font-size: 14px; resize: vertical; }
.comment-header { display: flex; align-items: center; justify-content: space-between;
                  margin-bottom: 8px; }
.comment-header label { display: flex; align-items: center; gap: 8px;
                        font-size: 14px; font-weight: 500; margin-bottom: 0; color: var(--text); }
.comment-optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.comment-counter  { font-size: 12px; color: var(--muted); }

/* ===== Forms ===== */
.form-group   { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500;
                    margin-bottom: 6px; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; transition: border-color 0.15s;
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ===== Alerts ===== */
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 14px;
         margin-bottom: 16px; }
.alert-error { background: #fff3f3; border: 1px solid #ffcdd2; color: #c62828; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 48px; color: var(--muted); }

/* ===== Public Survey Page ===== */
.public-page   { background: linear-gradient(135deg, #f5f7fb 0%, #e8f0fe 100%);
                 min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.survey-container { width: 100%; max-width: 600px; padding: 20px; }
.survey-card  { background: #fff; border-radius: 16px; overflow: hidden;
                box-shadow: 0 4px 24px rgba(0,0,0,0.10);
                display: flex; flex-direction: column; }

/* Survey header */
.survey-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
                 padding: 24px 28px; display: flex; align-items: center; gap: 12px; }
.survey-header-icon { font-size: 22px; line-height: 1; }
.survey-header-business { font-size: 18px; font-weight: 700; color: #fff; flex: 1; }
.survey-header-badge { background: rgba(255,255,255,0.2); color: #fff;
                       font-size: 11px; font-weight: 600; padding: 3px 8px;
                       border-radius: 20px; letter-spacing: 0.5px; white-space: nowrap; }

/* Survey body */
.survey-body  { padding: 28px; flex: 1; }
.survey-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.survey-question { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* Survey footer */
.survey-footer { border-top: 1px solid var(--border); padding: 16px 28px;
                 background: var(--bg); }
.survey-footer-organizer { display: flex; align-items: center; gap: 8px;
                           flex-wrap: wrap; margin-bottom: 6px; }
.survey-footer-label { font-size: 11px; color: var(--muted); text-transform: uppercase;
                       letter-spacing: 0.5px; }
.survey-footer-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.survey-footer-email { font-size: 12px; color: var(--muted); }
.powered-by   { text-align: left; font-size: 11px; color: var(--muted); }

/* Score buttons */
.score-group  { margin-bottom: 24px; }
.score-labels { display: flex; justify-content: space-between; font-size: 12px;
                color: var(--muted); margin-bottom: 8px; }
.score-buttons { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: center; }
.score-label  { position: relative; flex: 1 1 0; max-width: 44px; }
.score-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.score-btn    { display: flex; align-items: center; justify-content: center;
                width: 100%; aspect-ratio: 1; border-radius: 50%; font-weight: 700;
                font-size: clamp(11px, 2vw, 14px); cursor: pointer; border: 2px solid transparent;
                transition: all 0.15s; }
.score-detractor .score-btn { background: #fff3f3; color: var(--danger); border-color: #ffcdd2; }
.score-passive  .score-btn  { background: #fff8e1; color: var(--warning); border-color: #ffe082; }
.score-promoter .score-btn  { background: #f1f8e9; color: #558b2f; border-color: #aed581; }
.score-label input[type="radio"]:checked + .score-btn {
    border-width: 3px; box-shadow: 0 0 0 3px rgba(79,142,247,0.25);
    transform: scale(1.12);
}
.score-detractor input:checked + .score-btn { background: var(--danger); color: #fff; border-color: var(--danger); }
.score-passive  input:checked + .score-btn  { background: var(--warning); color: #fff; border-color: var(--warning); }
.score-promoter input:checked + .score-btn  { background: var(--success); color: #fff; border-color: var(--success); }

.comment-group { margin-bottom: 20px; }
.comment-group label { display: block; font-size: 14px; font-weight: 500;
                       margin-bottom: 8px; color: var(--muted); }
.comment-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border);
                          border-radius: var(--radius); font-size: 14px; resize: vertical; }
.powered-by   { text-align: center; margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ===== Thank You Page ===== */
.thank-you-card { text-align: center; }
.thank-you-icon { width: 64px; height: 64px; background: var(--success); border-radius: 50%;
                  display: flex; align-items: center; justify-content: center;
                  font-size: 32px; color: #fff; margin: 0 auto 20px; }
.thank-you-msg  { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* ===== Auth Pages ===== */
.auth-page      { background: linear-gradient(135deg, #f5f7fb 0%, #e8f0fe 100%);
                  min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-card      { background: #fff; border-radius: 16px; padding: 36px;
                  box-shadow: 0 4px 24px rgba(0,0,0,0.10); }
.auth-title     { font-size: 24px; font-weight: 800; color: var(--primary);
                  text-align: center; margin-bottom: 4px; }
.auth-card h2   { font-size: 18px; text-align: center; color: var(--muted);
                  font-weight: 400; margin-bottom: 24px; }
.auth-footer    { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .navbar { padding: 0 12px; gap: 8px; }
    .navbar-nav { gap: 0; }
    .nav-link { padding: 6px 8px; font-size: 13px; }
    .main-content { padding: 16px 12px; }
    .form-row { grid-template-columns: 1fr; }
    .score-buttons { gap: 3px; }
    .templates-grid { grid-template-columns: repeat(2, 1fr); }
    .extra-q-row { flex-wrap: wrap; }
    .extra-q-type { width: 100%; }
    .dashboard-top { flex-direction: column; align-items: flex-start; }
    .survey-select { width: 100%; }
    .rating-buttons { gap: 5px; }
    .rating-btn { width: 38px; height: 38px; font-size: 14px; }
    .public-page { align-items: flex-start; background: #fff; }
    .survey-container { padding: 0; max-width: 100%; }
    .survey-card { border-radius: 0; box-shadow: none; min-height: 100vh; }
    .survey-header { padding: 20px 20px; }
    .survey-body  { padding: 24px 20px; }
    .survey-footer { padding: 16px 20px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-wrapper { height: 200px; }
    .search-input { width: 150px; }
}

/* ===== Blog ===== */
.blog-main { flex: 1; min-height: calc(100vh - 133px); }
.blog-hero { background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fe 60%, #f5f7fb 100%);
             padding: 64px 0 72px; text-align: center; }
.blog-hero-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #1a202c; margin-bottom: 12px; }
.blog-hero-sub   { font-size: 16px; color: #718096; }

.blog-container { padding-top: 72px; padding-bottom: 120px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0;
             border-radius: 12px; padding: 24px; text-decoration: none; color: inherit;
             transition: box-shadow 0.2s, border-color 0.2s; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(79,142,247,0.12); border-color: #c3d9ff; text-decoration: none; }
.blog-card-title { font-size: 17px; font-weight: 700; color: #1a202c; margin-bottom: 10px; line-height: 1.35; }
.blog-card-desc  { font-size: 14px; color: #718096; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.blog-card-link  { font-size: 14px; color: #4f8ef7; font-weight: 600; }

/* Article layout */
.article-wrap { background: #fff; }
.article-container { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.article-breadcrumb { font-size: 13px; color: #a0aec0; margin-bottom: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.article-breadcrumb a { color: #a0aec0; }
.article-breadcrumb a:hover { color: #4f8ef7; text-decoration: none; }
.article-breadcrumb span { color: #718096; }
.article-header { margin-bottom: 36px; border-bottom: 1px solid #e2e8f0; padding-bottom: 24px; }
.article-title  { font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2;
                  color: #1a202c; margin-bottom: 12px; }
.article-date   { font-size: 13px; color: #a0aec0; }

.article-content { font-size: 16px; line-height: 1.85; color: #2d3748; }
.article-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 16px; color: #1a202c;
                      padding-top: 8px; border-top: 2px solid #e8f0fe; }
.article-content p  { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a  { color: #4f8ef7; }
.article-content strong { font-weight: 700; color: #1a202c; }
.article-content em { font-style: italic; }
.article-content table { margin: 28px 0; width: 100%; border-radius: 8px; overflow: hidden;
                          border-collapse: collapse; font-size: 14px; }

.article-cta { background: linear-gradient(135deg, #4f8ef7 0%, #2563eb 100%);
               border-radius: 16px; padding: 40px 32px; text-align: center; margin-top: 56px; color: #fff; }
.article-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.article-cta p  { font-size: 16px; opacity: 0.88; margin-bottom: 24px; }
.article-cta .btn-primary { background: #fff; color: #4f8ef7; font-weight: 700; font-size: 16px; padding: 13px 32px; }

/* Related articles strip below article */
.article-related { background: #f8faff; padding: 48px 0; }
.article-related h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: #1a202c; }
.article-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.article-related-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
                         padding: 18px; text-decoration: none; color: inherit; transition: box-shadow 0.2s; }
.article-related-card:hover { box-shadow: 0 4px 16px rgba(79,142,247,0.1); border-color: #c3d9ff; text-decoration: none; }
.article-related-card span { font-size: 14px; font-weight: 600; color: #1a202c; line-height: 1.4; display: block; }
