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

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #f7f7f5;
  line-height: 1.6;
}

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

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

/* ============ Header ============ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

.logo span {
  color: #c0392b;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #c0392b;
  border-bottom-color: #c0392b;
}

/* ============ Breaking Bar ============ */
.breaking-bar {
  background: #1a1a1a;
  color: #fff;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.breaking-label {
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.breaking-bar p {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Hero ============ */
.hero {
  padding: 40px 0;
}

.hero-article {
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 10px;
  padding: 40px;
}

.hero-article h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 16px;
  color: #1a1a1a;
}

.hero-article .excerpt {
  font-size: 17px;
  color: #555;
  margin-bottom: 16px;
  max-width: 700px;
}

/* ============ Tags ============ */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fdecea;
  color: #c0392b;
  margin-bottom: 4px;
}

.tag-tech {
  background: #eaf2fd;
  color: #2563eb;
}

.tag-sports {
  background: #eafaf0;
  color: #16a34a;
}

.tag-world {
  background: #fdecea;
  color: #c0392b;
}

/* ============ Meta ============ */
.meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

/* ============ Article Grid ============ */
.article-grid {
  padding: 20px 0 50px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-left: 4px solid #c0392b;
  padding-left: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.placeholder-img {
  height: 160px;
  background: linear-gradient(135deg, #e8e8e3, #d8d8d2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  font-weight: 600;
}

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

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 8px;
  color: #1a1a1a;
  line-height: 1.35;
}

.card-body p {
  font-size: 14px;
  color: #666;
  flex: 1;
}

/* ============ Newsletter ============ */
.newsletter {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 50px 30px;
  border-radius: 10px;
  margin-bottom: 50px;
}

.newsletter h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter p {
  color: #ccc;
  margin-bottom: 24px;
}

#subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#subscribe-form input {
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  width: 280px;
  max-width: 100%;
}

#subscribe-form button {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

#subscribe-form button:hover {
  background: #a93226;
}

.subscribe-message {
  margin-top: 14px;
  font-size: 14px;
  color: #2ecc71;
  font-weight: 600;
  min-height: 20px;
}

/* ============ Footer ============ */
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e5e0;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 40px 20px;
}

.footer-inner h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.footer-inner a {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.footer-inner a:hover {
  color: #c0392b;
}

.footer-inner p {
  font-size: 14px;
  color: #777;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid #e5e5e0;
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .hero-article {
    padding: 24px;
  }

  .hero-article h1 {
    font-size: 26px;
  }

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