.section-home {
  padding: var(--spacing-xl) 0;
}

.home-category {
  position: relative;
  display: block;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--color-border);
  width: 100%;
}

.home-category-title {
  display: inline-block;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  padding: 0 0 18px 0;
}

.home-category-title::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 3px;
  bottom: -3px;
  right: 0;
  background-color: var(--color-primary);
}

.home-category::after {
content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  bottom: -9px;
  right: -5px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Featured Articles start */

.featured-articles {
  background-color: #eee;
}

.featured-articles .featured-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.featured-articles .article-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform var(--transition-normal);
  position: relative;
}


.featured-articles .article-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.featured-articles .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-articles .play-button {
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.featured-articles .article-card:hover .play-button {
  opacity: 1;
}

.featured-articles .article-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.featured-articles .article-title {
  font-family: var(--font-body-secondary);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.96px;
  color: var(--color-text-primary);
  transition: color var(--transition-normal);
}

/* Featured Articles end */

/* Event Reels (vertical cards) start */

.event-reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.reel-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 400px;
  overflow: hidden;
  background: var(--color-primary);
  position: relative;
}

.reel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  will-change: transform;
}

.reel-card:hover .reel-media img {
  transform: scale(1.06);
}


.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0) 45%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.reel-info {
  color: var(--color-black);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reel-title {
  font-family: var(--font-body-secondary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}


.reel-caption {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: #222;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .event-reels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 390px) {
  .event-reels-grid { grid-template-columns: 1fr; }
}

/* Responsive: Featured Articles */
@media (max-width: 1200px) {
  .featured-articles {
    padding: var(--spacing-2xl) 0;
  }
  .featured-articles .featured-articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (max-width: 992px) {
  .featured-articles .featured-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  .featured-articles .article-image {
    height: 200px;
  }
  .featured-articles .article-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .featured-articles {
    padding: var(--spacing-xl) 0;
  }
  .featured-articles .featured-articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .featured-articles .article-image {
    height: 180px;
  }
  .featured-articles .article-title {
    font-size: 18px;
  }

}

@media (max-width: 576px) {
  .featured-articles {
    padding: var(--spacing-lg) 0;
  }
  .featured-articles .article-image {
    height: 160px;
  }
  .featured-articles .article-title {
    font-size: 16px;
  }
  .featured-articles .article-date {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .featured-articles .article-image {
    height: 140px;
  }
}


.variety-section {
  padding: var(--spacing-3xl) 0;
}

.variety-grid {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  grid-template-areas: "left center right";
  gap: var(--spacing-lg);
}

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

.variety-center {
  grid-area: center;
}

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


@media (max-width: 1200px) {
  .variety-grid {
    grid-template-columns: 3fr 4fr 3fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 900px) {
  .variety-grid {
    grid-template-columns: 3fr 3fr;
    grid-template-areas:
      "center center"
      "left right";
    gap: var(--spacing-xl);
  }
}

@media (max-width: 600px) {
  .variety-grid {
    grid-template-columns: 100%;
    grid-template-areas:
      "left"
      "center"
      "right";
    width: 100%;
  }
}

.variety-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.variety-left .news-item {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.variety-left .news-item:last-child {
  display: flex;
  gap: 11px;
  transition: transform var(--transition-normal);
  position: relative;
}

.variety-left .news-item .news-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 72 / 72;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.variety-left .news-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-normal);
  will-change: transform;
}

.variety-left .news-item:hover img {
  transform: scale(1.1);
}

.variety-left .news-item:hover .news-content p {
  color: var(--color-primary);
}

.variety-left .news-content {
  flex: 1;
}

.variety-left .news-content p {
  font-family: var(--font-body-secondary);
  font-size: 1.2rem ;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.72px;
  margin-bottom: 4px;
  transition: color var(--transition-normal);
}

.variety-center {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.variety-center .article-card:first-child {
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform var(--transition-normal);
  position: relative;
}

.variety-center .article-card {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--spacing-md);
  transition: transform var(--transition-normal);
  position: relative;
}


.variety-center .article-card:first-child .article-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 326 / 184;
  width: 100%;
}

.variety-center .article-card .article-image {
  position: relative;
  overflow: hidden;
  width: calc(100% / 2);
}

.variety-center .article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.variety-center .article-card .play-button {
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.variety-center .article-card:hover .play-button {
  opacity: 1;
}

.variety-center .article-card:first-child .article-content {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 7.2px;
  padding: 20px;
  z-index: 2;
  width: 100%;
  cursor: pointer;
}

.variety-center .article-card:first-child .article-content .show-date {
  color: var(--color-text-light);
}

.variety-center .article-card:first-child .article-content .cartoon-category {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  display: block;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-family: var(--font-body-secondary);
  font-weight: 600;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.variety-center .article-card:first-child .article-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.425) 100%
  );
  z-index: -1;
}

.variety-center .article-card .article-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7.2px;
  justify-content: flex-start;
  align-items: flex-start;
}

.variety-center .article-card .article-title {
  font-family: var(--font-body-secondary);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.96px;
  color: var(--color-text-primary);
}

.variety-center .article-card:first-child .article-title {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.96px;
  color: var(--color-text-light);
}


.article-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-card .article-image img {
  transition: transform var(--transition-normal);
  will-change: transform;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-card:hover .article-content .article-title {
  color: var(--color-primary);
}


.variety-right {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.variety-right .article-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform var(--transition-normal);
  position: relative;
}

.variety-right .article-image {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  width: 100%;
  height: 250px;
}

.variety-right .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variety-right .play-button {
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.variety-right .article-card:hover .play-button {
  opacity: 1;
}

.variety-right .article-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7.2px;
  justify-content: flex-start;
  align-items: flex-start;
}

.variety-right .article-title {
  font-family: var(--font-body-secondary);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.96px;
  color: var(--color-text-primary);
}

/* Variety Section end */

/* Swiper Container */


.carousel-container {
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  perspective: 1500px;
}

.magazine-card {
  width: 100%;
  height: 100%;
}

.magazine-cover {
  position: relative;
  width: 100%;
  height: 400px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazineSwiper .swiper-wrapper {
  padding: 15px 0;
}

.magazine-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

/* Hover Effect - 3D Magazine Lift */
.magazine-card:hover .magazine-cover {
  transform: translateY(-10px) translateX(-10px);
}

.swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  pointer-events: none;
}

/* Cover Image */
.magazine-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Magazine Overlay */
.magazine-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 3;

  transition: all 0.4s ease;
}

.issue-info {
  color: white;
  text-align: center;
}

.issue-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.issue-info time {
  color: white;
  text-align: center;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  color: #585858;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #f5f5f5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.swiper-button-prev {
  right: 0;
  left: auto;
}

.swiper-button-next {
  left: 0;
  right: auto;
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .magazine-cover {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .magazine-cover {
    height: 400px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }

  .section-title {
    font-size: 18px;
  }
}

.sh-hero {
  width: 100%;
  min-height: 700px;
  padding: 0;
  position: relative;
}

/* Main Hero Article */
.sh-hero .sh-hero-main {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.sh-hero .sh-hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sh-hero .sh-hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-hero .sh-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-hero .sh-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(22, 22, 22, 0.15);
}

.sh-hero .sh-hero-content {
  position: absolute;
  bottom: calc(100% / 3);
  right: 40px;
  left: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
  margin-left: auto;
}

.sh-hero .sh-hero-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.sh-hero .sh-hero-title {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: -1.28px;
  line-height: 35.2px;
  color: #ffffff;
  margin-bottom: 8px;
}

.sh-hero .sh-hero-description {
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.sh-carousel-container {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 40px;
  overflow: hidden;
}

.sh-hero .sh-articles-row {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.sh-hero .sh-article-card {
  flex: 0 0 calc(25% - 18px);
  min-width: calc(25% - 18px);
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  background-color: #1a1a1a;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sh-hero .sh-article-image-wrapper {
  position: relative;
  width: 100%;
  height: 172px;
  overflow: hidden;
}

.sh-hero .sh-article-image-wrapper img {
    width: 100%;
    height:  100%;
    object-fit: cover;
}

.sh-hero .sh-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-hero .sh-article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(124, 124, 124, 0) 10%,
    rgba(22, 22, 22, 0.46) 50%
  );
}

.sh-hero .sh-article-content {
  position: absolute;
  bottom: 0;
  padding: 16px;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 22, 0) 0%,
    rgba(22, 22, 22, 0.8) 100%
  );
  z-index: 1;
}

