
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:      #e63946;
  --dark:     #0d0d0d;
  --nav-bg:   #111827;
  --card-bg:  #ffffff;
  --body-bg:  #f4f5f7;
  --text:     #1a1a2e;
  --muted:    #6b7280;
  --border:   #e5e7eb;
  --accent:   #e63946;
  --radius:   10px;
  --shadow:   0 2px 16px rgba(0,0,0,.08);
  --font:     'Segoe UI', system-ui, -apple-system, sans-serif;
}
body { font-family: var(--font); background: var(--body-bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--dark); color: #aaa; font-size: .78rem; padding: 6px 0; }
.top-bar .tb-inner { max-width: 1280px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.top-bar a { color: #ccc; margin-left: 12px; transition: color .2s; }
.top-bar a:hover { color: #fff; }
.top-bar .socials a { font-size: .85rem; }

/* ===== HEADER ===== */
header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: 1280px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--red); }
.logo-icon { width: 38px; height: 38px; background: var(--red); border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 900; }
.header-search { flex: 1; max-width: 380px; }
.header-search form { display: flex; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; }
.header-search input { flex: 1; padding: 8px 16px; border: none; outline: none; font-size: .9rem; }
.header-search button { padding: 8px 16px; background: var(--red); border: none; color: #fff; cursor: pointer; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn { padding: 8px 18px; border-radius: 50px; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; transition: .2s; }
.btn-outline { border: 2px solid var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c62b38; }

/* ===== NAV ===== */
nav.main-nav { background: var(--nav-bg); }
.nav-inner { max-width: 1280px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; }
.nav-links a { color: #d1d5db; font-size: .88rem; font-weight: 500; padding: 12px 16px; display: block; transition: .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.nav-links a:hover::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 10px; }

/* ===== BREAKING NEWS ===== */
.breaking-bar { background: var(--red); color: #fff; padding: 8px 0; overflow: hidden; }
.breaking-inner { max-width: 1280px; margin: auto; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.breaking-label { background: #fff; color: var(--red); font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 4px; white-space: nowrap; letter-spacing: .5px; }
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker { display: flex; gap: 50px; white-space: nowrap; animation: ticker 30s linear infinite; font-size: .88rem; }
.ticker span::before { content: '● '; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== AD BANNER ===== */
.ad-banner { background: #fff; border: 1px dashed #d1d5db; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; }
.ad-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #f9fafb 25%, #f3f4f6 75%); }
.ad-banner > * { position: relative; z-index: 1; }
.ad-banner .ad-label { font-size: .7rem; color: #9ca3af; background: #f3f4f6; padding: 2px 8px; border-radius: 20px; }
.ad-leaderboard { height: 90px; margin: 20px auto; max-width: 1240px; }
.ad-rectangle { height: 250px; width: 100%; }
.ad-halfpage { height: 600px; width: 100%; }
.ad-inline { height: 90px; margin: 24px 0; }
.ad-sponsored-card { background: linear-gradient(135deg,#fff7ed,#fff); border: 1px solid #fed7aa; border-radius: var(--radius); padding: 14px; }
.ad-icon { font-size: 2rem; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; display: block; width: 4px; height: 22px; background: var(--red); border-radius: 4px; }
.view-all { font-size: .82rem; color: var(--red); font-weight: 600; }
.view-all:hover { text-decoration: underline; }

/* ===== GRID LAYOUTS ===== */
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ===== HERO GRID ===== */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-bottom: 32px; }
.hero-main { grid-row: span 2; }
.news-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .card-img img { transform: scale(1.04); }
.card-img .category-tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 16px; }
.category-tag { background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: .5px; text-transform: uppercase; display: inline-block; }
.category-tag.blue   { background: #2563eb; }
.category-tag.green  { background: #16a34a; }
.category-tag.purple { background: #7c3aed; }
.category-tag.orange { background: #ea580c; }
.category-tag.teal   { background: #0d9488; }
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 8px 0 10px; }
.card-title a:hover { color: var(--red); }
.hero-main .card-img { height: 380px; }
.hero-main .card-title { font-size: 1.4rem; }
.hero-side .card-img { height: 160px; }
.card-meta { display: flex; align-items: center; gap: 14px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-excerpt { font-size: .88rem; color: var(--muted); margin: 8px 0; line-height: 1.55; }

/* ===== LATEST NEWS LIST ===== */
.latest-list { display: flex; flex-direction: column; gap: 14px; }
.latest-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); transition: .2s; }
.latest-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.latest-item img { width: 90px; height: 70px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.latest-info .category-tag { font-size: .65rem; }
.latest-info h4 { font-size: .88rem; font-weight: 700; margin: 6px 0 4px; line-height: 1.4; }
.latest-info h4 a:hover { color: var(--red); }
.latest-meta { font-size: .75rem; color: var(--muted); }

/* ===== NEWS GRID 3 COLS ===== */
.news-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-img-3 { height: 200px; }
.card-img-4 { height: 160px; }

/* ===== SIDEBAR WIDGETS ===== */
.widget { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.widget-title { font-size: 1rem; font-weight: 800; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--red); }
.trending-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.trending-list li:last-child { border-bottom: none; }
.trend-num { font-size: 1.5rem; font-weight: 900; color: #e5e7eb; line-height: 1; flex-shrink: 0; width: 28px; }
.trend-info h5 { font-size: .84rem; font-weight: 700; margin-bottom: 3px; line-height: 1.35; }
.trend-info h5 a:hover { color: var(--red); }
.trend-meta { font-size: .72rem; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--body-bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600; transition: .2s; }
.tag:hover { background: var(--red); color: #fff; border-color: var(--red); }
.weather-widget { text-align: center; padding: 10px 0; }
.weather-temp { font-size: 2.5rem; font-weight: 900; color: var(--text); }
.weather-city { font-size: .85rem; color: var(--muted); }
.weather-desc { font-size: .9rem; margin: 4px 0; }
.weather-icon { font-size: 2.5rem; }
.poll-option { margin-bottom: 12px; }
.poll-label { font-size: .85rem; font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; }
.poll-bar { background: var(--border); border-radius: 50px; height: 8px; overflow: hidden; }
.poll-fill { height: 100%; background: var(--red); border-radius: 50px; transition: width 1s; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: .88rem; outline: none; }
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button { padding: 10px; border: none; background: var(--red); color: #fff; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* ===== CATEGORY SECTIONS ===== */
.cat-section { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.cat-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--red); }
.cat-title { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* ===== VIDEO SECTION ===== */
.video-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-thumb { position: relative; height: 200px; background: #1a1a2e; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; background: rgba(255,255,255,.9); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--red); }
.video-info { padding: 14px; }
.video-info h4 { font-size: .9rem; font-weight: 700; margin: 6px 0 4px; }
.video-meta { font-size: .75rem; color: var(--muted); }

/* ===== ARTICLE PAGE ===== */
.article-header { margin-bottom: 28px; }
.article-header h1 { font-size: 2rem; font-weight: 900; line-height: 1.3; margin: 14px 0 18px; }
.article-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.author-block { display: flex; align-items: center; gap: 10px; }
.author-block img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: .88rem; }
.meta-date { font-size: .8rem; color: var(--muted); }
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { padding: 7px 16px; border-radius: 50px; font-size: .78rem; font-weight: 700; border: none; cursor: pointer; color: #fff; }
.share-fb  { background: #1877f2; }
.share-tw  { background: #1da1f2; }
.share-wa  { background: #25d366; }
.share-ln  { background: #0a66c2; }
.share-cp  { background: var(--muted); }
.article-featured-img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.article-caption { font-size: .8rem; color: var(--muted); text-align: center; margin-bottom: 28px; }
.article-body p { margin-bottom: 18px; font-size: 1rem; line-height: 1.8; color: #374151; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 28px 0 14px; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 22px 0 10px; }
.article-body blockquote { border-left: 4px solid var(--red); padding: 12px 20px; background: #fff7f7; margin: 24px 0; font-style: italic; color: #555; border-radius: 0 8px 8px 0; }
.article-body ul { margin: 14px 0 18px 20px; }
.article-body ul li { margin-bottom: 8px; font-size: 1rem; line-height: 1.7; }
.article-body ul li::marker { color: var(--red); }
.article-tags { margin: 28px 0; }
.article-tags h4 { margin-bottom: 12px; font-size: .9rem; font-weight: 700; }
.comments-section { margin-top: 36px; }
.comment-form textarea { width: 100%; padding: 14px; border: 2px solid var(--border); border-radius: 10px; resize: vertical; font-family: var(--font); font-size: .9rem; min-height: 100px; }
.comment-form textarea:focus { outline: none; border-color: var(--red); }
.comment-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.comment-content h5 { font-size: .88rem; font-weight: 700; }
.comment-content p { font-size: .85rem; color: #555; margin-top: 4px; }
.comment-content .meta { font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* ===== CATEGORY PAGE ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { padding: 7px 18px; border-radius: 50px; border: 2px solid var(--border); background: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; transition: .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; border: 2px solid var(--border); background: #fff; font-weight: 700; cursor: pointer; transition: .2s; display: grid; place-items: center; font-size: .88rem; }
.page-btn.active, .page-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== ABOUT PAGE ===== */
.about-hero { background: linear-gradient(135deg, var(--nav-bg) 0%, #1e293b 100%); color: #fff; padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; }
.about-hero p { font-size: 1.05rem; color: #9ca3af; max-width: 600px; margin: auto; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.team-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--red); }
.team-card h4 { font-size: .95rem; font-weight: 800; }
.team-card p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.stat-box { background: var(--red); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.stat-box h3 { font-size: 2.2rem; font-weight: 900; }
.stat-box p { font-size: .85rem; opacity: .85; margin-top: 4px; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: .9rem; margin-bottom: 16px; outline: none; transition: .2s; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--red); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-icon { width: 46px; height: 46px; background: #fff5f5; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { font-size: .85rem; color: var(--muted); }

/* ===== ADVERTISE PAGE ===== */
.ad-package { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--red); text-align: center; }
.ad-package.featured { border-top-color: #7c3aed; background: linear-gradient(135deg,#faf5ff,#fff); }
.ad-package h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.ad-price { font-size: 2rem; font-weight: 900; color: var(--red); margin: 12px 0; }
.ad-package ul { text-align: left; margin: 16px 0 20px; font-size: .88rem; color: var(--muted); }
.ad-package ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); display: flex; align-items: center; gap: 8px; }
.ad-package ul li::before { content: '✔'; color: #16a34a; font-weight: 700; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: #9ca3af; padding: 56px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .logo { color: #fff; font-size: 1.4rem; }
.footer-brand p { font-size: .88rem; margin: 14px 0 20px; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; background: #1f2937; border-radius: 8px; display: grid; place-items: center; font-size: .95rem; color: #9ca3af; transition: .2s; }
.social-btn:hover { background: var(--red); color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #1f2937; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul a { font-size: .88rem; transition: .2s; }
.footer-col ul a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #1f2937; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; max-width: 1280px; margin: auto; flex-wrap: wrap; gap: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main .card-img { height: 250px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--nav-bg); z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .news-grid-3, .news-grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.4rem; }
  .article-featured-img { height: 240px; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .news-grid-4 { grid-template-columns: 1fr; }
  .header-actions .btn-outline { display: none; }
}
