@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;700;900&display=swap');
/* فۆنتی Montserrat زیاد دەکەین ئەگەر لە شوێنێکی تر نەکرا بێت */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap'); 


:root {
    --primary-color: #0056b3;
    --secondary-color: #ffc107;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
}


/* Layout direction for both languages */
body{
    
    direction: rtl;
    text-align: right;
    /* *************************************************************** */
    /* گۆڕانکاری: بەکارهێنانی Noto Kufi Arabic بۆ RTL */
    font-family: 'Noto Kufi Arabic', sans-serif; 
    /* *************************************************************** */
    font-weight: 700;
}

/* Headings: big & bold */
h1 { font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); line-height: 1.2; }
h2 { font-weight: 900; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; }
h3 { font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); }








/* Buttons: big & bold */
.btn-primary, .btn-warning {
    font-family: inherit;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.3s;
}

/* Hero Carousel */
#hero-carousel { 
    position: relative;
    /* دڵنیابوونەوە لەوەی سلایدەرەکە پاشکۆی ناڤبارە */
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    /* بەرزی سلایدەر لەسەر شاشەی گەورە (لابردنی بەرزی ناڤبار نزیکەی 80px) */
    height: calc(100vh - 80px); 
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* Overlay بۆ تاریککردنی وێنەکە و دەرکەوتنی دەق */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* ڕێکخستنی دەقەکان لە ناوەڕاستی ڕەها */
.carousel-caption {
    z-index: 10;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: 10%;
    right: 10%;
    padding: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- Responsive Media Queries --- */

@media (max-width: 992px) {
    .carousel-item {
        height: 75vh; /* بۆ تابلێت کەمێک کورتتر */
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    #hero-carousel, .carousel-item {
        /* لە مۆبایل بەرزییەکەی کەم دەکەینەوە بۆ ئەوەی بەکارهێنەر بزانێت ناوەڕۆک لە خوارەوە هەیە */
        height: 65vh !important; 
        min-height: 400px !important;
    }

    .carousel-caption {
        width: 90%;
        left: 5%;
        right: 5%;
    }

    /* بچووککردنەوەی فۆنتەکان بە شێوەی ئۆتۆماتیکی */
    .carousel-caption h1 { 
        font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
        margin-bottom: 15px !important;
    }

    .carousel-caption p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }

    .btn-lg {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    #hero-carousel, .carousel-item {
        height: 60vh !important; /* قەبارەی گونجاو بۆ مۆبایلی بچووک */
        min-height: 350px !important;
    }
    
    /* لادانی وێنەی قورس لە مۆبایل ئەگەر پێویست بوو یان تەنها چەق کردنی */
    .carousel-item {
        background-attachment: scroll; /* بۆ ئەوەی لە مۆبایل کێشەی ئەنیمەیشن دروست نەکات */
    }

    /* شاردنەوەی ئیندیکەیتەرەکان (خەتە بچووکەکانی خوارەوە) لە مۆبایلی زۆر بچووک بۆ پاکی دیزاین */
    .carousel-indicators {
        display: none;
    }
}

/* Counter Section */
#counter {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}
#counter .counter-item {
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}
#counter h3 {
    font-family: inherit;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--secondary-color);
    margin-bottom: 5px;
}



/*
|--------------------------------------------------------------------------
| ستایلی تایبەت بە سێكشنە داینامیکییەکان
|--------------------------------------------------------------------------
*/

/* 1. ستایلی بنەڕەتی (default) */
.dynamic-section.style-default {
    /* بۆ نموونە: سێکشنەکە کەمێک زەردباو بێت */
    background-color: #f8f9fa; /* bg-light یان هەر شتێکی تر */
    border-bottom: 2px solid #007bff;
}

/* 2. ستایلی وێنە لە ڕاست (image-right) */
.dynamic-section.style-image-right {
    background-color: #ffffff; /* ڕەنگێکی جیاواز */
    padding-top: 70px;
    padding-bottom: 70px;
}

