/* Hero Section - Custom Layout */
.hero-section {
  padding: 20px 42px 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
  padding: 0;
}

/* ===== Left: Big Hero Card ===== */
.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-right: 2px solid var(--border-secondary) !important;
  padding-right: 24px;
}

.hero-big-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-big-image-link {
  display: block;
  overflow: hidden;
}

.hero-big-image-wrapper {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.hero-big-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-big-card:hover .hero-big-image-wrapper img {
  transform: scale(1.03);
}

.hero-big-content {
  padding-top: 20px;
  max-width: 700px;
}

.hero-big-title {
  font-family: var(--font-baskerville);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-color);
  display: block;
  margin-bottom: 12px;
}

.hero-big-excerpt {
  font-family: var(--font-baskerville);
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Right Sidebar ===== */
.hero-sidebar {
  display: flex;
  flex-direction: column;
}

/* Sidebar Top - Hero 2 Card */
.hero-sidebar-top {
  flex-shrink: 0;
}

.section-heading-title {
  font-family: var(--font-baskerville);
  font-size: 32px;
  font-weight: 700 !important;
  line-height: 1.3;
  color: var(--text-color);
  display: block;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.sidebar-hero-card {
  display: flex;
  flex-direction: column;
}

.sidebar-hero-image-link {
  display: block;
  overflow: hidden;
}

.sidebar-hero-image-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.sidebar-hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sidebar-hero-card:hover .sidebar-hero-image-wrapper img {
  transform: scale(1.03);
}

.sidebar-hero-content {
  padding-top: 15px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border-secondary);
}

.sidebar-hero-title {
  font-family: var(--font-baskerville);
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  color: var(--text-color);
  display: block;
  margin-bottom: 10px;
}

.sidebar-hero-excerpt {
  font-family: var(--font-baskerville);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Sidebar Bottom - Featured Articles ===== */
.hero-sidebar-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 15px;
}

.hero-sidebar-bottom .section-heading {
  border: none !important;
}

.hero-sidebar-bottom .section-heading span {
  font-family: var(--font-baskerville);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-article-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 2px solid var(--border-secondary);
}

.featured-article-item:last-child {
  border-bottom: none;
}

.featured-article-content {
  flex: 1;
  min-width: 0;
}

.featured-article-title {
  font-family: var(--font-baskerville);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
  display: block;
  margin-bottom: 4px;
}

.featured-article-excerpt {
  font-family: var(--font-baskerville);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-article-image-link {
  flex-shrink: 0;
  width: 150px;
  height: 120px;
  overflow: hidden;
  background-color: #eee;
}

.featured-article-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  opacity: 1 !important;
}

.featured-article-item:hover .featured-article-image-link img {
  transform: scale(1.05);
}

/* ===== Below Hero Cards ===== */
.hero-below-section {
  padding-top: 24px;
  width: 100%;
  overflow: hidden;
}
.below-hero-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
}
.below-hero-card:last-child {
  border-bottom: 1px solid var(--border-color);
}

.below-hero-content {
  flex: 0 0 40%;
  min-width: 0;
}

.below-hero-title {
  font-family: var(--font-baskerville);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
  display: block;
  margin-bottom: 10px;
}

