/* Global Time Now - Modern News Website CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E53935;
    --primary-red-dark: #c62828;
    --dark-text: #333333;
    --light-bg: #f4f4f4;
    --white: #FFFFFF;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Enhanced Dark Mode Variables */
body.dark-mode {
    --light-bg: #0d0d0d;
    --white: #1e1e1e;
    --dark-text: #e8e8e8;
    --gray-100: #1a1a1a;
    --gray-200: #252525;
    --gray-300: #2d2d2d;
    --gray-700: #b0b0b0;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
}

body.dark-mode {
    background-color: #0d0d0d;
    color: #e8e8e8;
}

body.dark-mode header {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid #2d2d2d;
}

body.dark-mode nav {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
}

body.dark-mode nav ul li a {
    color: #e8e8e8;
}

body.dark-mode nav ul li a:hover {
    background-color: #2d2d2d;
    color: var(--primary-red);
}

body.dark-mode .ticker-container {
    background-color: #c62828;
    border-bottom: 1px solid #a71e1e;
}

body.dark-mode .article-card,
body.dark-mode .main-article,
body.dark-mode .small-article {
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
}

body.dark-mode .article-card:hover,
body.dark-mode .main-article:hover,
body.dark-mode .small-article:hover {
    background-color: #252525;
    border-color: #3d3d3d;
}

body.dark-mode .sidebar-widget {
    background-color: #1e1e1e;
    border: 1px solid #2d2d2d;
}

body.dark-mode footer {
    background-color: #1a1a1a;
    border-top: 1px solid #2d2d2d;
}

body.dark-mode .breaking-alert {
    background-color: #1e1e1e;
    border: 1px solid var(--primary-red);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #1e1e1e;
    color: #e8e8e8;
    border-color: #2d2d2d;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--primary-red);
    background-color: #252525;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Page Load Animation */
body {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== HEADER ===== */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transform: translateY(0);
    transition: all var(--transition-normal);
    animation: slideDown 0.5s ease-out;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-header {
    display: flex;
    gap: 10px;
}

.social-header a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: var(--white);
    transition: all var(--transition-normal);
    font-size: 14px;
}

.social-header a:hover {
    background-color: var(--dark-text);
    transform: translateY(-3px) rotate(360deg);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    background-color: transparent;
    color: var(--primary-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 18px;
}

.theme-toggle:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: rotate(180deg);
}

body.dark-mode .theme-toggle {
    border-color: #ffa726;
    color: #ffa726;
}

body.dark-mode .theme-toggle:hover {
    background-color: #ffa726;
    color: #121212;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-text);
    padding: 8px;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    transition: all var(--transition-normal);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--primary-red);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: var(--primary-red);
}

/* ===== NAVIGATION ===== */
nav {
    background-color: var(--dark-text);
    position: relative;
    overflow: hidden;
}

nav ul {
    display: flex;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap;
}

nav li {
    flex: 1;
    min-width: 100px;
    position: relative;
}

nav a {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-red);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

nav a:hover::before {
    width: 80%;
}