.dynamic-section.style-image-right img {
    /* بۆ نموونە: سێبەری زیاتر و لێوارێکی شین */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

/* 3. ستایلی تەنها دەق (text-only) */
.dynamic-section.style-text-only {
    /* بۆ نموونە: سێکشنەکە لە ناوەڕاستی پەڕەکە بێت و پشتێنێکی تاریک */
    background-color: #343a40; /* bg-dark */
    color: #f8f9fa; /* ڕەنگی دەقەکە بۆ سپی دەگۆڕین */
    text-align: center;
}

.dynamic-section.style-text-only .lead {
    color: #ced4da !important; /* ڕەنگی دەقی ناوەڕاست */
}

.dynamic-section.style-text-only h2 {
    /* ڕەنگی ناونیشان بۆ سپی دەگۆڕینەوە */
    color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| ستایلی تایبەت بە سێكشنە نوێیەکان
|--------------------------------------------------------------------------
*/

/* 4. ستایلی Full-width Media */
.dynamic-section.style-full-media {
    padding: 0; /* لێوارەکان لادەبەین */
}

.dynamic-section.style-full-media .full-width-media {
    overflow: hidden;
}

.dynamic-section.style-full-media .media-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* ڕەنگی ڕەش و شەفاف */
    z-index: 10;
}

.dynamic-section.style-full-media .text-shadow {
    /* بۆ جوانتر دەرکەوتنی دەقەکە لەسەر وێنە */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 5. ستایلی Card Layout (ستایلی گشتی) */
.dynamic-section.style-card-layout {
    background-color: #f1f1f1;
    border-top: 5px solid #0d6efd;
}

.dynamic-section.style-card-layout .row {
    margin-top: 30px; /* زیادکردنی سپەیس */
}


/* ----------------------------------------------------------------
    CSS Styling and Hover Effects for Post Cards
    ---------------------------------------------------------------- */

/* سێتیلی گشتی کارد (بنەڕەتی) */
.card {
    /* دڵنیابوونەوە لە گواستنەوەی نەرم بۆ هەموو گۆڕانکارییەک */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border 0.4s ease-in-out,
                background 0.4s ease-in-out; 
    overflow: hidden; 
    border-radius: 1.25rem; /* گەردوونەی کەمێک گەورەتر */
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff; /* دڵنیابوونەوە لە باکگراوندی سپی بنەڕەتی */
    position: relative; 
    /* دڵنیابوونەوە لەوەی کە هەموو سێبەرەکان کاریگەرییان هەبێت لەسەر هەموو شتێک */
    z-index: 1;
}

/* سێتیلی وێنەی ناو کارد */
.card img {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; 
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    filter: brightness(1); 
    display: block; 
    /* ************* ئەمە زیاد دەکرێت ************* */
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    /* ****************************************** */
}

/* بۆ دروستکردنی Overlayی ڕەشبا بەسەر وێنە، پێویستە divی وێنەکەمان هەبێت. 
    لە کۆدی PHP ئێمە <img class="card-img-top"> بەکاردەهێنین. پێویستە Overlay بکەینە سەر وێنەکە خۆی یان containerی وێنەکە.
    لەبەر ئەوەی ئێمە ناتوانین تاگی HTML نوێ زیاد بکەین، ئەمە لەوانەیە باشترین ڕێگە بێت بۆ Overlay لەسەر وێنەی کارد:
*/
.card .card-img-top {
    position: relative;
    /* ئەمە گرنگە بۆ چاککردنی Overlayی ڕەشبا کە لە سەرەتادا دروستم کردبوو، 
        چونکە لە PHP دا هیچ Divێکی تایبەت بە وێنەمان نییە تەنها لە حاڵەتی small-list نەبێت.
        باشترین شت ئەوەیە کە Overlay تەنها لەسەر .card img دابنێین.
    */
}

/* ئیفێکتی Overlayی ڕەشبا بۆ سەر وێنەکان (فێڵێکی باو) */
/* چاککردن: گواستنەوەی Overlay بۆ سەر .card img خۆی، ئەگەر دەوروبەری نەبێت */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ڕەنگی ڕەشبا لە بەشی خوارەوە دەست پێ دەکات */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0) 50%); /* گرێدیێنتێکی کەمتر دیار بۆ دەرخستنی باشتر */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    z-index: 2; /* بۆ ئەوەی لەسەر وێنەکە بێت */
    border-radius: 1.25rem; /* دڵنیابوونەوە لە گەردوونەی Overlay */
}