.sh-article-title {
  font-family: "imn news", "IBM Plex Sans Arabic", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.96px;
  line-height: 26.4px;
  color: #ffffff;
}

/* Carousel Controls */
.sh-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.sh-carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.sh-carousel-prev {
  left: 10px;
}

.sh-carousel-next {
  right: 10px;
}

/* Pagination Dots */
.sh-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.sh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sh-dot.sh-active {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .sh-hero-content {
    max-width: 700px;
  }

  .sh-hero-title {
    font-size: 28px;
    line-height: 32px;
  }

  .sh-articles-row {
    gap: 16px;
  }

  .sh-article-card {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
  }

  .sh-carousel-container {
    padding: 0 20px;
  }
}

@media (max-width: 992px) {
  .sh-hero-main {
    height: 500px;
  }

  .sh-hero-content {
    bottom: 40px;
    right: 20px;
    left: 20px;
    max-width: 600px;
  }

  .sh-hero-title {
    font-size: 24px;
    line-height: 28px;
  }

  .sh-hero-description {
    font-size: 12px;
  }

  .sh-carousel-container {
    margin-top: -140px;
    padding: 0 20px;
  }

  .sh-article-card {
    flex: 0 0 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }

  .sh-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}




.topnews .articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  counter-reset: article-counter;
}