nav a:hover {
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== BREAKING NEWS TICKER ===== */
.ticker-container {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ticker-label {
    background-color: var(--dark-text);
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 15px;
    white-space: nowrap;
}

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

.ticker-text {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    padding-right: 50px;
}

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

    100% {
        transform: translateX(-100%);
    }
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.intro-text {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-red), #d32f2f);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: slideInFromLeft 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.intro-text:hover::before {
    left: 100%;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

/* ===== FEATURED NEWS SECTION ===== */
.featured-section {
    grid-column: 1 / 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.main-article {
    grid-column: 1 / -1;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out;
    cursor: pointer;
}

.main-article:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.main-article-img {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #E53935, #d32f2f, #c62828);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

.main-article-content {
    padding: 25px;
}

.main-article-category {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.main-article-category::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.main-article:hover .main-article-category::before,
.article-card:hover .main-article-category::before {
    width: 200px;
    height: 200px;
}

.main-article h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--dark-text);
    line-height: 1.4;
}

.main-article p {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.read-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.read-more:hover::before {
    width: 300px;
    height: 300px;
}

.read-more:hover {
    background-color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.4);
}

.small-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.small-article {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out;
    cursor: pointer;
}

.small-article:nth-child(1) {
    animation-delay: 0.1s;
}

.small-article:nth-child(2) {
    animation-delay: 0.2s;
}

.small-article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.small-article-img {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #E53935, #d32f2f, #c62828);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    text-align: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.small-article-content {
    padding: 15px;
}

.small-article-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.small-article-content .article-meta {
    font-size: 12px;
    margin-bottom: 10px;
}

/* ===== CATEGORY SECTIONS ===== */
.category-section {
    grid-column: 1 / 2;
    margin-bottom: 40px;
}

.category-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
    position: relative;
    animation: slideInFromLeft 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--dark-text);
    transition: width var(--transition-slow);
}

.section-title:hover::after {
    width: 100%;
}

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

.article-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out backwards;
    cursor: pointer;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.article-card:hover::before {
    transform: scaleX(1);
}

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

.article-card:nth-child(1) {
    animation-delay: 0.1s;
}

.article-card:nth-child(2) {
    animation-delay: 0.2s;
}

.article-card:nth-child(3) {
    animation-delay: 0.3s;
}

.article-card:nth-child(4) {
    animation-delay: 0.4s;
}

.article-card:nth-child(5) {
    animation-delay: 0.5s;
}

.article-card:nth-child(6) {
    animation-delay: 0.6s;
}

.article-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #E53935, #d32f2f, #c62828);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    text-align: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.article-card:hover .article-img {
    transform: scale(1.1);
    background-position: 100% 50%;
}

.article-content {
    padding: 15px;
}

.article-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--dark-text);
}

.article-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.article-content .article-meta {
    font-size: 12px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    grid-column: 2 / 3;
    grid-row: 2 / span 20;
    align-self: start;
}

@media (max-width: 1200px) {
    .sidebar {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 100;
    }
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInRight 0.8s ease-out backwards;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget:nth-child(1) {
    animation-delay: 0.2s;
}

.sidebar-widget:nth-child(2) {
    animation-delay: 0.3s;
}

.sidebar-widget:nth-child(3) {
    animation-delay: 0.4s;
}

.sidebar-widget:nth-child(4) {
    animation-delay: 0.5s;
}

.sidebar-widget:nth-child(5) {
    animation-delay: 0.6s;
}

.sidebar-widget:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.search-box button {
    padding: 10px 15px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.search-box button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.search-box button:hover::before {
    left: 100%;
}

.search-box button:hover {
    background-color: var(--dark-text);
    transform: scale(1.05);
}

.post-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

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

.post-list a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.post-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width var(--transition-normal);
}

.post-list a:hover::after {
    width: 100%;
}

.post-list a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.post-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    display: block;
    transition: all var(--transition-normal);
    border-radius: 0 6px 6px 0;
    position: relative;
}

.category-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(229, 57, 53, 0.05);
    transition: width var(--transition-normal);
    z-index: -1;
}

.category-list a:hover::before {
    width: 100%;
}

.category-list a:hover {
    border-left-color: var(--primary-red);
    color: var(--primary-red);
    padding-left: 18px;
    transform: translateX(3px);
}

.ad-placeholder {
    background: linear-gradient(135deg, #f4f4f4, #e0e0e0);
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    transition: all var(--transition-normal);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.ad-placeholder:hover {
    border-color: var(--primary-red);
    transform: scale(1.02);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, var(--dark-text), #1a1a1a);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), transparent, var(--primary-red));
    animation: footerLine 3s ease-in-out infinite;
}

@keyframes footerLine {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all var(--transition-normal);
}

.footer-section a:hover::before {
    opacity: 1;
    left: -20px;
}

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

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

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
    position: relative;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--white);
    transform: scale(0);
    transition: transform var(--transition-normal);
    z-index: -1;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a:hover {
    color: var(--primary-red);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #ccc;
}

/* ===== ARTICLE PAGE ===== */
.article-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-page-header {
    margin-bottom: 30px;
}

.article-page-category {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-page-meta {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.article-page-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #E53935, #d32f2f);
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

.article-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 40px;
}

.article-page-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.related-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--light-bg);
}

