@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --red: #e63946;
  --dark-red: #c1121f;
  --dark: #1d1d1d;
  --gray-dark: #2b2b2b;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --gray-bg: #f3f4f6;
  --white: #ffffff;
  --yellow: #fbbf24;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--gray-bg);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: var(--gray-light);
  padding: 6px 0;
  font-size: 0.78em;
}

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

.top-bar a {
  color: var(--gray-light);
  margin-left: 14px;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--yellow);
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 4px solid var(--red);
  padding: 16px 0;
}

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

.logo {
  font-size: 2em;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
  line-height: 1;
}

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

/* ===== NAV ===== */
.main-nav {
  background: var(--red);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav .container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0;
}

.main-nav a {
  color: var(--white);
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.88em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--dark-red);
  border-bottom-color: var(--yellow);
}

/* ===== BREAKING NEWS BAR ===== */
.breaking {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
}

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

.breaking-label {
  background: var(--red);
  color: white;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 0.75em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

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

.breaking-text {
  font-size: 0.88em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== HERO / FEATURED ===== */
.hero-section {
  padding: 24px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.hero-main {
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s;
}

.hero-main:hover {
  transform: translateY(-3px);
}

.hero-main .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e63946, #1d1d1d);
  opacity: 0.9;
}

.hero-main .hero-content {
  position: relative;
  padding: 30px;
  color: white;
  z-index: 1;
}

.hero-main .hero-tag {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-main h2 {
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-main p {
  font-size: 0.95em;
  opacity: 0.85;
  line-height: 1.5;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-small {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 180px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--red);
}

.hero-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hero-small .hero-tag {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}

.hero-small h3 {
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.hero-small .meta {
  font-size: 0.78em;
  color: var(--gray);
}

/* ===== SECTION TITLES ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--dark);
}

.section-title h2 {
  font-size: 1.3em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

.section-title .accent {
  color: var(--red);
}

/* ===== POST GRID ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.post-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-card-img {
  height: 160px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-card-img.img-red { background: linear-gradient(135deg, #e63946, #ff6b6b); }
.post-card-img.img-blue { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.post-card-img.img-green { background: linear-gradient(135deg, #065f46, #10b981); }
.post-card-img.img-purple { background: linear-gradient(135deg, #581c87, #a855f7); }
.post-card-img.img-orange { background: linear-gradient(135deg, #9a3412, #f97316); }

.post-card-img .img-icon {
  font-size: 3em;
  opacity: 0.3;
}

.post-card-img .card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
}

.post-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-body h3 {
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card-body h3 a:hover {
  color: var(--red);
}

.post-card-body p {
  font-size: 0.88em;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
}

.post-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78em;
  color: var(--gray);
}

.read-more {
  color: var(--red);
  font-weight: 600;
  font-size: 0.85em;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===== VIDEO SECTION ===== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 15px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.video-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.video-card-body {
  padding: 18px;
}

.video-card-body h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 6px;
}

.video-card-body p {
  font-size: 0.88em;
  color: var(--gray);
}

/* ===== SIDEBAR LAYOUT ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 10px;
}

.sidebar .widget {
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
}

.sidebar .widget h3 {
  font-size: 1em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--red);
}

.sidebar .trending-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: flex-start;
}

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

.sidebar .trending-num {
  font-size: 1.5em;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  min-width: 28px;
}

.sidebar .trending-item h4 {
  font-size: 0.88em;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar .trending-item h4 a:hover {
  color: var(--red);
}

.sidebar .trending-item .meta {
  font-size: 0.75em;
  color: var(--gray);
  margin-top: 3px;
}

.sidebar .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar .tag-cloud a {
  background: var(--gray-bg);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar .tag-cloud a:hover {
  background: var(--red);
  color: white;
}

/* ===== POST CONTENT PAGE ===== */
.post-page {
  padding: 24px 0 40px;
}

.post-content {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 20px;
}

.post-content h1 {
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.post-content .post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gray);
  font-size: 0.88em;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.post-content h2 {
  font-size: 1.4em;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--dark);
}

.post-content h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin: 22px 0 10px;
}

.post-content p {
  margin-bottom: 16px;
  font-size: 1.02em;
  line-height: 1.75;
}

.post-content ul, .post-content ol {
  margin: 0 0 16px 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--gray-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-dark);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9em;
}

.back-link:hover {
  text-decoration: underline;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-light);
  margin-top: 24px;
}

.share-bar span {
  font-weight: 700;
  font-size: 0.88em;
}

.share-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  color: white;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 40px 0 20px;
  margin-top: 50px;
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 0.88em;
  line-height: 1.6;
  color: var(--gray);
}

.footer-col a {
  display: block;
  color: var(--gray);
  font-size: 0.88em;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid var(--gray-dark);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82em;
  color: var(--gray);
}

/* ===== AD SPACES ===== */
.ad-space {
  background: var(--gray-bg);
  border: 1px dashed var(--gray-light);
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  font-size: 0.8em;
  color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    flex-direction: row;
  }

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

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .logo {
    font-size: 1.5em;
  }

  .hero-main {
    min-height: 260px;
  }

  .hero-main h2 {
    font-size: 1.3em;
  }

  .hero-sidebar {
    flex-direction: column;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    padding: 10px 14px;
    font-size: 0.82em;
  }

  .post-content {
    padding: 24px 18px;
  }

  .post-content h1 {
    font-size: 1.6em;
  }
}
