/* --- Breaking News Bar - Slimmer and Lighter */
#breaking-news-bar {
    background: linear-gradient(90deg, #020202 0%, #4a4c4d 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #ffffff;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
}

.trending-news {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px 0;
    position: relative;
}

.trending-badge {
    background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
    color: rgb(255, 255, 255) !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 700 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trending-badge i {
    margin-right: 5px;
    font-size: 14px;
}

.trending-news-container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    margin-left: 15px;
}

.trending-news-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: scrollTicker 40s linear infinite;
    animation-play-state: running;
    box-sizing: content-box;
    width: max-content;
}

.trending-news:hover .trending-news-content {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.trending-news-item {
    color: #ff0000 !important;
    white-space: nowrap;
    padding: 0 15px 0 0;
    transition: all 0.3s ease;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
    position: relative;
}

.news-separator {
    color: rgba(255, 255, 255, 0.3);
    margin-left: 15px;
    font-size: 16px;
    line-height: 1;
}

.trending-news-item:last-child .news-separator {
    display: none;
}

.trending-news-item:hover {
    color: #ff4d4d !important;
    text-decoration: underline !important;
}

.trending-news-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.trending-news-item:hover {
    color: #ff4d4d !important; /* Hover zamanı daha açıq qırmızı */
    text-decoration: none !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.top-social-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding: 5px 0;
}

.top-social-links::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.date-time {
    color: #aaa;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.date-time:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.date-time i {
    color: var(--vr-theme-color, #f44336);
    font-size: 14px;
}

/* Top Left Navigation Links */
.top-left .nav-link {
    color: #555;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 30px;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Special Style for Contact Button */
.top-left .nav-link.contact-btn {
    background: linear-gradient(45deg, #ff4d4d, #ff1a1a);
    color: white !important;
    padding: 6px 18px;
    margin-left: 10px;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.2);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.top-left .nav-link.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.top-left .nav-link.contact-btn:hover::before {
    left: 100%;
}

.top-left .nav-link.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Regular Link Hover Effect */
.top-left .nav-link:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9800);
    transition: width 0.3s ease;
}

.top-left .nav-link:not(.contact-btn):hover {
    color: #ff4d4d;
    background: transparent;
}

.top-left .nav-link:not(.contact-btn):hover::after {
    width: 100%;
}

.social-link {
    color: #666;
    margin-left: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(0);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    color: #fff;
    background: #ff4d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
    border-color: transparent;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--vr-theme-color, #f44336), #ff9800);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-link:hover::after {
    opacity: 1;
}

/* Weather Widget */
.weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d3b18b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.weather-widget:hover::before {
    transform: translateX(100%);
}

.weather-widget i {
    color: #ffcc33;
    font-size: 16px;
}

.weather-temp {
    font-weight: 600;
    color: #ff0000;
}

.weather-location {
    position: relative;
    padding-right: 8px;
}

.weather-location::after {
    content: '•';
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.2);
}

.weather-widget i {
    color: #ffd700;
    font-size: 16px;
}

/* --- Ultra-Creative & Animated Navigation Bar (ADAPTED FOR MAGAZINE THEME) --- */

/* Add a modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Main Top Nav - Darker Background */
#nav-top {
    background: #0a0a0a !important;
    padding: 8px 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

#nav-top:hover {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Clean Navigation Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

.nav-main {
    background: #d10000 !important; /* Solid red background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 1050;
    overflow: hidden;
    padding: 0 2rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.nav-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.nav-main:hover::before {
    transform: translateX(100%);
}

.nav-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff8a00, #ff4d4d);
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.nav-main .navbar-nav {
    position: relative;
    z-index: 2;
}

.nav-main .navbar-nav .nav-item {
    position: relative;
    margin: 0 10px;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animation for nav items */
.nav-main .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-main .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-main .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-main .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-main .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }

.nav-main .navbar-nav .nav-item:hover {
    transform: translateY(-2px);
}

.nav-main .navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-main .navbar-nav .nav-item:hover::after {
    width: 70%;
    animation: underline 0.3s ease-out;
}

.nav-main .navbar-nav .nav-item > a.nav-link {
    display: flex !important;
    align-items: center !important;
    position: relative;
    padding: 1.5rem 1.2rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    background: transparent !important;
    color: white !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.9;
    will-change: transform, opacity;
    /* Simple Hover Effect */
    transition: all 0.3s ease !important;

    &:hover {
        color: white !important;
        opacity: 1;
        transform: translateY(-2px);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Active State */
    &.active {
        color: #fff !important;
        font-weight: 600 !important;
    }

    /* Dropdown Arrow */
    .icon-arrow-down {
        margin-left: 6px;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    /* Hover Effect for Dropdown */
    &[aria-expanded="true"],
    &:hover .icon-arrow-down {
        color: #000000 !important;
    }

    &[aria-expanded="true"] .icon-arrow-down {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
    
    &[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.1);
    }
}

.nav-main .navbar-nav .nav-item > a.nav-link::before {
    content: '' !important;
    position: absolute !important;
    bottom: 15px !important; /* Adjust position */
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: linear-gradient(to right, var(--vr-theme-color, #f44336), #ff9800) !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    transform: translateX(-50%) !important;
}

.nav-main .navbar-nav .nav-item:hover > a.nav-link,
.nav-main .navbar-nav .nav-item.active > a.nav-link {
    color: #000000 !important;
}

.nav-main .navbar-nav .nav-item:hover > a.nav-link::before,
.nav-main .navbar-nav .nav-item.active > a.nav-link::before {
    width: calc(100% - 40px) !important; /* Adjust width based on padding */
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 220px;
    margin: 0;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #333 !important;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(209, 0, 0, 0.05) !important;
    color: #d10000 !important;
    padding-left: 25px;
}

/* Page Transitions */
.page-transition {
    overflow-x: hidden;
}

.page-content {
    animation: pageFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-fade-out {
    animation: pageFadeOut 0.3s ease-out forwards !important;
}

@keyframes pageFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Dropdown Menu Fix */
.nav-main {
    position: relative;
    z-index: 1050;
}

.nav-main .navbar {
    position: static;
    overflow: visible !important;
}

.nav-main .navbar > .container,
.nav-main .navbar > .container-fluid,
.nav-main .navbar > .container-xl {
    position: static;
    overflow: visible !important;
}

.nav-main .navbar-collapse {
    overflow: visible !important;
}

.nav-main .navbar-nav {
    position: relative;
    overflow: visible !important;
    display: flex;
    align-items: center;
}

.nav-item.dropdown {
    position: relative !important;
    display: inline-block;
}

.nav-item.dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 2000 !important;
    min-width: 220px !important;
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    transform: translateY(10px) !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-menu li {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.dropdown-menu li:nth-child(2) { transition-delay: 0.1s; }
.dropdown-menu li:nth-child(3) { transition-delay: 0.15s; }
.dropdown-menu li:nth-child(4) { transition-delay: 0.2s; }

.dropdown-menu li a.dropdown-item {
    display: block !important;
    color: #e0e0e0 !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.4;
}

.dropdown-menu li a.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding-left: 25px !important;
    transform: translateX(3px) !important;
}

.nav-item .icon-arrow-down {
    font-size: 12px !important;
    margin-left: 8px !important;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.nav-item.dropdown:hover .icon-arrow-down {
    transform: rotate(180deg) scale(1.1) !important;
}

/* Search Bar */
.navbar-right .search-form {
    display: none; /* Initially hide the form if needed, or style it directly */
}

.navbar-right .search-icon {
     color: #fff !important;
}

.navbar-right .search-icon svg {
    stroke: #fff !important;
}

/* --- Homepage Redesign: Featured Section & Animations --- */

/* General Section Styling */
.section-featured {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    overflow-x: hidden; /* Prevent horizontal scrollbars from animations */
}

/* Animate columns on load */
.col-featured-left {
    animation: slide-in-from-left 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.col-featured-right {
    animation: slide-in-from-right 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slide-in-from-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-from-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Main Slider Enhancement */
.main-slider-item {
    border-radius: 12px !important;
    overflow: hidden !important;
    transform: translateZ(0); /* GPU acceleration */
}

.main-slider-item .img-link .img-cover {
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.main-slider-item:hover .img-link .img-cover {
    transform: scale(1.1);
}

.main-slider-item .caption {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
    padding: 30px !important;
    transition: all 0.5s ease !important;
}

.main-slider-item .caption .title {
    font-weight: 700 !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s 0.2s ease, opacity 0.6s 0.2s ease;
}

.main-slider-item .caption .post-meta {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s 0.3s ease, opacity 0.6s 0.3s ease;
}

/* Animate caption on slide active */
.main-slider-item.slick-active .caption .title,
.main-slider-item.slick-active .caption .post-meta {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Navigation Buttons */
.main-slider-nav .prev, .main-slider-nav .next {
    background: rgba(0,0,0,0.5) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    transition: all 0.3s ease !important;
}

.main-slider-nav .prev:hover, .main-slider-nav .next:hover {
    background: var(--vr-theme-color, #f44336) !important;
}

/* OLD Featured Posts styles are now replaced by the new .post-item, .item-large, .item-small generic styles */



/* --- Creative Post Item Styling & Meta Fix -- */

/* General container for post items to create a framed look */
.post-item, .item-large, .item-small, .main-slider-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Important to respect the border-radius on images */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; /* Needed for absolute positioned captions */
    display: flex; /* Helps in structuring content */
    flex-direction: column;
    height: 100%; /* Ensure items in a row have the same height */
    margin-bottom: 25px; /* Add space between items */
}

.post-item:hover, .item-large:hover, .item-small:hover, .main-slider-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Ensure images inside the new frame don't break the rounded corners */
.post-item .image a,
.item .img-link,
.main-slider-item .img-link {
    display: block;
    overflow: hidden;
}

.post-item .image img,
.item .img-link img,
.main-slider-item .img-link img {
    transition: transform 0.5s ease !important;
}

.post-item:hover .image img,
.item:hover .img-link img,
.main-slider-item:hover .img-link img {
    transform: scale(1.08);
}

/* --- Caption and Meta Fixes --- */

/* Main Slider Caption Adjustments */
.main-slider-item .caption {
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 12px 12px; /* Match the container's radius */
    color: #fff;
    padding: 25px;
}

/* Featured Posts & Category Blocks Caption */
.item .caption,
.post-item .caption {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows caption to fill remaining space */
    justify-content: space-between; /* Pushes meta to the bottom */
    background: #fff;
}

/* Title Styling */
.caption .title {
    margin-bottom: 15px; /* Space between title and meta */
    font-size: 18px;
}

.main-slider-item .caption .title {
    font-size: 24px;
}

.caption .title a {
    color: #141414 !important;
    font-weight: 600 !important;
}

.main-slider-item .caption .title a {
    color: #fff !important; /* White title for slider */
}


/* Post Meta (Author, Date, Views) Visibility Fix */
.post-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important; /* Allows items to wrap on smaller screens */
    font-size: 13px !important;
    color: #888 !important;
    margin-top: auto !important; /* Pushes meta to the bottom of the caption */
    opacity: 1 !important; /* Override any hiding animations */
    transform: none !important; /* Reset any hiding transforms */
    transition: none !important;
}

.main-slider-item .post-meta {
    color: rgba(255, 255, 255, 0.85) !important;
}

.post-meta .post-details-meta-item {
    display: flex;
    align-items: center;
    margin-right: 18px;
}

.post-meta .post-details-meta-item i {
    margin-right: 6px;
    color: #aaa;
}

.main-slider-item .post-meta .post-details-meta-item i {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Animated Category Section Frame --- */
.section-category {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.section-category:hover {
    border-color: var(--vr-theme-color, #f44336);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Right Featured Column Frame --- */
.col-featured-right {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.col-featured-right:hover {
    border-color: var(--vr-theme-color, #f44336);
}

/* --- Small Post Item Layout & Title Fix --- */
.item-small {
    flex-direction: row; /* Align image and caption side-by-side */
}

.item-small .img-link {
    width: 40%; /* Give image a fixed width */
    flex-shrink: 0;
}

.item-small .img-link img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Ensure image covers the area without distortion */
}

.item-small .caption {
    width: 60%;
    padding: 15px;
    justify-content: flex-start; /* Align content to the top */
}

.item-small .caption .title a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #141414 !important; /* Ensure title is visible */
    font-weight: 600 !important;
}

.item-small .post-meta {
    margin-top: 10px !important; /* Add space between title and meta */
}

/* --- Styling for Top-Right Featured Posts --- */
.col-featured-right .item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
    background-color: #fff; /* Ensure a background color */
    height: 100%; 
    display: flex; 
    flex-direction: column;
}

.col-featured-right .item .caption {
    padding: 15px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-featured-right .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.col-featured-right .item .title a {
    color: #222;
    font-weight: 600;
    transition: color 0.3s ease;
}

.col-featured-right .item:hover .title a {
    color: var(--vr-theme-color, #f44336);
}

.col-featured-right .item .post-meta {
    margin-top: 10px;
}

/* --- Final Sticky Header & Dropdown Visibility Override --- */

/* When the header becomes sticky, it must allow child elements (our dropdowns) to be visible outside its bounds. */
.header-sticky #header {
    overflow: visible !important;
}

/* The top navigation bar needs a high z-index to appear above the sticky header. */
#nav-top {
    z-index: 1052 !important; /* Higher than Bootstrap's sticky-top default of 1020 */
    position: relative;
}

/* The dropdown menus themselves need the highest z-index to appear above everything. */
#nav-top .dropdown-menu {
    z-index: 1053 !important;
}

/* --- Creative News Ticker --- */
.newsticker-container {
    overflow: hidden;
    position: relative;
}

/* --- Creative News Ticker Design --- */

/* Main container for the entire news bar */
.newsticker-container {
    background: #d9232d; /* Striking red for 'breaking news' */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0 5px;
    align-items: center;
}

/* Ensure the icon part has white text */
.newsticker-icon span,
.newsticker-icon i {
    color: #fff !important;
}

.newsticker-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    min-height: 40px; /* Increased height for better padding */
}

.newsticker-content {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* SLOWER ANIMATION: Increased from 25s to 40s */
    animation: marquee-pure 40s linear infinite;
}

.newsticker-content:hover {
    animation-play-state: paused;
}

.newsticker-content a {
    text-decoration: none;
    /* White text for red background */
    color: #fff;
    margin: 0 15px;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.newsticker-content a:hover {
    text-decoration: none; /* Remove underline on hover */
    opacity: 0.8; /* Dim text slightly on hover */
}

.newsticker-spacer {
    /* A less bright white for the spacer */
    color: rgba(255, 255, 255, 0.7);
    margin: 0 15px;
}

@keyframes marquee-pure {
    from {
        transform: translateY(-50%) translateX(100%);
    }
    to {
        transform: translateY(-50%) translateX(-100%);
    }
}


/* --- Social Media Feeds (Sidebar) --- */
.social-feed-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    padding: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(30px);
    animation: fade-in-right 0.8s forwards;
}

.social-feed-card.tiktok-card {
    animation-delay: 0.2s;
}

@keyframes fade-in-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-feed-card .card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #141414;
}

.social-feed-card .card-title i {
    margin-right: 12px;
    font-size: 24px;
}

.facebook-card .card-title i {
    color: #1877F2;
}

.tiktok-card .card-title i {
    color: #ff0050; /* Example color, replace with actual icon */
}

.social-feed-card .card-body {
    padding: 0;
}

/* Add a placeholder for the TikTok icon if it doesn't exist */
.icon-tiktok::before {
    content: '\e900'; /* Replace with a real icon code from your font if available */
    font-family: 'icomoon' !important; /* Assuming you use icomoon */
    font-weight: bold;
}

/* Creative News Item Styling */
.news-item-frame {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.creative-title a {
    font-family: 'Georgia', serif;
    font-size: 1.2rem !important;
    color: #fff !important;
    background-color: #d90a0a;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creative-title a:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==================== Top Headlines Section ==================== */
.top-headlines .item .title a {
    position: relative;
    display: inline-block;
    padding: 4px 6px;
    color: #000;
    overflow: hidden;
    transition: color 0.4s ease;
}
.top-headlines .item .title a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #d90a0a 0%, #ff4d4d 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}
.top-headlines .item:hover .title a {
    color: #fff;
}
.top-headlines .item:hover .title a::before {
    transform: translateX(0);
}

/* ==================== Featured Right Column ==================== */
.col-featured-right {
    margin-top: -35px !important;  /* Negative margin to pull up */
    padding: 0 5px;
}

/* Clean item style */
.col-featured-right .item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Image style */
.col-featured-right .item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Caption area */
.col-featured-right .item .caption {
    padding: 5px 0;
    background: none;
}

/* Featured Right Column - Title Hover Effect */
.col-featured-right .item .caption .title a {
    color: #000000 !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    padding: 10px 15px;
    margin: -10px -15px 5px -15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.col-featured-right .item .caption .title a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff0000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 4px;
}

.col-featured-right .item:hover .caption .title a {
    color: #000000 !important;
    text-decoration: none;
    padding-left: 20px;
    background-color: #ffdddd;
}

.col-featured-right .item:hover .caption .title a::before {
    transform: translateX(0);
    background: #ff0000;
}

/* Post meta */
.col-featured-right .item .post-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

/* Cleaned up redundant image styles */

/* =============================================
   BREAKING NEWS BAR - MOBILE RESPONSIVE STYLES
   ============================================= */

/* Base styles for the breaking news bar */
#breaking-news-bar .container-xl {
    padding-right: 15px;
    padding-left: 15px;
}

/* Make the trending news section stack on mobile */
@media (max-width: 991.98px) {
    #breaking-news-bar {
        padding: 8px 0;
        overflow: hidden;
    }
    
    .trending-news {
        display: block;
        position: relative;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .trending-badge {
        display: inline-block;
        margin-right: 10px;
        font-size: 11px;
        padding: 3px 10px;
        background: rgba(255, 0, 0, 0.8);
        border-radius: 3px;
        vertical-align: middle;
    }
    
    .trending-news-container {
        width: 100%;
        overflow: hidden;
    }
    
    .trending-news-content {
        display: inline-block;
        white-space: nowrap;
        padding-right: 100%;
        animation: scrollTicker 40s linear infinite;
        box-sizing: content-box;
        vertical-align: middle;
    }
    
    /* Weather and social section */
    .top-social-links {
        margin-top: 8px;
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }
    
    .weather-widget {
        margin-right: 10px;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .weather-widget i {
        font-size: 14px;
    }
    
    .date-time {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .social-links {
        display: flex;
        margin-left: auto;
    }
    
    .social-link {
        font-size: 14px;
        margin-left: 10px;
    }
}

/* For very small devices */
@media (max-width: 479.98px) {
    .trending-news-content {
        animation-duration: 25s; /* Slower scroll on very small devices */
    }
    
    .weather-widget span {
        display: none;
    }
    
    .weather-widget .weather-temp {
        display: inline-block;
    }
    
    .social-link {
        margin-left: 8px;
    }
}

/* Hide weather on very small screens */
@media (max-width: 359.98px) {
    .weather-widget {
        display: none;
    }
}

/* Animation for scrolling text */
@keyframes scrollTicker {
    0% { 
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% { 
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
    }
}
