/* =========================
   GLOBAL
========================= */

body {
  font-family: 'Inter', sans-serif;
  background: #f4f6f9;
  color: #111827;
  margin: 0;
}

.wrapper {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  margin-top: 30px;
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0px;
}

/* =========================
   HERO
========================= */
/* =========================
   HERO 3x3 GRID
========================= */

.hero {
  padding: 50px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 24px;
}

/* TEXT spans 11,12,21,22 */
.hero-text {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-label {
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: grey;
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 16px 0;
  font-family: 'Inter',sans-serif;
}

.hero-text p {
  color: #6b7280;
  margin-bottom: 24px;
  font-family: 'Manrope', sans-serif;
}

/* LARGE IMAGE occupies column 3, rows 1-2 */
.hero-large {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.hero-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SMALL IMAGE occupies row 3 column 2 */
.hero-small {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
}

.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional: keep bottom-left cell visually balanced */
.hero-grid::after {
  content: "";
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.btn-primary{
  background-color: #32BAA6;
  color: white;
  padding: 5px;
  width: fit-content;
  border-radius: 5px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500px;
  text-decoration: none;
  font-size: 18px;

}

.btn-text{
  background-color: #32BAA6;
  color: white;
  padding: 5px;
  width: fit-content;
  border-radius: 5px;
  font-family: 'Manrope', sans-serif;
  font-size:12px;
  text-decoration: none;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-text,
  .hero-large,
  .hero-small {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-large,
  .hero-small {
    aspect-ratio: 16 / 10;
  }

}


/* =========================
   RECENT POSTS
========================= */

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.recent-card:hover {
  transform: translateY(-4px);
}

.recent-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.recent-body {
  padding: 20px;
}

.category {
  font-size: 12px;
  font-weight: 500;
}

.subtext{
  color: grey;
  word-spacing: 0.3em;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
}

.reader-card{
  padding: 40px;
  border: 1px solid black;
  border-radius: 5px;
  line-height: 1.2rem;
  text-align: justify;
  color: grey;
  
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
}

.recent-body h3 {
  margin: 8px 0;
  font-size: 18px;
}

.recent-body p {
  font-size: 14px;
  color: #6b7280;
}

/* =========================
   DESTINATIONS
========================= */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.destination-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
}

.destination-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.destination-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
}

/* =========================
   POPULAR SECTION
========================= */

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.popular-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.popular-card h4 {
  margin-bottom: 10px;
}

.popular-card p {
  font-size: 14px;
  color: #6b7280;
}

/* =========================
   CARD GRID (Cost)
========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

/* =========================
   MISTAKE SECTION
========================= */

.mistake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.mistake-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
}

.mistake-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.mistake-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .recent-grid,
  .card-grid,
  .mistake-grid,
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .recent-grid,
  .card-grid,
  .mistake-grid,
  .popular-grid,
  .destination-grid {
    grid-template-columns: 1fr;
  }

}


/* ========================
   EDITORIAL BLOG CARDS
======================== */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.editorial-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.editorial-card a {
text-decoration: none;
color: black;
}

.editorial-card:hover {
  transform: translateY(-6px);
}

.editorial-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-body {
  padding: 24px;
}

.editorial-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.editorial-body h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.read-more {
  color: #2c7be5;
  font-weight: 500;
}

/* ========================
   COST LIST (Horizontal)
======================== */

/* =========================
   COST GUIDES (2x2 GRID)
========================= */

.cost-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.cost-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}

.cost-card:hover {
    transform: translateY(-5px);
}

/* Image */
.cost-image {
    width: 40%;
    min-height: 180px;
    overflow: hidden;
}

.cost-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.cost-content {
    padding: 22px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cost-category {
    font-size: 12px;
    color: #2c7be5;
    font-weight: 500;
    margin-bottom: 8px;
}

.cost-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cost-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive */

@media (max-width: 900px) {
    .cost-grid {
        grid-template-columns: 1fr;
    }

    .cost-card {
        flex-direction: column;
    }

    .cost-image {
        width: 100%;
        height: 200px;
    }

    .cost-content {
        width: 100%;
    }
}


/* ========================
   MISTAKE CARDS (Bold)
======================== */

.mistake-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.mistake-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: brightness(0.75);
}

.mistake-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* ========================
   BLOG GALLERY
======================== */

.blog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
  font-weight: 600;
}

/* ========================
   RESPONSIVE
======================== */

@media (max-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .editorial-grid,
  .blog-gallery {
    grid-template-columns: 1fr;
  }

  .cost-item {
    flex-direction: column;
  }
}


/* =========================
   UNEVEN EDITORIAL GRID
========================= */

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

/* Base tile */
.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    display: block;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.08);
}

/* Overlay */
.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #fff;
}

.grid-overlay h3 {
    font-size: 17px;
    margin-bottom: 4px;
}

.grid-meta {
    font-size: 13px;
    opacity: 0.85;
}

/* =========================
   DESKTOP (4 columns)
========================= */

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

/* 6-ITEM REPEATING PATTERN */

.mistakes-grid .grid-item:nth-child(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.mistakes-grid .grid-item:nth-child(6n+2) {
    grid-column: span 1;
    grid-row: span 2;
}

.mistakes-grid .grid-item:nth-child(6n+3) {
    grid-column: span 1;
    grid-row: span 1;
}

.mistakes-grid .grid-item:nth-child(6n+4) {
    grid-column: span 2;
    grid-row: span 1;
}

.mistakes-grid .grid-item:nth-child(6n+5),
.mistakes-grid .grid-item:nth-child(6n+6) {
    grid-column: span 1;
    grid-row: span 1;
}


/* =========================
   TABLET (2 columns)
========================= */

@media (max-width: 1024px) {

    .mistakes-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    /* Simplify spans */
    .mistakes-grid .grid-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

}


/* =========================
   MOBILE (1 column)
========================= */

@media (max-width: 600px) {

    .mistakes-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .mistakes-grid .grid-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

}
