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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFFFFF;
    color: #2D3748;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width: 1920px) {
    .container {
        padding: 0 80px;
    }
}

@media (min-width: 2560px) {
    .container {
        padding: 0 120px;
    }
}

/* Header */
header {
    background-color: #FFFFFF;
    color: #2D3748;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 4px solid #9333EA;
    width: 100%;
}

/* Top Header Bar - Date/Time/Weather & Social */
.header-top-bar {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-bottom: 1px solid #E2E8F0;
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Left Side: Date, Time & Weather */
.header-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-display,
.time-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4A5568;
    white-space: nowrap;
}

.date-display i,
.time-display i {
    color: #9333EA;
    font-size: 14px;
    width: 14px;
    text-align: center;
}

.date-display span,
.time-display span {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4A5568;
    white-space: nowrap;
    padding-left: 20px;
    border-left: 1px solid #E2E8F0;
}

.weather-widget i {
    color: #9333EA;
    font-size: 15px;
    width: 16px;
    text-align: center;
}

.weather-widget span {
    font-weight: 600;
}

.weather-location {
    font-size: 11px !important;
    color: #9CA3AF !important;
    font-weight: 400 !important;
    margin-left: 4px;
}

/* Social Links in Top Header */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(147, 51, 234, 0.1);
    border: 2px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    color: #9333EA;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #9333EA;
    color: white;
    border-color: #9333EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.social-links a:active {
    transform: translateY(0);
}

/* Middle Header - Logo & Banner Ad */
.header-middle {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid #E2E8F0;
}