.related-posts-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-post-card:hover {
    transform: translateY(-3px);
}

.related-post-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #E53935, #d32f2f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.related-post-content {
    padding: 12px;
}

.related-post-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-post-content a {
    color: var(--dark-text);
    text-decoration: none;
}

.related-post-content a:hover {
    color: var(--primary-red);
}

.back-home-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.back-home-link:hover {
    background-color: var(--dark-text);
}

/* ===== STATIC PAGES ===== */
.page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-container h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 15px;
}

.page-container h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-container p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 15px;
    text-align: justify;
}

.page-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-container ul li {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.contact-form {
    margin: 30px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

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

.form-group button {
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s;
}

.form-group button:hover {
    background-color: var(--dark-text);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

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

/* Fade-in utility class for dynamic content */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .featured-section {
        grid-column: 1 / -1;
    }

    .category-section {
        grid-column: 1 / -1;
    }

    .sidebar {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .trending-section {
        padding: 20px;
    }

    .newsletter-widget,
    .live-updates-widget,
    .weather-widget,
    .video-widget {
        padding: 25px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        max-height: 400px;
        overflow-y: auto;
    }

    body.dark-mode nav ul {
        background-color: #1a1a1a;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        flex: none;
        width: 100%;
    }

    nav a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--gray-200);
        display: block;
    }

    body.dark-mode nav a {
        border-bottom-color: #2d2d2d;
    }

    /* Header */
    .header-top {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 20px;
    }

    .header-right {
        gap: 10px;
    }

    .social-header {
        display: none;
    }

    .theme-toggle {
        padding: 8px 12px;
        font-size: 16px;
    }

    /* Container */
    .container {
        padding: 15px;
        gap: 20px;
    }

    /* Featured Section */
    .featured-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .small-articles {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-article {
        flex-direction: column;
    }

    .main-article-img {
        height: 220px;
        width: 100%;
    }

    .main-article-content {
        padding: 20px;
    }

    .main-article h2 {
        font-size: 22px;
    }

    /* Articles Grid */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-img {
        height: 180px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Trending Section */
    .trending-section {
        padding: 15px;
    }

    .trending-tags {
        gap: 8px;
    }

    .trending-tag {
        padding: 8px 15px;
        font-size: 13px;
    }

    /* Widgets */
    .newsletter-widget,
    .live-updates-widget,
    .weather-widget,
    .video-widget {
        padding: 20px;
        margin: 0 15px 20px;
    }

    .widget-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .newsletter-form input {
        padding: 10px 15px;
    }

    .newsletter-form button {
        padding: 10px 20px;
    }

    /* Article Page */
    .article-page-container {
        padding: 20px 15px;
    }

    .article-page-image {
        height: 220px;
        margin-bottom: 20px;
    }

    .article-page-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .article-page-content {
        font-size: 15px;
    }

    .article-share-section {
        margin: 30px 0;
    }

    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .related-posts {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Page Container */
    .page-container {
        padding: 20px 15px;
        margin: 15px;
    }

    /* Ticker */
    .ticker-container {
        flex-direction: column;
        gap: 5px;
        padding: 10px 15px;
    }

    .ticker-label {
        margin-right: 0;
        padding: 5px 15px;
    }

    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 15px;
    }

    /* Modals */
    .share-modal-content,
    .breaking-alert {
        width: 90%;
        margin: 10% auto;
        padding: 25px;
    }

    /* Search Box */
    .search-box {
        max-width: 100%;
    }

    .search-box input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    /* Header */
    .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .header-right {
        gap: 8px;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 14px;
    }

    .hamburger span {
        width: 22px;
    }

    /* Typography */
    .main-article h2 {
        font-size: 20px;
    }

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

    .article-page-title {
        font-size: 22px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    /* Images */
    .main-article-img {
        height: 180px;
    }

    .small-article-img {
        height: 140px;
    }

    .article-img {
        height: 160px;
    }

    .article-page-image {
        height: 200px;
    }

    .related-post-img {
        height: 120px !important;
    }

    /* Container */
    .container {
        padding: 10px;
        gap: 15px;
    }

    /* Articles */
    .article-content {
        padding: 15px;
    }

    .article-content h3 {
        font-size: 16px;
    }

    .article-content p {
        font-size: 13px;
    }

    .article-meta {
        font-size: 11px;
    }

    .main-article-category {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Widgets */
    .newsletter-widget,
    .live-updates-widget,
    .weather-widget,
    .video-widget {
        padding: 15px;
        margin: 0 10px 15px;
    }

    .widget-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: 4px;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }

    /* Trending */
    .trending-section {
        padding: 12px 10px;
    }

    .trending-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Footer */
    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section ul li a,
    .footer-bottom p {
        font-size: 13px;
    }

    /* Forms */
    .contact-form,
    .form-group {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group button {
        font-size: 14px;
        padding: 10px;
    }

    /* Article Page */
    .article-page-container {
        padding: 15px 10px;
    }

    .article-page-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .article-page-content p {
        margin-bottom: 15px;
    }

    .back-home-link {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Page Container */
    .page-container {
        padding: 15px 10px;
        margin: 10px;
    }

    .page-container h1 {
        font-size: 24px;
    }

    .page-container h2 {
        font-size: 20px;
    }

    .page-container p {
        font-size: 14px;
    }

    /* Modals */
    .share-modal-content,
    .breaking-alert {
        width: 95%;
        padding: 20px;
    }

    /* Ticker */
    .ticker-label {
        font-size: 11px;
        padding: 4px 12px;
    }

    .ticker-text {
        font-size: 12px;
    }

    /* Scroll to Top */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 10px;
        font-size: 16px;
    }
}
}


.article-page-image {
    height: 200px;
}

.page-container {
    padding: 15px;
    margin: 15px;
}

.page-container h1 {
    font-size: 24px;
}

.page-container h2 {
    font-size: 18px;
}
}


/* ===== TRENDING SECTION ===== */
.trending-section {
    grid-column: 1 / -1;
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    animation: slideInFromLeft 0.8s ease-out;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.trending-header i {
    color: var(--primary-red);
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.trending-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background-color: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '#';
    margin-right: 4px;
    color: var(--primary-red);
    font-weight: 700;
}

.tag:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.tag:hover::before {
    color: var(--white);
}

/* ===== NEWSLETTER WIDGET ===== */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-red), #d32f2f);
    color: var(--white);
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-description {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition-normal);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.newsletter-form button {
    padding: 12px;
    background-color: var(--white);
    color: var(--primary-red);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background-color: var(--dark-text);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.newsletter-privacy {
    font-size: 11px;
    opacity: 0.8;
    margin: 0;
}

/* ===== LIVE UPDATES WIDGET ===== */
.live-updates-widget .widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.live-indicator {
    background-color: #ff1744;
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.live-updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.live-update-item {
    padding: 12px;
    background-color: var(--light-bg);
    border-left: 3px solid var(--primary-red);
    border-radius: 6px;
    transition: all var(--transition-normal);
    animation: slideInFromRight 0.5s ease-out;
}

.live-update-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.update-time {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.live-update-item p {
    font-size: 13px;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.4;
}

/* ===== WEATHER WIDGET ===== */
.weather-widget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--white);
}

.weather-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.weather-location,
.weather-temp,
.weather-condition {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.weather-temp {
    font-size: 32px;
    font-weight: 700;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.weather-details div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== VIDEO WIDGET ===== */
.video-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.video-item {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.video-item:hover {
    transform: translateY(-3px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.video-thumbnail i {
    font-size: 40px;
    color: var(--white);
    opacity: 0.9;
    transition: all var(--transition-normal);
}

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

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

.video-item h4 {
    font-size: 14px;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.4;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all var(--transition-normal);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--dark-text);
    transform: translateY(-5px);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* ===== BREAKING NEWS ALERT ===== */
.breaking-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    transition: top 0.5s ease-out;
}

.breaking-alert.show {
    top: 20px;
}

.breaking-alert-content {
    background: linear-gradient(135deg, #ff1744, #f50057);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.breaking-badge {
    background-color: var(--white);
    color: #ff1744;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.breaking-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.breaking-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: all var(--transition-fast);
}

.breaking-close:hover {
    transform: rotate(90deg);
}

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

.share-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

.share-modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideInFromBottom 0.3s ease-out;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

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

.share-modal-header h3 {
    font-size: 22px;
    color: var(--dark-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.share-modal-close:hover {
    background-color: var(--light-bg);
    color: var(--dark-text);
    transform: rotate(90deg);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-btn {
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.email {
    background-color: #ea4335;
}

.share-btn.copy-link {
    background-color: #666;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

/* ===== IMAGE FIX - PROPER ASPECT RATIOS ===== */
.main-article-img,
.small-article-img,
.article-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.main-article-img::after,
.small-article-img::after,
.article-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2));
}

/* Ensure images don't overflow */
.main-article,
.small-article,
.article-card {
    overflow: hidden;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dark-text);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all var(--transition-normal);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #4caf50;
}

.toast.error {
    background-color: #f44336;
}

.toast.info {
    background-color: #2196f3;
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1200px) {
    .social-header {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }

    .breaking-alert-content {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .share-options {
        grid-template-columns: 1fr;
    }

    .trending-tags {
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .weather-temp {
        font-size: 24px;
    }

    .video-thumbnail {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .breaking-alert {
        width: 95%;
    }

    .breaking-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .breaking-text {
        font-size: 12px;
    }

    .share-modal-content {
        padding: 20px;
    }

    .share-modal-header h3 {
        font-size: 18px;
    }
}

/* ===== MOBILE TOUCH ENHANCEMENTS ===== */
@media (hover: none) and (pointer: coarse) {

    /* Touch-friendly tap targets */
    a,
    button,
    .hamburger,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects on touch devices */
    .article-card:hover,
    .main-article:hover,
    .small-article:hover {
        transform: none;
    }

    /* Add active/tap states instead */
    .article-card:active,
    .main-article:active,
    .small-article:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    button:active,
    .read-more:active,
    .share-btn:active {
        transform: scale(0.95);
    }

    /* Disable smooth scrolling on mobile for better performance */
    html {
        scroll-behavior: auto;
    }
}

/* ===== IMPROVED DARK MODE ELEMENTS ===== */
body.dark-mode .main-article-category,
body.dark-mode .article-page-category {
    background-color: var(--primary-red);
    color: #ffffff;
}

body.dark-mode .read-more {
    background-color: var(--primary-red);
    color: #ffffff;
}

body.dark-mode .read-more:hover {
    background-color: #d32f2f;
}

body.dark-mode .section-title {
    color: #ffffff;
    border-bottom-color: #2d2d2d;
}

body.dark-mode .article-meta {
    color: #a0a0a0;
}

body.dark-mode .trending-tag {
    background-color: #2d2d2d;
    color: #e8e8e8;
    border-color: #3d3d3d;
}

body.dark-mode .trending-tag:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

body.dark-mode .newsletter-widget,
body.dark-mode .live-updates-widget,
body.dark-mode .weather-widget,
body.dark-mode .video-widget {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
}

body.dark-mode .widget-title {
    color: #ffffff;
}

body.dark-mode .live-update-item {
    border-bottom-color: #2d2d2d;
}

body.dark-mode .live-update-time {
    color: #a0a0a0;
}

body.dark-mode .weather-icon {
    color: #ffa726;
}

body.dark-mode .video-title {
    color: #e8e8e8;
}

body.dark-mode .video-duration {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .social-icons a {
    background-color: #2d2d2d;
    color: #e8e8e8;
}

body.dark-mode .social-icons a:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

body.dark-mode .page-container h1,
body.dark-mode .page-container h2,
body.dark-mode .page-container h3 {
    color: #ffffff;
}

body.dark-mode .article-page-content p {
    color: #d0d0d0;
}

body.dark-mode .back-home-link {
    background-color: #2d2d2d;
    color: #e8e8e8;
}

body.dark-mode .back-home-link:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

body.dark-mode .share-btn {
    background-color: #2d2d2d;
    color: #e8e8e8;
}

body.dark-mode .share-btn:hover {
    filter: brightness(1.2);
}

body.dark-mode .share-btn.facebook:hover {
    background-color: #1877f2;
}

body.dark-mode .share-btn.twitter:hover {
    background-color: #1da1f2;
}

body.dark-mode .share-btn.linkedin:hover {
    background-color: #0a66c2;
}

body.dark-mode .share-btn.whatsapp:hover {
    background-color: #25d366;
}

body.dark-mode .related-post-card {
    background-color: #1e1e1e;
    border-color: #2d2d2d;
}

body.dark-mode .related-post-card:hover {
    background-color: #252525;
    border-color: #3d3d3d;
}

body.dark-mode .scroll-to-top {
    background-color: var(--primary-red);
    color: #ffffff;
}

body.dark-mode .scroll-to-top:hover {
    background-color: #d32f2f;
}

/* Smooth transitions for dark mode toggle */
body,
header,
nav,
.article-card,
.main-article,
.small-article,
.sidebar-widget,
footer,
input,
textarea,
select,
.trending-tag,
.newsletter-widget,
.live-updates-widget,
.weather-widget,
.video-widget {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

body.dark-mode a:focus,
body.dark-mode button:focus,
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    outline-color: #ff6659;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {

    header,
    nav,
    .ticker-container,
    .sidebar,
    .newsletter-widget,
    .share-modal,
    .breaking-alert,
    .scroll-to-top,
    footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .article-page-container,
    .page-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}



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

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: slideInFromBottom 0.3s ease-out;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-red);
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e8e8e8;
}

/* ===== SEARCH MODAL ===== */
.search-modal-content {
    max-width: 800px;
    width: 90%;
    margin: 5% auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.search-results-container {
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 10px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--gray-300);
    transition: background-color var(--transition-fast);
}

.search-result-item:hover {
    background-color: var(--gray-100);
}

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

.search-result-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--gray-200);
}

.search-result-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.search-result-info h4 a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.search-result-info h4 a:hover {
    color: var(--primary-red);
}

.search-result-info p {
    font-size: 13px;
    color: var(--gray-700);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .search-result-item {
    border-color: var(--gray-700);
}

body.dark-mode .search-result-item:hover {
    background-color: var(--gray-200);
}

body.dark-mode .search-result-info h4 a {
    color: var(--white);
}

body.dark-mode .search-result-info h4 a:hover {
    color: var(--primary-red);
}

body.dark-mode .search-result-info p {
    color: #ccc;
}

/* ===== COMPREHENSIVE RESPONSIVE OVERHAUL ===== */
/* Fluid spacing & typography variables */
:root {
    --content-max-width: 1400px;
    --spacing-xs: clamp(6px, 0.6vw, 10px);
    --spacing-sm: clamp(10px, 1vw, 16px);
    --spacing-md: clamp(16px, 1.5vw, 24px);
    --spacing-lg: clamp(20px, 2.5vw, 36px);
    --spacing-xl: clamp(28px, 3.5vw, 48px);
    --font-size-base: clamp(15px, 0.4vw + 14px, 17px);
    --font-size-sm: clamp(13px, 0.3vw + 12.5px, 15px);
    --font-size-lg: clamp(17px, 0.5vw + 16px, 20px);
    --radius-md: 10px;
    --radius-lg: 14px;
}

body {
    font-size: var(--font-size-base);
    line-height: 1.65;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Constrain content widths */
.header-top,
nav ul,
.ticker-container,
.container,
.footer-container {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Header responsive adjustments */
.header-top {
    padding: var(--spacing-md) var(--spacing-md);
    gap: var(--spacing-sm);
}

.header-right {
    gap: var(--spacing-sm);
}

.social-header {
    display: none !important;
}

/* Nav responsive */
nav ul {
    padding-inline: var(--spacing-md);
    gap: var(--spacing-xs);
}

/* Ticker responsive */
.ticker-container {
    padding: var(--spacing-sm) var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.ticker-label {
    margin-right: var(--spacing-sm);
}

/* Container grid becomes flexible */
.container {
    padding: var(--spacing-lg) var(--spacing-md);
    gap: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 350px;
}

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

/* Featured section auto-fit */
.featured-section {
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.small-articles {
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Articles grid auto-fit */
.articles-grid {
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Fluid image heights with clamp */
.main-article-img {
    height: clamp(220px, 35vw, 400px);
}

.small-article-img {
    height: clamp(160px, 28vw, 220px);
    object-fit: cover;
}

.article-img {
    height: clamp(180px, 30vw, 240px);
    object-fit: cover;
}

.article-page-image {
    height: clamp(280px, 50vw, 480px);
}

/* Related posts auto-fit */
.related-posts {
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Search box responsive */
.search-box {
    gap: var(--spacing-xs);
}

.search-box input {
    flex: 1 1 200px;
    min-width: 0;
}

.search-box button {
    padding: 10px var(--spacing-md);
}

/* Footer auto-fit */
.footer-container {
    gap: var(--spacing-lg);
    padding-inline: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Page containers */
.page-container,
.article-page-container {
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 960px;
}

/* Breakpoint: tablets/small desktops */
@media (max-width: 1200px) {
    .featured-section {
        grid-column: 1 / -1;
    }

    .category-section {
        grid-column: 1 / -1;
    }

    .sidebar-widget {
        margin-bottom: 25px;
    }

    .sidebar-widget:last-child {
        margin-bottom: 0;
    }
}

/* Breakpoint: tablets */
@media (max-width: 900px) {
    .header-top {
        flex-wrap: wrap;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav li {
        width: 100%;
    }

    .ticker-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticker-label {
        margin-right: 0;
        margin-bottom: var(--spacing-xs);
    }
}

/* Breakpoint: mobile landscape */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

    body.dark-mode nav ul {
        background-color: #1a1a1a;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        padding: var(--spacing-md) var(--spacing-lg);
        border-bottom: 1px solid var(--gray-200);
    }

    body.dark-mode nav a {
        border-bottom-color: #2d2d2d;
    }

    .featured-section,
    .small-articles,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .main-article-img {
        height: clamp(200px, 45vw, 300px);
    }

    .article-img,
    .small-article-img {
        height: clamp(160px, 40vw, 220px);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .page-container,
    .article-page-container {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-md);
    }
}

/* Breakpoint: mobile portrait */
@media (max-width: 480px) {
    .header-top {
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .logo {
        font-size: clamp(18px, 4vw, 24px);
    }

    .theme-toggle,
    .hamburger {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input,
    .search-box button {
        width: 100%;
        border-radius: 6px;
    }

    .ticker-text {
        font-size: clamp(12px, 2.5vw, 14px);
    }

    .main-article-img {
        height: clamp(180px, 50vw, 260px);
    }

    .article-img,
    .small-article-img {
        height: clamp(140px, 42vw, 200px);
    }

    .article-page-image {
        height: clamp(220px, 55vw, 320px);
    }

    .page-container,
    .article-page-container {
        padding: var(--spacing-md) var(--spacing-sm);
        margin: var(--spacing-sm);
    }

    .section-title {
        font-size: clamp(18px, 4vw, 22px);
    }

    .article-content h3 {
        font-size: clamp(14px, 3.2vw, 16px);
    }

    .footer-container {
        gap: var(--spacing-md);
    }
}

/* Breakpoint: very small screens */
@media (max-width: 375px) {
    .container {
        padding-inline: var(--spacing-sm);
    }

    .main-article-content,
    .article-content {
        padding: var(--spacing-sm);
    }

    .widget-title {
        font-size: clamp(16px, 4vw, 18px);
    }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    a, button, .hamburger, .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .article-card:hover,
    .main-article:hover,
    .small-article:hover {
        transform: none;
    }

    .article-card:active,
    .main-article:active,
    .small-article:active {
        transform: scale(0.98);
        opacity: 0.95;
    }
}