/* =========================================
   1. VARIABLES & RESET (MOBİL ODAKLI)
   ========================================= */
:root {
    --q1-sec-w: #be123c;
    --q2-sec-b: #fb7185;
    --q3-fm-w: #1e3a8a;
    --q4-fm-b: #38bdf8;
    --dark: #0f172a;
    --text: #334155;
    --bg: #f8fafc;
    --primary: #16a6b6;
    --primary-dark: #0f8592;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    /* Mobilde tıklama anındaki mavi parlamayı engeller */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    height: 100dvh;
    /* iOS Safari için tam ekran düzeltmesi */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Sağa sola kaymayı KESİNLİKLE engeller */
    font-size: 15px;
    /* Mobilde daha okunaklı baz boyut */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. GLOBAL HEADER (MOBİL UYUMLU)
   ========================================= */
header#global-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    /* Mobilde kenar boşluğu azaltıldı */
    z-index: 10001;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-action-btn {
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: #475569;
}

.header-action-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

/* =========================================
   3. USER MENU & DROPDOWN
   ========================================= */
.user-menu-container {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-btn:active {
    background: #f1f5f9;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-name-text {
    display: block;
    /* Mobilde isme gerek yok, sadece avatar kalsın yer kaplamasın */
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 6px 0;
    display: none;
    z-index: 99999;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: slideUp 0.2s ease-out;
}

.user-dropdown-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.9rem;
}

.user-dropdown-item:active {
    background: #f1f5f9;
}

/* =========================================
   4. LANDING & MENÜ KARTLARI (KATI STANDART ÖLÇÜLER)
   ========================================= */
/* Sayfa iskeleti: Her şey ekranın tam ortasında kilitli */
.landing-overlay,
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tüm taşıyıcı kutular (Auth ve Landing) MİLİMETRİK aynı genişlikte */
.landing-container,
.auth-box {
    width: 100%;
    max-width: 340px;
    /* Standart Mobil App Genişliği */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    /* İçeriği dikey ve yatay tam ortalar */
    padding: 0 20px 40px 20px;
}

/* Auth Box özel ayaralaması */
.auth-overlay .auth-box {
    margin: auto;
    padding: 20px;
}

/* Başlık hizalamaları */
.root-landing-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

.root-landing-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
    line-height: 1.5;
}

/* Kartların Taşıyıcısı */
.root-grid,
.company-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Kartlar arası SABİT boşluk */
    width: 100%;
}

/* KARTLAR: SABİT YÜKSEKLİK (İçerik uzasa bile kutu uzamaz) */
.root-card,
.company-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    width: 100%;
    min-height: 200px;
    /* Esnek yükseklik, en az 200px */
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease-out;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.root-card:active,
.company-card:active {
    background: #f1f5f9;
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.root-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(22, 166, 182, 0.08);
}

/* Kart içindeki Resimler ve İkonlar artık inline style ile yönetiliyor */
.root-card img,
.company-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Açıklama Metni: 2 Satırı Geçerse Nokta Nokta (...) Olur, Kutuyu Uzatmaz! */
.root-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
    margin: 6px 0 0 0;
    text-align: center;
    font-weight: 500;
}

/* =========================================
   5. AUTH BOX & FORMS (KARTLARLA AYNI HİZADA)
   ========================================= */
.auth-box {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    /* Genişliği .landing-container ile tam eşit */
}

.auth-box img {
    margin: 0 auto 24px;
    display: block;
}

/* İnput Yükseklikleri Sabitlendi */
.auth-input {
    width: 100%;
    height: 48px;
    /* Kesin yükseklik */
    padding: 0 14px;
    margin-bottom: 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.auth-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 166, 182, 0.1);
}

.auth-input:focus::placeholder {
    color: #cbd5e1;
}

/* Buton Yükseklikleri İnputlarla Eşitlendi */
.auth-btn {
    width: 100%;
    height: 48px;
    /* Kesin yükseklik */
    background: #16a6b6;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.auth-btn:active {
    background: var(--primary-dark);
    transform: translateY(1px);
}

.back-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    height: 48px;
    /* Butonlarla eşitlendi */
    border-radius: var(--radius-md);
    font-weight: 600;
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.back-btn:active {
    background: #e2e8f0;
    transform: translateY(1px);
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.auth-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
    font-size: inherit;
}

.auth-link:active {
    color: var(--primary-dark);
}

/* =========================================
   6. SIDEBAR & NAVIGATION (MOBİL MENÜ)
   ========================================= */
.sidebar {
    position: fixed;
    top: 56px;
    left: -100%;
    bottom: 0;
    width: 280px; /* Desktop width */
    max-width: 100%;
    z-index: 9999;
    background: #16a6b6 !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* MOBİLDE TAM EKRAN */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
    }
}

