/* ==================== CSS VARIABLES & RESET ==================== */
:root {
    --primary-color: #1a3a52;
    --secondary-color: #dc2626;
    --accent-color: #0ea5e9;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    /* Authentication Page Styles */
    --auth-bg: #fafafa;
    --auth-white: #ffffff;
    --auth-text: #1f2937;
    --auth-text-light: #6b7280;
    --auth-text-lighter: #9ca3af;
    --auth-border: #e5e7eb;
    --auth-accent: #0ea5e9;
    --auth-accent-dark: #0284c7;
    --auth-error: #dc2626;
    --auth-success: #22c55e;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    /* Optimize for mobile touch interactions */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-text-size-adjust: 100%;
}

/* Ensure touch targets are at least 44x44px on mobile */
button,
input,
select,
textarea,
a,
.nav-link,
.social-link,
.carousel-button {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 768px) {
    button,
    input,
    select,
    textarea,
    a,
    .nav-link,
    .social-link {
        font-size: 16px;
    }
}

/* ==================== SECTION 1: BANNER CARDS - Premium Content Carousel ==================== */
.banner-section {
    background: var(--bg-white);
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hide the first banner section on small screens and mobile devices */
.banner-section:first-of-type {
    display: none;
}

@media (min-width: 769px) {
    .banner-section:first-of-type {
        display: block;
    }
}

.banner-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.banner-card {
    width: 100%;
    height: 90px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
}

@media (max-width: 768px) {
    .banner-wrapper {
        grid-template-columns: 1fr;
    }
    
    .banner-card {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .banner-card {
        height: 50px;
    }
}

.banner-card:hover {
    box-shadow: none;
    transform: none;
}

/* When ad-banner-unit is nested inside banner-card, make it fill the parent */
.banner-card .ad-banner-unit {
    width: 100%;
    height: 100%;
}

.banner-card img,
.banner-card a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-card img {
    object-fit: cover;
}

/* ==================== SECTION 2: HEADER CONTROLS - Language, Time & Social Media ==================== */
.header-controls-section {
    background: var(--bg-light);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .header-controls-section {
        padding: 4px 0;
    }
}

@media (max-width: 480px) {
    .header-controls-section {
        padding: 3px 0;
    }
}

.header-controls-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.controls-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 1;
    margin: 0;
    min-width: 0;
}

@media (max-width: 768px) {
    .header-controls-wrapper {
        padding: 0 8px;
        gap: 5px;
    }
    
    .controls-left-group {
        gap: 6px;
        flex-shrink: 1;
    }
}

@media (max-width: 480px) {
    .header-controls-wrapper {
        flex-wrap: nowrap;
        gap: 1px;
        padding: 0 2px;
    }
    
    .controls-left-group {
        gap: 1px;
        flex-shrink: 1;
        margin: 0;
    }
}

.language-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.control-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    white-space: nowrap;
}

.control-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .control-label {
        display: none;
    }
    
    .control-select {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .time-display-group {
        display: none;
    }
    
    .language-selector-group {
        flex-shrink: 1;
        min-width: 0;
        gap: 1px;
    }
    
    .control-select {
        font-size: 0.65rem;
        padding: 2px 2px;
        min-width: 38px;
        flex-shrink: 1;
    }
}

.control-select:hover,
.control-select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.time-display-group {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.time-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .time-text {
        font-size: 0.75rem;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .time-display-group {
        display: flex;
    }
    
    .time-text {
        font-size: 0.65rem;
        gap: 2px;
    }
    
    .time-text::before {
        font-size: 0.9rem;
        margin-right: 2px;
    }
}

.time-text::before {
    content: "\f017";
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 1.2rem;
    margin-right: 4px;
}

/* Sign In Icon Link */
.signin-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.signin-icon-link i {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-icon-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.signin-icon-text {
    display: inline;
}

@media (max-width: 768px) {
    .signin-icon-text {
        display: none;
    }

    .signin-icon-link {
        padding: 6px;
        gap: 0;
    }
}

.social-media-group {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 1;
    margin-left: 0;
    min-width: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .social-media-group {
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 14px;
        min-height: 28px;
        min-width: 28px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .social-link i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .social-link {
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
        min-height: 26px !important;
        min-width: 26px !important;
    }
    
    .social-link svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .social-link i {
        font-size: 13px !important;
    }
}

.social-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.social-link i {
    font-size: 12px;
}

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

.social-link.twitter:hover {
    background: #1a8cd8;
    transform: scale(1.1);
}

.social-link.instagram {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.social-link.instagram:hover {
    transform: scale(1.1);
}

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

.social-link.facebook:hover {
    background: #0a66c2;
    transform: scale(1.1);
}

/* ==================== SECTION 0: BEFORE NAVBAR AD - Top Advertisement Space ==================== */
.ad-before-navbar-section {
    background: var(--bg-white);
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.ad-before-navbar-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ad-before-navbar-unit {
    width: 100%;
    height: 90px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
}

.ad-before-navbar-unit:hover {
    background: var(--bg-lighter);
    transform: scale(1.02);
}

.ad-before-navbar-unit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-before-navbar-unit a {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==================== SECTION 4: AD BANNER - Premium Advertisement Space ==================== */
.ad-banner-section {
    background: var(--bg-white);
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.ad-banner-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.ad-banner-grid-4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 1200px) {
    .ad-banner-grid-4col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ad-banner-grid-4col {
        grid-template-columns: 1fr;
    }
}

.ad-banner-unit {
    width: 100%;
    height: 90px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
}

@media (max-width: 768px) {
    .ad-banner-unit {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .ad-banner-unit {
        height: 50px;
    }
}

.ad-banner-unit:hover {
    box-shadow: none;
    transform: none;
}

.ad-banner-unit img,
.ad-banner-unit a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-unit img {
    object-fit: cover;
}

/* ==================== SECTION 3: NAVIGATION BAR - Primary Navigation ==================== */
.main-navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    gap: 12px;
}

@media (max-width: 768px) {
    .navbar-container {
        height: auto;
        padding: 8px 10px;
        flex-wrap: nowrap;
        align-content: flex-start;
        justify-content: flex-start;
        gap: 4px;
    }
}

/* Navbar Sections */
.navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
}

.navbar-secondary {
    border-top: none;
    background: var(--bg-white);
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 10%, var(--border-color) 90%, transparent 100%);
    margin: 0;
    width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    padding: 4px;
    transition: var(--transition);
}

.navbar-logo:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar-logo:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.logo-image {
    max-height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 24px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-height: 18px;
        max-width: 90px;
    }
}

.logo-image:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.nav-primary-links,
.nav-category-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ==================== SEARCH BAR - Modern Real-Time Search ==================== */
.search-container {
    position: relative;
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 500px;
    margin: 0;
}

@media (max-width: 768px) {
    .search-container {
        flex: 1 1 auto;
        min-width: 100px;
        max-width: 200px;
        margin: 0;
    }
}

/* Mobile Search Icon Button - Default hidden, shown at 480px */
.search-icon-btn {
    display: none;
}

@media (max-width: 480px) {
    .search-container {
        display: none;
    }
    
    .search-container.active-popup {
        display: flex;
    }
    
    .navbar-left {
        flex: 0 0 auto;
        gap: 2px;
    }
    
    .navbar-subscribe {
        flex: 0 0 auto;
        margin: 0 2px;
    }
    
    .navbar-right {
        flex: 0 0 auto;
        gap: 2px;
    }
    
    .search-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: var(--text-light);
        cursor: pointer;
        padding: 0;
        transition: all 0.2s ease;
        border-radius: 50%;
        flex-shrink: 0;
        flex: 0 0 auto;
        margin: 0 2px;
    }
    
    .search-icon-btn:hover {
        color: var(--accent-color);
        background: rgba(14, 165, 233, 0.08);
    }
    
    .search-icon-btn svg {
        width: 20px;
        height: 20px;
    }
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.search-box-wrapper:focus-within {
    background: var(--bg-white);
    border-color: var(--accent-color);
    box-shadow: 0 1px 8px rgba(14, 165, 233, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    width: 100%;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.search-btn:hover {
    color: var(--accent-color);
    background: rgba(14, 165, 233, 0.08);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
    margin-right: 4px;
}

.search-clear-btn:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.search-clear-btn svg {
    width: 18px;
    height: 18px;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1100;
}

.search-results-dropdown.show {
    display: block !important;
}

.search-results-content {
    padding: 8px 0;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    text-decoration: none;
    color: inherit;
}

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

.search-result-item:hover {
    background-color: var(--bg-light);
}

.search-result-image {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--border-color);
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: break-word;
}

.search-result-title mark {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 700;
    color: inherit;
}

.search-result-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-result-category {
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--accent-color);
    border-radius: 3px;
    font-weight: 500;
}

.search-result-date {
    font-size: 0.75rem;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-light);
    text-align: center;
}

.search-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== NAVBAR SUBSCRIBE COMPONENT ==================== */
.navbar-subscribe {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 4px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    min-height: 40px;
    min-width: 44px;
    justify-content: center;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.subscribe-btn i {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.subscribe-text {
    display: inline;
}

.nav-category-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

.nav-primary-link,
.nav-category-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-primary-link {
    padding: 8px 14px;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-primary-link:hover,
.nav-primary-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.nav-category-link {
    padding: 8px 14px;
    border-bottom: 3px solid transparent;
    position: relative;
    border-radius: 4px;
}

.nav-category-link[data-category="politics"] {
    --category-color: #dc2626;
}

.nav-category-link[data-category="sports"] {
    --category-color: #059669;
}

.nav-category-link[data-category="tech"] {
    --category-color: #0ea5e9;
}

.nav-category-link[data-category="health"] {
    --category-color: #06b6d4;
}

.nav-category-link[data-category="entertainment"] {
    --category-color: #a855f7;
}

.nav-category-link[data-category="culture"] {
    --category-color: #f97316;
}

.nav-category-link[data-category="tourism"] {
    --category-color: #8b5cf6;
}

.nav-category-link[data-category="economy"] {
    --category-color: #ec4899;
}

.nav-category-link[data-category="environment"] {
    --category-color: #22c55e;
}

.nav-category-link[data-category="religion"] {
    --category-color: #6366f1;
}

.nav-category-link[data-category="diaspora"] {
    --category-color: #14b8a6;
}

.nav-category-link[data-category]:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--category-color, var(--accent-color));
}

.nav-category-link[data-category].active {
    background-color: var(--category-color, var(--accent-color));
    color: white;
    border-bottom-color: transparent;
}

/* ==================== NAV DROPDOWN MENU ==================== */
.nav-dropdown {
    position: relative;
    list-style: none;
}

.nav-dropdown-toggle {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-bottom: 3px solid transparent;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
}

.nav-dropdown-toggle:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
}

.nav-dropdown-toggle.active {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--accent-color);
}

.dropdown-icon {
    font-size: 0.7rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px 0;
    min-width: 160px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
}

.nav-dropdown-menu.active {
    max-height: 300px;
    opacity: 1;
}

.nav-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu .nav-category-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0;
    border: none;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.nav-dropdown-menu .nav-category-link:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--category-color, var(--accent-color));
    padding-left: 24px;
}

