* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== TOP BAR ===== */
.topbar-strip {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  background: #111827;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-strip .topbar-date {
  color: #cbd5e1;
  font-weight: 700;
}

.topbar-divider {
  opacity: 0.4;
}

.topbar-tagline {
  opacity: 0.8;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgb(163, 3, 3);
  color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #111827;
  white-space: nowrap;
}

.logo span {
  color: #ffffff;
}

/* ===== SEARCH SECTION ===== */
.search-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 300px;
  position: relative;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

.search-icon svg {
  width: 18px;
  height: 18px;
}

.search-input-wrapper {
  display: none;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
}

.search-input-wrapper.active {
  display: flex;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #f8fafc;
  padding: 8px 4px;
  font-size: 0.85rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(248, 250, 252, 0.6);
}

.search-close {
  display: none;
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.search-input-wrapper.active .search-close {
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgb(163, 3, 3);
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.navbar.active {
  display: flex;
}

.navbar a {
  text-decoration: none;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 8px;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #ffeded;
}

.navbar .admin-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
}

.navbar .admin-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== SUBSCRIBE BUTTON ===== */
.subscribe-btn {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.subscribe-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  height: 16px;
  position: relative;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #f8fafc;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active .hamburger span {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg) translateY(-10px);
}

/* ===== DESKTOP HEADER (Large screens) ===== */
@media (min-width: 981px) {
  .topbar-strip {
    display: none;
  }

  .header {
    padding: 20px 40px;
    gap: 32px;
    justify-content: flex-start;
  }

  .logo-section {
    display: grid;
    gap: 6px;
  }

  .logo {
    font-size: 1.5rem;
    letter-spacing: 0.8px;
  }

  .search-section {
    display: none;
  }

  .navbar {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 20px;
    background: transparent;
    padding: 0;
    border: none;
    margin-left: auto;
  }

  .navbar a {
    font-size: 0.85rem;
    padding: 0;
  }

  .navbar .admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    margin: 0;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .has-hamburger .navbar {
    display: none;
  }

  .has-hamburger .mobile-menu-toggle {
    display: flex;
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 40px;
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.category-filter-bar {
  position: sticky;
  top: 56px;
  z-index: 95;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  align-items: center;
  padding: 14px 40px;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.category-filter-bar::-webkit-scrollbar {
  height: 8px;
}

.category-filter-bar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

.category-filter-btn {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #475569;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: #0f172a;
  color: #f8fafc;
  border-color: #0f172a;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .category-filter-bar {
    top: 76px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.category-section,
.hero {
  scroll-margin-top: 130px;
}

.topbar-date {
  font-weight: 700;
  color: #0f172a;
}

.hero {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 28px;
  padding: 32px 40px;
}

.hero-main,
.hero-side {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-main {
  overflow: hidden;
}

.hero-main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-main:hover img {
  transform: scale(1.04);
}

.hero-main h1 {
  margin: 24px 28px 0;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #111827;
}

.hero-main p {
  margin: 18px 28px 28px;
  color: #475569;
  max-width: 720px;
  font-size: 1rem;
}

.hero-side {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.side-card {
  padding: 20px 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.side-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transform: scaleX(0);
  transition: transform 0.32s ease;
}

.side-card:hover::before {
  transform: scaleX(1);
}

.side-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(239, 68, 68, 0.35);
  background: #f8fafc;
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.12);
}

.side-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.35);
  background: #f8fafc;
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.12);
}

.side-card h3 {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #0f172a;
  margin-bottom: 10px;
}

.side-card .meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.92rem;
}

.side-card .meta {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.92rem;
}

.section-block {
  padding: 40px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: #111827;
}

.section-heading p {
  color: #64748b;
  font-size: 0.98rem;
}

.about-page {
  padding: 40px 40px 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 28px;
  background: #ffffff;
  padding: 42px;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.about-hero-copy {
  display: grid;
  gap: 18px;
}

.about-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.about-logo img {
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-tag {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-hero-copy h1 {
  font-size: clamp(2rem, 2.6vw, 3.4rem);
  line-height: 1.05;
  color: #0f172a;
}

.about-intro {
  max-width: 720px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.9;
}

.about-hero-panel {
  display: grid;
  gap: 18px;
}

.about-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
}

.about-stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.about-stat p {
  color: #475569;
  line-height: 1.8;
}

.about-content {
  background: #ffffff;
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.about-copy {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

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

.contact-section {
  margin-top: 40px;
  background: #f8fafc;
  border-radius: 32px;
  padding: 42px;
  border: 1px solid #e2e8f0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid #e2e8f0;
}

.contact-card h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
  color: #0f172a;
}

.contact-card p {
  color: #475569;
  line-height: 1.85;
}

.contact-info a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.contact-info a:hover {
  color: #ef4444;
}

.contact-form label {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: #334155;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: #dc2626;
}

.contact-feedback {
  display: block;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-feedback.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #166534;
}

.contact-feedback.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: #f8fafc;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
}

.about-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  color: #0f172a;
}

.about-card p {
  color: #475569;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .topbar-strip {
    display: flex;
  }

  .category-filter-bar {
    top: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 680px) {
  .about-page {
    padding: 24px 20px 40px;
  }

  .about-hero {
    padding: 28px;
    grid-template-columns: 1fr;
  }

  .about-content {
    padding: 28px;
  }

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

  .about-grid-2 {
    grid-template-columns: 1fr;
  }

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

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

.trending-list {
  display: grid;
  gap: 18px;
}

.trending-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.trending-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.15);
}

.trending-index {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  background: #ef4444;
  border-radius: 999px;
  width: 42px;
  height: 42px;
}

.trending-body h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.trending-body p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-card {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transform: scaleX(0);
  transition: transform 0.32s ease;
  z-index: 1;
}

.news-card:hover::before {
  transform: scaleX(1);
}

.news-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-body {
  padding: 22px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.news-card h3 {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #0f172a;
  margin-bottom: 14px;
}

.card-description {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.8;
  min-height: 76px;
}

.badge {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.category-section {
  background: #ffffff;
  margin-top: 18px;
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  padding: 30px 36px;
}

.category-section h2 {
  margin-bottom: 18px;
}

.empty-message {
  color: #64748b;
  font-size: 0.98rem;
}

/* =========================
   ARTICLE PAGE (PROFESSIONAL NEWS STYLE)
========================= */
.article-container {
  max-width: 940px;
  margin: 48px auto;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.article-hero {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.article-top {
  display: grid;
  gap: 18px;
}

.article-title {
  font-size: clamp(2.7rem, 3vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #111827;
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #64748b;
  font-size: 0.95rem;
}

.article-image {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  min-height: 420px;
}

.article-content {
  margin-top: 32px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.85;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2,
.article-content h3 {
  margin: 32px 0 18px;
  color: #111827;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid #ef4444;
  background: #f8fafc;
  color: #0f172a;
  font-style: italic;
}

.related-stories {
  margin-top: 40px;
}

.related-stories .section-heading {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.tags {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags span {
  display: inline-flex;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.comments {
  margin-top: 50px;
}

.comments h2 {
  font-size: 1.4rem;
  margin-bottom: 22px;
  color: #111827;
}

.comments form {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.comments input,
.comments textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #0f172a;
}

.comments textarea {
  min-height: 140px;
}

.comments button {
  width: fit-content;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comments button:hover {
  background: #dc2626;
}

footer {
  padding: 44px 40px 28px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.12);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .logo {
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand .logo span {
  color: #ef4444;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links h3 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #f8fafc;
}

.footer-links a {
  display: block;
  margin-bottom: 11px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.social-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 32px 22px 22px;
  }

  .footer-inner {
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 26px 28px;
  }

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

  .section-block,
  .article-container,
  footer,
  .topbar {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
    gap: 12px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .topbar {
    display: none;
  }

  .topbar-strip {
    display: flex;
  }

  .search-section {
    max-width: none;
    flex: 1;
  }

  .navbar {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .category-filter-bar {
    top: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 20px;
  }

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

  .section-block,
  .article-container,
  footer {
    padding: 20px;
  }

  .hero-main h1 {
    font-size: 2rem;
  }

  footer {
    padding: 32px 22px 22px;
  }

  .footer-inner {
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
