/*
Theme Name: TechSurfex  
Theme URI: https://TechSurfex.com
Author: Abir
Author URI: https://adalovelaceabir.com
Description: A modern, responsive news magazine theme with enhanced navbar (right menu, dropdowns, notifications, dark mode).
Version: 2.0.0
License: GPL v2 or later
Text Domain: newsportal
*/

/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --gray: #95a5a6;
    --light-gray: #f5f5f5;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

ul {
    list-style: none;
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Navigation Wrapper & Right Menu */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.main-nav .primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a.active:after,
.main-nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.right-menu-items {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.right-menu-items li a {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dropdowns (Categories & Trending) */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 5px 0;
    color: var(--primary-color);
    font-weight: 500;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 180px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
}

.dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--secondary-color);
}

/* Notification Bell & Panel */
.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-panel {
    position: fixed;
    top: 70px;
    right: 15px;
    width: 280px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.notification-panel.active {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--secondary-color);
    color: white;
}

.notification-header h3 {
    font-size: 16px;
    margin: 0;
}

.mark-all-read {
    font-size: 12px;
    cursor: pointer;
    opacity: 0.8;
}

.mark-all-read:hover {
    opacity: 1;
}

.notification-list li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--light-gray);
}

.notification-list li a {
    display: block;
    font-size: 13px;
}

.notification-list .time {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

/* Navigation Icons */
.nav-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 5px;
}

.nav-icon:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Modal Overlays */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

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

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.search-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

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

.user-links a {
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
}

.user-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .header,
body.dark-mode .news-card,
body.dark-mode .sidebar-widget,
body.dark-mode .featured,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .notification-panel {
    background-color: #2c2c2c;
    color: #ddd;
}

body.dark-mode .card-content h3 a,
body.dark-mode .featured h1 a,
body.dark-mode .dropdown-toggle,
body.dark-mode .nav-icon {
    color: #fff;
}

body.dark-mode .meta,
body.dark-mode .text-light,
body.dark-mode .notification-list .time {
    color: #aaa;
}

body.dark-mode .ad-placeholder {
    background-color: #444;
    border-color: #666;
}

/* Ad Banner Styles */
.ad-banner {
    margin: 20px 0;
    text-align: center;
}

.ad-placeholder {
    background-color: var(--light-gray);
    border: 1px dashed var(--gray);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.ad-placeholder:after {
    content: attr(data-ad-size);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-size: 12px;
}

.ad-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.top-banner .ad-placeholder {
    width: 728px;
    height: 90px;
}

.mid-banner .ad-placeholder {
    width: 728px;
    height: 90px;
}

.bottom-banner .ad-placeholder {
    width: 970px;
    height: 250px;
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
}

.breaking-label {
    font-weight: bold;
    margin-right: 10px;
}

.ticker {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 80px);
    overflow: hidden;
}

.ticker ul {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker li {
    display: inline-block;
    margin-right: 40px;
}

.ticker a {
    color: var(--white);
}

.ticker a:hover {
    text-decoration: underline;
}

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

/* Main Content Layout */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin: 30px auto;
}

.featured-article {
    width: 100%;
    margin-bottom: 30px;
}

.sidebar {
    width: 30%;
    padding-left: 20px;
}

.news-grid {
    width: 70%;
    padding-right: 20px;
}