.nav-dropdown-menu .nav-category-link.active {
    background-color: var(--category-color, var(--accent-color));
    color: white;
    padding-left: 20px;
}

.navbar-divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

/* ==================== HAMBURGER MENU - Mobile Navigation ==================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    gap: 4px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
    transition: var(--transition);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger animation - active state */
.hamburger-menu.active .hamburger-line-1 {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line-2 {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line-3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Responsive - Show hamburger and adjust nav */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .search-icon-btn {
        display: none;
    }
    
    .navbar-container {
        padding: 6px 8px;
        height: auto;
        min-height: 48px;
        gap: 4px;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }

    .navbar-left {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
        min-width: fit-content;
    }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
        min-width: fit-content;
    }
    
    .nav-primary-links {
        position: absolute;
        gap: 0;
        flex-direction: column;
        width: 100%;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 251, 0.97) 100%);
        border-top: 3px solid var(--accent-color);
        margin: 0;
        padding: 15px 0;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        list-style: none;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        z-index: 999;
    }
    
    .nav-primary-links::-webkit-scrollbar {
        width: 8px;
    }
    
    .nav-primary-links::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-primary-links::-webkit-scrollbar-thumb {
        background: rgba(14, 165, 233, 0.25);
        border-radius: 4px;
    }
    
    .nav-primary-links::-webkit-scrollbar-thumb:hover {
        background: rgba(14, 165, 233, 0.5);
    }
    
    .nav-primary-links.active {
        max-height: 400px;
        opacity: 1;
    }
    
    .nav-primary-links li {
        width: 100%;
    }
    
    .nav-primary-link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(14, 165, 233, 0.1);
        border-radius: 0;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }
    
    .nav-primary-link:hover {
        background-color: rgba(14, 165, 233, 0.08);
        color: var(--accent-color);
        padding-left: 30px;
    }
    
    .nav-primary-link.active {
        background-color: rgba(14, 165, 233, 0.15);
        color: var(--accent-color);
        border-left: 4px solid var(--accent-color);
        padding-left: 24px;
        font-weight: 600;
    }
    
    .navbar-secondary {
        display: none;
    }
    
    .navbar-secondary.active {
        display: block;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-category-links {
        max-width: 100%;
        padding: 15px 0;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-category-links li {
        width: 100%;
    }
    
    .nav-category-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-bottom: 3px solid transparent;
        border-radius: 0;
    }
    
    .nav-category-link:hover {
        background-color: rgba(14, 165, 233, 0.08);
    }
    
    .nav-category-link.active {
        background-color: rgba(14, 165, 233, 0.15);
        border-left: 3px solid var(--category-color, var(--accent-color));
        padding-left: 17px;
    }
    
    /* Mobile dropdown menu styles */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        text-align: left;
        font-size: 0.95rem;
    }
    
    .nav-dropdown-toggle:hover,
    .nav-dropdown-toggle.active {
        background-color: rgba(14, 165, 233, 0.08);
        border-left: 3px solid var(--accent-color);
        padding-left: 17px;
    }
    
    .nav-dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        min-width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-dropdown-menu.active {
        max-height: 200px;
        opacity: 1;
    }
    
    .nav-dropdown-menu .nav-category-link {
        padding: 12px 20px 12px 40px;
        border-radius: 0;
        background-color: rgba(14, 165, 233, 0.05);
    }
    
    .nav-dropdown-menu .nav-category-link:hover {
        background-color: rgba(14, 165, 233, 0.1);
        padding-left: 44px;
    }
    
    .nav-dropdown-menu .nav-category-link.active {
        background-color: rgba(14, 165, 233, 0.15);
        border-left: 3px solid var(--category-color, var(--accent-color));
        padding-left: 37px;
    }

    /* Mobile Search Bar */
    .search-box-wrapper {
        border-radius: 20px;
        padding: 0 10px;
    }

    .search-input {
        font-size: 14px;
        padding: 7px 0;
    }

    .search-results-dropdown {
        max-height: 350px;
        border-radius: 0 0 12px 12px;
    }

    /* Mobile behavior for Subscribe button */
    .navbar-subscribe {
        flex: 0 0 auto;
        margin: 0;
    }

    .subscribe-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: auto;
        gap: 4px;
    }

    /* On very small screens hide the text to save space and keep icon */
    @media (max-width: 480px) {
        .navbar-container {
            min-height: 44px;
            padding: 3px 3px;
            gap: 1px;
            flex-wrap: nowrap;
            justify-content: flex-start;
            align-items: center;
        }
        
        .navbar-left {
            gap: 2px;
            min-width: auto;
            flex: 0 0 auto;
        }
        
        .navbar-right {
            gap: 2px;
            min-width: auto;
            flex: 0 0 auto;
        }
        
        .navbar-subscribe {
            flex: 0 0 auto;
            margin: 0 2px;
            min-width: auto;
        }
        
        .search-icon-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border: none;
            background: transparent;
            color: var(--text-light);
            cursor: pointer;
            padding: 0;
            transition: all 0.2s ease;
            border-radius: 50%;
            flex-shrink: 0;
            flex: 0 0 auto;
            margin: 0 2px;
        }
        
        .search-icon-btn:hover {
            color: var(--accent-color);
            background: rgba(14, 165, 233, 0.08);
        }
        
        .search-icon-btn svg {
            width: 20px;
            height: 20px;
        }
        
        .search-container {
            display: none;
            min-width: 60px;
            max-width: 100px;
        }
        
        .search-box-wrapper {
            padding: 0 8px;
        }
        
        .search-input {
            font-size: 12px;
            padding: 6px 0;
        }
        
        .search-btn {
            width: 28px;
            height: 28px;
        }
        
        .search-btn svg {
            width: 16px;
            height: 16px;
        }
        
        .subscribe-text {
            display: none;
        }
        
        .subscribe-btn {
            padding: 5px;
            min-width: 34px;
            min-height: 34px;
            font-size: 0.75rem;
            flex-shrink: 0;
        }
        
        .subscribe-btn i {
            font-size: 0.85rem;
        }
        
        .hamburger-menu {
            width: 34px;
            height: 34px;
            padding: 4px;
            flex-shrink: 0;
            min-width: 34px;
        }
        
        .nav-primary-links {
            position: absolute;
            width: 100%;
            top: 100%;
            left: 0;
            right: 0;
            gap: 0;
            flex-direction: column;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 249, 250, 0.99) 100%);
            border-top: 2px solid var(--accent-color);
            margin: 0;
            padding: 8px 0;
            max-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            list-style: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            z-index: 999;
        }
        
        .nav-primary-links::-webkit-scrollbar {
            width: 6px;
        }
        
        .nav-primary-links::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .nav-primary-links::-webkit-scrollbar-thumb {
            background: rgba(14, 165, 233, 0.3);
            border-radius: 3px;
        }
        
        .nav-primary-links::-webkit-scrollbar-thumb:hover {
            background: rgba(14, 165, 233, 0.6);
        }
        
        .nav-primary-links.active {
            max-height: 400px;
            opacity: 1;
        }
        
        .nav-primary-links li {
            width: 100%;
            margin: 0;
            padding: 0;
        }
        
        .nav-primary-link {
            display: block;
            padding: 10px 20px;
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            border: none;
            transition: all 0.2s ease;
            background-color: transparent;
        }
        
        .nav-primary-link:hover {
            background-color: rgba(14, 165, 233, 0.08);
            color: var(--accent-color);
            padding-left: 24px;
        }
        
        .nav-primary-link.active {
            background-color: rgba(14, 165, 233, 0.12);
            color: var(--accent-color);
            font-weight: 600;
            border-left: 4px solid var(--accent-color);
            padding-left: 20px;
        }
        
        .hamburger-line {
            width: 18px;
            height: 2px;
        }
    }
}

/* ==================== MAIN CONTENT & CONTAINER ==================== */
.main-content {
    background: var(--bg-white);
    min-height: calc(100vh - 400px);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px 5px;
}

@media (max-width: 768px) {
    .main-content {
        min-height: auto;
    }
}

/* ==================== NEW CONTENT WRAPPER & LAYOUT ==================== */
.content-wrapper-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.right-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* ==================== CONTENT ROWS ==================== */
.content-row {
    background: var(--bg-white);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.content-row.row-1 {
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-row.row-2 {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.content-row.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.content-row.row-4 {
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.row-column {
    padding: 15px;
    border-right: 1px solid var(--border-color);
}

.row-column:last-child {
    border-right: none;
}

.row-column.full-width {
    grid-column: 1 / -1;
    border-right: none;
    padding: 20px;
}

.row-column.column-1 {
    border-right: 1px solid var(--border-color);
}

.row-column.column-2 {
    border-right: none;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.section-title h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

/* ==================== TRENDING SLIDESHOW ==================== */
.trending-slideshow {
    position: relative;
    height: 350px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: var(--shadow);
}

.slideshow-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slideshow-item.active {
    opacity: 1;
}

.slideshow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption overlay for trending slideshow */
.slideshow-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slideshow-title {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Label badge base (shared) */
.label-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    z-index: 15;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Trending: red small rounded badge */
.label-trending {
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 5px 9px;
}

/* Pinned/Breaking: bright yellow/orange, more prominent */
.label-pinned {
    background: #ffb020; /* bright yellow/orange */
    color: #111827; /* near-black for contrast */
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    top: 10px;
    left: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

/* Featured: dark blue/purple, slightly larger */
.label-featured {
    background: #3730a3; /* indigo-700 */
    color: #ffffff;
    font-size: 0.9rem;
    padding: 7px 12px;
    border-radius: 999px;
    top: 12px;
    left: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

@media (max-width: 640px) {
    .label-badge { top: 10px; left: 10px; font-size: 0.68rem; padding: 5px 8px; }
    .label-pinned { font-size: 0.78rem; padding: 6px 10px; }
    .label-featured { font-size: 0.78rem; padding: 6px 10px; }
}

/* Utility: screen-reader only text (visible to assistive tech, hidden visually) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ensure containers used for pinned/featured allow absolute badge placement */
.pinned-news-box,
.featured-sidebar-box {
    position: relative;
    display: block;
    overflow: hidden;
}

.pinned-news-box img,
.featured-sidebar-box img {
    display: block;
    width: 100%;
    height: auto;
}

.slideshow-meta {
    font-size: 0.85rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.9);
}

.slideshow-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

/* Prev/Next buttons for trending slideshow */
.slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.slideshow-track {
    width: 100%;
    height: 100%;
}

.slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 20;
}

.slideshow-button:hover:not(:disabled) {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.05);
}

.slideshow-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

@media (max-width: 640px) {
    .slideshow-button { width: 36px; height: 36px; }
    .slideshow-title { font-size: 1rem; }
}

.slideshow-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slideshow-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ==================== PINNED NEWS SLIDESHOW ==================== */
.pinned-slideshow-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.pinned-slideshow-item.active {
    opacity: 1;
}

.pinned-slideshow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption overlay for pinned slideshow */
.pinned-slideshow-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.pinned-slideshow-title {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.pinned-slideshow-meta {
    font-size: 0.8rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.9);
}

/* Pinned slideshow badge styling */
.pinned-slideshow-item .label-pinned {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 25;
}

/* Prev/Next buttons for pinned slideshow */
.pinned-slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.pinned-slideshow-track {
    width: 100%;
    height: 100%;
}

.pinned-slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 20;
}

.pinned-slideshow-button:hover:not(:disabled) {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.05);
}

.pinned-slideshow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pinned-slideshow-prev { left: 10px; }
.pinned-slideshow-next { right: 10px; }

@media (max-width: 640px) {
    .pinned-slideshow-button { width: 36px; height: 36px; }
    .pinned-slideshow-title { font-size: 0.95rem; }
}

.pinned-slideshow-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pinned-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.pinned-slideshow-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ==================== TOPIC NEWS SLIDESHOW ==================== */
.topic-news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
}

.topic-news-slide.active {
    opacity: 1;
}

.topic-news-slide:hover {
    transform: scale(1.02);
}

.topic-news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Topic news content positioned at bottom of slide */
.topic-news-slide .topic-news-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 15px;
    width: 100%;
    text-decoration: none;
}

.topic-news-slide .topic-news-content h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.topic-news-slide .topic-news-content .meta {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 6px;
}

/* Slideshow container for topic news */
.topic-slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.topic-slideshow-track {
    width: 100%;
    height: 100%;
}

/* Prev/Next buttons for topic slideshow */
.topic-slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 20;
}

