/* ==========================================
    1. Kurdish Font Faces (UniKurd)
========================================== */
@font-face {
    font-family: 'Goran';
    src: url('fonts/KGoran.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Midiya';
    src: url('fonts/Kmidiya.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Apply Fonts Globally */
body {
    font-family: 'Midiya', sans-serif;
    background-color: #f8fafc;
    padding-top: 25px;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Goran', sans-serif;
}

/* ==========================================
   دیزاینەکا مدرن و ئەناق بۆ کارتێن پۆستان
========================================== */
/* گەورەکرنا قەبارە و بەرینیا کارتێن پۆستان */
.card-post {
    background: #ffffff;
    border: none !important;
    border-radius: 22px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}
.card-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* ==========================================
   تەحکومکرنا قەبارە و تەڕابوونا وێنەیی ل ناڤ کارتێ
========================================== */
.post-thumb-wrapper {
    width: 100%;
    height: 220px !important; /* وێنە گەورەتر و زەلالتر دەبێت */
    overflow: hidden;
    background: #f8fafc;
}

.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.card-post:hover .post-thumb {
    transform: scale(1.06);
}

/* ناوەڕۆکا کارتێ */
.card-post-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* ناونیشان */
.post-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.card-post:hover .post-title {
    color: #2563eb;
}

/* زانیاریێن نڤێسەر و دەم */
.post-meta-info {
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* یەک لە دەستپێک و یەک لە کۆتایی سطرێ */
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap; /* قەدەغەکرنا چوونە سەر سطرێ نوێ */
}
/* کورتەیا نڤیسینێ */
.post-text {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* بەشێ خوارێ (ژمارا خۆندنێ و دوگمە) */
.post-footer-area {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.post-views-badge {
    font-size: 0.8rem;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-read-more {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 8px 16px;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    flex-grow: 1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-read-more:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* شريط اخبار عاجلة */
.breaking-news-bar {
    background: #0f172a !important;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breaking-badge {
    background: #dc3545;
    color: white;
    font-weight: 700;
    padding: 10px 18px;
    font-size: 0.85rem;
}

.breaking-ticker a {
    color: #f8fafc;
    text-decoration: none;
    transition: 0.2s;
}

.breaking-ticker a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* سلیدەر */
.custom-slider-img {
    height: 300px !important;
    object-fit: cover;
    border-radius: 16px;
}

/* ==========================================
   سایدبارێ مدرن و ئەناق (Modern Dark Sidebar)
========================================== */
#sideAcc { 
    direction: rtl; 
}

#sideAcc .accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

#sideAcc .accordion-button {
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    border: none !important;
    text-align: right;
    box-shadow: none !important;
    transition: 0.2s;
}

#sideAcc .accordion-button:not(.collapsed) {
    background: #0f172a !important;
    color: #ffffff !important;
}

#sideAcc .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
    background-image: none !important;
    content: "‹";
    font-size: 16px;
    font-weight: bold;
    color: #64748b;
    transition: transform 0.3s ease;
}

#sideAcc .accordion-button:not(.collapsed)::after {
    content: "‹";
    color: #ffffff;
    transform: rotate(-90deg);
}

#sideAcc .accordion-body {
    padding: 14px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

#sideAcc .nav-link {
    display: block;
    padding: 6px 0;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

#sideAcc .nav-link:hover {
    color: #2563eb;
    padding-right: 5px;
}
/* فراوانکرنا سنور و پانییا گشتی یا ماڵپەڕی */
.container, .container-lg, .container-md, .container-sm {
    max-width: 1400px !important; /* دەتوانیت ئەم قەبارەیە گەورەتر یان بچووکتر بکەی بە لای خۆت */
}
/* بەشی کارتی سەرەکی گەڕان و فۆرم */
.custom-search-card {
    background: linear-gradient(135deg, #0b1f3a, #122c54) !important;
    border: 1px solid rgba(184, 135, 34, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* خانەی نووسین (Input) بە ڕەنگێ تاریک و گونجاو */
.custom-input {
    background-color: #162c4c !important;
    border: 1px solid #2a4365 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}

.custom-input:focus {
    background-color: #1a3358 !important;
    border-color: #b88722 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(184, 135, 34, 0.25) !important;
}

.custom-input::placeholder {
    color: #94a3b8 !important;
}

/* دووگما سەرەکی گەڕان بە ڕەنگێ زێڕین/گومرکی */
.btn-custom-gold {
    background: linear-gradient(135deg, #b88722, #9a701b) !important;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    border-radius: 12px !important;
    transition: opacity 0.2s ease;
}

.btn-custom-gold:hover {
    opacity: 0.9;
    color: #ffffff !important;
}

/* کارتێن ئەنجامان و بابەتان بۆ پاشبنەمای تاریک و دەقی ڕوون */
.result-item-card {
    background-color: #0e1a2b !important;
    border: 1px solid #1e3a5f !important;
    color: #f8fafc !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.result-item-card a {
    color: #f3e5ab !important;
    transition: color 0.2s ease;
}

.result-item-card a:hover {
    color: #b88722 !important;
}

.result-content-text {
    color: #cbd5e1 !important;
}