/* Featured Article Styles */
.featured {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-image {
    width: 50%;
    position: relative;
}

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

.featured-content {
    width: 50%;
    padding: 20px;
}

.featured h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured h1 a {
    color: var(--dark-color);
}

.featured h1 a:hover {
    color: var(--secondary-color);
}

.featured .meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.featured .meta span {
    margin-right: 15px;
}

.featured p {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Category Badges */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.category-politics { background-color: #3498db; }
.category-technology { background-color: #2ecc71; }
.category-sports { background-color: #e67e22; }
.category-business { background-color: #9b59b6; }
.category-entertainment { background-color: #f1c40f; color: var(--dark-color); }
.category-health { background-color: #e74c3c; }
.category-science { background-color: #1abc9c; }

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.ad-widget {
    padding: 0;
    text-align: center;
}

.ad-widget .ad-placeholder {
    width: 100%;
    max-width: 300px;
    height: 250px;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.newsletter-widget button {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

.newsletter-widget button:hover {
    background-color: var(--primary-color);
}

.trending-widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.trending-widget li:last-child {
    border-bottom: none;
}

.trending-widget a:hover {
    color: var(--secondary-color);
}

/* News Grid Styles */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content .meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.card-content .meta span {
    margin-right: 10px;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .read-more {
    font-size: 14px;
    padding: 5px 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 0 5px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: var(--box-shadow);
}

.pagination .current, .pagination a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer a {
    color: var(--white);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-widget {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.about-widget p {
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.links-widget li,
.categories-widget li {
    margin-bottom: 10px;
}

.links-widget a:hover,
.categories-widget a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-right {
        gap: 10px;
    }
    .right-menu-items {
        display: none;
    }
    .featured-image, .featured-content { width: 100%; }
    .sidebar { width: 35%; }
    .news-grid { width: 65%; }
    .footer-widget { width: 50%; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; }
    .logo { margin-bottom: 15px; }
    .nav-wrapper {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul.primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
    }
    .main-nav ul.primary-menu.show {
        display: flex;
    }
    .main-nav li {
        margin: 5px 0;
    }
    .nav-right {
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 20px;
    }
    .sidebar, .news-grid {
        width: 100%;
        padding: 0;
    }
    .sidebar {
        margin-top: 30px;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .footer-widget {
        width: 100%;
    }
    .top-banner .ad-placeholder, .mid-banner .ad-placeholder {
        width: 468px;
        height: 60px;
    }
    .bottom-banner .ad-placeholder {
        width: 728px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .featured h1 { font-size: 22px; }
    .top-banner .ad-placeholder, .mid-banner .ad-placeholder {
        width: 320px;
        height: 50px;
    }
    .bottom-banner .ad-placeholder {
        width: 300px;
        height: 250px;
    }
    .ad-widget .ad-placeholder {
        width: 250px;
        height: 200px;
    }
}    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

ul {
    list-style: none;
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a.active:after,
.main-nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Ad Banner Styles */
.ad-banner {
    margin: 20px 0;
    text-align: center;
}

.ad-placeholder {
    background-color: var(--light-gray);
    border: 1px dashed var(--gray);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.ad-placeholder:after {
    content: attr(data-ad-size);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-size: 12px;
}

.ad-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.top-banner .ad-placeholder {
    width: 728px;
    height: 90px;
}

.mid-banner .ad-placeholder {
    width: 728px;
    height: 90px;
}

.bottom-banner .ad-placeholder {
    width: 970px;
    height: 250px;
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
}

.breaking-label {
    font-weight: bold;
    margin-right: 10px;
}

.ticker {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 80px);
    overflow: hidden;
}

.ticker ul {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker li {
    display: inline-block;
    margin-right: 40px;
}

.ticker a {
    color: var(--white);
}

.ticker a:hover {
    text-decoration: underline;
}

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

/* Main Content Layout */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin: 30px auto;
}

.featured-article {
    width: 100%;
    margin-bottom: 30px;
}

.sidebar {
    width: 30%;
    padding-left: 20px;
}

.news-grid {
    width: 70%;
    padding-right: 20px;
}

/* Featured Article Styles */
.featured {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-image {
    width: 50%;
    position: relative;
}

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

.featured-content {
    width: 50%;
    padding: 20px;
}

.featured h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured h1 a {
    color: var(--dark-color);
}

.featured h1 a:hover {
    color: var(--secondary-color);
}

.featured .meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.featured .meta span {
    margin-right: 15px;
}

.featured p {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Category Badges */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.category-politics { background-color: #3498db; }
.category-technology { background-color: #2ecc71; }
.category-sports { background-color: #e67e22; }
.category-business { background-color: #9b59b6; }
.category-entertainment { background-color: #f1c40f; color: var(--dark-color); }
.category-health { background-color: #e74c3c; }
.category-science { background-color: #1abc9c; }

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.ad-widget {
    padding: 0;
    text-align: center;
}

.ad-widget .ad-placeholder {
    width: 100%;
    max-width: 300px;
    height: 250px;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.newsletter-widget button {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
}

.newsletter-widget button:hover {
    background-color: var(--primary-color);
}

.trending-widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.trending-widget li:last-child {
    border-bottom: none;
}

.trending-widget a:hover {
    color: var(--secondary-color);
}

/* News Grid Styles */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content .meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.card-content .meta span {
    margin-right: 10px;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .read-more {
    font-size: 14px;
    padding: 5px 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 0 5px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: var(--box-shadow);
}

.pagination .current, .pagination a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer a {
    color: var(--white);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-widget {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.about-widget p {
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.links-widget li,
.categories-widget li {
    margin-bottom: 10px;
}

.links-widget a:hover,
.categories-widget a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-image, .featured-content { width: 100%; }
    .sidebar { width: 35%; }
    .news-grid { width: 65%; }
    .footer-widget { width: 50%; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; }
    .logo { margin-bottom: 15px; }
    .main-nav ul { display: none; width: 100%; flex-direction: column; }
    .main-nav ul.show { display: flex; }
    .main-nav li { margin: 5px 0; }
    .mobile-menu-btn { display: block; }
    .sidebar, .news-grid { width: 100%; padding: 0; }
    .sidebar { margin-top: 30px; }
    .grid-container { grid-template-columns: 1fr; }
    .footer-widget { width: 100%; }
    .top-banner .ad-placeholder, .mid-banner .ad-placeholder { width: 468px; height: 60px; }
    .bottom-banner .ad-placeholder { width: 728px; height: 90px; }
}

@media (max-width: 576px) {
    .featured h1 { font-size: 22px; }
    .top-banner .ad-placeholder, .mid-banner .ad-placeholder { width: 320px; height: 50px; }
    .bottom-banner .ad-placeholder { width: 300px; height: 250px; }
    .ad-widget .ad-placeholder { width: 250px; height: 200px; }
  }

/* Navigation Extras (Icons) */
.nav-extras {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 5px;
}

.nav-icon:hover {
    color: var(--secondary-color);
}

/* Modal Overlays */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

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

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.search-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

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

.user-links a {
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
}

.user-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .header,
body.dark-mode .news-card,
body.dark-mode .sidebar-widget,
body.dark-mode .featured,
body.dark-mode .modal-content {
    background-color: #2c2c2c;
    color: #ddd;
}

body.dark-mode .card-content h3 a,
body.dark-mode .featured h1 a {
    color: #fff;
}

body.dark-mode .meta,
body.dark-mode .text-light {
    color: #aaa;
}

body.dark-mode .ad-placeholder {
    background-color: #444;
    border-color: #666;
}

/* Responsive for nav extras */
@media (max-width: 768px) {
    .nav-extras {
        order: 3;
        margin: 10px 0 0;
        justify-content: center;
        width: 100%;
    }
    
    .main-nav .primary-menu {
        margin-top: 10px;
    }
    }