.topic-slideshow-button:hover:not(:disabled) {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.05);
}

.topic-slideshow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.topic-slideshow-prev { left: 10px; }
.topic-slideshow-next { right: 10px; }

@media (max-width: 640px) {
    .topic-slideshow-button { width: 36px; height: 36px; }
}

/* Dot indicators for topic slideshow */
.topic-slideshow-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.topic-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.topic-slideshow-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ==================== VIDEO NEWS SLIDESHOW ==================== */
.video-slideshow-inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    height: 280px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-slideshow-track {
    width: 100%;
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    background: #000;
}

.video-news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    z-index: 0;
    padding-bottom: 0;
    top: 0;
    left: 0;
}

.video-news-slide.active {
    opacity: 1;
    display: flex;
    z-index: 1;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.video-player {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

.video-details-container {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-height: 75px;
    overflow-y: auto;
    width: 100%;
}

.video-title {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.video-meta-info {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #666;
}

.video-date,
.video-views {
    display: flex;
    align-items: center;
}

.video-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    max-height: 50px;
    overflow-y: auto;
    padding-right: 5px;
}

.video-description::-webkit-scrollbar {
    width: 4px;
}

.video-description::-webkit-scrollbar-track {
    background: transparent;
}

.video-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.video-description::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Prev/Next buttons for video slideshow */
.video-slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 50;
    flex-shrink: 0;
}

.video-slideshow-prev {
    left: 12px;
}

.video-slideshow-next {
    right: 12px;
}

.empty-message {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.95rem;
}

.video-slideshow-button:hover:not(:disabled) {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.video-slideshow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .video-slideshow-button { width: 36px; height: 36px; }
}

/* Dot indicators for video slideshow */
.video-slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 10px;
}

.video-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-slideshow-dot.active {
    background: #333;
    transform: scale(1.3);
}

/* ==================== FEATURED NEWS SLIDESHOW ==================== */
.featured-news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
}

.featured-news-slide.active {
    opacity: 1;
}

.featured-news-slide:hover {
    transform: scale(1.02);
}

.featured-news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Featured news content positioned at bottom of slide */
.featured-news-slide .featured-sidebar-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 20px;
    width: 100%;
    text-decoration: none;
}

.featured-news-slide .featured-sidebar-content h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.featured-news-slide .featured-sidebar-content .meta {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 6px;
}

.featured-news-slide .label-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 25;
}

/* Slideshow container for featured news */
.featured-slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.featured-slideshow-track {
    width: 100%;
    height: 100%;
}

/* Prev/Next buttons for featured slideshow */
.featured-slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 20;
}

.featured-slideshow-button:hover:not(:disabled) {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.05);
}

.featured-slideshow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.featured-slideshow-prev { left: 10px; }
.featured-slideshow-next { right: 10px; }

@media (max-width: 640px) {
    .featured-slideshow-button { width: 36px; height: 36px; }
}

/* Dot indicators for featured slideshow */
.featured-slideshow-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.featured-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.featured-slideshow-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ==================== NEWS GRIDS ==================== */
.news-grid-large {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-grid-large .article-card-mini {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.news-grid-large .article-card-mini:hover {
    background: var(--border-color);
    transform: translateX(5px);
}

.news-grid-large .article-card-mini img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-grid-large .article-card-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-grid-large .article-card-mini h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.news-grid-large .article-card-mini .meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* ==================== RECENT NEWS SLIDESHOW ==================== */
.recent-news-slideshow {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recent-news-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.recent-news-slide {
    flex: 0 0 100%;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.recent-news-slide.active {
    opacity: 1;
    display: block;
}

.recent-news-slide-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-news-card {
    display: flex !important;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    height: 114px;
}

.recent-news-card:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.recent-news-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.recent-news-card .article-card-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recent-news-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-news-card .meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Modern Recent News Navigation Buttons */
.recent-news-nav-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    align-self: center;
}

.recent-news-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.recent-news-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--bg-white);
    font-weight: 700;
}

.recent-news-nav-btn:hover:not(:disabled)::before {
    left: 0;
}

.recent-news-nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.recent-news-nav-btn:disabled {
    background: var(--border-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--text-light);
}

.recent-news-nav-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

/* Indicators for Recent News Slideshow */
.recent-news-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 8px;
}

.recent-news-indicators .carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
    border: none;
    padding: 0;
    min-width: 6px;
    min-height: 6px;
}

.recent-news-indicators .carousel-indicator:hover:not(.active) {
    background: var(--text-light);
}

.recent-news-indicators .carousel-indicator.active {
    background: var(--secondary-color);
    width: 6px;
}

/* ==================== ANNOUNCEMENTS SLIDESHOW ==================== */
.announcements-slideshow {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.announcements-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.announcements-slide {
    flex: 0 0 100%;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.announcements-slide.active {
    opacity: 1;
    display: block;
}

.announcements-slide-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcements-card {
    display: flex !important;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    height: 114px;
}

.announcements-card:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.announcements-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.announcements-card .article-card-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.announcements-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcements-card .meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Modern Announcements Navigation Buttons */
.announcements-nav-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    align-self: center;
}

.announcements-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.announcements-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--bg-white);
    font-weight: 700;
}

.announcements-nav-btn:hover:not(:disabled)::before {
    left: 0;
}

.announcements-nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.announcements-nav-btn:disabled {
    background: var(--border-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--text-light);
}

.announcements-nav-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

/* Indicators for Announcements Slideshow */
.announcements-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 8px;
}

.announcements-indicators .carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
    border: none;
    padding: 0;
    min-width: 6px;
    min-height: 6px;
}

.announcements-indicators .carousel-indicator:hover:not(.active) {
    background: var(--text-light);
}

.announcements-indicators .carousel-indicator.active {
    background: var(--secondary-color);
    width: 6px;
}

/* ==================== FILMS SLIDESHOW ==================== */
.films-slideshow {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.films-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.films-slide {
    flex: 0 0 100%;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.films-slide.active {
    opacity: 1;
    display: block;
}

.films-slide-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.films-card {
    display: flex !important;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    height: 114px;
}

.films-card:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.films-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.films-card .article-card-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.films-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.films-card .meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Films Slide Styling - Matching General News Design */
.films-slide {
    flex: 0 0 100%;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.films-slide.active {
    opacity: 1;
    display: block;
}

.films-slide-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Modern Films Navigation Buttons */
.films-nav-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    align-self: center;
}

.films-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.films-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--bg-white);
    font-weight: 700;
}

.films-nav-btn:hover:not(:disabled)::before {
    left: 0;
}

.films-nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.films-nav-btn:disabled {
    background: var(--border-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--text-light);
}

.films-nav-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

/* Indicators for Films Slideshow */
.films-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 8px;
}

.films-indicators .carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
    border: none;
    padding: 0;
    min-width: 6px;
    min-height: 6px;
}

.films-indicators .carousel-indicator:hover:not(.active) {
    background: var(--text-light);
}

.films-indicators .carousel-indicator.active {
    background: var(--secondary-color);
    width: 6px;
}

/* ==================== GENERAL NEWS SLIDESHOW ==================== */
.general-news-slideshow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}


.general-news-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.general-news-slide {
    flex: 0 0 100%;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.general-news-slide.active {
    opacity: 1;
    display: block;
}

.general-news-slide-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.general-news-card {
    display: flex !important;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    height: 114px;
}

.general-news-card:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.general-news-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.general-news-card .article-card-mini-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.general-news-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.general-news-card .meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Modern General News Navigation Buttons - Matching Recent News */
.general-news-nav-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    align-self: center;
}

.general-news-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.general-news-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--bg-white);
    font-weight: 700;
}

.general-news-nav-btn:hover:not(:disabled)::before {
    left: 0;
}

.general-news-nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.general-news-nav-btn:disabled {
    background: var(--border-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--text-light);
}

.general-news-nav-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

/* Indicators for General News Slideshow */
.general-news-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 8px;
}

.general-news-indicators .carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
    border: none;
    padding: 0;
    min-width: 6px;
    min-height: 6px;
}

.general-news-indicators .carousel-indicator:hover:not(.active) {
    background: var(--text-light);
}

.general-news-indicators .carousel-indicator.active {
    background: var(--secondary-color);
    width: 6px;
}