.topnews .article-item {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  counter-increment: article-counter;
  position: relative; 
}

.topnews .article-item:hover .article-image img {
  transform: scale(1.1);
}

.topnews .article-item:hover .article-title {
  color: var(--color-primary);
}

.topnews .article-item::after { 
  content: counter(article-counter);
  font-size: clamp(3rem, 5vw, 16rem);
  font-weight: 900;
  color: var(--color-border);  
  line-height: 1;
  text-align: center;
  flex: 1;
}

.topnews .article-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 4;
}
.topnews .article-item .article-image {
  height: 150px;
  flex: 3;
  overflow: hidden;
}

.topnews .article-item .article-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  height: 150px;
  transition: transform 0.3s ease-in-out;
}

.topnews .article-category {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: #fd4f5a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topnews .article-title { 
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: #161616;
  line-height: 1.4;
  transition: color 0.3s ease-in-out;
}



@media (max-width: 1024px) {
  .topnews .articles-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .topnews .article-image { 
    width: 250px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .variety-center .article-card {
    flex-direction: column;
  }
  .variety-center .article-card .article-image {
    width: 100%;
    height: 250px;
  }
  .topnews .article-item::after {
    position: absolute;
    top: -10px;
    left: 0;
  }

  .topnews .article-item .article-image {
    height: 150px;
    flex: 2;
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .magazine-cover {
    height: 320px;
  }
}

@media (max-width: 992px) {
  .caricatures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .caricatures-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .caricatures-grid > div:nth-child(1) {
    grid-area: auto;
    height: auto;
  }
  .caricatures-grid > div .caricature-card-img {
    height: 180px;
  }
}

.caricatures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 40px;

}

.caricatures-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}


.caricatures-grid > div:nth-child(1) {
  grid-area: 1 / 1 / 3 / 3;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
height: 400px;
}

.caricatures-grid > div:nth-child(1) .caricature-card-img {
    flex: 4;
}

.caricatures-grid > div:nth-child(1) .caricature-card-content {
    flex: 1;
}

.caricatures-grid > div .caricature-card-img {
    height: 150px;
    width: 100%;
    flex: 2;
}

.caricatures-grid > div .caricature-card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.caricatures-grid > div .caricature-card-content {
    flex: 3;
    text-align: start;
    width: 100%;
}



.caricatures-grid > div:nth-child(2) {
  grid-area: 1 / 3 / 2 / 5;
}

.caricatures-grid > div:nth-child(3) {
  grid-area: 2 / 3 / 3 / 5;

}

.caricatures-grid > div:nth-child(4) {
  grid-area: 3 / 1 / 4 / 3;

}

.caricatures-grid > div:nth-child(5) {
  grid-area: 3 / 3 / 4 / 5;

}

.caricatures-grid > div:nth-child(6) {
  grid-area: 4 / 3 / 5 / 5;

}

.caricatures-grid > div:nth-child(7) {
  grid-area: 4 / 1 / 5 / 3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .caricatures-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    min-height: auto;
  }

  .caricatures-grid > div:nth-child(1) {
    grid-area: 1 / 1 / 2 / 3;
    min-height: 300px;
  }
  .caricatures-grid > div:nth-child(2) {
    grid-area: 2 / 1 / 3 / 2;
    min-height: 200px;
  }
  .caricatures-grid > div:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
    min-height: 200px;
  }
  .caricatures-grid > div:nth-child(4) {
    grid-area: 3 / 1 / 4 / 3;
    min-height: 250px;
  }
  .caricatures-grid > div:nth-child(5) {
    grid-area: 4 / 1 / 5 / 2;
    min-height: 200px;
  }
  .caricatures-grid > div:nth-child(6) {
    grid-area: 4 / 2 / 5 / 3;
    min-height: 200px;
  }
  .caricatures-grid > div:nth-child(7) {
    grid-area: 5 / 1 / 6 / 3;
    min-height: 250px;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {

  .caricatures-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(100px, auto);
    gap: 10px;
    width: 100%;
  }

  .caricatures-grid > div:nth-child(1),
  .caricatures-grid > div:nth-child(2),
  .caricatures-grid > div:nth-child(3),
  .caricatures-grid > div:nth-child(4),
  .caricatures-grid > div:nth-child(5),
  .caricatures-grid > div:nth-child(6),
  .caricatures-grid > div:nth-child(7) {
    grid-area: auto;
    min-height: 180px;
  }

  .caricatures-grid > div:nth-child(1) {
    min-height: 250px;
    font-size: 3rem;
  }

  .caricatures-grid > div {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {

  .section-title {
    font-size: 1.3rem;
  }

  .parent > div {
    font-size: 1.5rem;
    padding: 15px;
  }

  .div1 {
    min-height: 200px;
    font-size: 2rem;
  }
}

  .caricature-title {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.2;
    word-break: break-word;
  }
  .caricature-description {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #444;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
  }
  .caricature-date {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    color: #888;
    margin-top: 4px;
  }
