/**
 * Tricolor Theme Harmonization
 * This file harmonizes the public website design with the admin dashboard style
 * Using Inter font, Romanian flag colors, and modern UI elements
 */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Override root variables to match dashboard theme */
:root {
    /* Font family - harmonize with dashboard */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-title: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Romanian flag colors */
    --ro-blue: #002B7F;
    --ro-yellow: #FCD116;
    --ro-red: #CE1126;

    /* Primary accent - dark yellow from dashboard */
    --color-primary: #d4a500;
    --color-primary-rgb: 212, 165, 0;
    --color-primary-dark: #b8900a;

    /* Secondary - Romanian blue */
    --color-secondary: #002B7F;
    --color-secondary-rgb: 0, 43, 127;

    /* Accent colors */
    --color-accent-blue: #002B7F;
    --color-accent-yellow: #FCD116;
    --color-accent-red: #CE1126;

    /* UI Colors */
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Neutral colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Updated border colors */
    --color-border: #e5e7eb;

    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================
   Typography Updates
   ======================== */
body {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========================
   Header Styling Updates
   ======================== */
/* Topbar - Romanian flag gradient accent */
.topbar.topbar-style-1 {
    background: linear-gradient(135deg, var(--ro-blue) 0%, #001a4a 100%);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--ro-blue) 0%, var(--ro-yellow) 50%, var(--ro-red) 100%) 1;
}

.topbar .trending-title {
    color: var(--ro-yellow);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.topbar .trending-slide-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.topbar .rt-meta {
    color: rgba(255, 255, 255, 0.85);
}

/* Top social icons */
.rt-top-social li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.rt-top-social li a:hover {
    color: var(--ro-yellow);
    transform: translateY(-2px);
}

/* Main Header */
.header-main {
    background: #fff;
    box-shadow: var(--shadow-md);
}

#navbar-wrap.sticky-on {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo text styling */
.site-branding a {
    font-family: var(--font-title);
    font-weight: 800;
}

/* Navigation Menu */
.main-menu__nav>ul>li>a {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--color-gray-800);
    transition: all 0.3s ease;
    position: relative;
}

.main-menu__nav>ul>li>a:hover,
.main-menu__nav>ul>li.current>a {
    color: var(--color-primary);
}

.main-menu__nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ro-blue), var(--ro-yellow), var(--ro-red));
    transition: width 0.3s ease;
}

.main-menu__nav>ul>li>a:hover::after,
.main-menu__nav>ul>li.current>a::after {
    width: 100%;
}

/* Dropdown */
.main-menu__dropdown {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
}

.main-menu__dropdown li a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.main-menu__dropdown li a:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

/* Search Box */
.rt-search-control {
    font-family: var(--font-body);
    border-radius: 8px;
    border: 2px solid var(--color-gray-200);
    transition: all 0.3s ease;
}

.rt-search-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 0, 0.1);
}

.search-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 6px;
}

/* Language Switcher */
.language-switcher .lang-flag {
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.language-switcher .lang-flag.active,
.language-switcher .lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* ========================
   Content Styling Updates
   ======================== */

/* Section Titles */
.section-title,
.rt-section-title {
    font-family: var(--font-title);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after,
.rt-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ro-blue), var(--ro-yellow), var(--ro-red));
    border-radius: 2px;
}

