/* ===================================
    Mevzuat — tüzük başlığı + PDF görüntüleyici (js/pdf-viewer.js)
====================================== */
.mevzuat {
    padding: 80px 0 110px;
}

/* Belge başlığı */
.mevzuat-ust {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
}
.mevzuat-etiket {
    display: block;
    line-height: 1.6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b07f49;
}
.mevzuat-baslik {
    margin: 12px 0 10px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #16202c;
}
.mevzuat-alt {
    margin: 0;
    font-size: 17px;
    color: #5b6470;
}
.mevzuat-bilgiler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.mevzuat-bilgiler li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 50px;
    background: #f6f1eb;
    font-size: 14px;
    font-weight: 600;
    color: #683d13;
}
.mevzuat-eylemler {
    display: flex;
    gap: 10px;
}
.mevzuat-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 50px;
    border: 1px solid #16202c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.mevzuat-btn-koyu {
    background: #16202c;
    color: #ffffff !important;
}
.mevzuat-btn-koyu:hover,
.mevzuat-btn-koyu:focus-visible {
    background: #b07f49;
    border-color: #b07f49;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(176, 127, 73, 0.3);
}
.mevzuat-btn-acik {
    background: transparent;
    color: #16202c !important;
    border-color: #d9d1c6;
}
.mevzuat-btn-acik:hover,
.mevzuat-btn-acik:focus-visible {
    border-color: #16202c;
    color: #16202c !important;
}

/* Görüntüleyici */
.pdf-gorunteleyici {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #e9e5df;
    box-shadow: 0 30px 60px rgba(22, 32, 44, 0.12);
    outline: none;
}
.pdfg-arac {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #16202c;
    color: #ffffff;
}
.pdfg-belge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}
.pdfg-belge i {
    font-size: 18px;
    color: #d8a86e;
}
.pdfg-belge span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pdfg-grup {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pdfg-ayrac {
    width: 1px;
    height: 22px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.15);
}
.pdf-gorunteleyici button,
.pdfg-arac a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.pdf-gorunteleyici button:hover,
.pdf-gorunteleyici button:focus-visible,
.pdfg-arac a:hover,
.pdfg-arac a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    outline: none;
}
.pdfg-sayfa-bilgi {
    display: inline-flex;
    white-space: nowrap;
    line-height: 1;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.pdfg-sayfa-giris {
    width: 46px;
    height: 30px;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    -moz-appearance: textfield;
}
.pdfg-sayfa-giris::-webkit-inner-spin-button,
.pdfg-sayfa-giris::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pdfg-oran {
    min-width: 48px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}
.pdf-gorunteleyici .pdfg-sigdir {
    width: auto;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Sayfa alanı: ekran yüksekliğine göre, sayfalar ortada */
.pdfg-alan {
    position: relative;
    height: min(calc(100vh - 160px), 1100px);
    min-height: 560px;
    overflow: auto;
    padding: 24px;
    scroll-behavior: auto;
    overscroll-behavior: contain;
}
.pdfg-sayfa {
    position: relative;
    margin: 0 auto 20px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(22, 32, 44, 0.06), 0 12px 28px rgba(22, 32, 44, 0.1);
    overflow: hidden;
}
.pdfg-sayfa:not(.cizildi)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(233, 229, 223, 0.6) 50%, transparent 70%) 0 0 / 200% 100%;
    animation: pdfg-parilti 1.4s linear infinite;
}
.pdfg-sayfa canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
@keyframes pdfg-parilti {
    to { background-position: -200% 0; }
}
.pdfg-durum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    color: #5b6470;
    font-size: 15px;
    text-align: center;
}
.pdfg-yukleniyor {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(104, 61, 19, 0.15);
    border-top-color: #683d13;
    border-radius: 50%;
    animation: pdfg-don 0.8s linear infinite;
}
.pdfg-durum.hata i {
    font-size: 30px;
    color: #b07f49;
}
@keyframes pdfg-don {
    to { transform: rotate(360deg); }
}

/* Tam ekran */
.pdf-gorunteleyici.tam-ekran {
    border-radius: 0;
}
.pdf-gorunteleyici.tam-ekran .pdfg-alan {
    height: auto;
    flex: 1;
    max-height: none;
}

@media (max-width: 991px) {
    .mevzuat { padding: 60px 0 90px; }
    .mevzuat-baslik { font-size: 34px; }
}
@media (max-width: 767px) {
    .mevzuat { padding: 45px 0 80px; }
    .mevzuat-baslik { font-size: 27px; letter-spacing: -0.8px; }
    .mevzuat-alt { font-size: 15px; }
    .mevzuat-bilgiler li { font-size: 13px; padding: 6px 12px; }
    .mevzuat-eylemler { width: 100%; }
    .mevzuat-btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 13px; }
    .pdf-gorunteleyici { border-radius: 14px; }
    .pdfg-belge,
    .pdfg-ayrac,
    .pdf-gorunteleyici .pdfg-sigdir,
    .pdfg-oran { display: none; }
    .pdfg-arac { padding: 8px 6px; gap: 4px; }
    .pdfg-grup { gap: 0; }
    .pdf-gorunteleyici button,
    .pdfg-arac a { width: 34px; height: 34px; }
    .pdfg-sayfa-giris { width: 40px; }
    .pdfg-alan {
        height: 72vh;
        min-height: 440px;
        padding: 12px;
    }
    .pdfg-sayfa { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .pdfg-sayfa:not(.cizildi)::after,
    .pdfg-yukleniyor { animation: none; }
}
