html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    width: 100%;
}

body {
    width: 100%;
    position: relative;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

:root {
    --primary-red: #c8102e;
    --dark-navy: #1a1d29;
    --light-gray: #f8f9fa;
    --border-gray: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --topbar-bg: #1a1d29;
    --topbar-text: #d1d5db;
}

body.dark-mode {
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --light-gray: #374151;
    --border-gray: #374151;
    --topbar-bg: #0a0d14;
    --topbar-text: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.topbar {
    background: var(--topbar-bg);
    color: white;
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.topbar-link {
    color: var(--topbar-text);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.topbar-link:hover {
    color: white;
    transform: translateY(-1px);
}

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

.topbar-link:hover::after {
    width: 100%;
}

.topbar-separator {
    color: rgba(255,255,255,0.55);
    margin: 0 5px;
}

.social-icons a {
    color: white;
    margin: 0 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-red);
    transform: translateY(-2px) scale(1.1);
}

.main-header {
    background: var(--primary-red);
    padding: 0;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    transition: all 0.3s ease;
}

.main-header > .container,
.main-header .header-content,
.main-header .main-nav,
.main-header .nav-item {
    overflow: visible;
}

.main-header.scrolled {
    box-shadow: 0 6px 30px rgba(200, 16, 46, 0.25);
}

.header-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 65px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.logo-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: stretch;
    gap: 5px;
    flex: 1;
    justify-content: center;
    margin: 0 30px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 18px !important;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.header-btn {
    background: white;
    color: var(--primary-red);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: var(--dark-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.dropdown {
    position: relative;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0;
    display: none;
}

.dropdown:hover::after {
    display: block;
}

.dropdown-menu {
    animation: dropdownFade 0.3s ease;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    margin-top: 0 !important;
    padding: 0;
    min-width: 220px;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
    overflow: hidden;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1100;
}

body.dark-mode .dropdown-menu {
    background: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 14px 24px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    background: white;
    white-space: nowrap;
}

body.dark-mode .dropdown-item {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-color: rgba(255,255,255,0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-red);
    padding-left: 32px;
    color: white !important;
}

.breaking-news-ticker {
    background: linear-gradient(135deg, #1a1d29 0%, #2d3142 100%);
    border-bottom: 3px solid var(--primary-red);
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.dark-mode .breaking-news-ticker {
    background: linear-gradient(135deg, #0a0d14 0%, #1a1d29 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.breaking-news-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.ticker-container {
    display: flex;
    align-items: center;
    height: 50px;
}

.ticker-label {
    background: var(--primary-red);
    color: white;
    padding: 0 30px 0 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 3px 0 10px rgba(0,0,0,0.15);
    z-index: 2;
    margin-left: -15px;
    padding-left: 15px;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 30px;
    background: var(--primary-red);
    transform: skewX(-15deg);
    box-shadow: 3px 0 10px rgba(0,0,0,0.15);
}

.ticker-icon {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

.ticker-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

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

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ticker-icon i {
    color: var(--primary-red);
    font-size: 10px;
    position: relative;
    z-index: 1;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-left: 25px;
}

.ticker-wrapper {
    display: flex;
    gap: 80px;
    transform: translateX(0);
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticker-item:hover {
    color: #fbbf24;
}

.ticker-time {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.ticker-text {
    position: relative;
}

.ticker-text::before {
    content: '•';
    color: var(--primary-red);
    margin-right: 12px;
    font-size: 20px;
    line-height: 0;
}

.ticker-all-btn {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 0 16px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 15px;
}

.ticker-all-btn:hover {
    background: #fbbf24;
    color: var(--dark-navy);
    transform: translateY(-2px);
}

.main-content {
    padding: 40px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.featured-slider {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: var(--bg-primary);
}

body.dark-mode .featured-slider {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    pointer-events: auto;
}

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

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 50px 40px 30px;
}

.slider-category {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.slider-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

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

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.2);
}

.slider-nav:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    gap: 0;
    z-index: 10;
    justify-content: flex-start;
    overflow: hidden;
}

.slider-dot {
    background: white;
    width: auto;
    min-width: 0;
    height: 45px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    border-right: 1px solid rgba(0,0,0,0.1);
    flex: 1 1 0;
}

body.dark-mode .slider-dot {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-right-color: rgba(255,255,255,0.1);
}

.slider-dot:hover {
    background: #f3f4f6;
}

body.dark-mode .slider-dot:hover {
    background: rgba(255,255,255,0.05);
}

.slider-dot.active {
    background: var(--primary-red);
    color: white;
}

.slider-dot.active:hover {
    background: var(--primary-red);
}

.slider-all-btn {
    background: var(--primary-red);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    border: none;
}

.slider-all-btn:hover {
    background: var(--dark-navy);
}

.live-data-ticker {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-gray);
    padding: 12px 0;
    transition: all 0.3s ease;
}

body.dark-mode .live-data-ticker {
    border-bottom-color: rgba(255,255,255,0.1);
}

.ticker-data-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1 1 0;
    min-width: 0;
}

body.dark-mode .data-item {
    background: rgba(255,255,255,0.05);
}

.data-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.data-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.data-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.data-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.data-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.data-change {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.data-change.up {
    color: #10b981;
}

.data-change.down {
    color: #ef4444;
}

.data-change i {
    font-size: 10px;
}

.weather-section {
    border: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 10px;
    color: white;
    margin-left: 0;
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.weather-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.weather-icon-display {
    font-size: 24px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-city {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.weather-temp {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-condition {
    font-size: 10px;
    opacity: 0.9;
}

.prayer-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #059669);
    box-shadow: 0 4px 15px rgba(5, 150, 105, .24);
    transition: transform .2s ease, box-shadow .2s ease;
    flex: 0 0 auto;
}

.prayer-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, .34);
}

.prayer-icon {
    font-size: 22px;
    line-height: 1;
}

.prayer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.prayer-city-button,
.prayer-next {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.prayer-city-button {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    opacity: .9;
}

.prayer-next {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.prayer-next strong {
    font-size: 15px;
}

.prayer-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(5px);
}

.prayer-modal.active {
    display: flex;
}

.prayer-modal-content {
    width: min(520px, 100%);
    padding: 28px;
    border-radius: 16px;
    background: var(--bg-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.prayer-modal-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.prayer-modal-city-button {
    border: 0;
    padding: 2px 0;
    color: #059669;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.prayer-time-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    color: var(--text-secondary);
    text-align: center;
}

.prayer-time-item strong {
    color: var(--text-primary);
    font-size: 20px;
}

.prayer-time-item.is-next {
    border-color: #059669;
    color: #047857;
    background: rgba(5, 150, 105, .1);
}

.prayer-loading {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--text-secondary);
    text-align: center;
}

.prayer-method-note {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}

.city-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.city-modal.active {
    display: flex;
}

.city-modal-content {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.city-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.city-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.city-modal-close {
    background: var(--light-gray);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.city-modal-close:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg);
}

.city-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.city-search:focus {
    outline: none;
    border-color: var(--primary-red);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.city-option {
    padding: 12px 16px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

body.dark-mode .city-option {
    background: rgba(255,255,255,0.05);
}

.city-option:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.city-option.selected {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scrollable-news {
    padding: 40px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.news-scroll-wrapper {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.news-scroll-container::-webkit-scrollbar {
    display: none;
}

.news-card {
    flex: 0 0 320px;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

body.dark-mode .news-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

body.dark-mode .news-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.news-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fbbf24;
    color: var(--dark-navy);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 13px;
}

.news-card-meta i {
    color: var(--primary-red);
    font-size: 14px;
}

.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 20px;
}

body.dark-mode .scroll-nav-btn {
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.scroll-nav-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-nav-btn.left {
    left: -25px;
}

.scroll-nav-btn.right {
    right: -25px;
}

.scroll-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-nav-btn:disabled:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-50%);
}

body.dark-mode .scroll-nav-btn:disabled:hover {
    background: var(--bg-secondary);
}

.columnists-section {
    padding: 50px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 40px;
    background: var(--primary-red);
}

.section-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
}

.section-link:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateX(5px);
}

.columnists-wrapper {
    position: relative;
}

.columnists-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 0;
}

.columnists-container::-webkit-scrollbar {
    display: none;
}

.columnist-card {
    flex: 0 0 380px;
    background: var(--bg-primary);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.dark-mode .columnist-card {
    border-color: rgba(255,255,255,0.1);
}

.columnist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-red);
    transition: height 0.4s ease;
}

.columnist-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.dark-mode .columnist-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.columnist-card:hover::before {
    height: 100%;
}

.columnist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary-red);
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.columnist-card:hover .columnist-avatar {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.columnist-info {
    flex: 1;
}

.columnist-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.columnist-card:hover .columnist-name {
    color: var(--primary-red);
}

.columnist-article {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.columnist-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.columnist-category {
    display: inline-block;
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
}

body.dark-mode .columnist-category {
    background: rgba(255,255,255,0.1);
}

.category-news-section {
    padding: 50px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.category-header {
    background: var(--primary-red);
    color: white;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}

.category-header-link:hover {
    background: rgba(255,255,255,0.3);
}

.category-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.category-main-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
}

body.dark-mode .category-main-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.category-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body.dark-mode .category-main-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.category-main-image {
    width: 100%;
    height: 100%;
    min-height: 445px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.category-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 30px;
}

.category-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.category-side-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.category-side-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.dark-mode .category-side-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.category-side-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.dark-mode .category-side-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.category-side-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-side-card:hover .category-side-image {
    transform: scale(1.08);
}

.category-side-content {
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
}

.category-side-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@media (max-width: 992px) {
    .category-news-grid {
        grid-template-columns: 1fr;
    }

    .category-side-cards {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .category-side-cards {
        flex-direction: column;
    }

    .category-header {
        font-size: 20px;
        padding: 12px 20px;
    }
}

.category-standings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 24px;
}

.category-standings-main {
    min-width: 0;
}

.standings-section {
    padding: 34px 0;
    background: var(--bg-secondary);
}

.standings-widget {
    overflow: hidden;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.standings-widget.is-full {
    max-width: 980px;
    margin: 0 auto;
}

.standings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #1e3a5f);
}

.standings-kicker {
    display: block;
    margin-bottom: 3px;
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.standings-header h3 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.standings-season {
    margin: 3px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 11px;
}

.standings-trophy {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #fbbf24;
    background: rgba(255,255,255,.1);
    font-size: 20px;
}

.standings-table-wrap {
    max-height: 610px;
    overflow: auto;
}

.standings-widget:not([data-ready]) .standings-table-wrap {
    min-height: 480px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    font-size: 12px;
}

.standings-table th,
.standings-table td {
    padding: 9px 7px;
    border-bottom: 1px solid var(--border-gray);
    text-align: center;
    white-space: nowrap;
}

.standings-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--text-secondary);
    background: var(--bg-primary);
    font-size: 10px;
    text-transform: uppercase;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    width: 100%;
    text-align: left;
}

.standings-position {
    border-left: 3px solid transparent;
    font-weight: 800;
}

.standings-table tr.is-europe .standings-position {
    border-left-color: #2563eb;
}

.standings-table tr.is-relegation .standings-position {
    border-left-color: #dc2626;
}

.standings-table tr.is-local-team td {
    background: rgba(245, 158, 11, .16);
}

.standings-table tr.is-local-team .standings-position {
    border-left-color: #f59e0b;
    color: #b45309;
}

.standings-table tr.is-local-team .standings-team {
    color: #b45309;
    font-weight: 850;
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-weight: 650;
}

.standings-team img {
    flex: 0 0 auto;
    object-fit: contain;
}

.standings-team span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.standings-points {
    font-weight: 900;
}

.standings-loading-row td {
    padding: 32px 14px;
    color: var(--text-secondary);
    text-align: center !important;
}

.standings-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    background: var(--light-gray);
    font-size: 10px;
}

.standings-source {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
}

.standings-widget.is-compact .standings-extra {
    display: none;
}

.standings-widget.is-compact .standings-table-wrap {
    max-height: 480px;
}

.standings-widget.is-compact .standings-table th,
.standings-widget.is-compact .standings-table td {
    padding: 7px 5px;
}

@media (max-width: 992px) {
    .category-standings-layout {
        grid-template-columns: 1fr;
    }

    .standings-widget.is-compact {
        width: min(100%, 620px);
        margin: 0 auto;
    }
}

.news-grid-section {
    padding: 50px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.news-grid-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-news-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body.dark-mode .grid-news-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

body.dark-mode .grid-news-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.grid-news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.grid-news-card:hover .grid-news-image {
    transform: scale(1.08);
}

.grid-news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dark-navy);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-news-content {
    padding: 15px;
}

.grid-news-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-news-title:hover {
    color: var(--primary-red);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.sidebar-widget {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

body.dark-mode .sidebar-widget {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.widget-header {
    background: var(--primary-red);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.widget-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.widget-content::-webkit-scrollbar {
    display: none;
}

.widget-scroll-nav {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.widget-scroll-nav:hover {
    background: var(--dark-navy);
    transform: scale(1.1);
}

.widget-scroll-nav i {
    font-size: 20px;
}

.most-read-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .most-read-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

.most-read-item:first-child {
    padding-top: 0;
}

.most-read-item:last-child {
    border-bottom: none;
}

.most-read-item:hover {
    transform: translateX(5px);
}

.most-read-number {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    border-radius: 8px;
    flex-shrink: 0;
}

.most-read-info {
    flex: 1;
}

.most-read-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read-item:hover .most-read-title {
    color: var(--primary-red);
}

.most-read-thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-grid-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

body.dark-mode .news-grid-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

body.dark-mode .news-grid-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.news-grid-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.news-grid-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--text-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-grid-content {
    padding: 20px;
}

.news-grid-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-title:hover {
    color: var(--primary-red);
}

.news-sidebar {
    position: sticky;
    top: 80px;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-red);
}

.most-read-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-read-content {
    flex: 1;
}

.most-read-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .news-grid-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.slider-number {
    display: none;
}

.side-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 235px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

body.dark-mode .side-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.side-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

body.dark-mode .side-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

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

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

.side-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.side-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.side-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.side-card-meta i {
    color: var(--primary-red);
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal-content {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

body.dark-mode .search-modal-content {
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-gray);
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-modal-close:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.search-modal-input-wrapper {
    position: relative;
    margin-top: 10px;
}

.search-modal-input {
    width: 100%;
    padding: 22px 60px 22px 24px;
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    font-size: 18px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 5px rgba(200, 16, 46, 0.1);
    transform: translateY(-2px);
}

.search-modal-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.search-modal-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-submit:hover {
    background: var(--dark-navy);
    transform: translateY(-50%) scale(1.05);
}

.search-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.search-modal-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 25px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    background: var(--primary-red);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: white;
}

.mobile-menu-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-gray);
}

.mobile-menu-link {
    display: block;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: var(--light-gray);
    padding-left: 30px;
    color: var(--primary-red);
}

.mobile-submenu {
    display: none;
    background: var(--light-gray);
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu-item {
    padding: 12px 20px 12px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mobile-submenu-item:hover {
    padding-left: 50px;
    color: var(--primary-red);
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--light-gray);
    color: var(--primary-red);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        font-size: 32px;
    }

    #searchBtn {
        background: white;
        color: var(--primary-red);
        border-radius: 6px;
        padding: 7px 11px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

    #searchBtn:hover {
        background: var(--dark-navy);
        color: white;
    }

    body.dark-mode #searchBtn {
        background: var(--bg-secondary);
        color: white;
    }

    body.dark-mode #searchBtn:hover {
        background: white;
        color: var(--primary-red);
    }

    .topbar {
        font-size: 11px;
    }

    .topbar-links-wrapper {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        overflow: hidden;
        justify-content: center;
    }

    .topbar-link {
        margin: 0 8px;
        white-space: nowrap;
    }

    .topbar-separator {
        display: inline;
    }

    .header-btn {
        padding: 7px 11px;
        font-size: 15px;
    }
}

@media (min-width: 993px) {
    #searchBtn {
        background: white;
        color: var(--primary-red);
        border-radius: 6px;
        padding: 8px 14px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    #searchBtn:hover {
        background: var(--dark-navy);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    body.dark-mode #searchBtn {
        background: var(--bg-secondary);
        color: white;
    }

    body.dark-mode #searchBtn:hover {
        background: white;
        color: var(--primary-red);
    }
}

@media (max-width: 576px) {
    .header-content {
        min-height: 55px;
    }

    .logo-section {
        padding: 8px 0;
    }

    .header-actions {
        padding: 8px 0;
    }

    .logo {
        font-size: 26px;
    }

    .logo-tagline {
        font-size: 9px;
    }

    .header-btn {
        padding: 6px 10px;
        font-size: 14px;
    }

    #searchBtn {
        padding: 6px 10px;
        font-size: 14px;
    }

    .topbar {
        font-size: 10px;
    }

    .topbar-link {
        margin: 0 5px;
        font-size: 10px;
    }

    .social-icons a {
        margin: 0 5px;
        font-size: 14px;
    }

    .topbar .row {
        flex-direction: column;
        gap: 5px;
    }

    .topbar .col-md-6 {
        text-align: center !important;
    }

    .search-modal-content {
        padding: 40px 30px;
    }

    .search-modal-title {
        font-size: 26px;
    }

    .search-modal-input {
        font-size: 16px;
        padding: 18px 55px 18px 20px;
    }

    .search-modal-submit {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .ticker-label {
        padding: 0 20px 0 15px;
        font-size: 12px;
        gap: 8px;
        margin-left: 0;
    }

    .ticker-label::after {
        display: none;
    }

    .ticker-all-btn {
        display: none;
    }

    .ticker-item {
        font-size: 13px;
    }

    .ticker-time {
        font-size: 11px;
        padding: 3px 10px;
    }

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

    .slider-container {
        height: 400px;
    }

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

    .slider-overlay {
        padding: 30px 20px 15px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .side-cards {
        flex-direction: column;
    }

    .side-card {
        height: 220px;
    }

    .side-card-title {
        font-size: 18px;
    }

    .ticker-data-wrapper {
        gap: 15px;
    }

    .data-item {
        padding: 6px 12px;
        flex: 1;
        min-width: 120px;
    }

    .data-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .data-value {
        font-size: 14px;
    }

    .weather-section {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }

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

    .news-card {
        flex: 0 0 280px;
    }

    .scroll-nav-btn {
        display: none;
    }

    .columnist-card {
        flex: 0 0 320px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-title::before {
        height: 30px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 450px;
    }

    .slider-title {
        font-size: 28px;
    }

    .side-cards {
        flex-direction: row;
    }

    .side-card {
        height: 250px;
    }
}

.tabbed-category-section {
    padding: 50px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.category-tabs-wrapper {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: inline-flex;
    gap: 0;
}

body.dark-mode .category-tabs-wrapper {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.category-tabs {
    display: flex;
    gap: 0;
    position: relative;
}

.category-tab {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.category-tab::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--border-gray);
    opacity: 0.5;
}

body.dark-mode .category-tab::before {
    background: rgba(255,255,255,0.2);
}

.category-tab:last-child::before {
    display: none;
}

.category-tab:hover {
    color: var(--primary-red);
    background: rgba(200, 16, 46, 0.05);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, #e11d48 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
    transform: scale(1.02);
}

.category-tab.active::before {
    display: none;
}

.category-tab i {
    margin-right: 6px;
    font-size: 14px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.tab-main-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
}

body.dark-mode .tab-main-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tab-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body.dark-mode .tab-main-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.tab-main-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tab-main-card:hover .tab-main-image {
    transform: scale(1.05);
}

.tab-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 25px;
}

.tab-main-title {
    font-size: 26px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.tab-side-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.tab-side-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.dark-mode .tab-side-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tab-side-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.dark-mode .tab-side-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.tab-side-image-wrapper {
    position: relative;
    height: 130px;
    overflow: hidden;
}

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

.tab-side-card:hover .tab-side-image {
    transform: scale(1.08);
}

.tab-side-content {
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
}

.tab-side-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@media (max-width: 992px) {
    .tab-news-grid {
        grid-template-columns: 1fr;
    }

    .tab-main-image {
        min-height: 300px;
    }
}

.photo-gallery-section {
    padding: 60px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #e11d48 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.gallery-title-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.gallery-title-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

.gallery-view-all {
    background: var(--primary-red);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.gallery-view-all:hover {
    background: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

body.dark-mode .gallery-item {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    z-index: 10;
}

body.dark-mode .gallery-item:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

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

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

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

.gallery-caption {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-date {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s;
}

.gallery-item:hover .gallery-date {
    transform: translateY(0);
}

.gallery-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: auto;
    }

    .gallery-title-text h2 {
        font-size: 26px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item:first-child {
        grid-column: auto;
    }
}

.video-gallery-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.video-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626 0%, var(--primary-red) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.video-title-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.video-title-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

.video-view-all {
    background: linear-gradient(135deg, #dc2626 0%, var(--primary-red) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.video-view-all:hover {
    background: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

body.dark-mode .video-item {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

body.dark-mode .video-item:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.video-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.video-item:hover .video-thumbnail {
    transform: scale(1.1);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(200, 16, 46, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
}

.video-play-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.video-item:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--dark-navy);
}

.video-play-icon {
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item:hover .video-title {
    color: var(--primary-red);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 13px;
}

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

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

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-title-text h2 {
        font-size: 28px;
    }

    .video-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.latest-news-section {
    padding: 60px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.latest-news-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #e11d48 100%);
    color: white;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.latest-news-content {
    background: var(--bg-primary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

body.dark-mode .latest-news-content {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
    gap: 20px 60px;
}

.latest-news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .latest-news-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

.latest-news-item:hover {
    transform: translateX(5px);
}

.latest-news-item:last-child,
.latest-news-item:nth-last-child(2) {
    border-bottom: none;
}

.latest-news-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
    min-width: 50px;
    flex-shrink: 0;
}

.latest-news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.latest-news-item:hover .latest-news-title {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .latest-news-header {
        font-size: 20px;
        padding: 12px 20px;
    }
}

.most-read-social-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.most-read-social-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.most-read-grid-section {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.dark-mode .most-read-grid-section {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.most-read-grid-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #e11d48 100%);
    color: white;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.most-read-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
}

.most-read-grid-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.most-read-grid-item:hover {
    transform: translateY(-5px);
}

.most-read-grid-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.most-read-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.most-read-grid-item:hover .most-read-grid-image {
    transform: scale(1.1);
}

.most-read-grid-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.most-read-grid-item:hover .most-read-grid-title {
    color: var(--primary-red);
}

.social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-sidebar-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
    padding: 23px 22px 21px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.social-sidebar-header::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -50px;
    top: -58px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.42);
    filter: blur(2px);
}

.social-sidebar-kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 5px;
    color: #fda4af;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.social-sidebar-title {
    position: relative;
    z-index: 1;
    font-size: 23px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.social-sidebar-description {
    position: relative;
    z-index: 1;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.55;
}

.social-card-list {
    display: grid;
    gap: 10px;
}

.social-card {
    --social-color: #64748b;
    --social-color-rgb: 100, 116, 139;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--social-color-rgb), 0.18);
    border-radius: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--social-color-rgb), 0.1), transparent 72%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--social-color-rgb), 0.42);
    box-shadow: 0 12px 26px rgba(var(--social-color-rgb), 0.15);
    color: var(--text-primary);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: var(--social-color);
    color: #fff;
    box-shadow: 0 7px 14px rgba(var(--social-color-rgb), 0.24);
}

.social-card-icon i {
    font-size: 20px;
}

.social-card-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 0 11px;
}

.social-card-copy strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.social-card-copy small {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    white-space: nowrap;
}

.social-card-arrow {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(var(--social-color-rgb), 0.1);
    color: var(--social-color);
    transition: transform 0.25s ease, background 0.25s ease;
}

.social-card:hover .social-card-arrow {
    transform: translate(2px, -2px);
    background: rgba(var(--social-color-rgb), 0.16);
}

.social-card--facebook { --social-color: #1877f2; --social-color-rgb: 24, 119, 242; }
.social-card--twitter { --social-color: #111827; --social-color-rgb: 17, 24, 39; }
.social-card--instagram { --social-color: #d9468f; --social-color-rgb: 217, 70, 143; }
.social-card--youtube { --social-color: #ff0033; --social-color-rgb: 255, 0, 51; }
.social-card--telegram { --social-color: #229ed9; --social-color-rgb: 34, 158, 217; }
.social-card--whatsapp { --social-color: #22a559; --social-color-rgb: 34, 165, 89; }
.social-card--linkedin { --social-color: #0a66c2; --social-color-rgb: 10, 102, 194; }
.social-card--pinterest { --social-color: #e60023; --social-color-rgb: 230, 0, 35; }

body.dark-mode .social-sidebar-header {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

body.dark-mode .social-card {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .most-read-social-wrapper {
        grid-template-columns: 1fr;
    }

    .social-sidebar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .social-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .most-read-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .social-card-list {
        grid-template-columns: 1fr;
    }
}

.footer {
    --footer-text: rgba(255, 255, 255, 0.78);
    --footer-muted: rgba(255, 255, 255, 0.68);
    --footer-line: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 56px 0 0;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.45fr) minmax(0, 1.5fr);
    gap: 36px;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-heading,
.footer-column h3 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-heading::after,
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.footer-about-text {
    color: var(--footer-text);
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 14px;
}

.footer-contact {
    margin: 0;
    font-style: normal;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--footer-text);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer-contact-item i {
    color: var(--primary-red);
    font-size: 16px;
    margin-top: 2px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-links .footer-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--footer-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before,
.footer-links .footer-link-button::before {
    content: '›';
    color: var(--primary-red);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.footer a:hover,
.footer .footer-link-button:hover {
    color: #fff;
}

.footer-links a:hover,
.footer-links .footer-link-button:hover {
    transform: translateX(4px);
    text-decoration: underline;
    text-decoration-color: var(--primary-red);
    text-underline-offset: 4px;
}

.footer a:focus-visible,
.footer button:focus-visible,
.footer input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
}

.footer-contact-item a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    color: #fff;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 11px 0 9px;
    border: 1px solid #a6a6a6;
    border-radius: 8px;
    background: #000;
    color: #fff;
    line-height: 1.05;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-badge:hover,
.app-badge:focus-visible {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.app-badge-icon {
    flex: none;
    width: 21px;
    height: 21px;
}

.app-badge-text {
    display: flex;
    flex-direction: column;
}

.app-badge-text small {
    font-size: 9.5px;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.app-badge-text strong {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-badges--lg {
    gap: 12px;
}

.app-badges--lg .app-badge {
    height: 56px;
    gap: 11px;
    padding: 0 22px 0 15px;
    border-radius: 11px;
}

.app-badges--lg .app-badge-icon {
    width: 29px;
    height: 29px;
}

.app-badges--lg .app-badge-text small {
    font-size: 12px;
}

.app-badges--lg .app-badge-text strong {
    font-size: 21px;
}

.footer-apps {
    margin-top: 22px;
}

.footer-apps-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
}

.footer-apps-link,
body.dark-mode .footer-apps-link {
    color: var(--footer-text);
    text-decoration: none;
}

.footer-apps-link:hover,
body.dark-mode .footer-apps-link:hover {
    color: #fff;
}

.footer-newsletter-form {
    display: grid;
    gap: 10px;
}

.footer-newsletter-row {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter-row:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.footer-newsletter-input:focus {
    outline: none;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-button {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 7px;
    background: var(--primary-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.footer-newsletter-button:hover {
    background: var(--theme-primary-hover, #a40d25);
}

.footer-newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.footer-newsletter-consent input {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: var(--primary-red);
}

.footer-newsletter-success {
    margin: 0 0 10px;
    color: #86efac;
    font-size: 13px;
}

.footer-inline-link {
    color: var(--footer-text);
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
}

.footer-inline-link:hover {
    text-decoration-color: currentColor;
}

.footer-directory-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--footer-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

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

.footer-directory-link:hover span:first-of-type {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-soon-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: #facc15;
    color: #1f2937;
    font-size: 11px;
    font-weight: 800;
}

.footer-bottom {
    padding: 0;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid var(--footer-line);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding: 18px 0;
}

.footer-copyright {
    margin: 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links li {
    display: inline-flex;
    align-items: center;
}

.footer-bottom-links li + li::before {
    content: '';
    width: 3px;
    height: 3px;
    margin: 0 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links a,
.footer-bottom-links .footer-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--footer-muted);
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover,
.footer-bottom-links .footer-link-button:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--primary-red);
    text-underline-offset: 4px;
}

.brand-credit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    padding: 14px 0 18px;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-align: center;
}

.brand-credit-divider {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.brand-credit-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--primary-red);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.brand-credit-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.brand-credit-company::before {
    content: '·';
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-column--about,
    .footer-column--newsletter {
        grid-column: span 3;
    }

    .footer-column--newsletter {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding: 0 0 32px;
    }

    .footer-column--about,
    .footer-column--newsletter {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 18px 0 14px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 8px 18px;
    }

    .footer-bottom-links li + li::before {
        display: none;
    }
}

@media (max-width: 420px) {
    .footer-column--contact {
        grid-column: 1 / -1;
    }

    .brand-credit-divider {
        display: none;
    }
}

.demo-section {
    display: none;
}

@media (max-width: 992px) {
    .autoload-news-block > div[style*="grid-template-columns: 2.5fr 1fr"],
    section > .container > div[style*="grid-template-columns: 2.5fr 1fr"],
    .page-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .autoload-news-block aside,
    section > .container > div > aside,
    .page-layout > aside {
        margin-top: 30px !important;
        position: static !important;
        top: auto !important;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .autoload-news-block article,
    .autoload-news-block > div > div > div[style*="padding: 40px"],
    section article[style*="padding: 40px"],
    .page-layout article {
        padding: 20px !important;
    }

    .autoload-news-block h1,
    .autoload-news-block h2,
    section article h1,
    section article h2,
    .page-layout h1,
    .page-layout h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .autoload-news-block article > div[style*="gap: 25px"] {
        gap: 12px !important;
        font-size: 13px !important;
    }

    .autoload-news-block article > div[style*="font-size: 20px"] {
        font-size: 17px !important;
    }

    .autoload-news-block article > div[style*="font-size: 17px"] {
        font-size: 15px !important;
    }

    .auto-news-item {
        padding: 20px !important;
    }

    .auto-news-item h2 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .autoload-news-block article,
    .autoload-news-block > div > div > div[style*="padding: 40px"] {
        padding: 15px !important;
    }

    .autoload-news-block h2 {
        font-size: 22px !important;
    }
}

@media (max-width: 768px) {
    .content-reaction-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .reaction-btn {
        padding: 10px !important;
    }

    .reaction-btn > span:first-child {
        font-size: 28px !important;
    }

    .reaction-btn > span:last-child {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .content-reaction-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .commentFormContainer form > div[style*="grid-template-columns: 1fr 1fr"],
    .commentFormContainer form > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .contact-layout form > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .commentsHeader {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .commentsHeader {
        font-size: 18px !important;
    }

    .showCommentForm {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    section > .container > div > div > div[style*="grid-template-columns: auto 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    section > .container > div > div > div[style*="grid-template-columns: auto 1fr"] > div:first-child {
        margin: 0 auto !important;
    }

    section > .container div[style*="width: 180px"][style*="height: 180px"] {
        width: 140px !important;
        height: 140px !important;
    }

    section > .container > div > div > div[style*="grid-template-columns: 1fr 1fr; gap: 20px"] {
        grid-template-columns: 1fr !important;
    }

    section > .container div[style*="grid-template-columns: repeat(3, 1fr); gap: 20px"] {
        grid-template-columns: 1fr !important;
    }

    section > .container a[style*="grid-template-columns: 200px 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    section > .container a[style*="grid-template-columns: 200px 1fr"] img {
        height: 180px !important;
    }

    section > .container div[style*="grid-template-columns: repeat(2, 1fr)"] {
        gap: 15px !important;
    }
}

@media (max-width: 992px) {
    section > .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    section > .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    section > .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1199px) {
    .category-featured-grid {
        grid-template-columns: 1fr !important;
    }

    .category-featured-grid > div[style*="height: 445px"] {
        height: auto !important;
        grid-template-rows: none !important;
    }

    .category-featured-grid a[style*="min-height: 445px"] {
        min-height: 300px !important;
    }
}

@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .autoload-news-block div[style*="display: flex; align-items: center; gap: 15px"] > div:first-child {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 768px) {
    .autoload-news-block article > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .autoload-news-block article > div[style*="grid-template-columns: repeat(3, 1fr)"] img {
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    .autoload-news-block article > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #pageTitle {
        font-size: 22px !important;
    }

    #pageContent {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    aside div[style*="grid-template-columns: 90px 1fr"] {
        grid-template-columns: 70px 1fr !important;
    }

    aside div[style*="grid-template-columns: 90px 1fr"] img {
        width: 70px !important;
        height: 55px !important;
    }
}

@media (max-width: 576px) {
    section > .container a[style*="display: block"] > div[style*="display: flex; gap: 20px"] {
        flex-direction: column;
        gap: 12px !important;
    }

    section > .container a[style*="display: block"] img[style*="width: 160px"] {
        width: 100% !important;
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    div[style*="justify-content: flex-end"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .ticker-data-wrapper {
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center;
    }

    .data-item {
        flex: 1 1 140px;
        min-width: 140px;
    }

    .weather-section {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
        justify-content: center;
    }

    .prayer-section {
        width: 100%;
        justify-content: center;
    }

    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ticker-label {
        margin-left: 0 !important;
        padding-left: 15px !important;
    }

    .ticker-label::after {
        display: none !important;
    }

    .breaking-news-ticker,
    .ticker-container,
    .ticker-content {
        overflow: hidden !important;
    }

    .ticker-wrapper {
        max-width: 100%;
    }
}

.autoload-news-block img,
.auto-news-item img,
article img,
#pageContent img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.autoload-news-block p,
.autoload-news-block h1,
.autoload-news-block h2,
.autoload-news-block h3,
.autoload-news-block h4,
.autoload-news-block div,
.autoload-news-block span,
#pageContent *,
article * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.autoload-news-block iframe,
.autoload-news-block video,
.autoload-news-block table,
.auto-news-item iframe,
.auto-news-item video,
.auto-news-item table,
#pageContent iframe,
#pageContent video,
#pageContent table,
article iframe,
article video,
article table {
    max-width: 100% !important;
    height: auto;
}

.autoload-news-block table,
#pageContent table,
article table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: nowrap !important;
    }

    .logo img {
        max-height: 40px !important;
    }
}

a {
    color: var(--primary-red);
    text-decoration: none;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--theme-primary-hover, var(--primary-red));
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
    border-radius: 3px;
}

body.dark-mode a:not([class]) {
    color: #f87171;
}

.detail-rich-content a,
.detail-content a,
.article-content a,
.news-content a,
#pageContent a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.detail-rich-content a:hover,
.detail-content a:hover,
.article-content a:hover,
.news-content a:hover,
#pageContent a:hover {
    color: var(--theme-primary-hover, var(--primary-red));
    text-decoration-color: currentColor;
}

body.dark-mode .detail-rich-content a,
body.dark-mode .detail-content a,
body.dark-mode #pageContent a {
    color: #f87171;
}

aside a[aria-label] h4,
a .sidebar-list-title {
    transition: color 0.2s ease;
}

aside a[aria-label]:hover h4,
a:hover .sidebar-list-title,
aside a[aria-label]:focus-visible h4 {
    color: var(--primary-red) !important;
}

.page-sidebar {
    display: grid;
    gap: 24px;
    align-content: start;
}

.sidebar-widget {
    overflow: hidden;
    border-radius: var(--theme-radius, 12px);
    background: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sidebar-widget-title {
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #e11d48 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-link-list,
.sidebar-rank-list,
.sidebar-social-list {
    margin: 0;
    padding: 10px 12px;
    list-style: none;
}

.sidebar-link-list a,
.sidebar-rank-list a,
.sidebar-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link-list li + li,
.sidebar-rank-list li + li,
.sidebar-social-list li + li {
    border-top: 1px dashed var(--border-gray);
}

.sidebar-link-list a i {
    color: var(--primary-red);
    font-size: 12px;
}

.sidebar-link-list a:hover,
.sidebar-rank-list a:hover,
.sidebar-social-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-red);
}

.sidebar-link-list a.is-active {
    background: color-mix(in srgb, var(--primary-red) 9%, transparent);
    color: var(--primary-red);
}

.sidebar-rank {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary-red);
    color: #fff;
    font-weight: 900;
}

.sidebar-social-link > .bi:first-child {
    font-size: 18px;
}

.sidebar-social-facebook > .bi:first-child { color: #1877f2; }
.sidebar-social-twitter > .bi:first-child { color: var(--text-primary); }
.sidebar-social-instagram > .bi:first-child { color: #e1306c; }
.sidebar-social-youtube > .bi:first-child { color: #ff0000; }
.sidebar-social-linkedin > .bi:first-child { color: #0a66c2; }

.sidebar-social-external {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 12px;
}

.category-news-section ~ .category-news-section ~ .category-news-section,
.tabbed-category-section,
.photo-gallery-section,
.video-gallery-section,
.most-read-social-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 510px;
}

.photo-gallery-section { contain-intrinsic-size: auto 516px; }
.video-gallery-section { contain-intrinsic-size: auto 1475px; }
.most-read-social-section { contain-intrinsic-size: auto 1400px; }

@media (min-width: 992px) {
    .category-news-section ~ .category-news-section ~ .category-news-section,
    .tabbed-category-section { contain-intrinsic-size: auto 460px; }
    .photo-gallery-section { contain-intrinsic-size: auto 747px; }
    .video-gallery-section { contain-intrinsic-size: auto 600px; }
    .most-read-social-section { contain-intrinsic-size: auto 434px; }
}