/* Category Badges */
.rt-cat,
.rt-post-cat-normal {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Category colors - Romanian themed */
.rt-cat.kultura,
.rt-post-cat-normal.kultura {
    background: var(--ro-blue);
    color: #fff;
}

.rt-cat.sport,
.rt-post-cat-normal.sport {
    background: var(--ro-red);
    color: #fff;
}

.rt-cat.ekonomi,
.rt-post-cat-normal.ekonomi {
    background: var(--ro-yellow);
    color: var(--color-gray-900);
}

.rt-cat.politike,
.rt-post-cat-normal.politike {
    background: #1e40af;
    color: #fff;
}

.rt-cat.aktualitet,
.rt-post-cat-normal.aktualitet {
    background: #dc2626;
    color: #fff;
}

/* Post Titles */
.post-title {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a {
    color: var(--color-gray-900);
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: var(--color-primary);
}

/* Post Meta */
.rt-meta,
.post-meta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

.rt-meta .icon,
.post-meta i {
    color: var(--color-primary);
    margin-right: 4px;
}

/* Post Cards */
.rt-post,
.rt-post-sm,
.most-viewed-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rt-post:hover,
.rt-post-sm:hover,
.most-viewed-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.rt-post img,
.rt-post-sm img,
.most-viewed-card img {
    transition: transform 0.5s ease;
}

.rt-post:hover img,
.rt-post-sm:hover img,
.most-viewed-card:hover img {
    transform: scale(1.05);
}

/* Overlay Posts */
.rt-post-overlay .post-overlay-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-gray-100);
}

.sidebar-widget .widget-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-gray-900);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--ro-blue), var(--ro-yellow), var(--ro-red)) 1;
}

/* Buttons */
.btn-primary,
.rt-btn-primary {
    font-family: var(--font-title);
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(212, 165, 0, 0.2);
}

.btn-primary:hover,
.rt-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -2px rgba(212, 165, 0, 0.3);
}

/* Newsletter Form in Sidebar */
.newsletter-card {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, #fff 100%);
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
}

.newsletter-form .form-control {
    font-family: var(--font-body);
    border-radius: 8px;
    border: 2px solid var(--color-gray-200);
}

.newsletter-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 0, 0.1);
}

.newsletter-form .btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.newsletter-form .btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* ========================
   Footer Styling Updates
   ======================== */
.footer {
    font-family: var(--font-body);
}

.footer-top {
    background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-900) 100%);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--ro-blue), var(--ro-yellow), var(--ro-red)) 1;
}

.footer-widget-title {
    font-family: var(--font-title);
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--ro-yellow);
}

.footer-link {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--ro-yellow);
    padding-left: 5px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    transform: translateY(-3px);
}

.footer-social .social-icon.facebook:hover {
    background: #1877f2;
}

.footer-social .social-icon.twitter:hover {
    background: #1da1f2;
}

.footer-social .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social .social-icon.youtube:hover {
    background: #ff0000;
}

.footer-social .social-icon.linkedin:hover {
    background: #0077b5;
}

.footer-bottom {
    background: #000;
}

.footer-copyright {
    font-size: 0.875rem;
}

/* ========================
   Most Viewed Section
   ======================== */
.most-viewed-section {
    background: linear-gradient(180deg, var(--color-gray-50) 0%, #fff 100%);
}

.most-viewed-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-gray-100);
}

.ranking-badge {
    font-family: var(--font-title) !important;
    font-weight: 800 !important;
}

/* ========================
   Video Section Updates
   ======================== */
