:root {
    /* Light Mode Colors */
    --primary-red: #ff6b6b;
    --primary-blue: #4dabf7;
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #f8f9fa;
    --nav-bg: #FFFFFF;
    --nav-text: #333333;
    --body-bg: #f0f2f5; /* Arxa plan rəngi - daha açıq boz */
    --card-bg: #FFFFFF; /* Kart arxa plan rəngi - ağ */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Kartlara kölgə əlavə etmək */
    --border-color: #bcbcbc;
    --hover-color: #F3F4F6;
    --breaking-news-bg: #0d54b0;
    --breaking-news-text: #FFFFFF;
}

[data-theme="dark"] {
    --primary-red: #ff8787;
    --primary-blue: #74c0fc;
    --bg-color: #212529;
    --text-color: #c9ccd1;
    --header-bg: #111827;
    --nav-bg: #1F2937;
    --nav-text: #E5E7EB;
    --border-color: #374151;
    --hover-color: #374151;
    --breaking-news-bg: #991B1B;
    --breaking-news-text: #F3F4F6;
    --body-bg: #111827;
    --card-bg: #1F2937;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    color: var(--text-color);
    background-color: var(--body-bg);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    /* Top-bar için yükseklik boşluğu oluşturma */
    body {
        padding-top: 40px; /* Top-bar'ın yaklaşık yüksekliği */
    }
    
    /* Sliderların z-index değerini düşür */
    .carousel, 
    .carousel-inner, 
    .carousel-item {
        z-index: 5;
    }
    
    /* Navbar da top-bar'ın altında sabit kalacak */
    .navbar-sticky {
        top: 40px !important; /* Top-bar'ın altında */
    }
}

.weather-currency {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0;
        margin-right: 1rem;
        color: var(--bs-body-color);
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

    .navbar {
        display: none;
    }

    .weather-currency-wrapper {
        justify-content: flex-start;
        width: 100%;
    }
}

[data-bs-theme="dark"] .mobile-menu-toggle {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .mobile-menu-toggle:hover {
    color: var(--bs-primary);
}

.navbar-toggler {
    padding: 0.5rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-red-rgb), 0.1);
    border-radius: 8px;
    margin: 0;
}

.navbar-toggler i {
    font-size: 1.2rem;
    color: var(--primary-red);
}

.navbar > .navbar-toggler {
    display: none;
}

.weather-currency-wrapper {
    display: flex;
    align-items: center;
}