.header-middle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* Header Ad Section */
.header-ad-section {
    flex: 0 0 auto;
    width: 728px;
    max-width: 728px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-ad-section .desktop-ad {
    width: 728px;
    height: 90px;
}


.logo {
    flex: 0 0 auto;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-right: auto;
}

.logo:hover {
    opacity: 0.85;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #9333EA;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Lazy Loading Images */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy-load:not(.lazy-load) {
    opacity: 1;
}

.logo h1 {
    font-size: 38px;
    font-weight: 900;
    color: #9333EA;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}


.logo h1::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, #9333EA 0%, #C4B5FD 50%, transparent 100%);
}

.logo h1 span {
    font-size: 30px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #9333EA;
    color: white;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 900;
}

.logo p {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 12px;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

nav .container {
    padding: 0 40px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 0;
    width: 100%;
}

@media (min-width: 1920px) {
    nav .container {
        padding: 0 80px;
    }
}

@media (min-width: 2560px) {
    nav .container {
        padding: 0 120px;
    }
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: #4A5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(147, 51, 234, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

nav ul li a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

nav ul li a span {
    position: relative;
    z-index: 1;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

nav ul li a:hover,
nav ul li a:active {
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover i {
    transform: scale(1.2) rotate(5deg);
}

nav ul li a:active {
    transform: translateY(0);
}

/* News Ticker */
.news-ticker {
    background-color: white;
    border-top: 2px solid #9333EA;
    border-bottom: 2px solid #9333EA;
    padding: 0;
    overflow: hidden;
    margin: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: relative;
}

.news-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, white 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.news-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(270deg, white 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 1920px) {
    .news-ticker {
        margin: 0;
        width: 100%;
    }
}

@media (min-width: 2560px) {
    .news-ticker {
        margin: 0;
        width: 100%;
    }
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.ticker-label {
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
    color: white;
    padding: 8px 20px;
    font-weight: 900;
    margin-right: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 1.5px;
    font-size: 11px;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-label i {
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

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

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

.ticker-items {
    display: flex;
    animation: scroll 35s linear infinite;
    white-space: nowrap;
    gap: 60px;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: #2D3748;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.ticker-item i {
    color: #9333EA;
    font-size: 14px;
    transition: transform 0.3s;
}

.ticker-item:hover {
    color: #9333EA;
    background-color: transparent;
    transform: translateX(3px);
    border-left: 3px solid #9333EA;
    padding-left: 9px;
}

.ticker-item:hover i {
    transform: scale(1.1);
}

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

/* Banner Ad */
.banner-ad {
    background-color: #F7FAFC;
    border: 2px solid #9333EA;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6B7280;
    max-width: 100%;
}

.banner-ad.header-banner {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    min-height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* Ad Placeholder Styling */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 100%;
    width: 100%;
}

.ad-placeholder i {
    font-size: 24px;
    color: #CBD5E0;
    margin-bottom: 4px;
}

.banner-ad.header-banner:hover .ad-placeholder {
    color: #9333EA;
}

.banner-ad.header-banner:hover .ad-placeholder i {
    color: #9333EA;
}

/* Responsive Ad Container */
.responsive-ad-container {
    background-color: transparent;
    border: none;
    padding: 10px 0;
    overflow: visible;
    width: 100%;
    text-align: center;
}

.responsive-ad-wrapper {
    max-width: 728px;
    width: 100%;
    margin: 0 auto;
    display: block;
    text-align: center;
    min-height: 90px;
    overflow: visible;
}

.responsive-ad-wrapper iframe {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;
}

.responsive-ad-wrapper > div {
    display: inline-block;
    max-width: 100%;
}

/* Show desktop ad by default, hide mobile ad */
.desktop-ad {
    display: block;
}

.mobile-ad {
    display: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    /* Hide desktop ad, show mobile ad */
    .desktop-ad {
        display: none !important;
    }
    
    .mobile-ad {
        display: block !important;
    }
    
    .responsive-ad-container {
        padding: 15px 0;
        overflow: visible;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-ad.responsive-ad-wrapper {
        max-width: 300px;
        width: 300px;
        height: 250px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-ad iframe {
        max-width: 300px !important;
        width: 300px !important;
        height: 250px !important;
    }
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

@media (min-width: 1440px) {
    .main-content {
        grid-template-columns: 1fr 400px;
        gap: 60px;
    }
}

@media (min-width: 1920px) {
    .main-content {
        grid-template-columns: 1fr 420px;
        gap: 80px;
    }
}

.content-area {
    background-color: white;
    width: 100%;
    min-width: 0;
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 1440px) {
    .slider {
        height: 500px;
    }
}

@media (min-width: 1920px) {
    .slider {
        height: 550px;
    }
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.3s ease;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide:hover .slide-content {
    transform: translateY(-5px);
}

.slide:hover .slide-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.slide:hover .slide-content h2 {
    color: #9333EA;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(147, 51, 234, 0.3);
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    color: #FFFFFF;
    padding: 40px;
    transition: all 0.3s ease;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    transition: all 0.3s ease;
}

.slide-content p {
    font-size: 17px;
    margin-bottom: 12px;
    color: #E5E7EB;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: #9333EA;
    border: 2px solid rgba(147, 51, 234, 0.5);
    padding: 12px 18px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: rgba(147, 51, 234, 0.9);
    color: white;
    border-color: #9333EA;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(147, 51, 234, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dot.active {
    background-color: #9333EA;
    border-color: #9333EA;
    box-shadow: 0 2px 10px rgba(147, 51, 234, 0.5);
    transform: scale(1.2);
}

.dot:active {
    transform: scale(1.2);
}

/* Category Page Header */
.category-header {
    background-color: white;
    padding: 40px 30px;
    margin-bottom: 30px;
    border-bottom: 3px solid #9333EA;
}

.category-title {
    font-size: 42px;
    color: #9333EA;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: capitalize;
}

.category-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* News Grid */
.news-section {
    padding: 35px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
}

.section-title {
    font-size: 28px;
    color: #2D3748;
    border-bottom: 4px solid #9333EA;
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: #2D3748;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
}

@media (min-width: 1440px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (min-width: 1920px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 35px;
    }
}

/* Editor's Picks Grid - Clean 3 Column Layout */
.editors-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.editors-picks-grid .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editors-picks-grid .news-card img {
    height: 220px;
    object-fit: cover;
}

.editors-picks-grid .news-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.editors-picks-grid .news-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #6B7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-title i {
    color: #9333EA;
    margin-right: 8px;
    font-size: 0.9em;
}

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

@media (max-width: 768px) {
    .editors-picks-grid {
        grid-template-columns: 1fr;
    }
    
    .editors-picks-grid .news-card img {
        height: 200px;
    }
}

.news-card {
    background-color: white;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-card:hover,
.news-card:active {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.25);
}

@media (max-width: 768px) {
    .news-card:hover {
        transform: none;
    }
    
    .news-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(147, 51, 234, 0.15);
    }
}

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

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

.news-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #2D3748;
    font-weight: 700;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.news-card p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 15px;
    line-height: 1.7;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.category-tag {
    background-color: #9333EA;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Search Widget */
.search-widget {
    position: relative;
}

.search-widget .widget-title i {
    margin-right: 8px;
    color: #9333EA;
}

.search-form {
    margin-top: 15px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #9333EA;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
}

.search-input:focus {
    background-color: #F3E8FF;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn i {
    transition: transform 0.3s ease;
}

.search-btn:hover i {
    transform: scale(1.2);
}

/* Search Results */
.search-results {
    margin-top: 15px;
    background-color: #F9FAFB;
    border: 2px solid #9333EA;
    border-radius: 10px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9333EA;
}

.search-results-header span {
    font-weight: 700;
    color: #2D3748;
    font-size: 14px;
}

.close-search {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-search:hover {
    background-color: #F3E8FF;
    color: #EF4444;
    transform: rotate(90deg);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
    border-color: #9333EA;
}

.search-result-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 2px solid #E5E7EB;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #6B7280;
    align-items: center;
}

.search-result-category {
    background-color: #F3E8FF;
    color: #A855F7;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.search-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #6B7280;
}

.search-no-results i {
    font-size: 40px;
    color: #D1D5DB;
    margin-bottom: 10px;
}

.search-no-results p {
    margin: 10px 0 0;
    font-size: 14px;
}

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

.sidebar-widget {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #E5E7EB;
    width: 100%;
    max-width: 100%;
}

.widget-title {
    font-size: 19px;
    color: #2D3748;
    border-bottom: 3px solid #9333EA;
    padding-bottom: 12px;
    margin-bottom: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.popular-post-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.popular-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.popular-post-content .date {
    font-size: 11px;
    color: #999;
}

.popular-post-content .views {
    font-size: 11px;
    color: #9333EA;
    font-weight: 500;
    white-space: nowrap;
}

.popular-post-content .views i {
    font-size: 10px;
    margin-right: 3px;
}

.popular-post:hover h4 {
    color: #9333EA;
}

/* Sidebar Ad */
.sidebar-ad {
    background-color: #F7FAFC;
    border: 2px solid #9333EA;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.categories-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #9333EA;
}

.category-count {
    background-color: #9333EA;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Single Post Page */
.post-container {
    max-width: 900px;
    margin: 30px auto;
    background-color: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hide Categories widget on post and category pages */
.post-container ~ .sidebar .sidebar-widget:has(.categories-list),
body:has(.post-container) .sidebar .sidebar-widget:has(.categories-list),
body:has(.category-header) .sidebar .sidebar-widget:has(.categories-list) {
    display: none;
}

.post-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-image {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.post-content p {
    margin-bottom: 20px;
}

/* Content Banner Ad (In-Article) */
.content-banner-ad {
    margin: 35px 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-banner-ad > div {
    transition: all 0.3s ease;
}

.content-banner-ad > div:hover {
    border-color: #9333EA;
    background: #F3E8FF;
}

/* Footer */
footer {
    background-color: #F7FAFC;
    color: #4A5568;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 3px solid #9333EA;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copyright {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: #4A5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #9333EA;
}

.footer-separator {
    color: #6B7280;
    font-size: 14px;
}

/* Admin Panel */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.admin-panel {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.admin-panel h2 {
    font-size: 20px;
    color: #2D3748;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    color: #9333EA;
    font-size: 32px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #9333EA;
}

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

.image-preview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
}

.image-preview.show {
    display: block;
}

/* Drag and Drop Area */
.drag-drop-area {
    border: 3px dashed #9333EA;
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    background-color: #F3E8FF;
    transition: all 0.3s ease;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-drop-area.drag-over {
    background-color: #E9D5FF;
    border-color: #A855F7;
    border-width: 3px;
    border-style: solid;
    transform: scale(1.02);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-area svg {
    margin-bottom: 15px;
}

.drag-drop-text {
    font-size: 18px;
    font-weight: 600;
    color: #9333EA;
    margin: 10px 0 5px;
}

.drag-drop-or {
    font-size: 14px;
    color: #999;
    margin: 10px 0;
}

.btn-browse {
    background-color: white;
    color: #9333EA;
    padding: 10px 25px;
    border: 2px solid #9333EA;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.btn-browse:hover {
    background-color: #F3E8FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(147, 51, 234, 0.2);
}

.btn-browse:active {
    transform: translateY(0);
}

.image-preview-drag {
    display: none;
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #9333EA;
}

.image-preview-drag.show {
    display: block;
}

.drag-drop-area.has-image {
    padding: 20px;
    background-color: white;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.drag-drop-area.has-image .drag-drop-content {
    display: none;
}

.drag-drop-area.has-image .image-preview-drag {
    display: block;
    margin-bottom: 20px;
    max-height: 400px;
    object-fit: contain;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

.edit-image-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.btn-change-image,
.btn-remove-image {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-change-image {
    background-color: #9333EA;
    color: white;
}

.btn-change-image:hover {
    background-color: #A855F7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-remove-image {
    background-color: #EF4444;
    color: white;
}

.btn-remove-image:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.seo-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #2D3748;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.seo-tool-link:hover {
    border-color: #9333EA;
    background-color: #F3E8FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.seo-tool-link i {
    font-size: 20px;
    color: #9333EA;
}

.btn-primary {
    background-color: #9333EA;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s, transform 0.2s;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #A855F7;
}

.btn-primary:active {
    background-color: #7C3AED;
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background-color: #f0fdf4;
    color: #15803d;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    border: 2px solid #22c55e;
}

.success-message.show {
    display: block;
}

/* Posts Table */
.posts-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.posts-table thead {
    background-color: #F3E8FF;
    border-bottom: 2px solid #9333EA;
}

.posts-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #9333EA;
    white-space: nowrap;
}

.posts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.posts-table tbody tr:hover {
    background-color: #F3E8FF;
}

.post-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
}

.post-title-cell {
    max-width: 300px;
    font-weight: 500;
    color: #333;
}

.post-category-badge {
    background-color: white;
    color: #9333EA;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    border: 2px solid #9333EA;
    display: inline-block;
}

.source-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
}

.source-badge i {
    font-size: 10px;
    margin-right: 4px;
}

.source-main {
    background-color: #DBEAFE;
    color: #1E40AF;
    border: 2px solid #3B82F6;
}

.source-extra {
    background-color: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.post-date {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.post-views {
    font-weight: 500;
    color: #9333EA;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-edit, .btn-delete, .btn-view {
    padding: 6px 12px;
    border: 2px solid;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-view {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.btn-view:hover {
    background-color: #2563EB;
    border-color: #2563EB;
}

.btn-edit {
    background-color: #9333EA;
    color: white;
    border-color: #9333EA;
}

.btn-edit:hover {
    background-color: #A855F7;
    border-color: #A855F7;
}

.btn-delete {
    background-color: #EF4444;
    color: white;
    border-color: #EF4444;
}

.btn-delete:hover {
    background-color: #DC2626;
    border-color: #DC2626;
}

.btn-secondary {
    background-color: white;
    color: #666;
    padding: 15px 40px;
    border: 2px solid #999;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: white;
    margin: 20px;
    padding: 0;
    border: 2px solid #9333EA;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background-color: #F3E8FF;
    padding: 20px 30px;
    border-bottom: 2px solid #9333EA;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #9333EA;
    margin: 0;
}

.close-modal {
    color: #9333EA;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #C4B5FD;
}

.modal-content form {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

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

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

/* Desktop Layout - Horizontal Widget */
@media (min-width: 1201px) {
    .header-info-widget {
        flex-direction: row;
        gap: 20px;
        padding: 10px 18px;
    }
    
    .social-links {
        margin-top: 0;
        padding-top: 0;
        padding-left: 15px;
        border-top: none;
        border-left: 1px solid rgba(229, 231, 235, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    nav .container {
        padding: 0 30px;
    }
    
    .news-ticker {
        margin: 0;
        width: 100%;
    }
    
    .ticker-label {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    /* Header Widget - Tablet - Keep similar to mobile for consistency */
    .header-info-widget {
        gap: 12px;
        padding: 10px 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .datetime-widget {
        gap: 10px;
        padding-right: 10px;
        border-right: 1px solid rgba(147, 51, 234, 0.3);
        width: auto;
    }
    
    .date-display,
    .time-display {
        font-size: 11px;
    }
    
    .weather-widget {
        font-size: 11px;
        padding-left: 10px;
    }
    
    .weather-location {
        font-size: 10px !important;
    }
    
    .social-links {
        gap: 12px;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(229, 231, 235, 0.2);
    }
    
    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }
    
    nav .container {
        padding: 0 20px;
    }
    
    .news-ticker {
        margin: 0;
        width: 100%;
    }
    
    .news-ticker::before,
    .news-ticker::after {
        width: 50px;
    }
    
    /* Header Widget - Medium tablet view */
    .header-info-widget {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }
    
    .datetime-widget {
        border-right: 1px solid rgba(147, 51, 234, 0.3);
        padding-right: 10px;
    }
    
    .weather-widget {
        padding-left: 10px;
    }
    
    .social-links {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(229, 231, 235, 0.2);
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .banner-ad.header-banner {
        display: none;
    }
}

/* Small desktop screens - Improved spacing */
@media (max-width: 1200px) and (min-width: 1025px) {
    .header-top {
        padding: 20px 0;
        gap: 30px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    .header-info-widget {
        padding: 8px 14px;
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Tablet landscape and small laptops - Maximum spacing */
@media (max-width: 1100px) and (min-width: 900px) {
    .header-top {
        padding: 20px 0;
        gap: 50px;
        justify-content: space-between;
    }
    
    .logo h1 {
        font-size: 26px;
    }
    
    .logo span {
        font-size: 17px;
    }
    
    .header-info-widget {
        padding: 7px 13px;
        min-width: 270px;
        flex-shrink: 0;
    }
    
    .container {
        padding: 0 28px;
    }
}

/* Medium screens - Better spacing for header elements */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-top {
        padding: 18px 0;
        gap: 40px;
        justify-content: space-between;
    }
    
    .logo {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .logo h1 {
        font-size: 24px;
        white-space: nowrap;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .header-info-widget {
        padding: 6px 12px;
        gap: 6px;
        min-width: 260px;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .datetime-widget {
        gap: 4px;
        flex-direction: column;
        align-items: center;
    }
    
    .date-display,
    .time-display {
        font-size: 10px;
        white-space: nowrap;
    }
    
    .weather-widget {
        font-size: 10px;
        gap: 4px;
    }
    
    .container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav .container {
        padding: 0 15px;
    }
    
    .news-ticker {
        margin: 0;
        width: 100%;
    }
    
    .header-top {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        padding: 12px 0;
        position: relative;
    }
    
    /* Header Widget Responsive - Match screenshot layout */
    .header-info-widget {
        order: 1;
        width: 100%;
        padding: 10px 15px;
        gap: 10px;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .datetime-widget {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding-right: 8px;
        border-right: 1px solid rgba(147, 51, 234, 0.3);
        justify-content: center;
        width: auto;
    }
    
    .date-display,
    .time-display {
        font-size: 10px;
        gap: 4px;
        flex: 0 0 auto;
    }
    
    .date-display i,
    .time-display i {
        font-size: 11px;
    }
    
    .weather-widget {
        font-size: 10px;
        gap: 5px;
        justify-content: center;
        padding-left: 8px;
    }
    
    .weather-widget i {
        font-size: 14px;
    }
    
    .weather-location {
        display: none; /* Hide location text on mobile */
    }
    
    /* Social links displayed as second row */
    .social-links {
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(229, 231, 235, 0.2);
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-width: 2px;
    }
    
    /* Logo centered below */
    .logo {
        flex: 0 1 auto;
        text-align: center;
        order: 2;
        width: 100%;
        margin: 8px auto 0;
    }
    
    /* Hamburger menu positioned absolutely */
    .mobile-menu-toggle {
        order: 3;
        position: absolute;
        right: 15px;
        top: 15px;
        transform: none;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    
    .logo h1::after {
        width: 40%;
    }
    
    .logo h1 span {
        font-size: 22px;
        padding: 1px 6px;
    }
    
    .banner-ad.header-banner {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide nav by default on mobile */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #F7FAFC 0%, #EDF2F7 100%);
        box-shadow: -2px 0 20px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
        border-left: 2px solid #9333EA;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 10px;
        gap: 8px;
    }
    
    nav ul li {
        width: 100%;
        text-align: left;
    }
    
    nav ul li a {
        padding: 16px 20px;
        width: 100%;
        border-radius: 8px;
        margin: 0;
        justify-content: flex-start;
    }
    
    nav ul li a:hover,
    nav ul li a:active {
        padding-left: 30px;
        background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
    }
    
    nav ul li a i {
        width: 24px;
        text-align: center;
    }
    
    .news-ticker {
        margin: 15px 0;
    }
    
    .ticker-label {
        padding: 8px 16px;
        font-size: 10px;
        margin-right: 12px;
        letter-spacing: 1px;
    }
    
    .ticker-label i {
        font-size: 14px;
    }
    
    .ticker-item {
        font-size: 14px;
        gap: 8px;
        padding: 6px 12px;
    }
    
    .ticker-item i {
        font-size: 14px;
    }
    
    .ticker-items {
        gap: 40px;
    }
    
    .slider {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .slide-content {
        padding: 20px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    }
    
    .slide-content h2 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #FFFFFF;
    }
    
    .slide-content p {
        font-size: 14px;
        color: #E5E7EB;
    }
    
    .slider-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .banner-ad {
        padding: 15px;
        min-height: 80px;
        font-size: 14px;
    }
    
    .banner-ad > div {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 60px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-ad {
        min-height: 150px;
    }
    
    .sidebar-ad > div {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }
    
    .footer-copyright {
        font-size: 13px;
    }
    
    .footer-links {
        gap: 12px;
        justify-content: center;
    }
    
    .footer-links a,
    .footer-separator {
        font-size: 13px;
    }
    
    .post-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .post-header h1 {
        font-size: 24px;
    }
    
    .post-meta-info {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    nav .container {
        padding: 0 10px;
    }
    
    .news-ticker {
        margin: 0;
        width: 100%;
    }
    
    .header-info-widget {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .datetime-widget {
        gap: 6px;
        padding-right: 6px;
    }
    
    .date-display,
    .time-display {
        font-size: 9px;
    }
    
    .date-display i,
    .time-display i {
        font-size: 10px;
    }
    
    .weather-widget {
        font-size: 9px;
        padding-left: 6px;
    }
    
    .weather-widget i {
        font-size: 12px;
    }
    
    .social-links {
        gap: 8px;
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-width: 1.5px;
    }
    
    .logo h1 {
        font-size: 24px;
        letter-spacing: -0.5px;
    }
    
    
    .logo h1::after {
        width: 50%;
        height: 2px;
    }
    
    .logo h1 span {
        font-size: 18px;
        padding: 1px 5px;
        border-width: 1px;
    }
    
    .logo p {
        font-size: 10px;
        margin-top: 6px;
    }
    
    .mobile-menu-toggle {
        padding: 5px;
        right: 10px;
    }
    
    .hamburger-line {
        width: 25px;
        height: 2.5px;
        margin: 4px 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
    
    nav {
        width: 250px;
    }
    
    nav ul {
        padding: 15px 8px;
    }
    
    nav ul li a {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    nav ul li a i {
        font-size: 14px;
    }
    
    .ticker-label {
        padding: 6px 12px;
        font-size: 9px;
        letter-spacing: 0.8px;
    }
    
    .ticker-label i {
        font-size: 12px;
    }
    
    .ticker-item {
        font-size: 13px;
        gap: 6px;
        padding: 5px 10px;
    }
    
    .ticker-item i {
        font-size: 12px;
    }
    
    .ticker-items {
        gap: 30px;
    }
    
    .news-ticker::before,
    .news-ticker::after {
        width: 40px;
    }
    
    .slider {
        height: 220px;
    }
    
    .slide-content {
        padding: 15px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 50%, transparent 100%);
    }
    
    .slide-content h2 {
        font-size: 16px;
        color: #FFFFFF;
    }
    
    .slide-content p {
        font-size: 12px;
        display: none;
        color: #E5E7EB;
    }
    
    .slider-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .news-section {
        padding: 15px 10px;
    }
    
    .category-header {
        padding: 30px 20px;
    }
    
    .category-title {
        font-size: 32px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .news-card h3 {
        font-size: 16px;
    }
    
    .news-card p {
        font-size: 13px;
    }
    
    .news-meta {
        font-size: 11px;
    }
    
    .category-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .popular-post {
        gap: 10px;
    }
    
    .popular-post img {
        width: 60px;
        height: 60px;
    }
    
    .popular-post-content h4 {
        font-size: 13px;
    }
    
    .popular-post-content .date {
        font-size: 10px;
    }
    
    .popular-post-content .views {
        font-size: 10px;
    }
    
    .post-container {
        padding: 15px;
    }
    
    .post-header h1 {
        font-size: 20px;
    }
    
    .post-meta-info {
        font-size: 11px;
        gap: 8px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    /* Content Banner Ad - Mobile */
    .content-banner-ad {
        margin: 25px 0;
        padding: 15px 0;
    }
    
    .content-banner-ad > div {
        max-width: 100% !important;
        height: auto !important;
        min-height: 70px;
        font-size: 12px !important;
    }
    
    footer {
        padding: 20px 0;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a,
    .footer-separator {
        font-size: 12px;
    }
}

/* Settings Panel */
.settings-panel {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #E5E7EB;
    gap: 30px;
}

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

.setting-info h3 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 8px;
    font-weight: 700;
}

.setting-info p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    min-width: 60px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D1D5DB;
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #10B981;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ads Hidden State */
.ads-hidden {
    display: none !important;
}

/* Initial Ad Loading State - Hide ads by default until settings load */
.banner-ad, .sidebar-ad, .header-banner {
    display: none;
}

.banner-ad.ads-loaded, .sidebar-ad.ads-loaded, .header-banner.ads-loaded {
    display: flex;
}

/* Mobile Responsive Settings */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .setting-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .settings-panel {
        padding: 15px;
    }
    
    .edit-image-actions {
        gap: 10px;
    }
    
    .btn-change-image,
    .btn-remove-image {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .drag-drop-area.has-image .image-preview-drag {
        max-height: 300px;
    }
}

/* Loading Spinner - Slice Line & Cross Animation */
.loading {
    text-align: center;
    padding: 50px;
    color: #2D3748;
}

.loading .slice-cross-loader {
    margin-bottom: 20px;
}

.spinner {
    display: none; /* Hide old spinner */
}

/* Slice Line & Cross Loader */
.slice-cross-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
    display: inline-block;
}

.slice-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9333EA, transparent);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: sliceMove 1.5s ease-in-out infinite;
}

.cross-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.cross-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #E53E3E, transparent);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    opacity: 0;
}

.cross-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    animation: crossFade1 2s ease-in-out infinite;
}

.cross-line:nth-child(2) {
    transform: translateX(-50%) rotate(-45deg);
    animation: crossFade2 2s ease-in-out infinite;
}

.loading-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.loading-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #9333EA;
    border-radius: 50%;
    opacity: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: 0.3s;
}

.loading-dot:nth-child(3) {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

.loading-dot:nth-child(4) {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    animation-delay: 0.9s;
}

@keyframes sliceMove {
    0% {
        transform: translateY(-50%) translateX(-100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
}

@keyframes crossFade1 {
    0%, 40% {
        opacity: 0;
        transform: translateX(-50%) rotate(45deg) scale(0.5);
    }
    50%, 90% {
        opacity: 1;
        transform: translateX(-50%) rotate(45deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) rotate(45deg) scale(0.5);
    }
}

@keyframes crossFade2 {
    0%, 40% {
        opacity: 0;
        transform: translateX(-50%) rotate(-45deg) scale(0.5);
    }
    50%, 90% {
        opacity: 1;
        transform: translateX(-50%) rotate(-45deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) rotate(-45deg) scale(0.5);
    }
}

@keyframes dotPulse {
    0%, 20% {
        opacity: 0;
        transform: scale(0.5);
    }
    40%, 60% {
        opacity: 1;
        transform: scale(1.2);
    }
    80%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* News Globe Animation */
.news-globe {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 0 auto;
    animation: globeFloat 3s ease-in-out infinite;
}

.globe-sphere {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 50%, #9333EA 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        inset -10px -10px 20px rgba(197, 48, 48, 0.3),
        inset 10px 10px 20px rgba(252, 129, 129, 0.2),
        0 4px 15px rgba(147, 51, 234, 0.3);
    animation: globeRotate 4s linear infinite;
}

.globe-sphere::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60%;
    height: 70%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(45deg, 
            transparent 20%, 
            rgba(255, 255, 255, 0.1) 25%, 
            transparent 30%,
            rgba(255, 255, 255, 0.1) 35%, 
            transparent 40%,
            rgba(255, 255, 255, 0.1) 45%, 
            transparent 50%
        );
    border-radius: 50%;
    animation: gridRotate 6s linear infinite reverse;
}

.globe-sphere::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: highlight 2s ease-in-out infinite alternate;
}

.globe-news-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.news-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #C4B5FD;
    border-radius: 50%;
    animation: newsPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(252, 129, 129, 0.6);
}

.news-dot:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.news-dot:nth-child(2) {
    top: 40%;
    right: 25%;
    animation-delay: 0.5s;
}

.news-dot:nth-child(3) {
    bottom: 30%;
    left: 40%;
    animation-delay: 1s;
}

.news-dot:nth-child(4) {
    top: 60%;
    right: 40%;
    animation-delay: 1.5s;
}

@keyframes globeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes globeRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes gridRotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(-360deg) rotateX(360deg); }
}

@keyframes highlight {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes newsPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
        box-shadow: 0 0 6px rgba(252, 129, 129, 0.4);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5); 
        box-shadow: 0 0 12px rgba(252, 129, 129, 0.8);
    }
}

/* Full Screen Minimal Loading Animation */
.fullscreen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.fullscreen-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Minimal Icon Loader */
.loader-circles {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide old loader elements */
.loader-icon {
    display: none !important;
}

.loader-icon svg {
    display: none !important;
}

/* Hide all old loader elements */
.loader-circle {
    display: none !important;
}

.loader-center {
    display: none !important;
}

.loader-dots {
    display: none !important;
}

.loader-dot {
    display: none !important;
}

.loader-circles {
    display: none !important;
}

.loader-dot {
    display: none;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes simpleRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Shimmer Effect - Hidden */
.loader-shimmer {
    display: none;
}

/* Responsive Loader */
@media (max-width: 768px) {
    .loader-circles {
        width: 50px;
        height: 50px;
    }
    
    .loader-icon {
        width: 40px;
        height: 40px;
    }
    
    .loader-circle:nth-child(1) {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .loader-circles {
        width: 45px;
        height: 45px;
    }
    
    .loader-icon {
        width: 35px;
        height: 35px;
    }
    
    .loader-circle:nth-child(1) {
        width: 45px;
        height: 45px;
    }
}

/* Smooth appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Page Content Styles (About, Privacy, Contact)
   ======================================== */

.page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #9333EA;
}

.page-header h1 {
    font-size: 42px;
    color: #2D3748;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-header h1 i {
    color: #9333EA;
    margin-right: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: #6B7280;
    font-weight: 500;
}

.content-wrapper {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* About Page Styles */
.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 28px;
    color: #2D3748;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-section h2 i {
    color: #9333EA;
    font-size: 24px;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 15px;
}

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

.feature-card {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #9333EA;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
}

.feature-card i {
    font-size: 48px;
    color: #9333EA;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #2D3748;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #9333EA;
    font-weight: bold;
    font-size: 20px;
}

.inline-link {
    color: #9333EA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.inline-link:hover {
    color: #A855F7;
    text-decoration: underline;
}

/* Privacy Policy Styles */
.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 24px;
    color: #2D3748;
    margin-bottom: 15px;
    font-weight: 700;
}

.policy-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 15px;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-section ul li {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 10px;
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 28px;
    color: #2D3748;
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-form {
    background: white;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label i {
    color: #9333EA;
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9333EA;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

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

.submit-btn {
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.form-message.error {
    background: #F3E8FF;
    color: #991B1B;
    border: 2px solid #EF4444;
}

.contact-info-card {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #9333EA;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 28px;
    color: #9333EA;
    min-width: 28px;
}

.info-item h3 {
    font-size: 18px;
    color: #2D3748;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-item p {
    font-size: 15px;
    color: #4B5563;
    margin: 0;
}

.social-section {
    margin-bottom: 30px;
}

.social-section h3 {
    font-size: 20px;
    color: #2D3748;
    margin-bottom: 15px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9333EA 0%, #A855F7 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(147, 51, 234, 0.3);
}

.help-section h3 {
    font-size: 20px;
    color: #2D3748;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: #4B5563;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s, padding-left 0.3s;
}

.quick-links a:hover {
    color: #9333EA;
    padding-left: 10px;
}

.quick-links a i {
    color: #9333EA;
}

/* Responsive Styles for New Pages */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section h2 {
        font-size: 24px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .page-content {
        margin: 20px auto;
    }
    
    .page-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* AI Auto Generate Section */
.ai-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

.mode-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-tab:hover {
    color: #9333EA;
    background: rgba(147, 51, 234, 0.15);
}

.mode-tab.active {
    color: #9333EA;
    border-bottom-color: #9333EA;
    background: rgba(147, 51, 234, 0.1);
}

.ai-mode-content {
    animation: fadeIn 0.3s ease;
}

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

.ai-config-panel {
    background: #2D3748;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #9333EA;
}

.ai-config-panel h3 {
    color: #9333EA;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-config-panel .form-group {
    margin-bottom: 0;
}

.ai-config-panel .form-group label {
    color: #e5e7eb;
    font-weight: 600;
}

.ai-config-panel input[type="password"] {
    background: white;
    border: 2px solid #6B7280;
    transition: all 0.3s ease;
}

.ai-config-panel input[type="password"]:focus {
    background: white;
    border-color: #9333EA;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.ai-config-panel small {
    color: #9ca3af;
}

.ai-config-panel small a {
    color: #9333EA;
    text-decoration: underline;
    font-weight: 600;
}

.ai-config-panel small a:hover {
    color: #C4B5FD;
}

/* Auto-Generation Settings */
.auto-gen-settings-panel {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #4A5568;
}

.auto-gen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.auto-gen-header h3 {
    color: #9333EA;
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-gen-toggle {
    display: flex;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6B7280;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10B981;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-slider:hover {
    background-color: #9CA3AF;
}

input:checked + .toggle-slider:hover {
    background-color: #059669;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Category Checkboxes */
.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #4B5563;
    border-color: #9333EA;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #9333EA;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #9333EA;
    font-weight: 600;
}

.checkbox-label span {
    color: #E5E7EB;
    font-size: 14px;
    user-select: none;
}

/* Auto-Gen Info Box */
.auto-gen-info {
    background: #374151;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    border-left: 4px solid #3B82F6;
}

.auto-gen-info i {
    color: #3B82F6;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.auto-gen-info strong {
    color: #9333EA;
}

.auto-gen-info ul {
    color: #D1D5DB;
    font-size: 14px;
    line-height: 1.6;
}

.auto-gen-info li {
    margin-bottom: 5px;
}

/* Auto-Gen Stats */
.auto-gen-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: #374151;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #4B5563;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #9333EA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9333EA, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #9CA3AF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    color: #9333EA;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.generated-preview {
    background: #F7FAFC;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #9333EA;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.generated-preview h3 {
    color: #2D3748;
    margin-bottom: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.generated-preview h3::before {
    content: '✨';
    font-size: 28px;
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.preview-actions button {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 15px;
}

.preview-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.preview-input:focus {
    outline: none;
    border-color: #9333EA;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

textarea.preview-input {
    min-height: 120px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

#generatedContentText {
    min-height: 300px;
}

.btn-primary {
    background: #9333EA;
    color: white;
    border: 2px solid #9333EA;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background: #A855F7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(147, 51, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6B7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4B5563;
    transform: translateY(-2px);
}

/* Loading spinner for AI generation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Headlines List */
.headlines-list {
    margin-top: 30px;
    padding: 25px;
    background: #F3F4F6;
    border-radius: 12px;
    border: 2px solid #F59E0B;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.headlines-list h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.headlines-list h3 i {
    color: #9333EA;
}

.headlines-subtitle {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 20px;
}

#headlinesContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.headline-card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.headline-card:hover {
    border-color: #9333EA;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    background: #FEF3C7;
}

.headline-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #1f2937;
    color: #9333EA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.headline-content {
    flex: 1;
}

.headline-content h4 {
    color: #1e293b;
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.headline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.headline-category {
    background: #1f2937;
    color: #9333EA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.headline-country {
    background: #3B82F6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.headline-country i {
    font-size: 11px;
}

.headline-action {
    color: #9333EA;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.headline-card:hover .headline-action {
    color: #D97706;
}

.headlines-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.loading-content {
    text-align: center;
    color: #6B7280;
}

.loading-content .news-globe {
    margin-bottom: 15px;
}

.loading-content i {
    color: #9333EA;
    margin-bottom: 10px;
    font-size: 24px;
    display: none; /* Hide icon when globe is used */
}

.loading-content p {
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0 4px 0;
}

.loading-content small {
    color: #9CA3AF;
    font-size: 12px;
}

/* ================================================
   ADMIN PANEL RESPONSIVE DESIGN
   ================================================ */

/* Large Tablets (≤1024px) */
@media (max-width: 1024px) {
    .admin-container {
        max-width: 95%;
        margin: 30px auto;
        padding: 30px 25px;
    }
    
    .firebase-form-grid {
        grid-template-columns: 1fr;
    }
    
    .firebase-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auto-gen-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Admin Container */
    .admin-container {
        margin: 20px auto;
        padding: 20px 15px;
        border-radius: 6px;
        max-width: 100%;
        width: calc(100% - 20px);
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
    
    .admin-header p {
        font-size: 14px;
    }
    
    .admin-panel {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .admin-panel h2 {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    /* Tables - Horizontal Scroll */
    .posts-table-container,
    .firebase-configs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
        max-width: calc(100% + 30px);
        width: calc(100% + 30px);
        position: relative;
    }
    
    .posts-table,
    .firebase-configs-table {
        font-size: 11px;
        width: 100%;
        min-width: 700px; /* Force horizontal scroll */
        table-layout: fixed;
    }
    
    /* Fixed column widths for horizontal scroll */
    .posts-table th:nth-child(1),
    .posts-table td:nth-child(1) {
        width: 70px;
        min-width: 70px;
    }
    
    .posts-table th:nth-child(2),
    .posts-table td:nth-child(2) {
        width: 200px;
        min-width: 200px;
    }
    
    .posts-table th:nth-child(3),
    .posts-table td:nth-child(3) {
        width: 100px;
        min-width: 100px;
    }
    
    .posts-table th:nth-child(4),
    .posts-table td:nth-child(4) {
        width: 130px;
        min-width: 130px;
    }
    
    .posts-table th:nth-child(5),
    .posts-table td:nth-child(5) {
        width: 70px;
        min-width: 70px;
    }
    
    .posts-table th:nth-child(6),
    .posts-table td:nth-child(6) {
        width: 130px;
        min-width: 130px;
    }
    
    .posts-table th,
    .posts-table td,
    .firebase-configs-table th,
    .firebase-configs-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .post-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .post-title-cell {
        max-width: 200px;
        font-size: 12px;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }
    
    /* Action Buttons */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 120px;
        width: 100%;
    }
    
    .btn-edit, .btn-delete, .btn-view {
        width: 100%;
        text-align: center;
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Stats Cards */
    .firebase-stats,
    .auto-gen-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 18px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* AI Config Panel */
    .ai-config-panel {
        padding: 20px 15px;
    }
    
    .ai-mode-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .mode-tab {
        width: 100%;
        padding: 12px 16px;
    }
    
    /* AI Preview */
    .preview-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-actions button {
        width: 100%;
        min-width: auto;
    }
    
    .generated-preview {
        padding: 20px 15px;
    }
    
    .preview-content {
        padding: 15px;
    }
    
    /* Auto-Generation */
    .auto-gen-settings-panel {
        padding: 20px 15px;
    }
    
    .auto-gen-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .auto-gen-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .category-checkboxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .checkbox-label {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .auto-gen-info {
        flex-direction: column;
        padding: 12px;
        font-size: 13px;
    }
    
    .auto-gen-info ul {
        font-size: 13px;
        padding-left: 18px;
    }
    
    /* Headlines */
    .headlines-list {
        padding: 15px;
    }
    
    .headline-card {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .headline-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .headline-content h4 {
        font-size: 15px;
    }
    
    .headline-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Firebase Manager */
    .firebase-info-card {
        flex-direction: column;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .firebase-info-icon i {
        font-size: 36px;
    }
    
    .firebase-add-panel,
    .firebase-configs-panel,
    .firebase-tutorial-card {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .quick-paste-section {
        padding: 20px;
    }
    
    .quick-paste-section h3 {
        font-size: 16px;
    }
    
    .quick-paste-section textarea {
        font-size: 12px;
        padding: 12px;
    }
    
    .form-divider span {
        font-size: 12px;
        padding: 0 15px;
    }
    
    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-content form {
        padding: 20px;
    }
    
    /* Edit Image Actions */
    .edit-image-actions {
        gap: 10px;
    }
    
    .btn-change-image,
    .btn-remove-image {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .drag-drop-area.has-image .image-preview-drag {
        max-height: 300px;
    }
    
    /* Drag & Drop */
    .drag-drop-area {
        padding: 25px 15px;
        min-height: 200px;
    }
    
    .drag-drop-text {
        font-size: 16px;
    }
    
    .btn-browse {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile Devices (≤480px) */
@media (max-width: 480px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* Admin Container */
    .admin-container {
        margin: 10px auto;
        padding: 15px 10px;
        border-radius: 4px;
        max-width: 100%;
        width: calc(100% - 20px);
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .admin-header h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .admin-header p {
        font-size: 13px;
    }
    
    .admin-panel {
        padding: 15px 10px;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .admin-panel h2 {
        font-size: 16px;
        word-wrap: break-word;
    }
    
    /* Tables - Mobile Horizontal Scroll */
    .posts-table-container,
    .firebase-configs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
        max-width: calc(100% + 20px);
        width: calc(100% + 20px);
        position: relative;
    }
    
    /* Add scroll indicator */
    .posts-table-container::after,
    .firebase-configs-table-wrapper::after {
        content: '→ Swipe to see more';
        position: absolute;
        top: 10px;
        right: 20px;
        background: #F59E0B;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 600;
        pointer-events: none;
        opacity: 0.9;
        z-index: 10;
    }
    
    .posts-table,
    .firebase-configs-table {
        font-size: 10px;
        width: 100%;
        min-width: 650px; /* Force horizontal scroll */
        table-layout: fixed;
    }
    
    /* Smaller columns for mobile */
    .posts-table th:nth-child(1),
    .posts-table td:nth-child(1) {
        width: 60px;
        min-width: 60px;
    }
    
    .posts-table th:nth-child(2),
    .posts-table td:nth-child(2) {
        width: 180px;
        min-width: 180px;
    }
    
    .posts-table th:nth-child(3),
    .posts-table td:nth-child(3) {
        width: 90px;
        min-width: 90px;
    }
    
    .posts-table th:nth-child(4),
    .posts-table td:nth-child(4) {
        width: 120px;
        min-width: 120px;
    }
    
    .posts-table th:nth-child(5),
    .posts-table td:nth-child(5) {
        width: 60px;
        min-width: 60px;
    }
    
    .posts-table th:nth-child(6),
    .posts-table td:nth-child(6) {
        width: 140px;
        min-width: 140px;
    }
    
    .posts-table th,
    .posts-table td,
    .firebase-configs-table th,
    .firebase-configs-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .post-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .post-title-cell {
        max-width: 180px;
        font-size: 11px;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
    }
    
    .post-category-badge,
    .firebase-status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Action Buttons */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 130px;
        width: 100%;
    }
    
    .btn-edit, .btn-delete, .btn-view,
    .firebase-action-btn {
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
        width: 100%;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 13px;
        padding: 10px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 11px 18px;
        font-size: 13px;
    }
    
    /* Stats Cards */
    .stat-card {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* AI Config */
    .ai-config-panel {
        padding: 15px;
    }
    
    .ai-config-panel h3 {
        font-size: 16px;
    }
    
    .mode-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* AI Preview */
    .generated-preview {
        padding: 15px;
    }
    
    .generated-preview h3 {
        font-size: 16px;
    }
    
    .preview-actions button {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .preview-content {
        padding: 12px;
    }
    
    /* Auto-Generation */
    .auto-gen-settings-panel {
        padding: 15px;
    }
    
    .auto-gen-header h3 {
        font-size: 16px;
    }
    
    .category-checkboxes {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .checkbox-label {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .auto-gen-info {
        padding: 10px;
        font-size: 12px;
    }
    
    .auto-gen-info ul {
        font-size: 12px;
        padding-left: 16px;
    }
    
    /* Headlines */
    .headlines-list {
        padding: 12px;
    }
    
    .headlines-list h3 {
        font-size: 16px;
    }
    
    .headline-card {
        padding: 10px;
        gap: 8px;
    }
    
    .headline-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .headline-content h4 {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .headline-category,
    .headline-country {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* Firebase Manager */
    .firebase-info-card {
        padding: 15px;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .firebase-info-icon i {
        font-size: 32px;
    }
    
    .firebase-info-content h3 {
        font-size: 16px;
    }
    
    .firebase-info-content p,
    .firebase-info-content li {
        font-size: 13px;
    }
    
    .firebase-add-panel,
    .firebase-configs-panel,
    .firebase-tutorial-card {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .firebase-add-panel h2,
    .firebase-configs-panel h2 {
        font-size: 16px;
    }
    
    .quick-paste-section {
        padding: 15px;
    }
    
    .quick-paste-section h3 {
        font-size: 14px;
    }
    
    .quick-paste-section p {
        font-size: 12px;
    }
    
    .quick-paste-section textarea {
        font-size: 11px;
        padding: 10px;
        min-height: 150px;
    }
    
    .form-divider span {
        font-size: 11px;
        padding: 0 12px;
    }
    
    .firebase-tutorial-card h3 {
        font-size: 16px;
    }
    
    .firebase-tutorial-card ol {
        font-size: 13px;
        margin-left: 16px;
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        margin: 5px;
        max-height: 98vh;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .close-modal {
        font-size: 28px;
    }
    
    .modal-content form {
        padding: 15px;
    }
    
    /* Edit Image Actions */
    .edit-image-actions {
        gap: 8px;
    }
    
    .btn-change-image,
    .btn-remove-image {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .drag-drop-area.has-image .image-preview-drag {
        max-height: 250px;
    }
    
    /* Drag & Drop */
    .drag-drop-area {
        padding: 20px 12px;
        min-height: 180px;
    }
    
    .drag-drop-area svg {
        width: 48px;
        height: 48px;
    }
    
    .drag-drop-text {
        font-size: 14px;
    }
    
    .drag-drop-or {
        font-size: 11px;
    }
    
    .btn-browse {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .image-preview-drag {
        max-height: 200px;
    }
    
    /* SEO Section */
    .seo-tool-link {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Settings */
    .setting-item {
        padding: 15px;
        gap: 12px;
    }
    
    .setting-info h3 {
        font-size: 16px;
    }
    
    .setting-info p {
        font-size: 13px;
    }
    
    .toggle-label {
        font-size: 13px;
    }
    
    /* Success Messages */
    .success-message {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Loading */
    .loading {
        padding: 30px 15px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
}

/* Social Share Section */
.social-share-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 12px;
    border: 2px solid #F59E0B;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-share-section h3 {
    color: #1f2937;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share-section h3 i {
    color: #9333EA;
    font-size: 20px;
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
}

.share-btn i {
    font-size: 18px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
    transform: translateY(-1px);
}

/* Facebook */
.share-btn.facebook {
    color: #1877F2;
    border-color: #1877F2;
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

/* Twitter */
.share-btn.twitter {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

/* LinkedIn */
.share-btn.linkedin {
    color: #0A66C2;
    border-color: #0A66C2;
}

.share-btn.linkedin:hover {
    background: #0A66C2;
    color: white;
}

/* WhatsApp */
.share-btn.whatsapp {
    color: #25D366;
    border-color: #25D366;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    color: white;
}

/* Telegram */
.share-btn.telegram {
    color: #0088cc;
    border-color: #0088cc;
}

.share-btn.telegram:hover {
    background: #0088cc;
    color: white;
}

/* Copy Link */
.share-btn.copy-link {
    color: #6B7280;
    border-color: #6B7280;
}

.share-btn.copy-link:hover {
    background: #6B7280;
    color: white;
}

/* Responsive Social Share */
@media (max-width: 768px) {
    .social-share-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .social-share-section h3 {
        font-size: 18px;
    }
    
    .social-share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .share-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .social-share-section {
        padding: 15px;
    }
    
    .social-share-section h3 {
        font-size: 16px;
    }
    
    .social-share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .share-btn span {
        display: none;
    }
    
    .share-btn i {
        font-size: 18px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: #9333EA;
    color: white;
    border: 2px solid #9333EA;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #A855F7;
    color: white;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-number {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: #9333EA;
    color: #9333EA;
    transform: translateY(-2px);
}

.page-number.active {
    background: #9333EA;
    color: white;
    border-color: #9333EA;
}

.pagination-ellipsis {
    color: #6B7280;
    font-weight: bold;
    padding: 0 5px;
    font-size: 18px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 30px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .page-number {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
    }
    
    .pagination-btn i {
        display: none;
    }
    
    .page-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-numbers {
        gap: 3px;
    }
}

/* ===================================== */
/* Firebase Manager Styles */
/* ===================================== */

.firebase-info-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
    border: 2px solid #F59E0B;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.firebase-info-icon {
    flex-shrink: 0;
}

.firebase-info-icon i {
    font-size: 42px;
    color: #9333EA;
}

.firebase-info-content h3 {
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 20px;
}

.firebase-info-content p {
    color: #4B5563;
    margin-bottom: 15px;
    line-height: 1.6;
}

.firebase-info-content ul {
    list-style: none;
    padding: 0;
}

.firebase-info-content ul li {
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
}

.firebase-info-content ul li strong {
    color: #9333EA;
}

.firebase-add-panel {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.firebase-add-panel h2 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firebase-add-panel h2 i {
    color: #9333EA;
}

/* Quick Paste Section */
.quick-paste-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px dashed #3B82F6;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.quick-paste-section h3 {
    color: #1E40AF;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-paste-section h3 i {
    color: #3B82F6;
}

.quick-paste-section p {
    color: #1F2937;
    margin-bottom: 15px;
    font-size: 14px;
}

.quick-paste-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #93C5FD;
    border-radius: 8px;
    background: white;
    color: #1F2937;
    resize: vertical;
    transition: all 0.3s ease;
}

.quick-paste-section textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quick-paste-section textarea::placeholder {
    color: #9CA3AF;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #E5E7EB;
}

.form-divider span {
    padding: 0 20px;
    color: #6B7280;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: white;
}

.firebase-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.firebase-configs-panel {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.firebase-configs-panel h2 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firebase-configs-panel h2 i {
    color: #9333EA;
}

.firebase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px solid #D1D5DB;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #9333EA;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #9333EA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.stat-icon.active {
    background: #10B981;
    color: white;
}

.stat-icon.posts {
    background: #3B82F6;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.firebase-configs-table-wrapper {
    overflow-x: auto;
}

.firebase-configs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.firebase-configs-table thead {
    background: #9333EA;
}

.firebase-configs-table thead th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.firebase-configs-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
}

.firebase-configs-table tbody tr:hover {
    background: #F9FAFB;
}

.firebase-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.firebase-status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

.firebase-status-badge.inactive {
    background: #F3E8FF;
    color: #991B1B;
}

.firebase-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.firebase-action-btn.activate {
    background: #10B981;
    color: white;
}

.firebase-action-btn.activate:hover {
    background: #059669;
}

.firebase-action-btn.deactivate {
    background: #F59E0B;
    color: white;
}

.firebase-action-btn.deactivate:hover {
    background: #D97706;
}

.firebase-action-btn.delete {
    background: #EF4444;
    color: white;
}

.firebase-action-btn.delete:hover {
    background: #DC2626;
}

.firebase-tutorial-card {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border: 2px solid #3B82F6;
    border-radius: 12px;
    padding: 25px;
}

.firebase-tutorial-card h3 {
    color: #1E40AF;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firebase-tutorial-card ol {
    margin-left: 20px;
    color: #1F2937;
}

.firebase-tutorial-card ol li {
    padding: 8px 0;
    line-height: 1.6;
}

.firebase-tutorial-card a {
    color: #2563EB;
    text-decoration: underline;
    font-weight: 600;
}


/* Auto-Indexing Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Styles for 3-Header Layout */
@media (max-width: 1024px) {
    .header-ad-section {
        max-width: 468px;
    }
    
    .header-info-left {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Top Header - Better mobile layout */
    .header-top-bar {
        padding: 12px 0;
    }
    
    .header-top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .header-info-left {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
        flex: 1;
    }
    
    .weather-widget {
        padding-left: 12px;
        border-left: 1px solid #E2E8F0;
    }
    
    .social-links {
        flex-shrink: 0;
        gap: 8px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    /* Middle Header - Better mobile layout */
    .header-middle {
        padding: 18px 0;
    }
    
    .header-middle-content {
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    
    .logo {
        flex: 1;
        margin-right: 0;
    }
    
    .logo h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .logo h1 span {
        font-size: 20px;
    }
    
    .logo p {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .header-ad-section {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: static;
        transform: none;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    /* Very small screens - stack top header */
    .header-top-bar {
        padding: 10px 0;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .header-info-left {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .date-display,
    .time-display,
    .weather-widget {
        font-size: 11px;
    }
    
    .weather-widget {
        padding-left: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 6px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    /* Middle header for very small screens */
    .header-middle {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo h1 span {
        font-size: 16px;
    }
    
    .logo p {
        font-size: 9px;
    }
}