.video-articles-section {
    background: linear-gradient(135deg, #000 0%, var(--ro-blue) 100%);
}

.video-play-btn {
    background: linear-gradient(135deg, var(--ro-red) 0%, #a10d1f 100%) !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(206, 17, 38, 0.5);
}

/* ========================
   Ad Zones Styling
   ======================== */
.ad-zone {
    border: 2px dashed var(--color-gray-300) !important;
    border-radius: 12px;
    background: var(--color-gray-50) !important;
}

/* ========================
   Responsive Adjustments
   ======================== */
@media (max-width: 991px) {
    .topbar.topbar-style-1 {
        padding: 8px 0;
    }

    .header-main {
        padding: 10px 0;
    }
}

@media (max-width: 767px) {
    .post-title {
        font-size: 0.95rem;
    }

    .rt-cat,
    .rt-post-cat-normal {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* ========================
   Smooth Scroll & Animations
   ======================== */
html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ========================
   Quotes Ticker Styling (Topbar)
   ======================== */
.topbar .rt-trending {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.topbar .trending-title {
    flex-shrink: 0;
    white-space: nowrap;
}

.topbar .rt-treding-slider1 {
    flex: 1;
    overflow: hidden;
    height: 40px;
    min-width: 0;
}

.topbar .rt-treding-slider1 .swiper-wrapper {
    align-items: center;
}

.topbar .swiper-slide {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

/* Keep quotes on single line with ellipsis for very long ones */
.topbar .trending-slide-title,
.topbar .marquee-content,
.topbar .quote-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.topbar .trending-slide-title em {
    color: var(--ro-yellow);
    font-style: italic;
}

.topbar .item {
    max-width: 100%;
    overflow: hidden;
}

/* ========================
   Footer - Lighter Style
   ======================== */
.footer,
.footer-top,
footer,
footer section.footer-top {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
}

/* Footer widget titles - brighter for better visibility */
.footer-widget-title,
.footer .widget-title,
footer h4,
footer h5,
footer .footer-title {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

.footer-widget-title::after,
.footer .widget-title::after,
footer h4::after,
footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--ro-yellow);
}

/* Footer text - lighter and more readable */
.footer p,
.footer li,
.footer a,
.footer span,
footer p,
footer li,
footer a,
footer span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
}

.footer a:hover,
footer a:hover {
    color: var(--ro-yellow) !important;
}

/* Footer Newsletter Widget - Enhanced for dark background */
.newsletter-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.85) !important;
}

.newsletter-input,
.newsletter-card input[type="email"],
footer .newsletter-form input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: 8px 0 0 8px !important;
    padding: 12px 16px !important;
}

.newsletter-input::placeholder,
.newsletter-card input::placeholder,
footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.newsletter-input:focus,
.newsletter-card input:focus,
footer .newsletter-form input:focus {
    border-color: var(--ro-yellow) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(252, 209, 22, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.newsletter-btn,
.newsletter-card .btn,
footer .newsletter-form button {
    background: linear-gradient(135deg, var(--ro-yellow) 0%, var(--color-primary) 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 600 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 12px 16px !important;
}

.newsletter-btn:hover,
.newsletter-card .btn:hover,
footer .newsletter-form button:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--ro-yellow) 100%) !important;
}

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem !important;
}

