/* ===================================
   Marketly News - Main Stylesheet
   Arabic RTL News Website
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #c00;
    --primary-dark: #a00;
    --secondary-color: #1a1a2e;
    --accent-color: #e94560;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #999;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-family: 'Cairo', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light-bg);
    direction: rtl;
}

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

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

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

ul, ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #16213e 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-time {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-time i {
    color: var(--primary-color);
}

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

.social-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

/* Header */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo a {
    display: block;
}

.logo h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.logo h1 span {
    color: var(--secondary-color);
}

.logo p {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box form {
    display: flex;
    background: var(--light-bg);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box form:focus-within {
    border-color: var(--primary-color);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.header-ad {
    max-width: 300px;
}

/* Navigation */
.main-nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    background: rgba(0,0,0,0.2);
}

.nav-menu > li > a i {
    font-size: 12px;
}

/* Dropdown */
.more-menu .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.more-menu:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    border-bottom: 1px solid var(--border-color);
}

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

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

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

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content a {
    color: var(--white);
    font-size: 14px;
}

.ticker-content a:hover {
    color: var(--primary-color);
}

.ticker-content .separator {
    color: var(--primary-color);
}

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

/* Main Content */
.main-content {
    padding: 30px 0;
}

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

/* Featured Slider */
.featured-slider {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.slider-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slides {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
}

.slide-content .category {
    display: inline-block;
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.slide-content .category.economy {
    background: var(--success-color);
}

.slide-content .category.sports {
    background: var(--info-color);
}

.slide-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.slide-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.slide-content .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.8;
}

.slide-content .meta i {
    margin-left: 5px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--primary-color);
}

.dots {
    display: flex;
    gap: 8px;
}

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

.dots .dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

/* Side News */
.side-news {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card.small {
    display: flex;
    gap: 12px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card.small:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

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

.news-card.small .card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card.small .category {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.news-card.small .category.tech {
    color: #9b59b6;
}

.news-card.small .category.health {
    color: var(--success-color);
}

.news-card.small h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
}

.news-card.small .time {
    font-size: 12px;
    color: var(--light-gray);
}

/* News Section */
.news-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.section-header.politics {
    border-color: #2c3e50;
}

.section-header.economy {
    border-color: var(--success-color);
}

.section-header.sports {
    border-color: var(--info-color);
}

.section-header.tech {
    border-color: #9b59b6;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header.politics h2 i {
    color: #2c3e50;
}

.section-header.economy h2 i {
    color: var(--success-color);
}

.section-header.sports h2 i {
    color: var(--info-color);
}

.section-header.tech h2 i {
    color: #9b59b6;
}

.more-link {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-link:hover {
    gap: 10px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

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

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

.card-image {
    position: relative;
    height: 180px;
    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);
}

.urgent-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.card-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--light-gray);
}

.card-meta i {
    margin-left: 5px;
}

/* Compact Card */
.news-card.compact {
    background: var(--light-bg);
}

.news-card.compact img {
    height: 140px;
}

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

.news-card.compact h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.news-card.compact .time {
    font-size: 12px;
    color: var(--light-gray);
}

/* News List */
.news-list .featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.news-list .featured .item-image {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

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

.news-list .featured .item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list .featured .category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}

.news-list .featured h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-list .featured p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

.item-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--light-gray);
}

.item-meta i {
    margin-left: 5px;
    color: var(--primary-color);
}

.news-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.news-item:hover {
    background: #eee;
}

.news-item img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.news-item .item-content {
    flex: 1;
}

.news-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
}

.news-item .time {
    font-size: 12px;
    color: var(--light-gray);
}

/* Sports Layout */
.sports-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.main-sport {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.main-sport img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.sport-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
}

.sport-content .category {
    display: inline-block;
    background: var(--info-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sport-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sport-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.sport-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sport-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.sport-item:hover {
    background: #eee;
}

.sport-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.sport-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.widget-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
}

.widget-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-content {
    padding: 15px;
}

/* Most Read Widget */
.read-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.read-item .number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.read-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
}

.read-item .views {
    font-size: 12px;
    color: var(--light-gray);
}

/* Video Widget */
.video-item {
    margin-bottom: 15px;
}

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

.video-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.video-thumb:hover .play-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Weather Widget */
.weather .widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.weather-icon {
    font-size: 50px;
    color: #f39c12;
}

.weather-temp .temp {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
}

.weather-temp .city {
    display: block;
    font-size: 14px;
    color: var(--gray);
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.weather-details .detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.weather-details .detail i {
    color: var(--info-color);
}

/* Social Follow Widget */
.social-follow .widget-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    color: var(--white);
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    color: var(--white);
}

.social-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.social-btn span:first-of-type {
    font-size: 18px;
    font-weight: 700;
}

.social-btn span:last-of-type {
    font-size: 12px;
    opacity: 0.9;
}

.social-btn.facebook {
    background: #3b5998;
}

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

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Newsletter Widget */
.newsletter .widget-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.newsletter p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    text-align: center;
}

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

.newsletter input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.newsletter input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter button {
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: var(--white);
    margin-top: 40px;
}

.footer-top {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

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

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-col.about p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

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

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-right: 5px;
    color: var(--primary-color);
}

.footer-col.contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-col.contact ul li i {
    color: var(--primary-color);
}

.app-download {
    margin-top: 20px;
}

.app-download p {
    font-size: 14px;
    margin-bottom: 10px;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-buttons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 20px;
    transition: var(--transition);
}

.app-buttons a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-slider {
        grid-template-columns: 1fr;
    }
    
    .side-news {
        flex-direction: row;
    }
    
    .news-card.small {
        flex: 1;
        flex-direction: column;
    }
    
    .news-card.small img {
        width: 100%;
        height: 120px;
    }
    
    .news-grid.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: stretch;
        padding-top: 60px;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .more-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
    }
    
    .slides {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid.four-cols {
        grid-template-columns: 1fr;
    }
    
    .news-list .featured {
        grid-template-columns: 1fr;
    }
    
    .news-items-grid {
        grid-template-columns: 1fr;
    }
    
    .sports-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .side-news {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .slides {
        height: 250px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .card-content h3 {
        font-size: 14px;
    }
    
    .social-follow .widget-content {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-nav,
    .breaking-news,
    .sidebar,
    .main-footer,
    .back-to-top {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}