.sidebar.active {
    left: 0;
}

.brand-box {
    padding: 24px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 2;
    text-align: left; /* Left aligned as requested */
}

/* Menu list */
.menu-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-category-title {
    padding: 16px 24px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 1;
    background: #16a6b6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.menu-category-title::after {
    content: '❯';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.menu-group.open .menu-category-title::after {
    transform: rotate(90deg);
}

.menu-items-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.05);
}

.menu-group.open .menu-items-container {
    max-height: 2000px; /* Herhangi bir büyük değer */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.menu-item::after {
    content: '❯';
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 28px;
}

.menu-item:hover::after {
    right: 10px;
    color: #fff;
}

.menu-item.active {
    background: #fff !important;
    color: #16a6b6 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin: 4px 10px;
    padding-left: 14px;
    width: calc(100% - 20px);
}

.menu-item.active::after {
    display: none;
}

/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================
   7. PORTAL SAYFASI - BOOKLET STYLES
   ========================================= */

/* Tüm içerik sayfaları için standart konteyner */
.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-top: 80px;
}

.booklet {
    max-width: 900px;
    margin: 0 auto;
}

.cover-page {
    text-align: center;
    padding: 24px 20px;
    border: 3px solid #e2e8f0;
    margin-bottom: 40px;
    background: white;
    border-radius: var(--radius-lg);
}

.cover-page h1 {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    line-height: 1.3;
}

.cover-page h2 {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.logo-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.logo-box {
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.logo-box:active {
    transform: scale(0.95);
}

.img-placeholder {
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.img-placeholder p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.caption {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    margin-top: 16px;
    font-weight: 500;
}

.content-page {
    margin-bottom: 32px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
}

.booklet h3 {
    font-size: 1.35rem;
    color: #1e293b;
    margin: 24px 0 12px 0;
    font-weight: 700;
}

.booklet h4 {
    font-size: 1.1rem;
    color: #334155;
    margin: 20px 0 10px 0;
    font-weight: 700;
}

.booklet p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.booklet ul,
.booklet ol {
    color: #475569;
    line-height: 1.8;
    margin-left: 24px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.booklet li {
    margin-bottom: 8px;
    color: #475569;
}

/* =========================================
   GİZLEME KURALI
   ========================================= */
.hidden,
.landing-overlay.hidden {
    display: none !important;
}

/* =========================================
   8. MODERN ACADEMY DASHBOARD & CARDS (v1.45)
   ========================================= */
:root {
    --bg-soft: #F8F9FA;
    --card-idari: #D4A373;
    --card-saha: #6B9E9B;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.curriculum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px 40px 10px;
    animation: fadeIn 0.5s ease-out;
}

.curriculum-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 24px;
    padding-left: 5px;
}

.curriculum-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.card-header-idari { background-color: #16a6b6; }
.card-header-saha { background-color: #16a6b6; }

/* card-header-icon removed */

.curriculum-list {
    display: flex;
    flex-direction: column;
}

.curriculum-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: #334155;
}

.curriculum-item:last-child {
    border-bottom: none;
}

.curriculum-item:hover {
    background-color: #f8fafc;
    padding-left: 28px;
}

/* item-icon-box removed */

.item-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
}

.item-chevron {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-left: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modifiye Header stilleri */
header#global-header {
    background: white !important;
}

.header-btn-group {
    background: #f8fafc;
    padding: 4px;
    border-radius: 14px;
}

/* =========================================
   EASY LIFE AKADEMİ - GENİŞ EĞİTİM KATALOĞU
   ========================================= */
.training-menu-search {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 12px;
    background: #0f8f9d;
}

.training-menu-search input {
    width: 100%;
    min-height: 42px;
    padding: 10px 38px 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 0.9rem;
    outline: none;
}

.training-menu-search input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.training-menu-search span {
    position: absolute;
    right: 26px;
    top: 22px;
    color: #64748b;
    pointer-events: none;
}

.menu-category-title small {
    margin-left: auto;
    margin-right: 10px;
    min-width: 26px;
    padding: 3px 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    text-align: center;
    font-size: 0.75rem;
}

.training-track-title {
    padding: 11px 18px 7px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-track .menu-item {
    align-items: flex-start;
    gap: 9px;
    padding-right: 34px;
}

.training-track .menu-item small {
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.65rem;
    font-weight: 800;
}

.menu-group.open .menu-items-container {
    max-height: 12000px;
}

.training-module {
    padding-bottom: 36px;
    color: #334155;
}

.training-hero {
    padding: clamp(24px, 5vw, 46px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--training-color), #0f172a 120%);
    color: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.training-kicker {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 5vw, 2.45rem);
    line-height: 1.14;
}

.training-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.training-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.training-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
}

.training-section {
    margin-top: 18px;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055);
}

.training-section h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 1.3rem;
    line-height: 1.3;
}

.training-section p,
.training-section li,
.training-section summary,
.training-section span {
    font-size: 1rem;
    line-height: 1.65;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.training-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--training-color) 18%, #e2e8f0);
    border-radius: 12px;
    background: var(--training-soft);
}