/* Small Grid (Announcements, Films) */
.news-grid-small {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-grid-small .article-card-mini {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.news-grid-small .article-card-mini:hover {
    background: #e5e7eb;
}

.news-grid-small .article-card-mini h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 0 5px 0;
}

.news-grid-small .article-card-mini .meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* ==================== CAROUSEL STYLES (Business News) ==================== */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    width: 100%;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 300px;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-slides .article-card-compact {
    flex: 0 0 calc(33.333% - 13.33px);
    min-width: 0;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    margin-right: 0;
    display: flex;
    flex-direction: column;
}

.carousel-slides .article-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.carousel-slides .article-card-compact img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.carousel-slides .article-card-compact-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-slides .article-card-compact h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.carousel-button {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-button:hover:not(:disabled) {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.carousel-button svg {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-indicator:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Regular Grid (Business News) */
.news-grid-regular {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.news-grid-regular .article-card-compact {
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-grid-regular .article-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-grid-regular .article-card-compact img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-grid-regular .article-card-compact-content {
    padding: 12px;
}

.news-grid-regular .article-card-compact h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* ==================== SIDEBAR STYLES ==================== */
.sidebar-row {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-row.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
}

.sidebar-row.row-2 > .sidebar-column {
    padding: 0;
}

.sidebar-column {
    background: var(--bg-white);
    border-radius: 4px;
}

.sidebar-column .section-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.sidebar-column .section-title h2 {
    font-size: 1.05rem;
}

/* ==================== PINNED NEWS BOX ==================== */
.pinned-news-box {
    position: relative;
    aspect-ratio: 1;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
}

.pinned-news-box:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.pinned-news-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.pinned-news-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 25px;
    width: 100%;
    text-decoration: none;
}

.pinned-news-content h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.pinned-news-content .meta {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* ==================== NEWS GRID SIDEBAR ==================== */
.news-grid-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-grid-sidebar .article-card-sidebar {
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    height: 200px;
    display: flex;
    position: relative;
    pointer-events: auto !important;
}

.news-grid-sidebar .article-card-sidebar:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news-grid-sidebar .article-card-sidebar img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    top: 0;
    left: 0;
}

.news-grid-sidebar .article-card-sidebar-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.65) 100%);
    color: #fff;
    z-index: 5;
}

.news-grid-sidebar .article-card-sidebar h4 {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.news-grid-sidebar .article-card-sidebar .meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
    margin: 4px 0 0 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ==================== SIDEBAR ROW 2 CAROUSEL - Sports & Entertainment ==================== */
.sidebar-row-carousel-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.sidebar-row-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding-bottom: 0;
}

.sidebar-row-carousel-slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    margin: 0;
    padding: 0;
}

.sidebar-row-carousel-slides .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sidebar-row-carousel-slides .carousel-slide.carousel-slide-dual {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
}

.sidebar-row-carousel-slides .carousel-slide.carousel-slide-dual .sidebar-column {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.sidebar-row-carousel-container .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.852);
    color: var(--bg-white);
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 100 !important;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    min-width: 32px;
    min-height: 32px;
    pointer-events: auto !important;
    -webkit-user-select: none;
    user-select: none;
}

.sidebar-row-carousel-container .carousel-button-prev {
    left: 10px;
}

.sidebar-row-carousel-container .carousel-button-next {
    right: 10px;
}

.sidebar-row-carousel-container .carousel-button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.sidebar-row-carousel-container .carousel-button:disabled {
    background: rgba(0, 0, 0, 0.35);
    cursor: not-allowed;
}

.sidebar-row-carousel-container .carousel-button svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

@media (max-width: 640px) {
    .sidebar-row-carousel-container .carousel-button {
        width: 28px;
        height: 28px;
        background: rgba(0, 0, 0, 0.65);
    }
    
    .sidebar-row-carousel-container .carousel-button svg {
        width: 12px;
        height: 12px;
        stroke-width: 3;
    }
    
    .sidebar-row-carousel-wrapper {
        padding-bottom: 35px;
    }
    
    .sidebar-row-carousel-wrapper .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .sidebar-row-carousel-wrapper .carousel-indicators .indicator {
        width: 6px;
        height: 6px;
    }
}

.sidebar-row-carousel-wrapper + .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.sidebar-row-carousel-wrapper .carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 20px;
}

.sidebar-row-carousel-wrapper .carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.sidebar-row-carousel-wrapper .carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.9);
}

