/* ---------------------------------------------------------------------------
   HCTech Rehber — ortak stil
   Marka: --primary #2563eb (mavi) · --secondary #0f172a (koyu nötr)
          vurgu #b45309 (amber-700; açık zeminde WCAG AA kontrast sağlar)
   Boşluk sistemi: 8px tabanlı — 8 / 16 / 24 / 32 / 48 / 64 / 96
   Tipografi: Outfit (layout'tan gelir). Başlıklarda kademeli hiyerarşi.
   --------------------------------------------------------------------------- */

.rh {
    --rh-accent: #b45309;
    --rh-line: #e2e8f0;
    --rh-ink: #334155;
    --rh-ink-soft: #64748b;
}

/* --- Hero --- */
.rh-hero {
    background: var(--secondary);
    color: #f1f5f9;
    padding: 96px 0 64px;
}

.rh-kicker {
    display: block;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 24px;
}

.rh-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 20ch;
}

.rh-hero .rh-lead {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 64ch;
    margin: 0;
}

/* --- Gövde --- */
.rh-body { padding: 64px 0 96px; }

/* Yapışkan içindekiler: kırık simetri için dar sol sütun */
.rh-toc {
    position: sticky;
    top: 96px;
    border-left: 2px solid var(--rh-line);
    padding-left: 16px;
}

.rh-toc h2 {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rh-ink-soft);
    font-weight: 700;
    margin-bottom: 16px;
}

.rh-toc a {
    display: block;
    padding: 8px 0;
    color: var(--rh-ink);
    text-decoration: none;
    font-size: .93rem;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}

.rh-toc a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* --- Metin blokları --- */
.rh-prose h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.rh-prose h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 32px 0 8px;
}

.rh-prose p,
.rh-prose li {
    color: #475569;
    line-height: 1.75;
    max-width: 68ch;
}

.rh-prose p { margin: 0 0 16px; }
.rh-prose ul { margin: 0 0 16px; padding-left: 20px; }
.rh-prose li { margin-bottom: 8px; }

.rh-section { margin-bottom: 64px; }

/* Öne çıkan kısa cevap — AI motorlarının alıntıladığı özet */
.rh-answer {
    padding: 24px 32px;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    margin-bottom: 48px;
}

.rh-answer p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
    max-width: 66ch;
}

/* --- Tablo --- */
.rh-table-wrap { overflow-x: auto; margin-bottom: 24px; }

.rh-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: .94rem;
}

.rh-table th,
.rh-table td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rh-line);
    line-height: 1.6;
}

.rh-table thead th {
    background: var(--secondary);
    color: #f1f5f9;
    font-weight: 700;
    font-size: .88rem;
    border-bottom: 0;
}

.rh-table tbody th {
    font-weight: 700;
    color: var(--secondary);
    width: 22%;
}

.rh-table tbody tr:hover td { background: #f8fafc; }

/* --- SSS --- */
.rh-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--rh-line);
}

.rh-faq-item:last-child { border-bottom: 0; }

.rh-faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 8px;
}

.rh-faq-item p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
    max-width: 68ch;
}

/* --- Kapanış kutusu --- */
.rh-cta {
    margin-top: 48px;
    padding: 32px;
    background: #f8fafc;
    border: 1px solid var(--rh-line);
    border-left: 4px solid var(--rh-accent);
    border-radius: 0 12px 12px 0;
}

.rh-cta h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    border: 0;
    padding: 0;
}

.rh-cta p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 60ch;
}

.rh-cta a,
.rh-inline-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.rh-cta a:hover,
.rh-inline-link:hover { color: var(--secondary); }

/* --- Rehber ana sayfası kartları --- */
.rh-card {
    display: block;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--rh-line);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rh-card:hover {
    border-left-color: var(--rh-accent);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .10);
    transform: translateY(-2px);
}

.rh-card .rh-tag {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rh-accent);
    margin-bottom: 8px;
}

.rh-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.rh-card p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
    max-width: 66ch;
    font-size: .96rem;
}

/* --- Sözlük --- */
.rh-term {
    padding: 24px 0;
    border-bottom: 1px solid var(--rh-line);
}

.rh-term:last-child { border-bottom: 0; }

.rh-term h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 8px;
}

.rh-term h3 span {
    font-weight: 500;
    font-size: .88rem;
    color: var(--rh-ink-soft);
    font-style: italic;
    margin-left: 8px;
}

.rh-term p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
    max-width: 68ch;
}

/* --- Mobil --- */
@media (max-width: 991.98px) {
    .rh-hero { padding: 48px 0 32px; }
    .rh-body { padding: 32px 0 64px; }
    .rh-toc { position: static; margin-bottom: 48px; }
    .rh-section { margin-bottom: 48px; }
    .rh-card { padding: 24px; }
    .rh-answer { padding: 24px; }
}