/* سێبەری زۆر ناسک بۆ نووسینی ناو کارتەکە بۆ باشتر خوێندنەوە - لادرا */
.card .card-title,
.card .card-text {
    text-shadow: none; /* لادانی تەواوەتی سێبەری نووسین */
}

/* کاریگەری Hover لەسەر کارتەکە */
.card:hover {
    transform: translateY(-12px); 
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4) , /* سێبەری قووڵتر و زیاتر بڵاوکراوە */
        inset 0 -5px 10px rgba(0, 0, 0, 0.15) !important; /* سێبەری ناوەوەی قووڵتر */
    
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    z-index: 10; /* دڵنیابوونەوە لەوەی کە کارتە Hover کراوەکە لە پێشەوە دەردەکەوێت */
}

/* کاریگەری Hover لەسەر وێنەی ناو کارتەکە */
.card:hover img {
    transform: scale(1.18); /* گەورەبوونەوەیەکی زۆرتر بۆ سەرنجڕاکێشی */
    filter: brightness(0.8); /* ڕووناکی زیاتر کەم دەکەینەوە */
}

/* چالاککردنی Overlayی ڕەشبا لە کاتی Hover - گەڕاندنەوە بۆ ستایلی سادەتر */
.card:hover::before {
    opacity: 0; /* لایبردن بە تەواوی */
}





/* کاریگەریی زیاتر بۆ ئەو کارتانەی بە شێوەی درێژ (list) دەرکەوتوون */
.card.flex-row {
    height: auto !important; /* دڵنیابوونەوە لە بەرزایی ئۆتۆ بۆ ئەم جۆرە */
}
.card.flex-row:hover img {
    transform: none; 
    filter: brightness(1); 
}
.card.flex-row img {
    border-radius: 1.25rem 0 0 1.25rem;
}


/* سێتیلی جوانکاری بۆ دوگمەی "زیاتر بخوێنەوە" */
.card .btn {
    border-width: 3px !important; /* سنوورێکی تۆختر */
    font-weight: 700; 
    padding: 0.5rem 1.8rem; /* قەبارەی دوگمەکە کەمێک گەورەتر */
    border-radius: 0.75rem; 
    transition: all 0.3s ease-in-out;
    text-transform: uppercase; /* گۆڕینی پیتەکان بۆ گەورە */
}

/* کاریگەری Hover لەسەر دوگمەکان */
.card .btn:hover {
    background-color: var(--bs-primary) !important; 
    color: white !important; 
    /* چاککردن: سێبەری دوگمەکە ڕێکدەخەینەوە بۆ ڕەنگی سەرەکی */
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.7), 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.3) !important; 
    transform: translateY(-4px); /* جووڵەیەکی زیاتر بۆ دوگمەکەش */
}

/* بۆ شاشە بچووکەکان (مۆبایل - کەمتر لە 768px) */
@media (max-width: 768px) {
    /* بچووککردنەوەی ناونیشانەکان بۆ ئەوەی لە شاشەی مۆبایل نەبن بە چەند دێڕێک */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.7rem !important; }
    h3 { font-size: 1.4rem !important; }

    /* کەمکردنەوەی بەرزی سلاید شۆ لە مۆبایل */
    #hero-carousel, .carousel-item {
        height: 50vh !important;
        min-height: 300px !important;
    }

    /* کەمکردنەوەی بۆشاییەکان لە سێکشەکان */
    .dynamic-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* لابردنی کاریگەری Hover لەسەر مۆبایل (چونکە Mouse نییە) */
    .card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }
    
    .card:hover img {
        transform: none !important;
        filter: brightness(1) !important;
    }
}

/* بۆ شاشە زۆر بچووکەکان (مۆبایلە بچووکەکان - کەمتر لە 576px) */
@media (max-width: 576px) {
    .btn {
        width: 100%; /* دوگمەکان پڕی شاشەکە بگرن */
        font-size: 1rem !important;
        padding: 10px 20px !important;
    }
    
    #counter {
        padding: 40px 0 !important;
    }
}