.below-hero-excerpt {
  font-family: var(--font-baskerville);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.below-hero-image-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.below-hero-image-link {
  display: block;
}
.below-hero-image-link img {
  aspect-ratio: 8/5;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 1 !important;
}

.below-hero-card:hover .below-hero-image-link img {
  transform: scale(1.05);
}

/* ===== CTA Section ===== */
.hero-cta-section {
  background-color: #f5f5f5;
  padding: 50px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 2px solid var(--border-secondary);
  border-bottom: 2px solid var(--border-secondary);
}

.hero-cta-heading {
  font-family: var(--font-baskerville);
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: var(--text-color);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.hero-cta-button {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--background-color);
  font-family: var(--font-baskerville);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 30px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.hero-cta-button:hover {
  opacity: 0.85;
}

/* ===== Homepage Archive Section ===== */
.homepage-archive-section {
  padding: 18px 42px 100px;
}

.homepage-archive-section .archive-container {
  max-width: 1280px;
  margin: 0 auto;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.archive-load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn {
  background-color: var(--text-color);
  text-transform: uppercase;
  color: var(--background-color);
  font-family: var(--font-baskerville);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 40px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.load-more-btn:hover {
  opacity: 0.85;
}

/* Archive Card Styles */
.archive-card {
  display: flex;
  flex-direction: column;
}

.archive-card-image-link {
  display: block;
  overflow: hidden;
  margin-bottom: 12px;
}

.archive-card-image-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.archive-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 1 !important;
}

.archive-card:hover .archive-card-image-wrapper img {
  transform: scale(1.03);
}

.archive-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background-color: #f0f0f0;
  margin-bottom: 12px;
}

.archive-card-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.archive-card-title {
  font-family: var(--font-baskerville);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-color);
  margin-bottom: 10px;
}

.archive-card-excerpt {
  font-family: var(--font-baskerville);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 0;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Archive Grid Responsive */
@media (max-width: 991px) {
  .homepage-archive-section {
    padding: 18px 30px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .hero-main {
    border-right: 0 !important;
    padding-right: 0;
  }
}

@media (max-width: 479px) {
  .homepage-archive-section {
    padding: 25px 18px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .load-more-btn {
    width: 100%;
    padding: 12px 30px;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1440px) {
  .hero-section {
    padding: 1.4vw 2.92vw 0;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-big-title {
    font-size: 32px;
  }

  .hero-big-excerpt {
    font-size: 22px;
  }

  .sidebar-hero-title {
    font-size: 1.53vw;
  }

  .featured-article-title {
    font-size: 16px;
  }

  /* .featured-article-image-link {
        width: 5.56vw;
        height: 3.82vw;
    } */
}

/* ===== Tablet ===== */
@media (max-width: 991px) {
  .hero-section {
    padding: 20px 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }

  .hero-big-title {
    font-size: 28px;
  }

  .hero-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-sidebar-bottom {
    padding-top: 0;
  }

  .below-hero-content {
    flex: 0 0 35%;
  }

  .below-hero-title {
    font-size: 18px;
  }

  .hero-cta-section {
    min-height: 350px;
    padding: 35px 25px;
  }

  .hero-sidebar-bottom .section-heading-title {
    font-size: 24px !important;
  }
  .featured-article-title {
    font-size: 18px;
  }
  .sidebar-hero-image-wrapper {
    aspect-ratio: 16/9;
    height: 100%;
  }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  .hero-grid {
    padding: 0;
  }

  .below-hero-card {
    flex-direction: column;
    gap: 15px;
  }

  .below-hero-content {
    flex: 1;
    width: 100%;
    order: 1;
  }

  .below-hero-image-wrapper {
    width: 100%;
    order: 2;
  }

  .below-hero-title {
    font-size: 18px;
  }

  .hero-cta-section {
    min-height: 300px;
    padding: 30px 20px;
  }

  .hero-cta-heading {
    font-size: 17px;
  }
}
@media (max-width: 575px) {
  .hero-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-cta-section {
    min-height: 280px;
  }
}
@media (max-width: 479px) {
  .hero-section {
    padding: 15px 18px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-big-title {
    font-size: 24px;
  }

  .hero-big-excerpt {
    font-size: 18px;
  }

  .hero-sidebar-bottom {
    padding-left: 0;
    padding-top: 15px;
  }

  .sidebar-hero-title {
    font-size: 20px;
  }

  .featured-article-image-link {
    width: 70px;
    height: 48px;
  }

  .hero-cta-section {
    min-height: 250px;
    padding: 25px 18px;
  }

  .hero-cta-heading {
    font-size: 16px;
  }
}
