:root {
    --primary-color: #4e73df;
    --primary-dark: #3a5bbf;
    --secondary-color: #f8f9fc;
    --dark-color: #2c3e50;
    --text-color: #2d3748;
    --text-light: #718096;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    padding: 0; /* Body-dən padding tamamilə silindi */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Kontent üçün daxili boşluq saxlanılır */
}

.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0; /* Header-dən padding sıfırlandı */
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px; /* Navbar-ın özünə padding verildi */
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

/* Side Ad-lər üçün düzəliş */
.side-ad {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 900;
}

.side-ad.left { left: 0; }
.side-ad.right { right: 0; }

.header-spacer {
    height: 72px; /* Navbar padding-i ilə header hündürlüyünə uyğun olaraq tənzimləyin */
    width: 100%;
}

/* Headline-container stilləri artıq istifadə olunmaya bilər, lakin saxlayıram ki, başqa yerdə istifadə olunursa problem olmasın */
.headline-container {
    max-width: 66.666%;
    margin: 0 auto;
}

.news-content {
    margin-top: 2rem;
}

.category-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.news-card .card-title {
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.read-more:hover {
    background: var(--primary-dark);
}

.news-ticker {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}
.popular-ticker {
    margin-top: 20px;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.ticker-title {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
}
.ticker-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 820px; /* Artırıldı */
    overflow-y: auto;
}
.ticker-item {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.ticker-item:last-child {
    border-bottom: none;
}
.ticker-link {
    color: #2c3e50;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.ticker-link:hover {
    color: #4e73df;
}
.ticker-meta {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}


.kose-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.kose-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.kose-item {
    min-width: 250px;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.kose-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kose-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.kose-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.kose-bio {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}

.read-author {
    margin-top: 0.7rem;
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.read-author:hover {
    text-decoration: underline;
}

.slider-controls {
    display: flex;
    gap: 8px;
}


.site-footer {
    background: var(--dark-color);
    color: white;
    margin-top: 3rem;
    padding: 2rem 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}
.social-links a {
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}


@media (max-width: 992px) {
    body { padding: 0; }
    .site-header { padding: 0; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .headline-container { max-width: 100%; } /* Multimedia section replaces this behavior */
}
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 1rem; }
    .nav-menu { margin-top: 1rem; }
    .footer-container { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .side-ad { display: none; }
    .container-main { padding: 0 10px; }
}

/* === Fotogalereya stilləri (index.php üçün) === */
/* Bu stillər index.php-dəki Fotogalereya bölməsi üçün nəzərdə tutulub */
.photo-gallery-section {
    background-color: white;
    border-radius: 12px;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px; /* Daxili boşluq */
}

.gallery-card {
    background-color: #000; /* Şəklə uyğun tünd fon */
    color: white;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative; /* Overlay üçün */
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 aspekt nisbəti üçün */
    overflow: hidden;
}

.gallery-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
    filter: brightness(0.7); /* Hover zamanı şəkli tündləşdir */
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Daha tünd overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px); /* Yüngül bulanıqlıq effekti */
    -webkit-backdrop-filter: blur(3px);
    z-index: 1; /* Overlayin şəklin üstündə olmasını təmin edir */
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-text {
    text-align: center;
    color: white;
    padding: 15px;
    z-index: 2; /* Mətnin overlayin üstündə olmasını təmin edir */
}

.gallery-overlay-text h5 {
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.gallery-card-body {
    padding: 15px;
    text-align: center;
}

.gallery-card-title {
    font-size: 1.1em;
    font-weight: 600;
    color: white; /* Başlıq həmişə ağ olsun */
    margin-bottom: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Multimedia section stilləri (yeni əlavə olundu) */
.economy-multimedia-section {
    margin-bottom: 35px;
    position: relative;
    padding: 20px 0; /* Üst və alt padding əlavə edildi */
}

.economy-multimedia-section .section-title {
    color: #1D78A5;
    margin-bottom: 12px;
    display: flex; /* Elementləri yan-yana düzmək üçün */
    align-items: center;
}

.economy-multimedia-section .section-title .title {
    font-size: 1.3rem; /* Eyni ölçüdə qalır */
    color: var(--dark-color); /* Sizin istədiyiniz rəngə qaytarıldı */
    position: relative;
    padding-bottom: 0.5rem;
    margin-right: 20px; /* Başlıq və linklər arasında boşluq */
}
.economy-multimedia-section .section-title .title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color); /* Sizdəki rəngə qaytarıldı */
}
.economy-multimedia-section .section-title .title::after {
    /* Sizin provided CSS-dəki after elementi başlığı çox uzadırdı, onu deaktiv edirik və ya fərqli tətbiq edirik */
    content: none; /* Bu elementi deaktiv etdim */
}

.economy-multimedia-section .section-title .link {
    color: #1D78A5;
    font-size: 0.9rem;
    text-decoration: none;
    margin-left: 15px; /* Linklər arasında boşluq */
    display: flex;
    align-items: center;
    gap: 5px;
}

.economy-multimedia-section .section-title .link:hover {
    color: #175f82;
}

.economy-multimedia-section .section-title .link.photo {
    margin-left: 23px; /* Sizin CSS-dən gələn əlavə boşluq */
    position: relative;
}

.economy-multimedia-section .section-title .link.photo:before {
    top: 3px;
    left: -15px;
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #166388;
    position: absolute;
}

/* News box stilləri */
.news-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-box a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.news-box img {
    width: 100%;
    height: 100%; /* Hündürlük placeholder olaraq, aşağıdakı padding-lə dəqiqləşəcək */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-box:hover img {
    transform: scale(1.05);
}

.news-box .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: bottom 0.3s ease;
}

/* Tam ölçülü news-box (sol tərəf) */
.economy-multimedia-section .news-box.full {
    height: 380px; /* Şəkildəki nisbətə uyğun hündürlük */
    margin-bottom: 0; /* Bootstrap g-3 gap-ı idarə edir */
}
.economy-multimedia-section .news-box.full img {
    height: 100%;
    width: 100%;
}
.economy-multimedia-section .news-box.full .title {
    padding-left: 35px; /* Sizin şəkildəki kimi soldan boşluq */
    font-size: 20px;
    line-height: 25px;
    bottom: 24px;
}
.economy-multimedia-section .news-box.full .title:before {
    top: -1px; /* Sizin original CSS-dən */
    left: 20px; /* Sizin original CSS-dən */
    width: 7px;
    height: 103%;
    content: '';
    position: absolute;
    background: #0F72A5;
}
.economy-multimedia-section .news-box.full:hover .title {
    bottom: 29px !important; /* Sizin original CSS-dən */
}

/* Kiçik news-boxlar (sağ tərəf) */
.economy-multimedia-section .news-box:not(.full) {
    height: 165px; /* Şəkildəki nisbətə uyğun hündürlük */
}
.economy-multimedia-section .news-box:not(.full) img {
    height: 100%;
}
.economy-multimedia-section .news-box:not(.full) .title {
    font-size: 14px;
    line-height: 18px;
    padding: 10px;
}
.economy-multimedia-section .news-box:not(.full):hover .title {
    bottom: 0;
}


/* Video/Photo icon stilləri */
.news-box:before {
    position: absolute;
    top: 10px; /* Üst və sağdan boşluq */
    right: 10px;
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 12px;
    color: #fff;
    content: '';
    border-radius: 50px;
    font-family: "Gilroy Black", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.4); /* Şəklin üzərində görsənməsi üçün fon */
    z-index: 2; /* Şəkilin üzərində olsun */
}

.news-box.video:before {
    content: '\f144'; /* Font Awesome video icon (play-circle) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Solid icon */
}

.news-box.photo:before {
    content: '\f03e'; /* Font Awesome photo icon (image) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Solid icon */
}

/* Mobil responsivlik üçün multimedia stilləri */
@media (max-width: 767.98px) {
    .economy-multimedia-section .section-title {
        flex-direction: column; /* Mobil üçün başlıq və linklər alt-alta */
        align-items: flex-start;
    }
    .economy-multimedia-section .section-title .link {
        margin-left: 0;
        margin-top: 5px;
    }
    .economy-multimedia-section .section-title .link.photo {
        margin-left: 0; /* Mobil üçün dəyişildi */
    }
    .economy-multimedia-section .section-title .link.photo:before {
        left: 0; /* Mobil üçün dəyişildi */
    }

    .economy-multimedia-section .news-box.full {
        height: 250px; /* Mobil üçün daha kiçik hündürlük */
    }
    .economy-multimedia-section .news-box.full .title {
        font-size: 16px;
        line-height: 20px;
        bottom: 15px;
        padding-left: 20px;
    }
    .economy-multimedia-section .news-box.full .title:before {
        left: 10px;
    }

    .economy-multimedia-section .news-box:not(.full) {
        height: 120px; /* Mobil üçün daha kiçik hündürlük */
    }
    .economy-multimedia-section .news-box:not(.full) .title {
        font-size: 12px;
        line-height: 16px;
        padding: 8px;
    }
}