.sidebar-row-carousel-wrapper .carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Prevent text selection during carousel dragging */
.sidebar-row-carousel-wrapper.is-dragging {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow pointer events on interactive elements even during dragging */
.sidebar-row-carousel-wrapper.is-dragging .carousel-button,
.sidebar-row-carousel-wrapper.is-dragging .article-card-sidebar,
.sidebar-row-carousel-wrapper.is-dragging .carousel-indicators,
.sidebar-row-carousel-wrapper.is-dragging .indicator {
    pointer-events: auto !important;
}

/* ==================== CAROUSEL INDICATORS - Global ==================== */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-indicators .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicators .indicator.active {
    background: var(--accent-color);
    width: 20px;
    border-radius: 3px;
}

/* ==================== SIDEBAR ROW 3 - VIDEO & TOPIC NEWS ==================== */
.sidebar-row.row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.sidebar-row.row-3 .section-title {
    padding: 20px 0 12px 0;
}

.sidebar-column-rect {
    background: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-column-rect .section-title {
    padding: 12px 15px;
    margin: 0;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-column-rect .section-title h2 {
    font-size: 1.05rem;
}

/* Clean Alignment for Politics News Card */
.sidebar-row.row-5 {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.sidebar-row.row-5 .section-title {
    padding: 20px 0 12px 0;
}

.sidebar-row.row-5 .topic-news-box {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    height: 200px;
    background: var(--bg-light);
}

.video-container {
    position: relative;
    width: calc(100% - 24px);
    height: 200px;
    margin: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.topic-news-box {
    position: relative;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 12px;
}

.topic-news-box:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.topic-news-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.topic-news-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 15px;
    width: 100%;
    text-decoration: none;
}

.topic-news-content h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.topic-news-content .meta {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 6px;
}

.featured-sidebar-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 20px;
    width: 100%;
    text-decoration: none;
}

.featured-sidebar-content h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.featured-sidebar-content .meta {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 6px;
}

/* ==================== FEATURED SIDEBAR BOX ==================== */
.featured-sidebar-box {
    position: relative;
    aspect-ratio: 4/2.6;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
}

.featured-sidebar-box:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.featured-sidebar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==================== AD BANNER SMALL ==================== */
.ad-banner-small {
    width: 160px;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.ad-banner-small2 {
    width: 100%;
    height: 522px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.ad-banner-small2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-banner-small2 a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Advertisement 2 Row - Clean Alignment */
.sidebar-row.row-4-ad {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.sidebar-row.row-4-ad .section-title {
    padding: 20px 0 12px 0;
}

.ad-banner-small:hover {
    transform: scale(1.01);
}

.ad-banner-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-banner-small a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== FEATURED SECTION (kept for compatibility) ==================== */
.featured-section {
    display: none;
}

.featured-article {
    display: none;
}

/* ==================== ARTICLES GRID ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 5px;
}

/* Responsive grid adjustments */
@media (max-width: 1600px) {
    .articles-grid {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
    }
}

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

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.article-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-card-content {
    padding: 10px 15px;
}

.article-card h3 {
    font-size: 1rem;
    margin: 5px 0;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-card .meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.article-card .excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== CATEGORY & FILTERS ==================== */
.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Category Page Card with Badge Overlay */
.article-card.category-page-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.article-card.category-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.category-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 8px 14px;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.article-card.category-page-card:hover .category-badge-overlay {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ==================== SIDEBAR (Original - Kept for Other Pages) ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.sidebar-ad,
.sidebar-widget {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-widget {
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    /* Hide scrollbar while maintaining scroll functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.sidebar-ad h3,
.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.ad-box {
    text-align: center;
    width: 100%;
    max-width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.ad-box img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    object-fit: contain;
    max-height: 400px;
}

.ad-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ad-box img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* ==================== NEWSLETTER FORM ==================== */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.newsletter-form button {
    padding: 12px 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #0284c7;
}

.form-message {
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

/* ==================== SINGLE ARTICLE PAGE ==================== */
.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    align-items: center;
    margin-bottom: 30px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    width: 100%;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.article-body iframe {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: none;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.15rem;
}

/* ==================== BODY ADS ==================== */
.body-ad {
    background: var(--bg-light);
    padding: 30px 20px;
    margin: 50px 0;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--border-color);
}

.body-ad img,
.body-ad iframe {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
}

/* ==================== RELATED NEWS ITEMS ==================== */
.related-news-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
    background: var(--bg-white);
}

.related-news-item:hover {
    background-color: var(--bg-light);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-news-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

.related-news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-news-title {
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-item:hover .related-news-title {
    color: var(--accent-color);
}

.related-news-author {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==================== ARTICLE PAGE LAYOUT ==================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.news-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 0;
}

/* ==================== PAGE HEADERS & COMMON SECTIONS ==================== */
.page-header {
    margin-bottom: 50px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* ==================== ABOUT US PAGE ==================== */
.about-section {
    margin-bottom: 50px;
    line-height: 1.8;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-section p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.coverage-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.coverage-item:hover {
    box-shadow: var(--shadow-hover);
}

.coverage-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.coverage-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.inline-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ==================== CONTACT PAGE ==================== */
.contact-info-section {
    margin-bottom: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-card p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
}

.info-card small {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

/* ==================== CONTACT FORM ==================== */
.contact-form-section {
    margin-bottom: 50px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    grid-column: 1 / -1;
}

.contact-form .form-group:nth-child(n+3) {
    grid-column: 1 / -1;
}

.submit-button {
    grid-column: 1 / -1;
    padding: 14px 30px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.submit-button:active {
    transform: translateY(0);
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.faq-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* ==================== SOCIAL SECTION ==================== */
.social-section {
    margin-bottom: 50px;
    text-align: center;
}

.social-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.social-section > p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.social-button.twitter {
    background: #1DA1F2;
}

.social-button.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.social-button.instagram {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.social-button.instagram:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.social-button.facebook {
    background: #1877F2;
}

.social-button.facebook:hover {
    background: #0a66c2;
    transform: translateY(-2px);
}

.social-button.linkedin {
    background: #0077B5;
}

.social-button.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

/* ==================== SIDEBAR WIDGETS ==================== */
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.facts-list li:last-child {
    border-bottom: none;
}

.facts-list strong {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details strong {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary-color);
}

/* ==================== SUBSCRIPTION & CONTACT FORMS ==================== */
.subscription-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 40px;
    border-radius: 8px;
    color: white;
    margin: 50px 0;
    text-align: center;
}

.subscription-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.subscription-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.form-group {
    max-width: 500px;
    margin: 0 auto;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.form-group button {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-group button:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row input {
    margin-bottom: 0;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2439 100%);
    color: #e5e7eb;
    padding: 60px 20px 0;
    margin-top: 0px;
    font-size: 0.95rem;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Main Content Grid */
.footer-main {
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Logo & Brand Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d5db;
    margin: 0;
}

/* Contact Information */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #d1d5db;
    transition: var(--transition);
}

.contact-item i {
    color: #ff8c00;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item:hover {
    color: white;
    transform: translateX(4px);
}

/* Column Titles */
.footer-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ff8c00;
    padding-bottom: 10px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #ff8c00;
    padding-left: 8px;
}

.footer-links a::before {
    content: '▸';
    margin-right: 8px;
    opacity: 0;
    transition: var(--transition);
    color: #ff8c00;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
}

.footer-social-link:hover {
    background: #ff8c00;
    color: white;
    border-color: #ff8c00;
    transform: translateY(-4px);
    text-decoration: none !important;
}

.footer-social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.footer-social-link.instagram:hover {
    background: #e4405f;
    border-color: #e4405f;
}

.footer-social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-link.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

/* Newsletter Prompt */
.footer-newsletter-prompt {
    font-size: 0.85rem;
    color: #d1d5db;
    margin: 0;
    line-height: 1.5;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1px 0;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0 20px;
    background: rgba(18, 17, 17, 0.021);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #d1d5db;
    margin: 0;
    font-weight: 500;
}

.footer-developed {
    font-size: 0.9rem;
    color: #d1d5db;
    margin: 0;
}

.footer-developed a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-developed a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-bottom-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-bottom-links a:hover {
    color: #ff8c00;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    padding: 0;
    min-width: 48px;
    min-height: 48px;
}

.back-to-top:hover {
    background: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==================== MOBILE MENU BUTTON ==================== */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.mobile-menu-button.active {
    color: var(--accent-color);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .content-wrapper-main {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }

    .right-section {
        gap: 25px;
    }

    .sidebar-row.row-2 {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-row.row-2 > .sidebar-column:last-child {
        grid-column: auto;
    }

    .news-grid-regular {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer responsive styles */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 25px 20px;
    }

    .content-wrapper-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-section {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .sidebar-row {
        grid-column: span 1;
    }

    .sidebar-row.row-2 {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sidebar-row.row-2 > .sidebar-column:last-child {
        grid-column: auto;
    }

    .sidebar-row.row-3 {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
    }

    .sidebar-row.row-4 {
        grid-column: 1 / -1;
    }

    .sidebar-row.row-1 {
        grid-column: 1 / -1;
    }

    .content-row.row-2,
    .content-row.row-3 {
        grid-template-columns: 1fr;
    }

    .row-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .row-column:last-child {
        border-bottom: none;
    }

    .trending-slideshow {
        height: 300px;
    }

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

    .featured-article {
        height: 350px;
    }

    .featured-overlay h1 {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    /* Footer responsive styles - Tablet */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .footer-social-links {
        justify-content: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Navigation for tablet */
    .nav-primary-links,
    .nav-category-links {
        gap: 1rem;
    }

    .nav-primary-link,
    .nav-category-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .navbar-container {
        padding: 0 15px;
    }

    /* Header controls for tablet */
    .header-controls-wrapper {
        gap: 15px;
        padding: 8px 15px;
    }

    .controls-left-group {
        gap: 15px;
        font-size: 0.9rem;
    }

    .control-select {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .social-media-group {
        gap: 2px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    /* Banner cards for tablet */
    .banner-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .banner-card {
        height: 80px;
    }

    .ad-banner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ad-banner-grid-4col {
        grid-template-columns: 1fr 1fr;
    }

    .ad-before-navbar-grid {
        grid-template-columns: 1fr;
    }

    .ad-banner-unit {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-wrapper-main {
        gap: 20px;
    }

    .right-section {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .sidebar-row {
        grid-column: auto !important;
    }

    .sidebar-row.row-1 {
        grid-column: 1 / -1;
    }

    .sidebar-row.row-2 {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .sidebar-row.row-2 > .sidebar-column:last-child {
        grid-column: auto;
    }

    .sidebar-row.row-2 > .sidebar-column {
        padding: 12px;
    }

    .sidebar-row.row-3 {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .sidebar-row.row-4 {
        grid-column: 1 / -1;
    }

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

    .news-grid-large .article-card-mini {
        flex-direction: row;
        gap: 10px;
        padding: 10px;
    }

    .news-grid-large .article-card-mini img {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .row-column {
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .row-column:last-child {
        border-bottom: none;
    }

    .row-column.full-width {
        padding: 15px;
    }

    .trending-slideshow {
        height: 240px;
    }

    .pinned-news-box,
    .featured-sidebar-box {
        aspect-ratio: 4/3;
        min-height: 200px;
    }

    .ad-banner-small {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .section-title h2 {
        font-size: 1.05rem;
    }

    /* Carousel responsive styles */
    .carousel-container {
        gap: 10px;
    }

    .carousel-button {
        width: 38px;
        height: 38px;
    }

    .carousel-slides {
        height: 270px;
    }

    .carousel-slides .article-card-compact {
        flex: 0 0 calc(50% - 10px);
        min-width: 0;
    }

    .carousel-slides .article-card-compact img {
        height: 120px;
    }

    .carousel-slides .article-card-compact-content {
        padding: 10px;
    }

    .carousel-slides .article-card-compact h4 {
        font-size: 0.85rem;
    }

    /* Recent News Slideshow - Tablet Responsive */
    .recent-news-carousel-wrapper {
        gap: 3px;
    }

    .recent-news-nav-btn {
        width: 28px;
        height: 28px;
    }

    .recent-news-nav-btn svg {
        width: 15px;
        height: 15px;
    }

    .recent-news-card {
        padding: 10px !important;
    }

    .recent-news-card img {
        width: 70px !important;
        height: 70px !important;
    }

    .recent-news-card h4 {
        font-size: 0.9rem;
    }

    /* General News Slideshow - Tablet Responsive */
    .general-news-carousel-wrapper {
        gap: 7px;
    }

    .general-news-nav-btn {
        width: 28px;
        height: 28px;
    }

    .general-news-nav-btn svg {
        width: 15px;
        height: 15px;
    }

    .general-news-card {
        padding: 10px !important;
    }

    .general-news-card img {
        width: 70px !important;
        height: 70px !important;
    }

    .general-news-card h4 {
        font-size: 0.9rem;
    }

    .recent-news-card .meta {
        font-size: 0.7rem;
    }

    /* Header controls - Tablet */
    .header-controls-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 15px;
    }

    .controls-left-group {
        gap: 12px;
        width: 100%;
    }

    .language-selector-group,
    .time-display-group {
        font-size: 0.9rem;
    }

    .control-select {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .social-media-group {
        gap: 5px;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    /* Navigation for tablet */
    .navbar-container {
        padding: 0 12px;
        height: 65px;
        gap: 15px;
    }

    .logo-image {
        max-height: 60px;
    }

    .nav-primary-links {
        gap: 0.8rem;
    }

    .nav-primary-link {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .nav-category-links {
        padding: 8px 12px;
        gap: 0.8rem;
    }

    .nav-category-link {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    /* Banner cards for tablet */
    .banner-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .banner-card {
        height: 70px;
    }

    .ad-banner-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .ad-banner-unit {
        height: 70px;
    }

    .video-container {
        height: 180px;
        margin: 10px;
    }

    .topic-news-box {
        height: 180px;
        margin: 10px;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .subscription-section {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .subscription-section h2 {
        font-size: 1.5rem;
    }

    .form-group {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer responsive styles - Tablet */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-column {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column:nth-child(odd):last-child {
        border-bottom: none;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

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

    .footer-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 15px 10px;
    }

    .content-wrapper-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .left-section {
        gap: 20px;
    }

    .right-section {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }

    /* ==================== MOBILE SIDEBAR ROWS ==================== */
    .sidebar-row {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .sidebar-row.row-1 {
        grid-column: auto;
    }

    .sidebar-row.row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .sidebar-row.row-2 > .sidebar-column {
        padding: 15px;
        background: var(--bg-white);
        border-radius: 6px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
    }

    .sidebar-row.row-2 > .sidebar-column:last-child {
        grid-column: auto;
    }

    .sidebar-row.row-3 {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .sidebar-row.row-3 > .sidebar-column-rect {
        background: var(--bg-white);
        box-shadow: var(--shadow);
    }

    .sidebar-row.row-4 {
        grid-column: auto;
    }

    /* ==================== MOBILE BANNER CARDS ==================== */
    .banner-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .banner-card {
        height: 100px;
    }

    .ad-banner-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .ad-banner-grid-4col {
        grid-template-columns: 1fr;
    }

    .ad-before-navbar-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .ad-before-navbar-unit {
        height: 100px;
    }

    .ad-banner-unit {
        height: 100px;
    }

    /* ==================== MOBILE NAVIGATION ==================== */
    .navbar-container {
        padding: 10px;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .navbar-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

    .logo-image {
        max-height: 50px;
        max-width: 200px;
    }

    .nav-primary-links,
    .nav-category-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
        font-size: 0.75rem;
    }

    .nav-primary-link,
    .nav-category-link {
        padding: 5px 8px;
        font-size: 0.8rem;
        border-radius: 4px;
    }

    .nav-category-links {
        padding: 8px 10px;
    }

    /* ==================== MOBILE HEADER CONTROLS ==================== */
    .header-controls-section {
        padding: 3px 2px;
    }

    .header-controls-wrapper {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 0 2px;
        display: flex;
        overflow: hidden;
    }

    .controls-left-group {
        flex-wrap: nowrap;
        gap: 1px;
        flex-shrink: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        height: auto;
    }

    .language-selector-group {
        display: flex;
        align-items: center;
        gap: 1px;
        flex-shrink: 1;
        min-width: 0;
        font-size: 0.75rem;
    }

    .time-display-group {
        display: flex;
        flex-shrink: 1;
        min-width: 0;
        align-items: center;
    }

    .control-label {
        font-size: 0.7rem;
        display: none;
    }

    .control-select {
        padding: 2px 2px;
        font-size: 0.65rem;
        min-width: 38px;
        flex-shrink: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .time-text {
        font-size: 0.75rem;
        gap: 2px;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }

    .time-text::before {
        font-size: 0.9rem;
        margin-right: 2px;
        flex-shrink: 0;
    }

    .signin-icon-link {
        padding: 2px 4px;
        gap: 0;
        min-height: auto;
        min-width: auto;
        font-size: 0.8rem;
        border-radius: 3px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .signin-icon-link i {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .social-media-group {
        justify-content: flex-start;
        gap: 2px;
        flex-wrap: nowrap;
        flex-shrink: 1;
        margin-left: 0;
        min-width: 0;
        display: none;
        align-items: center;
    }

    .social-link {
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 14px;
        min-height: 28px;
        min-width: 28px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: visible;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .social-link i {
        font-size: 14px;
        flex-shrink: 0;
    }

    /* ==================== MOBILE CONTENT ROWS ==================== */
    .content-row {
        padding: 0;
    }

    .content-row.row-2,
    .content-row.row-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .row-column {
        padding: 15px;
        border-right: none;
        border-bottom: none;
        background: var(--bg-white);
        border-radius: 6px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
    }

    .row-column.full-width {
        padding: 15px;
        grid-column: auto;
    }

    .row-column.column-1,
    .row-column.column-2 {
        border-right: none;
    }

    /* ==================== MOBILE SECTIONS ==================== */
    .section-title {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .section-title h2 {
        font-size: 1rem;
        margin: 0;
    }

    /* ==================== MOBILE TRENDING SLIDESHOW ==================== */
    .trending-slideshow {
        height: 180px;
        margin: 0;
        border-radius: 4px;
    }

    .slideshow-button {
        width: 32px;
        height: 32px;
    }

    .slideshow-button svg {
        width: 16px;
        height: 16px;
    }

    .slideshow-title {
        font-size: 0.9rem;
    }

    .slideshow-caption {
        padding: 10px 12px;
    }

    /* ==================== MOBILE NEWS GRIDS ==================== */
    .news-grid-large .article-card-mini {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .news-grid-large .article-card-mini img {
        width: 100%;
        height: 100px;
        min-width: auto;
    }

    .news-grid-large .article-card-mini h4 {
        font-size: 0.85rem;
    }

    .news-grid-large .article-card-mini .meta {
        font-size: 0.7rem;
    }

    .news-grid-small .article-card-mini {
        padding: 10px;
    }

    .news-grid-small .article-card-mini h4 {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .news-grid-regular {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-grid-sidebar {
        gap: 10px;
    }

    .news-grid-sidebar .article-card-sidebar {
        height: auto;
        flex-direction: row;
        gap: 10px;
    }

    .news-grid-sidebar .article-card-sidebar img {
        width: 70px;
        height: 70px;
        min-width: 70px;
        flex-shrink: 0;
    }

    .news-grid-sidebar .article-card-sidebar-content {
        padding: 8px;
    }

    .news-grid-sidebar .article-card-sidebar h4 {
        font-size: 0.8rem;
    }

    /* ==================== MOBILE PINNED/FEATURED BOXES ==================== */
    .pinned-news-box,
    .featured-sidebar-box,
    .topic-news-box {
        aspect-ratio: auto;
        min-height: 180px;
        margin: 0;
        border-radius: 4px;
    }

    .pinned-news-content,
    .featured-sidebar-content,
    .topic-news-content {
        padding: 12px;
    }

    .pinned-news-content h3,
    .featured-sidebar-content h3,
    .topic-news-content h4 {
        font-size: 0.9rem;
    }

    .pinned-news-content .meta,
    .featured-sidebar-content .meta,
    .topic-news-content .meta {
        font-size: 0.7rem;
    }

    /* ==================== MOBILE AD BANNER ==================== */
    .ad-banner-small {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        min-height: 150px;
        margin: 0;
    }

    /* ==================== MOBILE CAROUSEL ==================== */
    .carousel-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .carousel-button {
        display: none;
    }

    .carousel-wrapper {
        width: 100%;
    }

    .carousel-slides {
        height: 220px;
        gap: 12px;
        padding: 0 10px;
    }

    .carousel-slides .article-card-compact {
        flex: 0 0 calc(100% - 0px);
        min-width: 0;
    }

    .carousel-slides .article-card-compact img {
        height: 100px;
    }

    .carousel-slides .article-card-compact-content {
        padding: 10px;
    }

    .carousel-slides .article-card-compact h4 {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .carousel-indicators {
        margin-top: 12px;
        gap: 6px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    /* ==================== MOBILE VIDEO & TOPIC BOXES ==================== */
    .sidebar-column-rect {
        border-radius: 6px;
        box-shadow: var(--shadow);
    }

    .sidebar-column-rect .section-title {
        padding: 12px 12px;
        margin: 0;
    }

    .sidebar-column-rect .section-title h2 {
        font-size: 0.95rem;
    }

    .video-container {
        height: 150px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .topic-news-box {
        height: 150px;
        margin: 10px;
    }

    /* ==================== MOBILE ARTICLES PAGE ==================== */
    .article-header h1 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .author-img {
        width: 40px;
        height: 40px;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.6;
    }

    .article-body p {
        margin-bottom: 16px;
    }

    .article-body img {
        margin: 20px 0;
        border-radius: 6px;
    }

    .article-body iframe {
        height: auto;
        min-height: 300px;
        margin: 20px 0;
        border-radius: 6px;
    }

    .article-body blockquote {
        padding-left: 12px;
        margin: 20px 0;
        font-size: 1rem;
    }

    .body-ad {
        padding: 15px 10px;
        margin: 20px 0;
        border-radius: 6px;
    }

    /* ==================== MOBILE SUBSCRIPTION SECTION ==================== */
    .subscription-section {
        padding: 25px 15px;
        margin: 25px 0;
        border-radius: 6px;
    }

    .subscription-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .subscription-section p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .form-group {
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 12px;
        font-size: 16px;
        border-radius: 4px;
        margin-bottom: 12px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-group button {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-row input {
        margin-bottom: 0;
    }

    /* ==================== MOBILE FOOTER ==================== */
    .footer {
        padding: 30px 15px 0;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 20px;
    }

    .footer-column {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer-brand {
        font-size: 1.2rem;
    }

    .footer-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-column-title {
        font-size: 0.9rem;
        padding-bottom: 8px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-social-links {
        justify-content: flex-start;
        gap: 10px;
        margin: 8px 0;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .contact-item {
        font-size: 0.85rem;
        gap: 8px;
    }

    .footer-newsletter-prompt {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding: 20px 20px 15px;
    }

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

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

    .footer-developed {
        font-size: 0.85rem;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 12px;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .footer-bottom-links a {
        font-size: 0.85rem;
        padding: 0;
        display: inline-block;
    }

    .footer-bottom-links .separator {
        display: inline;
    }

    /* ==================== MOBILE PAGE TITLE ==================== */
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* ==================== MOBILE UTILITIES ==================== */
    .mb-20 {
        margin-bottom: 15px;
    }

    .mb-30 {
        margin-bottom: 20px;
    }

    .mt-30 {
        margin-top: 20px;
    }

    .mt-50 {
        margin-top: 30px;
    }
}

/* ==================== EXTRA SMALL DEVICES (< 480px) ==================== */
@media (max-width: 480px) {
    .container {
        padding: 12px 8px;
    }

    .navbar-container {
        padding: 8px;
    }

    .navbar-logo {
        margin-bottom: 6px;
    }

    .logo-image {
        max-height: 45px;
    }

    .nav-primary-links,
    .nav-category-links {
        gap: 0.3rem;
    }

    .nav-primary-link,
    .nav-category-link {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    .header-controls-wrapper {
        gap: 8px;
    }

    .controls-left-group {
        gap: 6px;
    }

    .control-select {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .banner-card,
    .ad-banner-unit {
        height: 80px;
    }

    .trending-slideshow {
        height: 150px;
    }

    .section-title h2 {
        font-size: 0.9rem;
    }

    .carousel-slides {
        height: 180px;
    }

    .carousel-slides .article-card-compact img {
        height: 80px;
    }

    .carousel-slides .article-card-compact-content {
        padding: 8px;
    }

    .carousel-slides .article-card-compact h4 {
        font-size: 0.75rem;
    }

    /* Recent News Slideshow - Mobile */
    .recent-news-carousel-wrapper {
        gap: 3px;
    }

    .recent-news-nav-btn {
        width: 28px;
        height: 28px;
    }

    .recent-news-nav-btn svg {
        width: 14px;
        height: 14px;
    }

    .recent-news-card {
        padding: 8px !important;
        gap: 8px !important;
    }

    .recent-news-card img {
        width: 60px !important;
        height: 60px !important;
    }

    .recent-news-card h4 {
        font-size: 0.85rem;
    }

    .recent-news-card .meta {
        font-size: 0.65rem;
    }

    .recent-news-indicators {
        gap: 5px;
        margin-top: 14px;
    }

    /* General News Slideshow - Mobile */
    .general-news-carousel-wrapper {
        gap: 6px;
    }

    .general-news-nav-btn {
        width: 28px;
        height: 28px;
    }

    .general-news-nav-btn svg {
        width: 14px;
        height: 14px;
    }

    .general-news-card {
        padding: 8px !important;
        gap: 8px !important;
    }

    .general-news-card img {
        width: 60px !important;
        height: 60px !important;
    }

    .general-news-card h4 {
        font-size: 0.85rem;
    }

    .general-news-card .meta {
        font-size: 0.65rem;
    }

    .general-news-indicators {
        gap: 5px;
        margin-top: 14px;
    }

    /* Hide carousel buttons on mobile - use touch/swipe instead */
    .general-news-nav-btn,
    .recent-news-nav-btn,
    .slideshow-button,
    .carousel-button {
        display: none;
    }

    .recent-news-indicators .carousel-indicator {
        width: 5px;
        height: 5px;
    }

    .recent-news-indicators .carousel-indicator.active {
        width: 5px;
    }

    .row-column {
        padding: 12px;
    }

    .article-header h1 {
        font-size: 1.1rem;
    }

    .article-body {
        font-size: 0.95rem;
    }

    .subscription-section {
        padding: 20px 12px;
        margin: 15px 0;
    }

    .subscription-section h2 {
        font-size: 1.1rem;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-brand {
        font-size: 1.1rem;
    }

    .footer-column-title {
        font-size: 0.85rem;
    }
}

/* ==================== MOBILE MEDIA QUERIES - ADDITIONAL PAGES ==================== */
@media (max-width: 768px) {
    /* About/Contact Page Headers */
    .page-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* About/Contact Section Headers */
    .about-section h2,
    .contact-form-section h2,
    .faq-section h2,
    .social-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Grid Layouts - Single Column on Mobile */
    .values-grid,
    .coverage-grid,
    .info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Card Elements */
    .value-item,
    .coverage-item,
    .info-card,
    .faq-item {
        padding: 20px;
    }

    /* Contact Form */
    .contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form .form-group:nth-child(n+3),
    .contact-form textarea,
    .submit-button {
        grid-column: auto;
    }

    .contact-form-section {
        padding: 20px;
    }

    /* Social Links */
    .social-links {
        gap: 10px;
    }

    .social-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .social-button i {
        font-size: 1rem;
    }
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

/* ==================== POPUP SEARCH MODAL - Mobile Search ==================== */
.search-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-popup-modal.active {
    display: flex;
    opacity: 1;
}

.search-popup-header {
    background: var(--bg-white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-popup-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    background: var(--bg-light);
}

.search-popup-input:focus {
    background: var(--bg-white);
    border-color: var(--accent-color);
    box-shadow: 0 1px 8px rgba(14, 165, 233, 0.1);
}

.search-popup-input::placeholder {
    color: var(--text-light);
}

.search-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.search-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.search-popup-results {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-white);
    padding: 0;
}

.search-popup-results .search-results-dropdown {
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    margin-top: 0;
}

.search-popup-results .search-results-dropdown,
.search-popup-results .search-results-content {
    background: var(--bg-white);
}

/* ==================== SUBSCRIBE MODAL (APPLE-STYLE) ==================== */
.subscribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.subscribe-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.subscribe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

.subscribe-modal.active .subscribe-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.subscribe-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

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

.subscribe-modal.closing .subscribe-modal-content {
    animation: modalSlideOut 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

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

.subscribe-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
    padding: 0;
    border-radius: 8px;
}

.subscribe-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.subscribe-modal-close:active {
    background: #e5e7eb;
}

.subscribe-modal-close svg {
    width: 20px;
    height: 20px;
}

.subscribe-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.subscribe-modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.subscribe-modal-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.subscribe-modal-form {
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-input-wrapper {
    display: flex;
    min-width: 0;
}

.form-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.subscribe-modal-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.2s ease;
    outline: none;
}

.subscribe-modal-input::placeholder {
    color: var(--text-light);
}

.subscribe-modal-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: var(--bg-white);
}

.subscribe-modal-submit-btn {
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    font-family: inherit;
}

.subscribe-modal-submit-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.subscribe-modal-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
}

.subscribe-modal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

.form-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

/* Alert Messages for Settings Form Feedback */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert .close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    font-size: 18px;
    min-height: auto;
    min-width: auto;
}

.alert .close-btn:hover {
    opacity: 0.7;
}

.alert.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border-left: 4px solid #10b981;
}

.alert.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert.alert-warning {
    background-color: #fffbeb;
    color: #b45309;
    border-left: 4px solid #fbbf24;
}

.alert.alert-info {
    background-color: #eff6ff;
    color: #0c4a6e;
    border-left: 4px solid #3b82f6;
}

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

.subscribe-modal-benefits {
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-color);
}

.subscribe-modal-footer {
    text-align: center;
    padding-top: 8px;
}

.privacy-text {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* ==================== SUBSCRIPTION NOTIFICATION POPUP ==================== */
.subscription-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: calc(100% - 40px);
    z-index: 10000;
    opacity: 0;
    transform: translateX(500px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow: hidden;
}

.subscription-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.subscription-notification.hide {
    opacity: 0;
    transform: translateX(500px);
    pointer-events: none;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    position: relative;
}

.notification-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon-wrapper.success-icon {
    background: #ecfdf5;
    color: #059669;
}

.notification-icon-wrapper.error-icon {
    background: #fef2f2;
    color: #dc2626;
}

.notification-icon {
    width: 24px;
    height: 24px;
}

.notification-text-wrapper {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.notification-message {
    font-size: 14px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
    padding: 0;
    border-radius: 6px;
}

.notification-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.notification-close:active {
    background: #e5e7eb;
}

.notification-close svg {
    width: 20px;
    height: 20px;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981);
    width: 100%;
    animation: notificationProgressBar 4s linear forwards;
}

.subscription-notification.error-icon .notification-progress {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

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

/* Mobile Responsive */
@media (max-width: 640px) {
    .subscription-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }

    .notification-content {
        flex-direction: column;
        gap: 12px;
    }

    .notification-icon-wrapper {
        width: 44px;
        height: 44px;
    }
}

/* ==================== MOVIE PLAYER MODAL ==================== */
.movie-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.movie-player-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.movie-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.movie-player-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.movie-player-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    word-wrap: break-word;
}

.movie-player-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.movie-player-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.movie-player-close:active {
    transform: scale(0.95);
}

.movie-player-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.movie-player-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.youtube-player {
    width: 100%;
    height: 100%;
    border: none;
}

.movie-player-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    overflow-y: auto;
    max-height: 180px;
}

.movie-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.movie-description {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.movie-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive design for movie player */
@media (max-width: 768px) {
    .movie-player-container {
        padding: 12px;
    }

    .movie-player-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .movie-player-title {
        font-size: 18px;
    }

    .movie-player-close {
        align-self: flex-end;
    }

    .movie-player-content {
        gap: 12px;
    }

    .movie-player-info {
        padding: 16px;
        max-height: 200px;
    }

    .movie-info-section {
        grid-template-columns: 1fr;
    }

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

    .movie-description p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .movie-player-container {
        padding: 8px;
    }

    .movie-player-title {
        font-size: 16px;
    }

    .movie-player-wrapper {
        aspect-ratio: 9 / 16;
    }

    .movie-player-info {
        padding: 12px;
        max-height: 150px;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 12px;
    }
}

/* ==================== COMMENTS SYSTEM ==================== */
.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.comments-header h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.add-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
}

.add-comment-btn:hover {
    background-color: #162d3f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.add-comment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.add-comment-btn i {
    font-size: 16px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    color: var(--text-light);
}

.no-comments svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-comments p {
    font-size: 15px;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.comment-item:hover {
    box-shadow: var(--shadow);
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-text {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

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

.comment-author {
    color: var(--text-dark);
    font-size: 15px;
}

.comment-email {
    color: var(--text-light);
    font-size: 12px;
}

.comment-timestamp {
    color: var(--text-light);
    font-size: 13px;
}

.comment-text {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

/* ==================== REPLY BUTTON & REPLIES SECTION ==================== */
.reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.reply-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.reply-btn i {
    font-size: 12px;
}

.replies-section {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
}

.reply-item:hover {
    box-shadow: var(--shadow);
}

/* ==================== INLINE COMMENT INPUT FORM ==================== */
.comment-input-form-inline {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    animation: slideDown 0.3s ease;
}

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

.comment-input-header {
    margin-bottom: 18px;
}

.comment-input-header h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.posting-as {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

.inline-comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inline-comment-textarea {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

.inline-comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.character-count-inline {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--text-light);
    margin-top: -12px;
}

.character-count-inline span {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cancel-comment-btn,
.submit-comment-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-comment-btn {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.cancel-comment-btn:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

.submit-comment-btn {
    background-color: var(--primary-color);
    color: white;
}

.submit-comment-btn:hover {
    background-color: #162d3f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.submit-comment-btn:active {
    transform: translateY(0);
}

/* ==================== MODALS - USER INFO & CONFIRMATION ==================== */
.user-info-modal,
.comment-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.user-info-modal.active,
.comment-confirmation-modal.active {
    opacity: 1;
    visibility: visible;
}

.user-info-overlay,
.comment-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.user-info-content,
.comment-confirmation-content {
    position: relative;
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.user-info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.user-info-close:hover {
    color: var(--text-dark);
}

.user-info-close svg {
    width: 20px;
    height: 20px;
}

.user-info-content h2,
.comment-confirmation-content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.user-info-subtitle,
.confirmation-text {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.user-info-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

.user-info-input {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition);
}

.user-info-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.user-info-submit-btn {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.user-info-submit-btn:hover {
    background-color: #162d3f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.user-info-submit-btn:active {
    transform: translateY(0);
}

/* ==================== CONFIRMATION MODAL SPECIFIC ==================== */
.confirmation-info {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.info-value {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.confirm-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-yes {
    background-color: var(--primary-color);
    color: white;
}

.confirm-yes:hover {
    background-color: #162d3f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.confirm-no {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.confirm-no:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

/* ==================== COMMENT INPUT MODAL ==================== */
.comment-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comment-input-modal.active {
    opacity: 1;
    visibility: visible;
}

.comment-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.comment-input-content {
    position: relative;
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 32px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.comment-input-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.comment-input-close:hover {
    color: var(--text-dark);
}

.comment-input-close svg {
    width: 20px;
    height: 20px;
}

.comment-input-content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.comment-input-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 24px 0;
    font-style: italic;
}

.comment-input-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-input-textarea {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
}

.comment-input-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.character-count {
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
    color: var(--text-light);
    margin-top: -12px;
}

.character-count #charCounter {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-input-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 12px;
}

.comment-input-cancel-btn,
.comment-input-submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-input-cancel-btn {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.comment-input-cancel-btn:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

.comment-input-submit-btn {
    background-color: var(--primary-color);
    color: white;
}

.comment-input-submit-btn:hover {
    background-color: #162d3f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.comment-input-submit-btn:active {
    transform: translateY(0);
}

/* ==================== MOBILE COMMENTS ==================== */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .comments-header h2 {
        font-size: 20px;
    }

    .add-comment-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .comment-item {
        gap: 12px;
        padding: 16px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .avatar-text {
        font-size: 12px;
    }

    .comment-author {
        font-size: 14px;
    }

    .comment-timestamp {
        font-size: 12px;
    }

    .comment-text {
        font-size: 13px;
    }

    .reply-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .replies-section {
        padding-left: 12px;
        border-left-width: 2px;
    }

    .reply-item {
        padding: 12px;
    }

    .comment-input-form-inline {
        padding: 18px;
        margin: 18px 0;
    }

    .comment-input-header h3 {
        font-size: 16px;
    }

    .inline-comment-textarea {
        font-size: 16px;
        min-height: 80px;
        padding: 10px 12px;
    }

    .character-count-inline {
        font-size: 11px;
    }

    .comment-form-actions {
        gap: 8px;
    }

    .cancel-comment-btn,
    .submit-comment-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .user-info-content,
    .comment-confirmation-content {
        max-width: calc(100% - 30px);
        padding: 24px;
    }

    .user-info-content h2,
    .comment-confirmation-content h2 {
        font-size: 20px;
    }

    .form-group label {
        font-size: 13px;
    }

    .user-info-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }

    .confirm-btn {
        width: 100%;
        min-width: auto;
    }

    .comment-input-content {
        max-width: calc(100% - 30px);
        padding: 24px;
    }

    .comment-input-content h2 {
        font-size: 20px;
    }

    .comment-input-textarea {
        font-size: 16px;
        min-height: 100px;
    }

    .comment-input-actions {
        flex-direction: column;
    }

    .comment-input-cancel-btn,
    .comment-input-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .comments-header {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .comments-header h2 {
        font-size: 18px;
    }

    .comments-count {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .add-comment-btn {
        padding: 10px 16px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .add-comment-btn span {
        display: none;
    }

    .comment-item {
        flex-direction: column;
        gap: 12px;
    }

    .comment-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .reply-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .replies-section {
        padding-left: 8px;
        margin-top: 12px;
        border-left-width: 2px;
    }

    .reply-item {
        padding: 10px;
    }

    .comment-input-form-inline {
        padding: 14px;
        margin: 14px 0;
        border-radius: 6px;
    }

    .comment-input-header h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .posting-as {
        font-size: 12px;
    }

    .inline-comment-textarea {
        font-size: 16px;
        min-height: 70px;
        padding: 10px 12px;
    }

    .character-count-inline {
        font-size: 11px;
        margin-top: -8px;
    }

    .comment-form-actions {
        flex-direction: column;
        gap: 6px;
    }

    .cancel-comment-btn,
    .submit-comment-btn {
        width: 100%;
        padding: 8px 14px;
        font-size: 13px;
    }

    .user-info-content,
    .comment-confirmation-content {
        max-width: calc(100% - 20px);
        padding: 20px;
    }

    .user-info-close {
        width: 28px;
        height: 28px;
        top: 12px;
        right: 12px;
    }

    .user-info-content h2,
    .comment-confirmation-content h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .user-info-subtitle,
    .confirmation-text {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .user-info-form {
        gap: 14px;
    }

    .confirmation-info {
        padding: 12px;
        margin-bottom: 16px;
    }

    .info-item {
        padding: 8px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .comment-input-content {
        max-width: calc(100% - 20px);
        padding: 20px;
    }

    .comment-input-content h2 {
        font-size: 18px;
    }

    .comment-input-subtitle {
        font-size: 13px;
    }

    .comment-input-close {
        width: 28px;
        height: 28px;
        top: 12px;
        right: 12px;
    }

    .comment-input-textarea {
        font-size: 16px;
        min-height: 100px;
        padding: 12px 14px;
    }

    .comment-input-form {
        gap: 14px;
    }

    .character-count {
        font-size: 12px;
    }

    .comment-input-actions {
        flex-direction: column;
    }

    .comment-input-cancel-btn,
    .comment-input-submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================== MOBILE SUBSCRIBE MODAL ==================== */
@media (max-width: 768px) {
    .subscribe-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
        padding: 32px 24px;
    }

    .subscribe-modal-header h2 {
        font-size: 24px;
    }

    .form-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .subscribe-modal-input,
    .subscribe-modal-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .subscribe-modal-content {
        margin: 16px;
        max-width: calc(100% - 32px);
        padding: 24px 20px;
    }

    .subscribe-modal-header h2 {
        font-size: 22px;
    }

    .subscribe-modal-header {
        margin-bottom: 20px;
    }

    .subscribe-modal-form {
        margin-bottom: 20px;
    }

    .form-input-group {
        gap: 8px;
    }

    .subscribe-modal-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .subscribe-modal-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .subscribe-modal-benefits {
        margin-bottom: 16px;
        padding-top: 16px;
    }

    .benefit-item {
        gap: 10px;
        margin-bottom: 10px;
    }

    .benefit-icon {
        width: 18px;
        height: 18px;
    }
}

/* ==================== CUSTOM MODALS (Alert & Confirm) ==================== */

/* Base Modal Styles */
.custom-alert-modal,
.custom-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-alert-modal.show,
.custom-confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.custom-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Dialog Container */
.custom-dialog {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInDialog 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInDialog {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dialog Header */
.custom-dialog-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.custom-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.custom-dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.custom-dialog-close:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.custom-dialog-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Dialog Content */
.custom-dialog-content {
    padding: 32px 24px;
    text-align: center;
}

.alert-icon,
.confirm-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
}

.alert-message,
.confirm-message {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

/* Dialog Footer */
.custom-dialog-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Alert Dialog - Single Button */
.custom-alert-dialog .custom-dialog-footer {
    justify-content: center;
}

.custom-alert-dialog .custom-dialog-footer .btn {
    min-width: 120px;
}

/* Confirm Dialog - Two Buttons */
.custom-confirm-dialog .custom-dialog-footer {
    justify-content: flex-end;
}

.custom-confirm-dialog .custom-dialog-footer .btn {
    min-width: 100px;
}

/* Button Styles */
.custom-dialog-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.custom-dialog-footer .btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.custom-dialog-footer .btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.custom-dialog-footer .btn-primary:hover {
    background-color: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.custom-dialog-footer .btn-primary:active {
    transform: scale(0.98);
}

.custom-dialog-footer .btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.custom-dialog-footer .btn-secondary:hover {
    background-color: #f3f4f6;
}

.custom-dialog-footer .btn-secondary:active {
    transform: scale(0.98);
}

.custom-dialog-footer .btn-danger {
    background-color: var(--secondary-color);
    color: white;
}

.custom-dialog-footer .btn-danger:hover {
    background-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.custom-dialog-footer .btn-danger:active {
    transform: scale(0.98);
}

.custom-dialog-footer .btn-success {
    background-color: #10b981;
    color: white;
}

.custom-dialog-footer .btn-success:hover {
    background-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.custom-dialog-footer .btn-success:active {
    transform: scale(0.98);
}

.custom-dialog-footer .btn-warning {
    background-color: #f59e0b;
    color: white;
}

.custom-dialog-footer .btn-warning:hover {
    background-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.custom-dialog-footer .btn-warning:active {
    transform: scale(0.98);
}

/* Responsive Design for Modals */
@media (max-width: 480px) {
    .custom-dialog {
        max-width: 95%;
        width: 100%;
        margin: 16px;
        border-radius: 12px;
    }

    .custom-dialog-header {
        padding: 20px 16px;
    }

    .custom-dialog-content {
        padding: 24px 16px;
    }

    .custom-dialog-footer {
        padding: 12px 16px 16px;
        flex-direction: column;
    }

    .custom-dialog-footer .btn {
        width: 100%;
    }

    .alert-icon,
    .confirm-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .custom-dialog-title {
        font-size: 1.1rem;
    }

    .alert-message,
    .confirm-message {
        font-size: 0.95rem;
    }
}

/* ==================== DEVELOPER SECTION STYLING ==================== */
.developer-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

.developer-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
}

.developer-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--accent-color);
}

.developer-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.developer-info {
    flex: 1;
}

.developer-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.developer-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.developer-bio {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.developer-achievements {
    margin-bottom: 30px;
}

.developer-achievements h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.achievements-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-left: 0;
}

.achievements-list li {
    padding-left: 24px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.achievements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.developer-tech {
    margin-bottom: 25px;
}

.developer-tech h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: linear-gradient(135deg, var(--accent-color), #06b6d4);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.developer-connect {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.developer-connect h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.developer-linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0a66c2, #094da8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.developer-linkedin-btn:hover {
    background: linear-gradient(135deg, #094da8, #063470);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.4);
}

.developer-linkedin-btn i {
    font-size: 1.2rem;
}

.developer-contact {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Developer Section */
@media (max-width: 768px) {
    .developer-section {
        padding: 25px;
        margin-top: 40px;
    }

    .developer-section h2 {
        font-size: 1.6rem;
    }

    .developer-card {
        padding: 20px;
    }

    .developer-content {
        flex-direction: column;
        gap: 20px;
    }

    .developer-info h3 {
        font-size: 1.4rem;
    }

    .developer-title {
        font-size: 1rem;
    }

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

    .tech-tags {
        gap: 8px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .developer-linkedin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== LANGUAGE TRANSLATION STYLES ==================== */
/* Translation Loading States and Animations */
@keyframes translateLoadingBar {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 100%;
        left: 100%;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

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

/* Translation loading indicator */
.translation-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    animation: translateLoadingBar 1.5s ease-in-out infinite;
    z-index: 10000;
}

/* Body state during translation */
body.translating {
    opacity: 0.98;
    transition: opacity 0.3s ease;
}

/* Language selector group styling enhancements */
.language-selector-group {
    position: relative;
}

.language-selector-group .control-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.language-selector-group .control-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Translation status indicators */
[data-translated="true"] {
    transition: color 0.2s ease;
}

[data-translated="true"]:has-text-selection {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Skeleton loader for translating elements */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-loading {
    animation: skeleton-loading 1.5s infinite;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
}

/* Language selection dropdown enhancement */
#languageDropdown {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.5em;
    padding-right: 2.5em;
    cursor: pointer;
}

#languageDropdown:hover {
    border-color: var(--secondary-color);
}

#languageDropdown:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Translation success/error messages */
.translation-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideInDown 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

.translation-message.success {
    background-color: #27ae60;
    color: white;
}

.translation-message.error {
    background-color: #e74c3c;
    color: white;
}

.translation-message.info {
    background-color: #3498db;
    color: white;
}

/* Improve contrast for translated content */
.translating * {
    color-scheme: light;
}

/* Enhanced language dropdown styling */
.control-select {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.control-select option {
    padding: 8px;
    background-color: white;
    color: #333;
}

.control-select option:checked {
    background: linear-gradient(#3498db, #3498db);
    background-color: #3498db;
    color: white;
}

/* Responsive translation styles */
@media (max-width: 768px) {
    .translation-message {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .translation-loading-bar {
        height: 2px;
    }
}

/* Accessibility: Ensure translated content is readable */
@media (prefers-contrast: more) {
    [data-translated="true"] {
        font-weight: 500;
    }

    .translation-message {
        border: 2px solid currentColor;
    }
}

/* Dark mode support for translation styles */
@media (prefers-color-scheme: dark) {
    .translation-loading-bar {
        background: linear-gradient(90deg, #5dade2, #2980b9);
    }

    .translation-message.success {
        background-color: #229954;
    }

    .translation-message.error {
        background-color: #c0392b;
    }

    .translation-message.info {
        background-color: #2980b9;
    }

    #languageDropdown {
        background-color: #2c3e50;
        color: white;
        border-color: #34495e;
    }

    #languageDropdown:focus {
        border-color: #5dade2;
    }

    .control-select option {
        background-color: #2c3e50;
        color: white;
    }

    .control-select option:checked {
        background: linear-gradient(#2980b9, #2980b9);
    }
}

/* ==================== ARTICLE PAGE LOADING SKELETON ==================== */
/**
 * Article skeleton - displays only during actual page loading (slow network)
 * Automatically hidden once page content is ready
 */
.article-skeleton {
    animation: skeleton-loading 1.5s infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
}

.article-skeleton-header {
    margin-bottom: 30px;
}

.article-skeleton-category {
    height: 24px;
    width: 100px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.article-skeleton-title {
    height: 32px;
    width: 90%;
    margin-bottom: 12px;
    border-radius: 4px;
}

.article-skeleton-title-second-line {
    height: 32px;
    width: 50%;
    margin-bottom: 20px;
    border-radius: 4px;
}

.article-skeleton-meta {
    height: 16px;
    width: 40%;
    margin-bottom: 20px;
    border-radius: 4px;
}

.article-skeleton-image {
    height: 400px;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
}

.article-skeleton-content {
    margin-top: 30px;
}

.article-skeleton-paragraph {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.article-skeleton-paragraph:last-child {
    width: 95%;
}

/* Sidebar skeleton */
.article-skeleton-sidebar {
    margin-top: 30px;
}

.article-skeleton-sidebar-item {
    height: 120px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Hide loading skeleton when content is ready */
body[data-article-content-ready="true"] .article-loading-placeholder {
    display: none !important;
}

/* ==================== CATEGORY PAGE STYLES ==================== */

/* Breadcrumb Navigation */
.breadcrumb-section {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 600;
}

/* Category Header */
.category-header {
    margin-bottom: 40px;
    padding: 30px 0;
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.category-article-count {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Category Articles Grid */
.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-article-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--shadow), transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.category-article-card .article-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--bg-light);
}

.category-article-card .article-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-article-card .category-badge-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background-color: rgba(0, 51, 102, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-article-card .article-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-article-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article-card .meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-article-card .excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* No Articles Message */
.no-articles-message {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
}

.no-articles-message p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pagination-list {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-link:hover:not(.disabled):not(.active) {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-link.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    cursor: default;
}

.pagination-link.disabled {
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: var(--text-light);
}

/* Responsive Category Page Styles */
@media (max-width: 768px) {
    .category-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .category-article-card .article-card-content {
        padding: 15px;
    }
    
    .category-article-card h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .category-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb-list {
        gap: 4px;
    }
    
    .pagination-list {
        gap: 4px;
    }
    
    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}