[data-theme="dark"] .navbar-toggler {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-link {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-link:hover {
    color: var(--primary-red);
}
@media (max-width: 768px) {
  .city-name {
    display: none;
  }
}

.city-name,
.login-text {
    margin-left: 0.2rem;
}

/* Logo Area Styles */
.logo-area {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.ad-placeholder {
    background-color: var(--header-bg);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    color: var(--text-color);
}

/* Navigation Styles */
.navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: relative;
}

.navbar-nav {
    position: relative;
    padding: 0;
    margin: 0;
    gap: 0;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red);
    background: transparent;
    transform: none;
}

.navbar-nav .nav-link.active {
    color: var(--primary-red);
    background: transparent;
}

.navbar-nav .nav-link span {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
    font-size: 10px;
}

.navbar-nav .nav-link span::after {
    content: '▾';
}

.navbar-nav .nav-item:hover .nav-link span {
    transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    min-width: 220px;
    padding: 0.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu::before {
    display: none;
}

.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.submenu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-red);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.submenu li a:hover {
    color: var(--primary-red);
    background-color: rgba(var(--primary-red-rgb), 0.05);
    padding-left: 2rem;
}

.submenu li a:hover::before {
    transform: scaleY(1);
}

/* Dark mode adjustments */
[data-theme="dark"] .navbar {
    background-color: var(--nav-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--primary-red);
}

[data-theme="dark"] .submenu {
    background-color: var(--nav-bg);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .submenu li a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-red);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--nav-bg);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }

    .navbar-nav .nav-link {
        padding: 1rem 1.5rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1.5rem;
        transform: none;
        min-width: auto;
        display: none;
    }

    .nav-item.active .submenu {
        display: block;
    }

    .submenu li a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .submenu li a:hover {
        background-color: transparent;
    }

    [data-theme="dark"] .navbar-collapse {
        background: var(--nav-bg);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Breaking News Styles */
.breaking-news {
    background-color: var(--breaking-news-bg);
    color: var(--breaking-news-text);
    overflow: hidden;
}

.breaking-label {
    background-color: #D50000;
    padding: 0.25rem 1rem;
    border-radius: 3px;
    font-weight: bold;
    z-index: 2;
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.breaking-news-scroll {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    animation: scrollNews 30s linear infinite;
    position: relative;
    right: 0;
    animation-iteration-count: infinite;
    transform-origin: left center;
}

.breaking-news-scroll::after {
    content: "";
    width: 50px; /* Boşluq yaradırıq */
    display: inline-block;
}

.breaking-news-scroll > * {
    flex-shrink: 0;
}

.breaking-news-scroll:hover {
    animation-play-state: paused;
}

.breaking-news-link {
    color: var(--breaking-news-text);
    text-decoration: none;
    padding-right: 2rem;
    position: relative;
    flex: 0 0 auto;
    max-width: 100%;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.breaking-news-link:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: 0.8rem;
    color: var(--breaking-news-text);
    opacity: 0.7;
}

.breaking-news-link:hover {
    opacity: 1;
}

.breaking-news-spacer {
    display: inline-block;
    min-width: 50px;
}

@keyframes scrollNews {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Sadəcə yarısını hərəkət etdiririk, çünki klonlar var */
    }
}

@media (max-width: 768px) {
    .breaking-news-scroll {
        gap: 1rem;
    }
    
    .breaking-news-link {
        padding-right: 1rem;
        min-width: 200px;
        /* max-width: 80vw; */
    }
    
    .breaking-news-link:not(:last-child)::after {
        right: 0.25rem;
    }

    @keyframes scrollNews {
        0% {
            transform: translate3d(0, 0, 0);
        }
        100% {
            transform: translate3d(-100%, 0, 0);
        }
    }
}

/* Mobile Menu Styles */
.offcanvas {
    width: 280px;
    background-color: var(--bs-body-bg);
}

.offcanvas .navbar-nav {
    margin-top: 1rem;
}

.offcanvas .nav-item {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.offcanvas .nav-link {
    padding: 1rem;
    color: var(--bs-body-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    color: var(--bs-primary);
    background-color: rgba(0,0,0,.03);
}

.offcanvas .submenu {
    display: none;
    list-style: none;
    padding-left: 0;
    background-color: rgba(0,0,0,.02);
}

.offcanvas .nav-item.active .submenu {
    display: block;
}

.offcanvas .submenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--bs-body-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.offcanvas .submenu li a:hover {
    color: var(--bs-primary);
    background-color: rgba(0,0,0,.03);
}

[data-bs-theme="dark"] .offcanvas {
    background-color: var(--bs-dark);
}

[data-bs-theme="dark"] .offcanvas .nav-item {
    border-bottom-color: rgba(255,255,255,.1);
}

[data-bs-theme="dark"] .offcanvas .submenu {
    background-color: rgba(255,255,255,.02);
}

[data-bs-theme="dark"] .offcanvas .nav-link:hover,
[data-bs-theme="dark"] .offcanvas .submenu li a:hover {
    background-color: rgba(255,255,255,.03);
}

/* Modal Styles */
.modal-content {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.form-control {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control:focus {
    background-color: var(--bg-color);
    border-color: var(--primary-blue);
    color: var(--text-color);
}

/* Footer Styles */
.footer {
    background-color: var(--header-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.footer h6 {
    color: var(--primary-red);
    font-weight: 600;
}

.footer .small {
    opacity: 0.8;
}

.footer i {
    color: var(--primary-red);
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Main News Slider Styles */
.main-carousel-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 500px;
}

.main-news-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
}

.main-news-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* News content overlay */
.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 5;
}

.news-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: var(--primary-red);
    color: #fff;
    text-transform: uppercase;
}

/* Custom Carousel Indicators */
.carousel-indicators-custom {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0;
    margin: 0;
    z-index: 15;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
}

.carousel-indicators-custom::-webkit-scrollbar {
    width: 5px;
}

.carousel-indicators-custom::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.carousel-indicators-custom::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.carousel-indicators-custom::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.indicator-item {
    flex: 0 0 auto;
    height: 120px; /* Yüksekliği iki katına çıkarıldı (60px -> 120px) */
    min-height: 120px; /* Minimum yükseklik de artırıldı */
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-left: 3px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.indicator-item.active {
    border-left: 3px solid var(--primary-red);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.indicator-item:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
}

.indicator-number {
    width: 28px;
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Kare fotoğraf için yeni stil */
.indicator-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.indicator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indicator-content {
    flex: 1;
    overflow: hidden;
}

.indicator-category {
    color: var(--primary-red);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.indicator-title {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal; /* Uzun başlıklar için birden fazla satıra izin ver */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimum 3 satır göster */
    -webkit-box-orient: vertical;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .main-carousel-container {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carousel-indicators-custom {
    background-color: rgba(0, 0, 0, 0.9);
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .carousel-indicators-custom::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .carousel-indicators-custom::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carousel-indicators-custom::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .carousel-indicators-custom {
        width: 35%;
    }
    
    .main-carousel-container .carousel-control-next {
        right: 35%;
    }
    
    .news-content {
        width: 60%;
        padding: 20px;
    }
    
    .news-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .main-carousel-container {
        height: auto;
    }
    
    .main-news-item {
        height: 400px;
    }
    
    .carousel-indicators-custom {
        position: relative;
        width: 100%;
        height: 60px;
        flex-direction: row;
        background-color: var(--nav-bg);
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .indicator-item {
        height: 100%;
        width: auto;
        min-width: 150px;
        flex-direction: row;
        align-items: center;
        padding: 0 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .indicator-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-red);
    }
    
    .news-content {
        width: 100%;
        padding: 15px;
    }
    
    .main-carousel-container .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .main-news-item {
        height: 350px;
    }
    
    .carousel-indicators-custom {
        height: 50px;
    }
    
    .indicator-item {
        min-width: 120px;
        padding: 0 10px;
    }
    
    .indicator-number {
        font-size: 12px;
        width: 20px;
        margin-right: 5px;
    }
    
    .indicator-title {
        font-size: 11px;
        max-width: 90px;
    }
    
    .news-content h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .news-category {
        font-size: 0.7rem;
        padding: 4px 8px;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .main-news-item {
        height: 300px;
    }
    
    .carousel-indicators-custom {
        display: none;
    }
    
    .news-content h2 {
        font-size: 1.2rem;
    }
}

/* Thumbnails Navigation */
.thumbnails-container {
    position: absolute;
    right: 4rem;
    top: 1rem;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    z-index: 10;
    perspective: 1000px;
    width: 260px;
}

.thumbnail {
    width: 125px;
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    transform: translateX(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.thumbnail.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.thumbnail:hover {
    transform: translateX(0) scale(1.02);
    opacity: 0.95;
    z-index: 2;
}

.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(var(--primary-red-rgb), 0.3) 0%, 
        rgba(var(--primary-blue-rgb), 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.thumbnail:hover::before {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(0deg, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.thumbnail:hover .thumbnail-title {
    transform: translateY(0);
}

/* Carousel Navigation */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 20;
    position: absolute;
    top: 10px; /* Butonları üste taşıdık */
    height: 40px; /* Butonların yüksekliğini sınırladık */
}

.carousel-control-prev {
    left: 10px; /* Sol üst köşeye taşıdık */
}

.carousel-control-next {
    left: 60px; /* Sol üst köşede yan yana konumlandırdık */
    right: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1);
    background-color: var(--primary-red);
}

.main-carousel-container:hover .carousel-control-prev {
    opacity: 1;
}

.main-carousel-container:hover .carousel-control-next {
    opacity: 1;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .carousel-control-prev-icon,
[data-theme="dark"] .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        top: 5px;
        height: 30px;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        left: 45px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        background-size: 15px;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .main-news-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .thumbnails-container {
        right: 50%;
        top: auto;
        bottom: -90px;
        transform: translateX(50%);
        grid-template-columns: repeat(5, 1fr);
        width: auto;
        gap: 0.75rem;
    }

    .thumbnail {
        width: 100px;
        transform: translateY(20px) scale(0.95);
    }

    .thumbnail.active {
        transform: translateY(0) scale(1);
    }

    .thumbnail:hover {
        transform: translateY(0) scale(1.05);
    }

    .main-carousel-container {
        max-width: 100%;
        /* margin-bottom: 120px; */
    }

    .main-news-item {
        border-radius: 8px;
    }
}

@media (max-width: 992px) {
    .thumbnails-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .thumbnail {
        width: 90px;
    }

    .main-carousel-container {
        max-width: 100%;
        /* margin-bottom: 120px; */
    }

    .main-news-item {
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .main-news-item,
    .main-carousel-container {
        height: 540px;
    }

    .navbar-collapse {
        background: var(--nav-bg);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        padding-left: 1.5rem;
        display: none;
    }

    .nav-item.active .submenu {
        display: block;
    }

    .submenu li a {
        padding: 0.5rem 1rem;
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        border: none;
        padding: 0;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }
}

/* News Section Styles */
.news-section {
    margin: 2rem 0;
}

/* News Card Redesign */
.news-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0) 20%, 
        rgba(0,0,0,0) 50%, 
        rgba(0,0,0,0.8) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

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

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.news-content {
    position: relative;
    padding: 1.2rem;
    background: var(--card-bg);
}

.news-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.news-category span {
    display: inline-block;
    padding: 6px 12px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
    transition: all 0.3s ease;
}

.news-card:hover .news-category span {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.news-time {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.news-time i {
    margin-right: 0.5rem;
    color: #d32f2f;
}

.news-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.news-card:hover .news-content h4 {
    color: #d32f2f;
}

.news-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-author, 
.news-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.meta-right {
    display: flex;
    gap: 0.5rem;
}

.share-btn,
.bookmark-btn {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover,
.bookmark-btn:hover {
    color: #d32f2f;
    opacity: 1;
    transform: translateY(-2px);
}

/* Category Header */
.category-header {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    position: relative;
    padding-left: 1rem;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #d32f2f;
    border-radius: 2px;
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-link:hover {
    color: #d32f2f;
    opacity: 1;
}

.category-link i {
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Dark Mode */
[data-bs-theme="dark"] .news-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .news-card:hover {
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .news-content {
        padding: 1.2rem;
    }

    .news-content h4 {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .news-meta-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .meta-left {
        width: 100%;
        justify-content: space-between;
    }

    .meta-right {
        width: 100%;
        justify-content: center;
    }

    .category-title {
        font-size: 1.4rem;
    }
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.news-grid .main-news {
    grid-column: 1;
}

.news-grid .side-news {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* News Feed Styles */
.news-feed {
    background: var(--nav-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: sticky;
    top: 1rem;
}

.feed-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
}

.feed-items-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: -0.5rem;
    padding: 0.5rem;
}

.feed-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar */
.feed-items::-webkit-scrollbar {
    width: 6px;
}

.feed-items::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
}

.feed-items::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.feed-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.feed-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feed-item:hover {
    background: rgba(var(--primary-red-rgb), 0.03);
    transform: translateX(5px);
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-time {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

.feed-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feed-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.feed-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feed-link:hover {
    color: var(--primary-red);
    text-decoration: none;
}

.feed-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.btn-all-news {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-all-news:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

.btn-all-news i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-all-news:hover i {
    transform: translateX(4px);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .feed-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feed-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .feed-category {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .btn-all-news {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .feed-items {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .feed-items {
        height: 350px;
    }
    
    .news-feed {
        position: static;
    }
    
    .feed-link {
        font-size: 0.9rem;
    }
    
    .feed-category {
        font-size: 0.65rem;
    }
    
    .feed-time {
        font-size: 0.85rem;
    }
}

/* Category Specific Card Styles */

/* Siyasət Kartları */
.category-section.siyaset .news-card {
    border: none;
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    padding: 0;
    margin-bottom: 1.5rem;
}

.category-section.siyaset .news-image {
    margin-bottom: 0;
}

.category-section.siyaset .news-content {
    padding: 1.2rem;
}

.category-section.siyaset .news-category {
    background: #d32f2f;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.category-section.siyaset .news-time {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
    top: auto;
    right: auto;
}

.category-section.siyaset .news-card.small {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
}

.category-section.siyaset .news-card.small .news-image {
    margin: 0;
}

/* İqtisadiyyat Kartları */
.category-section.iqtisadiyyat .news-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.category-section.iqtisadiyyat .news-content {
    padding: 1.2rem;
    border-top: 3px solid #2e7d32;
}

.category-section.iqtisadiyyat .news-category {
    color: #2e7d32;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-section.iqtisadiyyat .news-time {
    background: rgba(46, 125, 50, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: #2e7d32;
}

.category-section.iqtisadiyyat .news-card.small {
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.category-section.iqtisadiyyat .news-card.small .news-content {
    padding: 1rem;
    border-top: none;
    border-left: 3px solid #2e7d32;
}

/* İdman Kartları */
.category-section.idman .news-card {
    border: none;
    position: relative;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

.category-section.idman .news-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-section.idman .news-content {
    padding: 1.2rem 1rem;
}

.category-section.idman .news-category {
    background: #f57c00;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 0;
    transform: skewX(-10deg);
    position: absolute;
    top: -0.8rem;
    left: 1rem;
    font-size: 0.8rem;
}

.category-section.idman .news-category span {
    display: inline-block;
    transform: skewX(10deg);
}

.category-section.idman .news-time {
    font-weight: 600;
    color: #f57c00;
}

.category-section.idman .news-card.small {
    margin-bottom: 2rem;
}

.category-section.idman .news-card.small .news-image {
    border-radius: 8px;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .category-section.siyaset .news-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .category-section.iqtisadiyyat .news-time {
    background: rgba(46, 125, 50, 0.2);
}

[data-theme="dark"] .category-section.idman .news-image {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-section.siyaset .news-card.small,
    .category-section.iqtisadiyyat .news-card.small,
    .category-section.idman .news-card.small {
        grid-template-columns: 1fr;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .category-section.siyaset .news-card.small .news-image,
    .category-section.iqtisadiyyat .news-card.small .news-image,
    .category-section.idman .news-card.small .news-image {
        width: 100%;
    }

    .category-section.siyaset .news-content,
    .category-section.iqtisadiyyat .news-content,
    .category-section.idman .news-content {
        padding: 1rem;
    }
}

/* Siyasət kateqoriyası */
.news-category span:contains("SİYASƏT"),
.news-category span:contains("QARABAĞ"),
.news-category span:contains("XARİCİ SİYASƏT") {
    background: #d32f2f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
    transition: all 0.3s ease;
}

.news-category span:contains("SİYASƏT"):hover,
.news-category span:contains("QARABAĞ"):hover,
.news-category span:contains("XARİCİ SİYASƏT"):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

/* İqtisadiyyat kateqoriyası */
.news-category span:contains("MALİYYƏ"),
.news-category span:contains("ENERGETİKA"),
.news-category span:contains("BİZNES") {
    background: #2e7d32;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    transition: all 0.3s ease;
}

.news-category span:contains("MALİYYƏ"):hover,
.news-category span:contains("ENERGETİKA"):hover,
.news-category span:contains("BİZNES"):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* İdman kateqoriyası */
.news-category span:contains("FUTBOL"),
.news-category span:contains("GÜLƏŞ"),
.news-category span:contains("ŞAHMAT") {
    background: #1976d2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    transition: all 0.3s ease;
}

.news-category span:contains("FUTBOL"):hover,
.news-category span:contains("GÜLƏŞ"):hover,
.news-category span:contains("ŞAHMAT"):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

/* Dark mode üçün uyğunlaşdırma */
[data-bs-theme="dark"] .news-category span {
    opacity: 0.95;
}

/* Responsive dizayn */
@media (max-width: 768px) {
    .news-category span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* News Grid Layout */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-grid .main-news,
    .news-grid .side-news {
        grid-column: 1;
    }

    .news-card.small {
        grid-template-columns: 120px 1fr;
        padding: 0.8rem;
    }

    .news-content h4 {
        font-size: 1.1rem;
    }

    .news-content h5 {
        font-size: 0.9rem;
    }

    .news-category span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

.category-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.category-main-news {
    grid-column: 1;
}

.category-side-news {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    height: 100%;
}

.category-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card.main {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-card.main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card.small {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.1rem 0.7rem;
    padding: 0.2rem 0.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card.small:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.category-card.main .card-image {
    height: 360px;
}

.category-card.small .card-image {
    height: 100px;
    border-radius: 6px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0) 100%);
}

.card-details {
    padding: 1.2rem;
}

.category-card.main .card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0) 100%);
    color: #fff;
}

.category-card.small .card-details {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-category span {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
    transition: all 0.3s ease;
}

.card-time {
    font-size: 0.85rem;
    opacity: 0.8;
    color: inherit;
}

.category-card.main h4 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #fff;
}

.category-card.small h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.card-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-author, 
.card-views {
    font-size: 0.85rem;
    opacity: 0.8;
    color: inherit;
}

.meta-right {
    display: flex;
    gap: 0.5rem;
}

.share-btn,
.bookmark-btn {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover,
.bookmark-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Dark Mode */
[data-theme="dark"] .category-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .category-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .category-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-main-news,
    .category-side-news {
        grid-column: 1;
    }

    .category-card.small {
        grid-template-columns: 120px 1fr;
    }

    .category-card.main .card-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .category-card.main .card-image {
        height: 240px;
    }

    .category-card.main h4 {
        font-size: 1.2rem;
    }

    .category-card.small h5 {
        font-size: 0.9rem;
    }

    .card-category span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* Günün Əsas Xəbərləri */
.daily-news-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--border-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100px;
    height: 3px;
    background: var(--primary-red);
}

.daily-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.daily-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.daily-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.daily-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.daily-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.daily-card:hover .daily-image img {
    transform: scale(1.05);
}

.daily-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0) 40%);
}

.daily-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.daily-category span {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.daily-card:hover .daily-category span {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.daily-content {
    padding: 1.5rem;
    background: var(--card-bg);
}

.daily-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

.daily-meta i {
    color: var(--primary-red);
    margin-right: 0.4rem;
}

.daily-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.daily-card:hover .daily-content h4 {
    color: var(--primary-red);
}

.daily-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* Dark Mode */
[data-theme="dark"] .daily-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .daily-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .daily-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .daily-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.4rem;
    }

    .daily-content {
        padding: 1.2rem;
    }

    .daily-content h4 {
        font-size: 1.1rem;
    }

    .daily-excerpt {
        font-size: 0.85rem;
    }

    .daily-category span {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

/* İqtisadiyyat Bölməsi */
.economy-section {
    margin-top: 3rem;
}

.economy-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.economy-main {
    grid-column: 1;
}

.economy-side {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Əsas Kart Stili */
.economy-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.economy-card.featured {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.economy-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.15);
}

.economy-card.featured .card-image {
    height: 380px;
}

.economy-card .card-image {
    position: relative;
    overflow: hidden;
}

.economy-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.economy-card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.8) 100%);
}

.economy-category {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 2;
}

.economy-category span {
    display: inline-block;
    padding: 8px 16px;
    background: #2e7d32;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.economy-card:hover .economy-category span {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
}

.card-content {
    padding: 1.5rem;
    background: var(--card-bg);
}

.economy-card.featured .card-content {
    padding: 2rem;
}

.economy-card.featured h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-info {
    display: flex;
    gap: 1.2rem;
}

.time, .views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.time i, .views i {
    color: #2e7d32;
}

/* Kiçik Kart Stili */
.economy-card.compact {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.economy-card.compact:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.12);
}

.economy-card.compact .card-image {
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.economy-card.compact .economy-category {
    top: 0.6rem;
    left: 0.6rem;
}

.economy-card.compact .economy-category span {
    padding: 4px 12px;
    font-size: 0.75rem;
}

.economy-card.compact .card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.economy-card.compact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.economy-card.compact:hover h4 {
    color: #2e7d32;
}

.economy-card.compact .card-meta {
    font-size: 0.85rem;
}

/* Dark Mode */
[data-theme="dark"] .economy-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .economy-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .economy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .economy-main,
    .economy-side {
        grid-column: 1;
    }

    .economy-card.featured .card-image {
        height: 320px;
    }

    .economy-card.featured h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .economy-card.featured .card-image {
        height: 240px;
    }

    .economy-card.featured .card-content {
        padding: 1.2rem;
    }

    .economy-card.featured h3 {
        font-size: 1.3rem;
    }

    .economy-card.compact {
        grid-template-columns: 100px 1fr;
    }

    .economy-card.compact h4 {
        font-size: 1rem;
    }

    .card-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Kiçik Xəbər Kartları */
.economy-card.mini {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.economy-card.mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.12);
}

.economy-card.mini .card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.economy-card.mini .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.economy-card.mini:hover .card-image img {
    transform: scale(1.05);
}

.economy-card.mini .economy-category {
    top: 0.8rem;
    left: 0.8rem;
}

.economy-card.mini .economy-category span {
    padding: 5px 12px;
    font-size: 0.75rem;
}

.economy-card.mini .card-content {
    padding: 1rem;
}

.economy-card.mini h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.economy-card.mini:hover h5 {
    color: #2e7d32;
}

.economy-card.mini .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* Bütün Xəbərlər Butonu */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--nav-bg);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #991b1b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

.btn-view-all i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(4px);
}

/* Dark Mode */
[data-theme="dark"] .economy-card.mini {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .economy-card.mini:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .btn-view-all {
    background: var(--nav-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-view-all:hover {
    background: #2e7d32;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .economy-other-news .row {
        --bs-gutter-x: 1rem;
    }

    .economy-card.mini .card-image {
        height: 160px;
    }

    .economy-card.mini h5 {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .economy-card.mini .card-image {
        height: 200px;
    }

    .btn-view-all {
        width: 100%;
        justify-content: center;
    }
}

/* Digər Xəbərlər Bölməsi */
.other-news-section {
    margin-top: 3rem;
}

.other-news-section .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--border-color);
}

.other-news-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100px;
    height: 3px;
    background: var(--primary-blue);
}

.other-news-section .economy-card.mini {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.other-news-section .economy-card.mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.other-news-section .economy-category span {
    background: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.2);
}

.other-news-section .economy-card.mini:hover .economy-category span {
    box-shadow: 0 6px 16px rgba(77, 171, 247, 0.3);
}

.other-news-section .economy-card.mini:hover h5 {
    color: var(--primary-blue);
}

.other-news-section .time i, 
.other-news-section .views i {
    color: var(--primary-blue);
}

/* Dark Mode */
[data-theme="dark"] .other-news-section .economy-card.mini {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .other-news-section .economy-card.mini:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .other-news-section .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .other-news-section .section-title {
        font-size: 1.3rem;
    }
}

/* Kateqoriya Səhifəsi Stilləri */
.category-header-section {
    background: var(--bs-body-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.category-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.category-description {
    font-size: 1.1rem;
    color: var(--bs-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--bs-secondary);
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-stats i {
    color: var(--bs-primary);
}

/* Alt Kateqoriyalar */
.subcategories-section {
    background: var(--bs-body-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.subcategories-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.subcategory-link {
    color: var(--bs-body-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.subcategory-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.subcategory-link.active {
    background: var(--bs-primary);
    color: white;
}

/* Kateqoriya Xəbərləri */
.category-news-section {
    padding: 2rem 0;
}

.featured-news .category-card {
    margin-bottom: 2rem;
}

.featured-news .card-image {
    height: 588px;
}

.featured-news h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-news .card-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--bs-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.category-tag span {
    background: var(--bs-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.category-card:hover .category-tag span {
    transform: translateY(-3px);
}

/* Pagination */
.category-pagination .page-link {
    color: var(--bs-body-color);
    border: none;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-pagination .page-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.category-pagination .page-item.active .page-link {
    background: var(--bs-primary);
    color: white;
}

.category-pagination .page-item.disabled .page-link {
    background: none;
    color: var(--bs-secondary);
}

/* Dark Mode */
[data-theme="dark"] .category-header-section,
[data-theme="dark"] .subcategories-section {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .subcategory-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-news .card-image {
        height: 350px;
    }

    .featured-news h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .category-main-title {
        font-size: 2rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-news .card-image {
        height: 300px;
    }

    .featured-news h2 {
        font-size: 1.5rem;
    }

    .featured-news .card-excerpt {
        font-size: 1rem;
    }

    .subcategories-wrapper {
        gap: 1rem;
    }

    .subcategory-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Dark Mode - Category Page */
[data-theme="dark"] .category-header-section {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .category-main-title {
    color: var(--bs-light);
}

[data-theme="dark"] .category-description {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .category-stats {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .category-stats i {
    color: var(--bs-primary);
}

[data-theme="dark"] .subcategories-section {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .subcategory-link {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .subcategory-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bs-primary);
}

[data-theme="dark"] .subcategory-link.active {
    background: var(--bs-primary);
    color: var(--bs-light);
}

[data-theme="dark"] .category-news-section {
    background: var(--bs-dark);
}

[data-theme="dark"] .featured-news .category-card {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .featured-news h2,
[data-theme="dark"] .featured-news .card-excerpt {
    color: var(--bs-light);
}

[data-theme="dark"] .featured-news .card-meta,
[data-theme="dark"] .featured-news .meta-left span {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .share-btn,
[data-theme="dark"] .bookmark-btn {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .share-btn:hover,
[data-theme="dark"] .bookmark-btn:hover {
    color: var(--bs-light);
    background: rgba(255, 255, 255, 0.2);
}

/* Pagination Styles */
.category-pagination {
    margin-top: 2rem;
}

.category-pagination .page-link {
    color: var(--text-color);
    background: var(--nav-bg);
    border: none;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-pagination .page-link:hover {
    background: rgba(var(--primary-red-rgb), 0.1);
    color: var(--primary-red);
}

.category-pagination .page-item.active .page-link {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-red-rgb), 0.3);
}

.category-pagination .page-item.disabled .page-link {
    background: var(--nav-bg);
    color: var(--text-color);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dark Mode - Pagination */
[data-theme="dark"] .category-pagination .page-link {
    background: var(--nav-bg);
    color: var(--text-color);
}

[data-theme="dark"] .category-pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-red);
}

[data-theme="dark"] .category-pagination .page-item.active .page-link {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--primary-red-rgb), 0.4);
}

[data-theme="dark"] .category-pagination .page-item.disabled .page-link {
    background: var(--nav-bg);
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Menu Button Styles */
.navbar-toggler {
    border: none;
    padding: 0.8rem;
    margin-right: 0.5rem;
    background: rgba(var(--primary-red-rgb), 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    background: rgba(var(--primary-red-rgb), 0.15);
}

.navbar-toggler i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

/* Dark Mode - Mobile Menu */
[data-theme="dark"] .navbar-toggler {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .navbar-toggler i {
    color: var(--primary-red);
}

[data-theme="dark"] .offcanvas {
    background: var(--nav-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .offcanvas .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .offcanvas .nav-link {
    color: var(--text-color);
}

[data-theme="dark"] .offcanvas .nav-link:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .offcanvas .submenu {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .offcanvas .submenu li a {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .offcanvas .submenu li a:hover {
    color: var(--primary-red);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .offcanvas-title {
    color: var(--text-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-toggler {
        padding: 0.7rem;
    }

    .navbar-toggler i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar-toggler {
        padding: 0.6rem;
        margin-right: 0.3rem;
    }
}

/* News Detail Page Styles */
.news-detail-section {
    margin: 2rem 0;
}

.news-detail-header {
    margin-bottom: 2rem;
}

.news-detail-header .news-category {
    margin-bottom: 1rem;
    display: inline-block;
}

.news-detail-header .news-category span {
    background: var(--primary-red);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-red-rgb), 0.2);
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.news-date, .news-views, .news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.95rem;
}

.news-main-image {
    margin: 2rem 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.news-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.9rem;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #fff;
}

.news-content blockquote {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
}

.news-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.8;
}

/* Gallery Styles */
.news-gallery {
    margin: 3rem 0;
}

.news-gallery h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.gallery-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gallery-slider .carousel {
    margin-bottom: 1rem;
}

.gallery-slider .carousel-item {
    position: relative;
    height: 600px;
    background-color: var(--nav-bg);
}

.gallery-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slider .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem;
    text-align: left;
}

.gallery-slider .carousel-caption p {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.gallery-slider .carousel-control-prev,
.gallery-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-slider:hover .carousel-control-prev,
.gallery-slider:hover .carousel-control-next {
    opacity: 1;
}

.gallery-slider .carousel-control-prev {
    left: 20px;
}

.gallery-slider .carousel-control-next {
    right: 20px;
}

.gallery-slider .carousel-control-prev-icon,
.gallery-slider .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--nav-bg);
    border-radius: 0 0 12px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary-red);
    border-radius: 6px;
}

.gallery-thumbnails .thumbnail {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-thumbnails .thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails .thumbnail.active::before {
    opacity: 0;
}

.gallery-thumbnails .thumbnail:hover::before {
    opacity: 0;
}

.gallery-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .gallery-slider {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .gallery-thumbnails {
    background: var(--nav-bg);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .gallery-slider .carousel-item {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .gallery-slider .carousel-item {
        height: 400px;
    }

    .gallery-slider .carousel-caption {
        padding: 1rem;
    }

    .gallery-slider .carousel-caption p {
        font-size: 0.9rem;
    }

    .gallery-thumbnails .thumbnail {
        flex: 0 0 100px;
        height: 70px;
    }

    .gallery-slider .carousel-control-prev,
    .gallery-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Social Share Styles */
.social-share {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--nav-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.social-share h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-telegram {
    background: #0088cc;
}

.share-whatsapp {
    background: #25d366;
}

.share-copy {
    background: var(--text-color);
    border: none;
    cursor: pointer;
}

[data-theme="dark"] .share-copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .share-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-buttons a:hover,
.share-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .share-buttons a,
    .share-buttons button {
        width: 100%;
        min-width: 100%;
        padding: 0.8rem;
        justify-content: center;
    }

    .share-buttons button.share-copy {
        width: 100%;
        min-width: 100%;
        margin: 0;
    }
}

/* Most Read Section Styles */
.most-read-section {
    margin: 3rem 0;
}

.most-read-section .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--border-color);
    color: var(--text-color);
}

.most-read-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.most-read-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.most-read-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.most-read-card .card-image {
    position: relative;
    height: 180px;
}

.most-read-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(var(--primary-red-rgb), 0.3);
}

.most-read-card .card-content {
    padding: 1.2rem;
}

.most-read-card .card-category {
    display: inline-block;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.most-read-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.most-read-card .card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Latest News Section Styles */
.latest-news-section {
    margin: 3rem 0;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.latest-news-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.latest-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.latest-news-card .card-image {
    position: relative;
    height: 200px;
}

.latest-news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-news-card .card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-red);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(var(--primary-red-rgb), 0.3);
}

.latest-news-card .card-content {
    padding: 1.2rem;
}

.latest-news-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.latest-news-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .news-main-image {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-share {
    background: var(--nav-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .most-read-card,
[data-theme="dark"] .latest-news-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .most-read-card:hover,
[data-theme="dark"] .latest-news-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .news-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .most-read-grid,
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-buttons a,
    .share-buttons button {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 1.5rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .most-read-grid,
    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons a,
    .share-buttons button {
        width: 100%;
    }

    .news-content {
        font-size: 1rem;
    }

    .news-content blockquote {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
}

.contact-info-card,
.contact-form-card {
    background: var(--nav-bg);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-red-rgb), 0.2);
    transition: all 0.3s ease;
}

.contact-info-item:hover .icon-wrapper {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(var(--primary-red-rgb), 0.3);
}

.info-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-content p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

.info-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-red);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-link:hover {
    transform: translateY(-3px);
    text-decoration: none !important;
    color: #fff;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: #e4405f;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.telegram {
    background: #0088cc;
}

/* Contact Form */
.contact-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(var(--primary-red-rgb), 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: var(--primary-red);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-blue-rgb), 0.2);
}

/* Map Container */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Dark Mode */
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card {
    background: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-form .form-control {
    background: var(--nav-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(var(--primary-red-rgb), 0.2);
}

[data-theme="dark"] .map-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-info-item {
        gap: 1rem;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .info-content h5 {
        font-size: 1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .map-container {
        margin-top: 2rem;
    }
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.about-header {
    margin-bottom: 3rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.about-image {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text {
    color: var(--text-color);
}

.about-text .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: var(--text-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    background: var(--nav-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(var(--primary-red-rgb), 0.3);
}

.value-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.activity-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--nav-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.activity-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.activity-list i {
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.activity-list li:hover i {
    transform: scale(1.2);
}

.activity-list span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--nav-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Dark Mode */
[data-theme="dark"] .about-section {
    background: var(--bg-color);
}

[data-theme="dark"] .value-item,
[data-theme="dark"] .activity-list li,
[data-theme="dark"] .stats-section {
    background: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .value-item:hover,
[data-theme="dark"] .activity-list li:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .about-title {
        font-size: 2rem;
    }

    .about-text .lead {
        font-size: 1.2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .activity-list {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 2rem 0;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .about-text .lead {
        font-size: 1.1rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-item h3 {
        font-size: 1.2rem;
    }

    .activity-list li {
        padding: 1rem;
    }

    .activity-list span {
        font-size: 1rem;
    }

    .stats-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .stat-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    /* Blur effektini yalnız güclü cihazlarda aktivləşdiririk */
    @media (min-width: 992px) {
        backdrop-filter: blur(5px);
    }
}

/* Modal açılma animasiyasını sürətləndiririk */
.modal.fade .modal-dialog {
    transform: translate(0, -5%);
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

#searchModal .modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
    /* Hardware acceleration əlavə edirik */
    transform: translateZ(0);
    will-change: transform;
}

#searchModal .modal-content {
    background: var(--nav-bg);
    border: none;
    border-radius: 16px;
    /* Kölgəni yüngülləşdiririk */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#searchModal .modal-header {
    border-bottom: 1px solid rgba(var(--primary-red-rgb), 0.1);
    padding: 1rem;
}

#searchModal .modal-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

#searchModal .modal-body {
    padding: 1rem;
}

#searchModal .search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#searchModal .search-input-wrapper {
    position: relative;
}

#searchModal .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid rgba(var(--primary-red-rgb), 0.1);
    border-radius: 8px;
    /* Keçid effektini yüngülləşdiririk */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#searchModal .search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(var(--primary-red-rgb), 0.1);
}

#searchModal .search-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    /* Keçid effektini yüngülləşdiririk */
    transition: transform 0.15s ease, background-color 0.15s ease;
}

#searchModal .search-button:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
}

#searchModal .search-button i {
    margin-right: 0.5rem;
}

/* Qaranlıq tema */
[data-theme="dark"] #searchModal .modal-content {
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #searchModal .search-input {
    background: var(--bg-color);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #searchModal .search-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(var(--primary-red-rgb), 0.2);
}

/* Mobil responsive */
@media (max-width: 768px) {
    #searchModal .modal-dialog {
        margin: 1rem;
    }

    #searchModal .modal-title {
        font-size: 1.1rem;
    }

    #searchModal .search-input,
    #searchModal .search-button {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }
}

#loginModal .modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}

#loginModal .modal-content {
    background: var(--nav-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#loginModal .modal-header {
    border-bottom: 1px solid rgba(var(--primary-red-rgb), 0.1);
    padding: 1rem;
}

#loginModal .modal-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

#loginModal .modal-body {
    padding: 1.5rem;
}

#loginModal .form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#loginModal .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--primary-red-rgb), 0.1);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
}

#loginModal .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(var(--primary-red-rgb), 0.1);
}

#loginModal .password-field .input-group-text,
#loginModal .password-field .btn {
    background: var(--bg-color);
    border-color: rgba(var(--primary-red-rgb), 0.1);
    color: var(--text-color);
}

#loginModal .toggle-password {
    border-left: none;
    padding: 0.75rem;
}

#loginModal .toggle-password:hover {
    background: var(--bg-color);
    color: var(--primary-red);
}

#loginModal .form-check-label {
    color: var(--text-color);
    font-size: 0.9rem;
}

#loginModal .forgot-password,
#loginModal .switch-auth,
#loginModal .terms-link {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

#loginModal .forgot-password:hover,
#loginModal .switch-auth:hover,
#loginModal .terms-link:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

/* Profile Section Styles */
.profile-info {
    text-align: center;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-red);
}

.change-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid rgba(var(--primary-red-rgb), 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.change-avatar:hover {
    background: var(--primary-red);
    color: #fff;
}

.profile-name {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-email {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0;
}

.profile-menu {
    margin-top: 2rem;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background: rgba(var(--primary-red-rgb), 0.1);
    color: var(--primary-red);
}

.profile-menu-item i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* Dark Theme */
[data-theme="dark"] #loginModal .modal-content {
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #loginModal .form-control {
    background: var(--bg-color);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #loginModal .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(var(--primary-red-rgb), 0.2);
}

[data-theme="dark"] .profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    #loginModal .modal-dialog {
        margin: 1rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-menu-item {
        padding: 0.75rem;
    }
}

.category-side-news .category-card.small {
    display: flex;
    align-items: center;
    background: var(--nav-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: calc((100% - 2rem) / 3);
    min-height: 120px;
}

.category-side-news .category-card.small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-side-news .category-card.small .card-image {
    width: 120px;
    min-width: 120px;
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.category-side-news .category-card.small .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-side-news .category-card.small:hover .card-image img {
    transform: scale(1.05);
}

.category-side-news .category-card.small .card-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-side-news .category-card.small h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-side-news .category-card.small:hover h5 {
    color: var(--primary-red);
}

.category-side-news .category-card.small .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
}

.category-side-news .category-card.small .card-category span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-red);
    color: #fff;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Dark Theme */
[data-theme="dark"] .category-side-news .category-card.small {
    background: var(--nav-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .category-side-news .category-card.small:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .category-side-news .category-card.small {
        min-height: 100px;
    }

    .category-side-news .category-card.small .card-image {
        width: 100px;
        min-width: 100px;
    }

    .category-side-news .category-card.small h5 {
        font-size: 0.9375rem;
    }
}

@media (max-width: 992px) {
    .category-side-news {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .category-side-news .category-card.small {
        height: auto;
    }
}

@media (max-width: 768px) {
    .category-side-news {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .category-side-news .category-card.small {
        min-height: 90px;
    }

    .category-side-news .category-card.small .card-image {
        width: 90px;
        min-width: 90px;
    }

    .category-side-news .category-card.small .card-details {
        padding: 0.75rem;
    }

    .category-side-news .category-card.small h5 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .category-side-news .category-card.small .card-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

.powered-by {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.powered-by a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.powered-by a:hover {
    color: var(--primary-red);
}

.powered-by i {
    font-size: 0.9rem;
    margin-right: 2px;
}

[data-theme="dark"] .powered-by {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .powered-by a {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .powered-by a:hover {
    color: var(--primary-red);
}

.slider-side-news {
    display: none;
}

/* Siyaset bölümünü düzenlemek için yeni stiller */
.siyaset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.siyaset-card {
    display: flex;
    background: var(--nav-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100px;
    position: relative;
}

.siyaset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.siyaset-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.siyaset-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.siyaset-card:hover .siyaset-image img {
    transform: scale(1.05);
}

.siyaset-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.siyaset-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.siyaset-card:hover .siyaset-title {
    color: var(--primary-red);
}

.siyaset-category {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 500;
}

/* Diğer haberler için 4 kart gösterimi */
.other-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.other-news-card {
    background: var(--nav-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* stretched-link için gerekli */
}

.other-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Kartın üzerine gelince z-index'i artırıyoruz */
}

.other-news-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.other-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-news-card:hover .other-news-image img {
    transform: scale(1.05);
}

.other-news-content {
    padding: 1rem;
}

.other-news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.other-news-card:hover .other-news-title {
    color: var(--primary-blue);
}

.other-news-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Responsive ayarlamalar */
@media (max-width: 992px) {
    .siyaset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .other-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .siyaset-grid {
        grid-template-columns: 1fr;
    }
    
    .other-news-grid {
        grid-template-columns: 1fr;
    }
    
    .siyaset-card {
        height: auto;
        min-height: 100px;
    }
}

/* Dark Mode desteği */
[data-theme="dark"] .siyaset-card,
[data-theme="dark"] .other-news-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .siyaset-card:hover,
[data-theme="dark"] .other-news-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mega menü stillerini düzeltelim */
.has-mega-menu {
    position: relative;
    z-index: 1000;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background-color: var(--nav-bg);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
    margin-top: 1px;
}

[data-theme="dark"] .mega-menu {
    background-color: var(--nav-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mega menü arka plan sorununu düzeltme */
.mega-menu {
    background-color: var(--nav-bg);
    border: 1px solid var(--border-color);
}

/* Slider içeriğini düzeltme */
.main-news-item {
    position: relative;
    overflow: hidden;
        width: 100%;
    height: 500px;
}

/* Bilgisayar (büyük ekranlar) için */
@media (min-width: 992px) {
    .main-news-item {
        width: 70%;
    }
}


.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 5;
}

/* Z-index problemlerini düzeltme */
.navbar-nav .nav-item {
    position: relative;
    z-index: 800;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-container {
    display: flex;
    gap: 20px;
}

.mega-menu-categories {
    width: 25%;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 15px;
}

.mega-menu-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-categories li {
    margin-bottom: 12px;
}

.mega-menu-categories a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 15px;
}

.mega-menu-categories a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mega-menu-categories a:hover {
    color: var(--primary-red);
}

.mega-menu-categories a:hover::before {
    width: 8px;
    height: 8px;
}

.mega-menu-news {
    width: 75%;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mega-menu-news-item {
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-menu-news-item:hover {
    transform: translateY(-3px);
}

.mega-menu-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
    height: 120px;
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-menu-news-item:hover .mega-menu-image img {
    transform: scale(1.05);
}

.mega-menu-category {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background-color: var(--primary-red);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 3px;
}

.mega-menu-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mega-menu-news-item:hover .mega-menu-title {
    color: var(--primary-red);
}

.mega-menu-date {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    display: block;
}

.mega-menu-date i {
    margin-right: 5px;
}

[data-theme="dark"] .mega-menu-categories {
    border-right-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mega-menu-categories a {
    color: var(--text-color);
}

[data-theme="dark"] .mega-menu-categories a:hover {
    color: var(--primary-red);
}

/* Responsive mega menü stilleri */
@media (max-width: 992px) {
    .mega-menu {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        height: 0;
        padding: 0;
        overflow: hidden;
        box-shadow: none;
        border-radius: 0;
    }

    .has-mega-menu.active .mega-menu {
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 15px 0;
    }

    .mega-menu-container {
        flex-direction: column;
    }

    .mega-menu-categories {
    width: 100%;
        border-right: none;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mega-menu-news {
        width: 100%;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Siyaset bölümünü düzenlemek için yeni stiller */
.siyaset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.siyaset-card {
    display: flex;
    background: var(--nav-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 278px;
    position: relative;
    flex-direction: column;
}

.siyaset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.siyaset-image {
    width: 100%;
    /* min-width: 100px; */
    height: 194px;
    position: relative;
    overflow: hidden;
}

.siyaset-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.siyaset-card:hover .siyaset-image img {
    transform: scale(1.05);
}

.siyaset-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.siyaset-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.siyaset-card:hover .siyaset-title {
    color: var(--primary-red);
}

.siyaset-category {
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 500;
}

/* Diğer haberler için 4 kart gösterimi */
.other-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.other-news-card {
    background: var(--nav-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* stretched-link için gerekli */
}

.other-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Kartın üzerine gelince z-index'i artırıyoruz */
}

.other-news-image {
    height: 246px;
    position: relative;
    overflow: hidden;
}

.other-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-news-card:hover .other-news-image img {
    transform: scale(1.05);
}

.other-news-content {
    padding: 1rem;
}

.other-news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.other-news-card:hover .other-news-title {
    color: var(--primary-blue);
}

.other-news-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.slider-side-news {
        display: none;
    }
    
/* Carousel Navigation Buttons - Sola ve üste taşıma */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    left: 80px; /* Sola doğru konumlandırıyoruz, bir öncekiyle yan yana */
    right: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.main-carousel-container:hover .carousel-control-prev,
.main-carousel-container:hover .carousel-control-next {
    opacity: 1;
}

/* Mobil optimizasyon için güncellemeler */

/* Slider için mobil optimizasyon */
@media (max-width: 992px) {
    .main-carousel-container,
.main-news-item {
        height: 400px;
}

    .news-content {
    width: 100%;
        padding: 20px;
    }
    
    .news-content h2 {
        font-size: 1.6rem;
    }
    
    /* Slider butonları mobil görünüm */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        top: 15px;
    }
    
    .carousel-control-next {
        left: 65px;
    }
}

@media (max-width: 768px) {
    .main-carousel-container,
    .main-news-item {
        height: 350px;
    }
    
.news-content {
        width: 100%;
        padding: 15px;
}

.news-content h2 {
        font-size: 1.3rem;
    }
    
    /* Slider butonları mobil görünümde daha küçük */
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        top: 10px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        left: 55px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .main-carousel-container,
    .main-news-item {
        height: 300px;
    }
    
    .news-content h2 {
        font-size: 1.1rem;
    }
}

/* Siyaset kartları için mobil optimizasyon */
@media (max-width: 992px) {
    .siyaset-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Diğer haberler kartları */
    .other-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .siyaset-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .siyaset-card {
        /* height: 90px; */
    }
    
    .siyaset-image {
        /* width: 90px; */
        /* min-width: 90px; */
        /* height: 92px; */
    }
    
    .siyaset-content {
        padding: 0.5rem;
    }
    
    .siyaset-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .siyaset-category {
        font-size: 0.65rem;
    }
    
    /* Diğer haberler kartları */
    .other-news-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.8rem;
    }
    
    .other-news-image {
        height: 230px;
    }
    
    .other-news-content {
        padding: 0.8rem;
    }
    
    .other-news-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .siyaset-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Mega menü mobil düzeltmeleri */
    .mega-menu {
        padding: 10px;
    }
    
    .mega-menu-grid {
        gap: 10px;
    }
    
    .mega-menu-image {
        height: 100px;
    }
}

/* Navbar mobil optimizasyonu */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 0;
    }
    
    .weather, .currency {
        font-size: 0.8rem;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .logo-area {
        padding: 10px 0;
    }
    
    .ad-placeholder {
        height: 70px;
    }
}

/* Mega menü responsive düzeltmeleri */
@media (max-width: 1200px) {
    .mega-menu {
        width: 700px;
    }
}

@media (max-width: 992px) {
    .mega-menu {
        width: 100%;
        left: 0;
        border-radius: 0;
    }
}

/* Carousel Navigation Buttons Düzenleme - Sol üst köşeye taşıma */
.carousel-control-prev,
.carousel-control-next {
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20;
    position: absolute;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    left: 60px; /* Önceki butonun hemen yanına yerleştir */
    right: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.main-carousel-container:hover .carousel-control-prev,
.main-carousel-container:hover .carousel-control-next {
    opacity: 1;
}

/* Mobil Görünüm İçin Slider Butonları */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
        top: 10px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        left: 48px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* Mobil görünüm için gösterge kartları düzenlemeleri */
@media (max-width: 991px) {
    .carousel-indicators-custom {
        position: relative;
        width: 100%;
        height: 120px; /* Yüksekliği yeni değere uygun güncellendi */
        flex-direction: row;
        background-color: var(--nav-bg);
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .indicator-item {
        height: 100px; /* Mobilde biraz daha küçük */
        min-height: auto;
        width: auto;
        min-width: 300px; /* Görsel eklendikten sonra minimum genişliği artırıldı */
        flex-direction: row;
        align-items: center;
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .indicator-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-red);
    }
    
    .indicator-image {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .indicator-title {
        -webkit-line-clamp: 2; /* Mobilde 2 satır ile sınırla */
    }
}

@media (max-width: 768px) {
    .carousel-indicators-custom {
        height: 100px; /* Mobil için daha küçük */
    }
    
    .indicator-item {
        min-width: 260px; /* Daha küçük ekranlarda daha dar */
        height: 80px;
        padding: 8px;
    }
    
    .indicator-image {
        width: 50px;
        height: 50px;
        margin-right: 8px;
    }
    
    .indicator-number {
        font-size: 12px;
        width: 20px;
        margin-right: 8px;
    }
    
    .indicator-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .indicator-category {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .carousel-indicators-custom {
        height: 90px;
    }
    
    .indicator-item {
        min-width: 220px;
        height: 70px;
        padding: 6px;
    }
    
    .indicator-image {
        width: 45px;
        height: 45px;
        margin-right: 6px;
    }
}

/* Reklam ve Editörün Seçimi Bölümü */
.special-section {
    margin: 3rem 0;
}

.ad-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ad-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--header-bg);
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px dashed var(--border-color);
    overflow: hidden;
}

/* Yatay Banner Stilleri */
.horizontal-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
}

.horizontal-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(var(--primary-red-rgb), 0.1), transparent, rgba(var(--primary-red-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.horizontal-banner:hover::before {
    opacity: 1;
}

/* Editörün Seçimi Alanı */
.editors-choice-section {
    position: relative;
    background: var(--nav-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.2rem;
    height: 100%;
}

.editors-choice-card {
    position: relative;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: 120px;
}

.editors-choice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.editors-image {
    position: relative;
    height: 100%;
    min-height: 120px;
    overflow: hidden;
}

.editors-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.editors-choice-card:hover .editors-image img {
    transform: scale(1.05);
}

.editors-category {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--primary-red);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.editors-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.editors-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.editors-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editors-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

.editors-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.editors-meta i {
    font-size: 0.9rem;
    color: var(--primary-red);
}

/* Carousel Kontrolü */
#editorsChoiceCarousel .carousel-control-prev,
#editorsChoiceCarousel .carousel-control-next {
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

#editorsChoiceCarousel:hover .carousel-control-prev,
#editorsChoiceCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

#editorsChoiceCarousel .carousel-control-prev {
    left: 10px;
}

#editorsChoiceCarousel .carousel-control-next {
    right: 10px;
}

#editorsChoiceCarousel .carousel-control-prev-icon,
#editorsChoiceCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* Carousel Göstergeleri */
.editors-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.editors-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    margin: 0;
}

.editors-indicators button.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* Karanlık Mod */
[data-theme="dark"] .editors-choice-section {
    background: var(--nav-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .editors-choice-card {
    background: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .editors-choice-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .editors-indicators button {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .editors-indicators button.active {
    background-color: var(--primary-red);
}

/* Duyarlı Tasarım */
@media (max-width: 992px) {
    .editors-title {
        font-size: 1.1rem;
    }
    
    .editors-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 768px) {
    .editors-image {
        min-height: 150px;
    }
    
    .editors-content {
        padding: 1rem;
    }
    
    .editors-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .editors-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .editors-meta {
        font-size: 0.75rem;
    }
}

/* Mobil özel alan düzenlemeleri */
@media (max-width: 992px) {
    .special-section .col-lg-7,
    .special-section .col-lg-5 {
        margin-bottom: 2rem;
    }
    
    .editors-choice-section {
        height: auto;
    }
    
    .horizontal-banner {
        height: 100px !important;
    }
}

@media (max-width: 768px) {
    .special-section {
        margin: 2rem 0;
    }
    
    .horizontal-banner {
        height: 80px !important;
    }
    
    .ad-container {
        margin-bottom: 1rem;
    }
    
    .editors-choice-section {
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    .editors-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .editors-image {
        min-height: 100px;
    }
    
    .editors-content {
        padding: 0.7rem;
    }
    
    .editors-title {
        font-size: 0.85rem;
        line-height: 1.1;
    }
}

/* Stretched-link düzeltmesi */
.stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    background-color: rgba(0,0,0,0);
    border-radius: inherit; /* Kartın border-radius'unu al */
}

/* Stretched-link iyileştirmeleri */
.has-card-link .stretched-link::after {
    display: none !important;
}

/* Kartların içindeki tıklanabilir alanlar için imleç stilleri */
.other-news-image, 
.other-news-content, 
.news-image, 
.news-content, 
.card-image, 
.card-details, 
.card-content {
    cursor: pointer;
}

/* Kartların hover durumunda z-index yönetimi */
.news-card:hover,
.category-card:hover,
.daily-card:hover,
.economy-card:hover,
.other-news-card:hover,
.most-read-card:hover,
.latest-news-card:hover,
.siyaset-card:hover {
    z-index: 3;
    position: relative;
}

/* Responsive mobildə slider və redaktorun seçimi karuselləri üçün düzəltmələr */
@media (max-width: 768px) {
    .carousel-indicators-custom {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 0;
        margin-left: 0;
        margin-right: 0;
    width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .indicator-item {
        flex: 0 0 auto;
        min-width: 240px;
        max-width: 85%;
        margin-right: 10px;
        padding: 10px;
    }
    
    /* Redaktorun seçimi karusel düzəltmələri */
    .editors-choice-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .editors-choice-card {
        flex-direction: column;
    }
    
    .editors-choice-card .row {
        flex-direction: column;
    }
    
    .editors-choice-card .col-md-5,
    .editors-choice-card .col-md-7 {
        width: 100%;
    }
    
    .editors-image {
        height: 200px;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .editors-content {
        padding: 0 10px 15px;
    }
    
    .editors-title {
        font-size: 16px;
        line-height: 1.3;
    margin-bottom: 10px;
}

    .editors-category {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Karusel kontrolları */
    #editorsChoiceCarousel .carousel-control-prev,
    #editorsChoiceCarousel .carousel-control-next {
        width: 30px;
        height: 30px;
        top: 85px;
    }
    
    #editorsChoiceCarousel .carousel-control-prev {
        left: 5px;
    }
    
    #editorsChoiceCarousel .carousel-control-next {
        right: 5px;
    }
    
    .editors-indicators {
        bottom: -5px;
    }
}

/* Daha kiçik mobil qurğularda əlavə düzəltmələr */
@media (max-width: 576px) {
    .editors-image {
        height: 180px;
    }
    
    .editors-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .indicator-item {
        min-width: 200px;
    }
    
    .carousel-indicators-custom {
        padding: 8px 0;
    }
}


@media (max-width: 768px) {
    .col-md-7.vd60 {
        width: 67%;
    }

    .col-md-5.vd40 {
        width: 32%;
    }

    .btn.btn-link.text-decoration-none {
        padding: -1px;
        margin: 1px;
    }

    .d-flex.justify-content-end.gap-3 {
        gap: 0.2rem !important;
    }

    .weather-currency.d-flex.gap-4 {
        gap: 0.5rem!important;
    }
}

.currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    height: 1.5rem;
    perspective: 1000px;
}

.currency i {
    font-size: 1rem;
    margin-right: 0.25rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

#currencyDisplay {
    position: relative;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

#currencyDisplay.changing i {
    transform: scale(1.3) rotate(360deg);
    animation: iconPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#currencyDisplay.changing {
    animation: currencyChange 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes currencyChange {
    0% {
        transform: translateZ(0) rotateX(0);
        filter: blur(0);
    }
    50% {
        transform: translateZ(-10px) rotateX(5deg);
        filter: blur(1px);
    }
    100% {
        transform: translateZ(0) rotateX(0);
        filter: blur(0);
    }
}

/* Top News Cards */
.top-news-bar {
    background-color: #f0f2f5;
    border-bottom: 1px solid #e4e6e8;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.top-news-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red, #e53935) 0%, #ff7043 50%, #ffca28 100%);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.top-news-cards-wrapper {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    gap: 18px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    scroll-behavior: smooth;
    position: relative;
    scroll-snap-type: x mandatory; /* Scroll snapping özelliği */
}

.top-news-cards-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.top-news-card {
    scroll-snap-align: start; /* Kartlara snap özelliği */
    flex: 0 0 auto;
    width: 290px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-right: 12px;
    border-left: 3px solid transparent;
    position: relative;
    z-index: 1;
}

.top-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 12px;
}

.top-news-card:hover::before {
    opacity: 1;
}

.top-news-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-color: var(--primary-red, #e53935);
}

.top-news-img {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 8px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.top-news-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-news-card:hover .top-news-img::after {
    opacity: 1;
}

.top-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.top-news-card:hover .top-news-img img {
    transform: scale(1.08);
}

.top-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 102px);
    padding-left: 2px;
}

.top-news-content h6 {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.top-news-card:hover .top-news-content h6 {
    color: #1976d2;
}

/* Dark mode for top news cards */
[data-theme="dark"] .top-news-bar {
    background-color: #1e222b;
    border-bottom: 1px solid #2c3241;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .top-news-card {
    background-color: #2c3241;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .top-news-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .top-news-content h6 {
    color: #e1e1e1;
}

[data-theme="dark"] .top-news-card:hover .top-news-content h6 {
    color: #64b5f6;
}

/* Responsive styles */
@media (max-width: 768px) {
    .top-news-bar {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .top-news-card {
        width: 240px;
    }
    
    .top-news-img {
        width: 70px;
        height: 70px;
    }
    
    .top-news-content h6 {
        font-size: 0.8rem;
    }
}

/* Top News Cards Title and Controls */
.top-news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
        position: relative;
    }
    
.top-news-title i {
    color: var(--primary-red, #e53935);
    font-size: 1rem;
}

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

.top-news-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e4e6e8;
    color: #555;
    transition: all 0.3s ease;
        padding: 0;
    font-size: 0.8rem;
}

.top-news-btn:hover {
    background-color: var(--primary-red, #e53935);
    color: white;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.3);
    border-color: transparent;
}

.top-news-btn:focus {
    box-shadow: none;
    outline: none;
}

/* Dark mode for top news title and controls */
[data-theme="dark"] .top-news-title {
    color: #e1e1e1;
}

[data-theme="dark"] .top-news-btn {
    background-color: #2c3241;
    border-color: #3e4558;
    color: #aaa;
}

[data-theme="dark"] .top-news-btn:hover {
    background-color: var(--primary-red, #e53935);
    color: white;
    border-color: transparent;
}

/* Navbar Sticky Style */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
        width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-in-out;
    background-color: #fff;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-sticky .navbar-nav .nav-link {
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-sticky .mega-menu {
    top: 100%;
}

.navbar-sticky .submenu {
    top: 100%;
}

/* Spacing element to compensate for fixed navbar */
.navbar-spacer {
    display: none;
}

.navbar-spacer.visible {
    display: block;
}

/* Dark mode adjustments */
[data-theme="dark"] .navbar-sticky {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 992px) {
    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        background-color: var(--nav-bg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 1100;
        overflow-x: hidden;
        border: 1px solid var(--border-color);
    }
    
    .has-mega-menu.active .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
        border-radius: 0;
        padding: 15px;
        transform: none;
    }
    
    .mega-menu-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .mega-menu-categories {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .mega-menu-news {
        width: 100%;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .mega-menu {
        padding: 10px;
    }
    
    .mega-menu-image {
        height: auto;
        max-height: 140px;
    }
}

.bottom-nav {clear: both; padding-top: 60px;}
.nav-load {text-align: center;}
.nav-load a {padding: 0 60px; display: inline-block; height: 60px; line-height: 60px; border-radius: 30px;
font-weight: 700; font-size: 18px; background-color: #2980b9; color: #fff;}
.nav-load a:hover {background-color: #00a652; color: #fff;}
.nav-load span {display: none;}

/* Arama Formu Stilleri */
#fullsearch {
    width: 100%;
}

/* Arama kutusu üstte, tek başına */
#fullsearch {
    margin: 30px auto 0 auto;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

/* Sadece input kutusu */
.search-box {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    padding: 10px 15px;
    margin-bottom: 0;
}

.search-box-field {
    width: 100%;
}

.search-box-field input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
}

/* Sonuç kutusu */
.search_result_num {
    /* max-width: 400px; */
    margin: 15px auto 0 auto;
    /* background: #fff; */
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.10); */
    padding: 15px 20px;
    font-size: 15px;
    /* border-left: 4px solid #4CAF50; */
}

/* Responsive */
@media (max-width: 500px) {
    #fullsearch, .search_result_num {
        max-width: 98%;
        padding-left: 0;
        padding-right: 0;
    }
    .search-box {
        padding: 8px 8px;
    }
    .search_result_num {
        padding: 10px 10px;
        font-size: 14px;
    }
}

.wrp-min {
    width: 100%;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box-field {
    position: relative;
}

.search-box-field input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    /* background: #f8f9fa; */
    color: var(--text-color);
}

.search-box-field input[type="text"]:focus {
    border-color: #991b1b;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.search-box-field input[type="text"]::placeholder {
    color: #999;
}

.search_result_num {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-color);
    padding: 8px 0;
}

.s-green {
    border-left: 4px solid #991b1b;
}
.custom-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.custom-pagination-prev,
.custom-pagination-next {
  padding: 8px 12px;
  background-color: var(--bs-border-color);
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 12px 21px;
}

.custom-pagination-prev.disabled,
.custom-pagination-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.custom-pagination-prev:hover:not(.disabled),
.custom-pagination-next:hover:not(.disabled) {
  background-color: #e0e0e0;
}

.custom-pagination-pages nav.custom-pagination-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-direction: row;
}

.custom-pagination-pages nav.custom-pagination-nav a {
  padding: 10px 16px;
  text-decoration: none;
  color: #007bff;
  border: 1px solid var(--header-bg);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.custom-pagination-pages nav.custom-pagination-nav a:hover {
  background-color: #f1f1f1;
}

.custom-pagination-pages nav.custom-pagination-nav .active {
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}
.custom-pagination-nav span {
    padding: 10px 16px;
    text-decoration: none;
    /* color: #007bff; */
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
/* Responsive Tasarım */
@media (max-width: 768px) {
    #fullsearch {
        margin: 0px;
        /* padding: 3px; */
    }
    
    .search-box-field input[type="text"] {
        font-size: 14px;
        padding: 10px 15px;
    }
}


.news-grid.search-result {
    display: flex;
    flex-wrap: wrap;
}


@media (max-width: 768px) {
  .custom-pagination-pages {
    /* display: none; */
  }

  .custom-pagination-container {
    gap: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .custom-pagination-prev,
  .custom-pagination-next {
    font-size: 18px;
    padding: 10px 16px;
    /* width: 32%; */
    padding: 20px 31px;
    background: var(--bs-border-color);
    border-radius: 8px;
  }

  .custom-pagination-prev i,
  .custom-pagination-next i {
    font-size: 20px;
  }
}


/* iPhone 12 Pro ekran genişliği 390px x 844px */
@media screen and (max-width: 389px) {
  .weather {
    display: none;
  }
}
.footer-conter img {
        height:30px;
    width:60px
}
}








.catmenu {
  list-style: none; /* Nöqtələri sil */
  padding: 0;
  margin: 0;
  display: flex; /* Yatay hizalama */
  gap: 16px; /* Aralarındakı boşluq */
}

.catmenu li {
  display: inline-block;
}

.catmenu a {
  text-decoration: none; /* Alt çizgini sil */
  color: var(--bs-light); /* Link rəngi */
  font-weight: 500;
  transition: color 0.3s ease;
}

.catmenu a:hover {
  color: #d30000; /* Hover zamanı rəng dəyişikliyi (istəyə görə dəyişdirilə bilər) */
}

/* Sayfalama ana konteyneri */
.category-pagination {
  margin: 2rem 0;
  padding: 0.5rem;
}

.custom-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #f9f9f9; */
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Önceki ve sonraki butonlar */
.custom-pagination-prev,
.custom-pagination-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.custom-pagination-prev:not(.disabled):hover,
.custom-pagination-next:not(.disabled):hover {
  background: #007bff;
  transform: translateY(-2px);
}

.custom-pagination-prev:not(.disabled):hover i,
.custom-pagination-next:not(.disabled):hover i {
  color: #ffffff;
}

.custom-pagination-prev.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f0f0f0;
}

/* Sayfa numaraları bölümü */
.custom-pagination-pages {
  margin: 0 0.8rem;
  flex-grow: 1;
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox için scroll çubuğu gizleme */
}

/* Scroll çubuğu gizleme */
.custom-pagination-pages::-webkit-scrollbar {
  display: none;
}

.custom-pagination-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.2rem;
}

/* Sayfa numaraları */
.custom-pagination-nav span:not(.nav_ext),
.custom-pagination-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.custom-pagination-nav a {
  background: #ffffff;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-pagination-nav span:not(.nav_ext) {
  background: #007bff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.custom-pagination-nav a:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #007bff;
}

.custom-pagination-nav .nav_ext {
  margin: 0 0.2rem;
  color: #666;
  align-self: center;
}

/* Font Awesome ikonlar */
.fas {
  font-size: 0.9rem;
  color: #555;
  transition: color 0.3s ease;
}

/* Mobil Uyumlu Düzenlemeler */
@media (max-width: 768px) {
  .custom-pagination-container {
    padding: 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS için yumuşak kaydırma */
    scrollbar-width: thin; /* Firefox için ince scrollbar */
    display: flex;
    white-space: nowrap;
  }
  
  /* Yatay kaydırma çubuğu stilini özelleştir */
  .custom-pagination-container::-webkit-scrollbar {
    height: 5px;
  }
  
  .custom-pagination-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .custom-pagination-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }
  
  .custom-pagination-container::-webkit-scrollbar-thumb:hover {
    background: #999;
  }
  
  .custom-pagination-prev,
  .custom-pagination-next,
  .custom-pagination-nav span:not(.nav_ext),
  .custom-pagination-nav a {
    min-width: 36px;
    height: 36px;
  }
  
  .custom-pagination-nav {
    display: inline-flex;
    flex-wrap: nowrap;
    padding: 0 0.2rem;
  }
  
  /* Tüm sayfa numaralarının görünmesini sağla */
  .custom-pagination-nav a,
  .custom-pagination-nav span {
    display: flex !important;
  }
}

/* Daha küçük ekranlar için */
@media (max-width: 480px) {
  .custom-pagination-container {
    padding: 0.5rem;
  }
  
  .custom-pagination-prev,
  .custom-pagination-next,
  .custom-pagination-nav span:not(.nav_ext),
  .custom-pagination-nav a {
    min-width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .custom-pagination-pages {
    margin: 0 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .custom-pagination-nav {
    gap: 0.3rem;
    padding: 0 0.2rem;
    justify-content: flex-start;
  }
}


/* Mobilde mega menülerin normal akışta görünmesi için */

@media (max-width: 991.98px) {
    .offcanvas .has-mega-menu .mega-menu {
        position: static !important;
        width: 100% !important;
        display: block !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0px 15px !important;
    }
    .offcanvas .has-mega-menu .mega-menu .mega-menu-container {
        box-shadow: none !important;
        background: transparent !important;
    }
}
.logo-img {
    height: 90px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }
}
