/* Xəbərlər Stil Faylı */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                 Roboto, Helvetica, Arial, sans-serif;
}
.navbar-custom {
background-color: #ffffff;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-custom .navbar-brand {
font-weight: 700;
font-size: 1.5rem;
color: #007bff;
}
.navbar-custom .nav-link {
color: #555;
font-weight: 400;
}
/* Footer Stilləri */
footer {
    background-color: #ffffff;
    padding: 25px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    margin-top: 60px;
    position: relative;
    z-index: 100;
    width: 100%;
    clear: both;
    padding-bottom: 80px !important;
}

.footer-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Xəbər Başlığı */
.xeber-header {
    background: linear-gradient(135deg, rgb(13, 205, 189) 0%, rgb(15, 49, 230) 50%, rgb(20, 184, 166) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.xeber-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.xeber-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Kateqoriya Filtri */
.xeber-kateqoriyalari {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #eaeaea;
}

.kateqoriya-filtri {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.kateqoriya-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kateqoriya-btn:hover,
.kateqoriya-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

/* Xəbər Grid */
.xeberler-list {
    padding: 40px 0;
    background: #f8f9fa;
}

.xeber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.xeber-kart {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xeber-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.xeber-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.xeber-resim {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;  /* Şəkil ölçüsü dəyişməz */
}

.xeber-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xeber-kart:hover .xeber-resim img {
    transform: scale(1.05);
}

.xeber-resim-yer {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.xeber-kategori {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,123,255,0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.xeber-icerik {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;  /* Boş yeri doldurur */
    min-height: 0;  /* Flexbox overflow fix */
}

.xeber-icerik h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #212529;
    font-weight: 600;
    /* Başlığı 2-3 sətir ilə məhdudlaşdır */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 2.8em;  /* 2 sətir hündürlüyü - SABİT */
    flex-shrink: 0;
}

.xeber-ozet {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Özəti 3 sətir ilə məhdudlaşdır */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 4.8em;  /* 3 sətir hündürlüyü - SABİT */
    flex-shrink: 0;
}

.xeber-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #868e96;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
    margin-top: auto;  /* AÇAR HISSƏ - Həmişə aşağıya itələyir */
}

.xeber-tarix,
.xeber-oxunma {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Xəbər Yox */
.xeber-yox {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.xeber-yox i {
    margin-bottom: 20px;
    color: #dee2e6;
}

.xeber-yox h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-dots {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Populyar Xəbərlər */
.populyar-xeberler {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #212529;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px auto;
    border-radius: 2px;
}

.populyar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.populyar-kart {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;              /* ← ƏLAVƏ */
    flex-direction: column;     /* ← ƏLAVƏ */
    height: 100%;               /* ← ƏLAVƏ */
}

.populyar-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.populyar-kart a {
    text-decoration: none;
    color: inherit;
    display: flex;              /* ← ƏLAVƏ */
    flex-direction: column;     /* ← ƏLAVƏ */
    height: 100%;               /* ← ƏLAVƏ */
    flex: 1;                    /* ← ƏLAVƏ */
}

.populyar-resim {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;             /* ← ƏLAVƏ */
}

.populyar-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.populyar-kart:hover .populyar-resim img {
    transform: scale(1.05);
}

.populyar-icerik {
    padding: 20px;
    display: flex;              /* ← ƏLAVƏ */
    flex-direction: column;     /* ← ƏLAVƏ */
    flex: 1;                    /* ← ƏLAVƏ */
}

.populyar-icerik h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #212529;
    /* Başlığı 2-3 sətir ilə məhdudlaşdır */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 4.2em;              /* ← ƏLAVƏ - 3 sətir SABİT */
    flex-shrink: 0;             /* ← ƏLAVƏ */
}

.populyar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #868e96;
    margin-top: auto;           /* ← ƏLAVƏ - Həmişə aşağıda */
    padding-top: 10px;          /* ← ƏLAVƏ */
    border-top: 1px solid #dee2e6; /* ← ƏLAVƏ - Vizual ayırıcı */
}

/* Xəbər Detay */
.xeber-detay {
    padding: 40px 0;
    background: white;
}

.xeber-basliq {
    margin-bottom: 40px;
}

.xeber-meta-detay {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.xeber-kategori-detay {
    background: #007bff;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.xeber-tarix-detay,
.xeber-oxunma-detay {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.xeber-basliq h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: #212529;
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    margin: 20px auto 0; 
}

.xeber-icerik-detay {
    max-width: 800px;
    margin: 0 auto 60px;
}

.xeber-resim-detay {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.xeber-resim-detay img {
    width: 100%;
    height: auto;
    display: block;
}

.xeber-mezmun {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
}

.xeber-mezmun p {
    margin-bottom: 12px;
}

.xeber-mezmun h2,
.xeber-mezmun h3 {
    margin: 30px 0 15px;
    color: #212529;
}

.xeber-mezmun ul,
.xeber-mezmun ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.xeber-mezmun img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Sosial Paylaşım */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.social-share span {
    font-weight: 600;
    color: #495057;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Bağlı Xəbərlər - TAM YENİDƏN */
.bagli-xeberler {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
    max-width: 1200px;  /* ← ƏLAVƏ - Container məhdudlaşdırma */
    margin-left: auto;
    margin-right: auto;
}

.bagli-xeberler h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #212529;
}

.bagli-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* ← 250px-dən 320px-ə */
    gap: 30px;  /* ← 25px-dən 30px-ə */
    max-width: 100%;
}

.bagli-kart {
    background: white;  /* ← #f8f9fa-dan white-a dəyişdi */
    border-radius: 12px;  /* ← 10px-dən 12px-ə */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);  /* ← ƏLAVƏ - Normal kartlar kimi */
}

.bagli-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);  /* ← Daha güclü shadow */
}

.bagli-kart a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bagli-kart img {
    width: 100%;
    height: 200px;  /* ← 160px-dən 200px-ə artırıldı */
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.5s ease;  /* ← ƏLAVƏ - Hover animasiyası */
}

.bagli-kart:hover img {
    transform: scale(1.05);  /* ← ƏLAVƏ - Hover effekti */
}

.bagli-kart h4 {
    padding: 20px;  /* ← 15px-dən 20px-ə */
    font-size: 1.1rem;  /* ← 1rem-dən 1.1rem-ə */
    line-height: 1.4;
    color: #212529;
    font-weight: 600;  /* ← ƏLAVƏ */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    height: 3em;  /* ← 2.8em-dən 3em-ə */
    flex: 1;
}

.bagli-tarix {
    display: flex;  /* ← block-dan flex-ə */
    align-items: center;
    gap: 8px;  /* ← ƏLAVƏ */
    padding: 0 20px 20px;  /* ← 15px-dən 20px-ə */
    font-size: 13px;  /* ← 12px-dən 13px-ə */
    color: #868e96;
    margin-top: auto;
    padding-top: 15px;  /* ← 10px-dən 15px-ə */
    border-top: 1px solid #eaeaea;  /* ← #dee2e6-dan #eaeaea-ya */
    margin-left: 20px;  /* ← 15px-dən 20px-ə */
    margin-right: 20px;  /* ← 15px-dən 20px-ə */
}

/* Responsiv Dizayn */
@media (max-width: 1200px) {
    .xeber-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .bagli-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .xeber-header h1 {
        font-size: 2rem;
    }
    
    .xeber-basliq h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .xeber-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bagli-grid {
        grid-template-columns: 1fr;
    }
    
    .bagli-kart img {
        height: 180px;
    }
    
    .xeber-header {
        padding: 40px 0;
    }
    
    .xeber-header h1 {
        font-size: 1.8rem;
    }
    
    .kateqoriya-filtri {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .xeber-basliq h1 {
        font-size: 1.6rem;
    }
    
    .populyar-grid {
        grid-template-columns: 1fr;
    }
    
    .bagli-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    .populyar-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .populyar-kart {
        flex: 0 0 85%;
        scroll-snap-align: start;
        margin-right: 15px;
    }
}

@media (max-width: 576px) {
    .xeber-icerik {
        padding: 20px;
    }
    
    .xeber-resim {
        height: 180px;
    }
    
    .xeber-icerik h2 {
        font-size: 1.1rem;
    }
    
    .xeber-meta-detay {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .bagli-kart h4 {
        padding: 15px;
        font-size: 1rem;
    }
    
    .bagli-tarix {
        padding: 0 15px 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Animasiyalar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode üçün */
@media (prefers-color-scheme: dark) {
    .xeber-kart,
    .populyar-kart,
    .bagli-kart {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .xeber-icerik h2,
    .populyar-icerik h3,
    .bagli-kart h4 {
        color: #e2e8f0;
    }
    
    .xeber-ozet,
    .xeber-meta,
    .xeber-tarix-detay,
    .xeber-oxunma-detay {
        color: #a0aec0;
    }
}
/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 110;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666666;
    font-size: 0.8rem;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #0d6efd;
}
.mobile-nav-item .add-btn-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    margin-bottom: 3px !important;
}

/* Media Queries */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.2s ease;
}