/* Footer bottom bar */
.footer-bottom,
footer .copyright-area {
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ========================
   Search Icon Fix - No Yellow BG
   ======================== */
.header-search-icon,
.search-icon,
.rt-search-icon,
.search-trigger,
button[type="submit"].search-submit,
.search-box button,
.header-search button {
    background: transparent !important;
    border: none !important;
    color: var(--color-primary) !important;
    padding: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-icon:hover,
.search-icon:hover,
.rt-search-icon:hover,
.search-trigger:hover {
    color: var(--color-primary-dark) !important;
    transform: scale(1.1);
}

/* Search icon styling */
.header-search-icon i,
.search-icon i,
.rt-search-icon i,
.search-trigger i {
    font-size: 1.1rem;
    color: var(--color-primary) !important;
}

/* Remove any background from search buttons in header */
.header-main .search-button,
.header-main button.search-icon,
.site-header .search-btn {
    background: none !important;
    box-shadow: none !important;
}

/* ========================
   Modern Header Menu Enhancement
   ======================== */
.header-main {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    z-index: 100;
}

/* Clean navigation styling */
.main-menu__nav>ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu__nav>ul>li {
    position: relative;
}

.main-menu__nav>ul>li>a {
    display: inline-block;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--color-gray-700) !important;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-menu__nav>ul>li>a:hover {
    background: rgba(0, 43, 127, 0.05);
    color: var(--ro-blue) !important;
}

.main-menu__nav>ul>li.current>a,
.main-menu__nav>ul>li.active>a {
    background: linear-gradient(135deg, var(--ro-blue) 0%, #1a4a9e 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Remove underline animation from nav - use bg instead */
.main-menu__nav>ul>li>a::after {
    display: none !important;
}

/* Dropdown menu styling */
.main-menu__nav .sub-menu,
.main-menu__dropdown {
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    padding: 8px 0 !important;
    min-width: 220px;
}

.main-menu__nav .sub-menu li a,
.main-menu__dropdown li a {
    padding: 10px 20px !important;
    font-size: 0.875rem !important;
    color: var(--color-gray-700) !important;
    transition: all 0.2s ease;
}

.main-menu__nav .sub-menu li a:hover,
.main-menu__dropdown li a:hover {
    background: var(--color-gray-50) !important;
    color: var(--ro-blue) !important;
    padding-left: 24px !important;
}

/* ========================
   Lazy Loading for Images
   ======================== */
/* Native lazy loading styles */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.lazy,
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.lazy.loaded,
img.lazy-loaded {
    opacity: 1;
}

/* Placeholder styling for lazy images */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Image container while loading */
.img-container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fix for sticky sidebar causing footer to not show */
.sticky-coloum-wrap {
    position: relative;
    overflow: visible;
}

.rt-main-post-area {
    overflow: visible;
}

/* Only apply sticky to sidebar, not main content */
.col-xl-9.sticky-coloum-item {
    position: relative !important;
}

.col-xl-9.sticky-coloum-item > .theiaStickySidebar {
    position: relative !important;
    transform: none !important;
    top: auto !important;
}

/* Sidebar sticky behavior */
.col-xl-3.sticky-coloum-item .theiaStickySidebar {
    will-change: auto;
}

.sticky-wrap {
    position: relative;
}

/* ========================================
   Mobile Menu Fixes
   ======================================== */

/* Ensure hamburger menu is visible on mobile */
@media (max-width: 991.98px) {
    .humburger-area {
        display: block !important;
    }

    .humburger-area .humburger {
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
        display: block;
    }

    .humburger-area .humburger span,
    .humburger-area .humburger::before,
    .humburger-area .humburger::after {
        background-color: #333 !important;
        height: 3px;
        width: 25px;
    }

    /* Hide desktop menu on mobile */
    .main-menu {
        display: none !important;
    }

    /* Ensure mobile menu is properly styled */
    .rt-slide-nav {
        z-index: 9999;
    }

    .rt-slide-nav .offscreen-navigation .menu {
        padding: 15px;
    }

    .rt-slide-nav .offscreen-navigation .menu li {
        border-bottom: 1px solid #eee;
    }

    .rt-slide-nav .offscreen-navigation .menu li a {
        display: block;
        padding: 12px 15px;
        color: #333;
        font-weight: 500;
    }

    .rt-slide-nav .offscreen-navigation .menu .sub-menu {
        background: #f8f9fa;
        padding-left: 20px;
    }
}

/* ========================================
   Mobile Gallery - 4-5 images per row
   ======================================== */
@media (max-width: 767.98px) {
    .article-gallery .row .col-lg-4.col-md-6 {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 3px;
        margin-bottom: 0 !important;
    }

    .article-gallery .row .col-lg-4.col-md-6 .gallery-item img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

    .article-gallery .row {
        margin: 0 -3px;
    }

    .article-gallery .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .article-gallery .row .col-lg-4.col-md-6 {
        flex: 0 0 20%;
        max-width: 20%;
        padding: 2px;
    }
}

/* ========================================
   Footer Mobile - Show only columns 1 and 3
   ======================================== */
@media (max-width: 767.98px) {
    /* Hide Column 2 (Categories) and Column 4 (Newsletter) on mobile */
    .footer-top .row > .col-xl-3:nth-child(2),
    .footer-top .row > .col-xl-3:nth-child(4) {
        display: none !important;
    }

    /* Make visible columns take full width on mobile */
    .footer-top .row > .col-xl-3:nth-child(1),
    .footer-top .row > .col-xl-3:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Center footer content on mobile */
    .footer-top .footer-widget {
        text-align: center;
    }

    .footer-top .footer-social {
        justify-content: center;
    }

    .footer-top .footer-links {
        text-align: left;
    }

    .footer-top .row .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
