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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #f4f4f4;
  color: #ffffff;
  font-family: "Segoe UI", Arial, sans-serif;
}

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

.site-header {
  background: linear-gradient(135deg, #5e626d, #27292c, #5e626d);
  padding: 10px 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.site-title {
  color: #ffffff;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.top-nav-wrapper {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #27292c, #5e626d, #27292c);
  padding: 6px 5px;
  overflow: hidden;
}

.top-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  white-space: nowrap;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex-shrink: 0;
  margin: 0 5px;
  border-radius: 20px;
  padding: 10px 18px;
  color: #f9fafb;
  font-size: 15px;
  transition: background 0.3s ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-arrow {
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  padding: 8px 10px;
  transition: background 0.3s ease;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "left-top center right-top"
    "left-bottom center right-bottom";
  gap: 5px;
  height: 60vh;
  padding: 5px;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.tile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.tile-content {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 1;
}

.tile-content h2 {
  overflow: hidden;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.center .tile-content h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.description {
  margin-top: 6px;
  overflow: hidden;
  font-size: 0.9rem;
  opacity: 0.9;
  white-space: nowrap;
}

.read-more {
  color: #dddddd;
  margin-left: 5px;
  text-decoration: underline;
  white-space: nowrap;
}

.tile:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.left-top {
  grid-area: left-top;
}

.left-bottom {
  grid-area: left-bottom;
}

.center {
  grid-area: center;
}

.right-top {
  grid-area: right-top;
}

.right-bottom {
  grid-area: right-bottom;
}

.news-section {
  width: 100%;
  padding: 0 5px 5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.news-card {
  display: flex;
  min-height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #27292c, #5e626d);
  color: #ffffff;
  transition: background 0.3s ease;
}

.news-card:hover {
  background: #1e293b;
}

.news-card .image {
  width: 35%;
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
}

.news-card .content {
  position: relative;
  width: 65%;
  padding: 12px 14px;
}

.news-card h3 {
  display: -webkit-box;
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.news-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.news-card .content::after {
  content: "Read more";
  position: absolute;
  right: 14px;
  bottom: 10px;
  padding-left: 20px;
  background: linear-gradient(to right, transparent, #3c4048 40%);
  color: #dddddd;
  font-size: 12px;
}

.footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #17181c;
  padding: 28px clamp(22px, 6vw, 96px) 14px;
}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: auto;
  gap: clamp(40px, 10vw, 180px);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-title,
.footer-logo {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  transition: 0.2s ease;
}

.footer-socials a:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 20px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.article-page {
  background: #f4f4f4;
  color: #1f2937;
  padding: clamp(18px, 4vw, 54px) clamp(10px, 3vw, 36px);
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
}

.article-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #27292c;
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

.article-kicker:hover {
  background: #3f4350;
}

.article-shell h1 {
  color: #111827;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.article-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 26px;
}

.article-shell p {
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-shell .article-lead {
  color: #111827;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.55;
  font-weight: 600;
}

.article-shell h2,
.related-section h2 {
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 34px 0 14px;
}

.article-shell blockquote {
  margin: 28px 0;
  border-left: 5px solid #5e626d;
  background: #ffffff;
  color: #111827;
  padding: 18px 22px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
}

.related-section {
  width: 100%;
  margin: 42px auto 0;
}

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

.related-card {
  display: block;
  background: #27292c;
  color: #ffffff;
  overflow: hidden;
}

.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-card div {
  padding: 14px;
}

.related-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.related-card h3 {
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.category-page {
  background: #f4f4f4;
  min-height: 55vh;
  color: #111827;
  padding: clamp(12px, 2.5vw, 28px) clamp(12px, 3vw, 36px) 16px;
}

.category-header {
  padding: 0 0 14px;
}

.category-header h1 {
  color: #111827;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.category-page .news-section {
  padding: 0;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #27292c, #5e626d);
  color: #ffffff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.category-card:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.category-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
}

.category-card-content {
  position: relative;
  padding: 12px 14px 32px;
  min-height: 150px;
}

.category-card-content span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card-content h3 {
  display: -webkit-box;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.28;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.category-card-content p {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.48;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.category-card-content::after {
  content: "Read more";
  position: absolute;
  right: 14px;
  bottom: 10px;
  padding-left: 20px;
  background: linear-gradient(to right, transparent, #3c4048 40%);
  color: #e8e8f3;
  font-size: 12px;
}

.empty-state {
  color: #5e626d;
  padding: 16px 0;
  font-size: 17px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

.load-more-button {
  border: 0;
  background: linear-gradient(135deg, #27292c, #5e626d);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.load-more-button:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.load-more-button[hidden] {
  display: none;
}

.static-page {
  background: #f4f4f4;
  color: #1f2937;
  min-height: 55vh;
  padding: clamp(18px, 4vw, 54px) clamp(16px, 5vw, 72px);
}

.static-content {
  max-width: 860px;
  margin: 0 auto;
}

.static-content h1 {
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.static-content h2 {
  color: #111827;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  margin: 28px 0 10px;
}

.static-content p {
  color: #374151;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.static-content a {
  color: #1d4ed8;
  font-weight: 600;
}

.static-content a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "left-top right-top"
      "left-bottom right-bottom";
    height: auto;
  }

  .center {
    height: 40vh;
  }

  .tile {
    height: 20vh;
  }

  .site-title {
    font-size: 22px;
  }

  .footer {
    padding-inline: clamp(28px, 6vw, 72px);
  }

  .footer-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: flex-start;
    gap: clamp(28px, 6vw, 72px);
  }

  .footer-links {
    justify-self: end;
  }

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

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

@media (max-width: 768px) {
  .top-nav a {
    padding: 8px 14px;
    font-size: 14px;
  }

  .nav-arrow {
    padding: 6px 8px;
    font-size: 16px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

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

  .footer-links {
    gap: 8px;
  }

}

@media (max-width: 576px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left-top"
      "left-bottom"
      "right-top"
      "right-bottom";
  }

  .center {
    height: 35vh;
  }

  .tile {
    height: 20vh;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

  .site-title {
    font-size: 16px;
  }

  .top-nav a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .category-page {
    padding: 10px 8px 12px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .news-card {
    flex-direction: column;
  }

  .news-card .image,
  .news-card .content {
    width: 100%;
  }

  .news-card .image {
    height: 160px;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    justify-self: auto;
  }
}
