@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&display=swap');

.ayah-text {
    font-family: 'Amiri Quran','Amiri','Noto Naskh Arabic',serif !important;
    font-weight: 400 !important;
    font-size: 1.05rem;
    line-height: 2.2;
    margin: 10px 0 12px;
    direction: rtl;
    text-align: center;
}

.ayah-ref {
    font-weight: 500 !important;
    font-size: 1rem;
}

:root {
    --bg: #faf4cd;
    --card: rgba(255,255,255,0.5);
    --border: rgba(0,0,0,.10);
    --shadow: 0 10px 25px rgba(0,0,0,.08);
    --r: 18px;
    --gap: 14px; /* مسافة بين البوكسات */
    --primary: #1D5A64;
    --secondary: #393A39;
}
/* خط + لون (بدون تثبيت وزن واحد) */

* {
    font-family: 'Tajawal',sans-serif !important;
    color: var(--secondary) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg) !important;
    color: var(--secondary) !important;
    font-weight: 400;
}

.teq-shell {
    min-height: 100vh;
    padding-top: 3px; /* أو 0 */
    padding-bottom: 15px;
}

.teq-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 12px;
}

.box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 12px 16px;
    text-align: center;
}

    .box + .box {
        margin-top: var(--gap);
    }
/* القيم */

.val {
    font-size: 1.05rem;
    margin: 2px 0; /* ✅ مسافة خفيفة بين السطور */
    font-weight: 600 !important;
}

.val-d {
    font-size: 1.05rem;
    margin: 2px 0; /* ✅ نفس سطر القيم */
    font-weight: 500 !important;
}
/* سطر السابق */

.val-t {
    font-size: 1.05rem;
    margin: 2px 0 12px; /* ✅ مساحة مريحة تحت السطر */
    font-weight: 500 !important;
    opacity: .75;
}
/* العناوين */

.label {
    font-size: 1.05rem;
    font-weight: 600 !important;
    letter-spacing: .2px;
    color: var(--primary) !important;
    margin: 2px 0 10px; /* ✅ تحت العنوان */
}

.muted {
    opacity: .75;
    font-weight: 400 !important;
}
/* فواصل داخل البوكس */

hr {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,.14);
    margin: 10px 0; /* ✅ أوضح ومتوازن */
}
/* ✅ المنطقة (select) */

.select {
    width: 100%;
    border-radius: var(--r);
    border: 1px solid rgba(0,0,0,.12);
    padding: .55rem .8rem;
    background: rgba(255,255,255,.50);
    text-align: center;
    text-align-last: center;
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 600 !important;
}
/* التايمر */

.countdown {
    font-size: 60px;
    letter-spacing: 2px;
    line-height: 1;
    margin: 6px 0; /* ✅ مسافة متوازنة فوق/تحت */
    color: var(--primary) !important;
    font-weight: 400 !important;
}
/* القوائم */

.list {
    margin-top: 10px; /* ✅ قبل القائمة */
    text-align: start;
    direction: rtl;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0; /* ✅ مسافة مريحة بدون مبالغة */
    border-bottom: 1px solid rgba(0,0,0,.12);
}

    .item:first-child {
        padding-top: 6px; /* ✅ بداية القائمة */
    }

    .item:last-child {
        border-bottom: none;
        padding-bottom: 10px; /* ✅ نهاية القائمة */
    }

.time {
    font-size: 1.08rem;
    color: var(--primary) !important;
    white-space: nowrap;
    font-weight: 600 !important;
}

.when {
    font-size: .98rem;
    font-weight: 500 !important;
}
/* الصور */

.teq-hero {
    width: 100%;
    height: auto;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: var(--shadow);
    display: block;
    margin: var(--gap) 0; /* ✅ نفس مسافة البوكسات */
}
/* منطقة اختيار المدينة + السهم */

.region-wrap {
    position: relative;
    margin: var(--gap) 0;
}

    .region-wrap .select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        padding-left: 52px;
        padding-right: 52px;
        background-image: none;
    }

    .region-wrap::after {
        content: "";
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        width: 25px;
        height: 25px;
        pointer-events: none;
        opacity: .75;
        background-repeat: no-repeat;
        background-size: 25px 25px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23393A39' d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    }
/* الهيدر */

.teq-header {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 6px; /* عدّل الرقم لين يعجبك */
    margin-bottom: 9px;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: var(--r);
}

@supports (-webkit-touch-callout: none) {
    .countdown {
        margin-bottom: 0 !important; /* يقلل المسافة تحت التايمر */
        padding-bottom: 0 !important;
        height: 1.25em; /* يقطع الفراغ الزائد */
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
