@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@700&display=swap');

:root {
    --gold-primary: #020303;
    --gold-dark: #07124e;
    --navy-blue: #1e293b;
    --text-main: #000000;
    --bg-light: #f8fafc;
    --alert-red: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.4;
    padding: 20px;
}

.building-selector-container {
    max-width: 850px;
    margin: 0 auto 10px auto;
    background: #fff;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Speda', sans-serif;
    font-weight: bold;
}
.building-selector-container select {
    padding: 4px 10px;
    font-family: 'Speda', sans-serif;
}

/* ڕاستکردنەوەی تەواوی وۆتەرمارک لە سەنتەر بەبێ خواربوون */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 45vh;
    background-image: url('icon/nazcity.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.04 !important; 
    pointer-events: none;
    z-index: 1;
}

.document-container {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border: 4px double var(--gold-primary);
    position: relative;
    z-index: 2;
}

.doc-body {
    position: relative;
    z-index: 3;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 2px solid var(--navy-blue);
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 3;
}

.header-side {
    flex: 1;
}

.ku-text, .kurdish-title, .building-selector-container, .timing-short-section {
    font-family: 'Speda', Tahoma, sans-serif !important;
    font-weight: 700 !important;
}

/* ستایلی عەرەبی نوێ بەو شێوازەی خۆت دیاریت کردووە */
.ar-text {
    font-family: 'Speda', Tahoma, sans-serif !important;
    font-weight: 100 !important; 
    font-size: 10px;
    color: #1d1c1c !important;
}
.ar-text .rules-list li {
    font-weight: 500 !important;
}

.english-title, .en-text, .dir-ltr, .footer-table {
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: 700 !important;
}

.kurdish-title { text-align: right; }
.kurdish-title h2 { font-size: 18px; color: var(--navy-blue); font-weight: 700; }
.kurdish-title .sub-dept { font-weight: bold; color:#000000; margin-top: 2px; font-size: 13px; }

.english-title { text-align: left; direction: ltr; }
.english-title h2 { font-size: 16px; color: var(--navy-blue); font-weight: 700; }
.english-title .sub-dept { font-weight: bold; color:#000000; margin-top: 2px; font-size: 11px; }

.header-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 140px;
}
.header-logo img { max-width: 55px; height: auto; }

/* ----------------------------------------------------
    ڕێکخستنی بردنە ناوەڕاستی ناونیشانەکان (Center)
---------------------------------------------------- */
.section-heading-block {
    text-align: center !important;
    width: 100%;
    margin-bottom: 6px;
}

.lang-section { margin-bottom: 10px; }

.section-title {
    color: var(--gold-dark);
    display: inline-block;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--gold-primary);
    padding: 0 10px 2px 10px;
}
.red-title {
    color: var(--alert-red) !important;
    border-bottom-color: var(--alert-red) !important;
}

.building-title-top { font-size: 13px; font-weight: bold; color: #000000; margin-bottom: 4px; text-align: center !important; }

.intro-p { font-weight: 700 !important; margin-bottom: 6px; text-align: justify; font-size: 13.5px; line-height: 1.5; color: #000000; }
.rules-list { margin-right: 22px; margin-left: 20px; }
.rules-list li { margin-bottom: 3px; text-align: justify; font-size: 13px; line-height: 1.45; color: #000000; font-weight: 700 !important; }
.rules-list li::marker { font-weight: bold; color:#140e16; }

.highlight-word { color: #000000 !important; font-weight: bold !important; }
.danger-word { color: var(--alert-red) !important; font-weight: bold !important; }
.red-highlight { color: var(--alert-red) !important; font-weight: bold !important; }
.phone-red { color: var(--alert-red) !important; font-weight: bold !important; }
.section-divider { border: none; border-top: 1px dashed #cbd5e1; margin: 10px 0; }

.en-text { text-align: left; }
.en-text .section-title { border-bottom: 2px solid var(--gold-primary); }
.en-text .section-heading-block { text-align: center !important; }

/* ----------------------------------------------------
   ستایلی کورتکراوەی نوێی کاتەکان بەبێ بۆکس و درێژدادڕی
---------------------------------------------------- */
.timing-short-section {
    text-align: center !important;
    width: 100%;
    margin: 15px 0;
}
.timing-line {
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 4px;
}
.timing-line:last-child {
    margin-bottom: 0;
}

/* فۆتەر */
.footer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
}
.footer-table td {
    border: 1px solid #cbd5e1;
    padding: 6px;
    background: #ffffff;
    width: 33.33%;
    font-weight: bold;
}

.footer-info-container {
    margin-top: 10px;
    border-top: 2px solid var(--gold-primary);
    padding-top: 8px;
    font-size: 12px;
    color: #000000;
    position: relative;
    z-index: 3;
}

.footer-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.footer-text-sides { flex: 1; }
.footer-qrcode-side { flex: 0 0 65px; text-align: left; }
.footer-qrcode-side img {
    max-width: 65px; height: auto; display: block; border: 1px solid #cbd5e1; padding: 2px; background: #ffffff;
}

.footer-row { display: flex; justify-content: space-between; align-items: center; }
.dir-ltr { direction: ltr; }

.print-btn {
    background-color: var(--gold-dark); color: white; border: none; padding: 6px 15px;
    font-size: 12px; font-weight: bold; cursor: pointer; border-radius: 4px; font-family: 'Speda', sans-serif !important;
}

/* ----------------------------------------------------
    بەشی مێدیا پرینت: ڕێگریکردنی ڕەهایی لە دوو پەڕە
---------------------------------------------------- */
@media print {
    @page {
        size: A4;
        margin: 5mm 6mm;
    }
    body {
        background: white; padding: 0; margin: 0; color: #000000; line-height: 1.32 !important;
        -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
    }
    .document-container {
        width: 100%; 
        height: 98.8vh !important; 
        margin: 0 !important; 
        padding: 10px 22px !important; 
        border: 4px double var(--gold-primary) !important; 
        box-sizing: border-box;
        overflow: hidden;
    }
    .doc-header { border: 2px solid var(--navy-blue) !important; margin-bottom: 6px !important; padding: 6px !important; }
    .no-print { display: none !important; }
    
    .watermark { 
        display: block !important;
        opacity: 0.04 !important; 
        content: url('icon/nazcity.png') !important; 
    }
    
    .lang-section { margin-bottom: 4px !important; }
    .section-title { font-size: 13px !important; margin-bottom: 1px !important; }
    .intro-p { font-size: 11.5px !important; margin-bottom: 2px !important; line-height: 1.35 !important; }
    .rules-list li { font-size: 11px !important; margin-bottom: 1px !important; line-height: 1.3 !important; }
    .section-divider { margin: 4px 0 !important; }
    
    .timing-short-section { margin: 6px 0 !important; }
    .timing-line { font-size: 11px !important; line-height: 1.4 !important; margin-bottom: 3px !important; }
    
    .footer-table td { padding: 4px !important; font-size: 11px !important; }
    .footer-info-container { margin-top: 5px !important; padding-top: 4px !important; font-size: 10.5px !important; }
    .footer-line { margin: 1px 0 !important; }
    .website-row { justify-content: center !important; }
}