.training-card strong {
    color: var(--training-color);
}

.training-checks {
    margin: 12px 0 0 !important;
    padding: 0;
    list-style: none;
}

.training-checks li {
    position: relative;
    margin: 8px 0;
    padding-left: 28px;
}

.training-checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--training-color);
    font-weight: 900;
}

.training-callout,
.training-scenario,
.training-warning {
    padding: 18px;
    border-left: 4px solid var(--training-color);
    border-radius: 10px;
    background: var(--training-soft);
    font-size: 1rem;
    line-height: 1.65;
}

.training-scenario p {
    margin: 8px 0 12px;
}

.training-steps {
    margin: 8px 0 0 !important;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.training-steps li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    margin: 10px 0;
}

.training-steps li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--training-color);
    color: #fff;
    font-weight: 800;
}

.training-errors .training-card {
    border-color: #fecaca;
    background: #fff7f7;
}

.training-errors .training-card strong {
    color: #b91c1c;
}

.training-section details {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.training-section summary {
    padding: 14px 16px;
    cursor: pointer;
    color: #0f172a;
    font-weight: 700;
}

.training-section details p {
    margin: 0;
    padding: 0 16px 16px;
}

.training-warning {
    margin-top: 18px;
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
}

.training-sources {
    background: #f8fafc;
}

.training-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.training-source-links a,
.training-source-links span {
    padding: 9px 12px;
    border-radius: 9px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.training-source-links a:hover {
    background: #cbd5e1;
}

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

    .training-hero,
    .training-section {
        border-radius: 14px;
    }
}

/* Formlardaki durum/denetim seçenekleri: mobilde yazı taşmasını önler. */
.audit-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.audit-option-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.audit-option-card input {
    flex: 0 0 auto;
}

.audit-option-text {
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

@media (max-width: 640px) {
    .audit-options-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .audit-option-card {
        padding: 0.875rem !important;
    }

    .audit-option-text {
        font-size: 0.95rem !important;
    }
}
/* Word'den aktarılan eğitimlerin web ve mobil okuma düzeni */
.word-training-content,
.training-normal-preview {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.word-training-content > *:first-child,
.training-normal-preview > *:first-child {
    margin-top: 0;
}

.word-training-content h1,
.training-normal-preview h1 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: clamp(1.65rem, 5vw, 2.35rem);
    line-height: 1.2;
}

.word-training-content h2,
.training-normal-preview h2 {
    margin: 1.75rem 0 0.75rem;
    color: #0f172a;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.3;
}

.word-training-content h3,
.word-training-content h4,
.training-normal-preview h3,
.training-normal-preview h4 {
    margin: 1.4rem 0 0.65rem;
    color: #1e293b;
    line-height: 1.35;
}

.word-training-content p,
.word-training-content li,
.training-normal-preview p,
.training-normal-preview li {
    font-size: 1rem;
    line-height: 1.7;
}

.word-training-content ul,
.word-training-content ol,
.training-normal-preview ul,
.training-normal-preview ol {
    max-width: 100%;
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

.word-training-content img,
.word-training-content svg,
.word-training-content video,
.training-normal-preview img,
.training-normal-preview svg,
.training-normal-preview video {
    display: block;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem auto;
    border-radius: 10px;
}

.word-training-content table,
.training-normal-preview table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.word-training-content th,
.word-training-content td,
.training-normal-preview th,
.training-normal-preview td {
    min-width: 110px;
    padding: 0.7rem;
    border: 1px solid #cbd5e1;
    text-align: left;
    vertical-align: top;
}

.word-training-content th,
.training-normal-preview th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
}

.word-training-content pre,
.word-training-content code,
.training-normal-preview pre,
.training-normal-preview code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.word-training-content a,
.training-normal-preview a {
    color: #0369a1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.word-training-content .word-subtitle,
.training-normal-preview .word-subtitle {
    margin-top: -0.5rem;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .word-training-content,
    .training-normal-preview {
        font-size: 1rem;
        line-height: 1.65;
    }

    .word-training-content th,
    .word-training-content td,
    .training-normal-preview th,
    .training-normal-preview td {
        min-width: 96px;
        padding: 0.6rem;
    }
}
