/* 🌈 Color Theme */
:root {
  --color-p: #efba34;
  --color-white: #fff;
  --color-light-gray: #4b80b4;
  --color-mid-gray: #96a0b5;
  --color-dark-gray: #6d7d93;
  --color-dark: #e7623d;
  --color-red: #d13a3a;
}

/* @import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap'); */

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

body {
  font-family: var(--body-font);
  /* font-family: "Inter", Arial, sans-serif; */
  /* background: var(--color-light-gray); */
  color: var(--color-dark-gray);
}

main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 1rem;
  padding: 2rem 1rem 4rem;
}

/* ===============================
     ✅ HERO SECTION
  =============================== */
.hero-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  /* margin-top: 10%%; */
  margin-bottom: 3rem;
  color: var(--color-white);
}

.hero-banner img {
  width: 100%;
  height: 500px;
  object-fit: fill;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-btn {
  background: var(--color-dark);
  color: var(--color-white);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: var(--color-p);
  color: var(--color-dark-gray);
}

/* ===============================
     ✅ INTRO SECTION
  =============================== */
.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-dark-gray);
}

/* ===============================
     ✅ BLOG GRID SECTION
  =============================== */
.blog-list {
  margin-top: 3rem;
}

.blog-list h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-p);
  margin-bottom: 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 4 columns */
  grid-template-rows: repeat(2, auto);
  /* 2    rows */
  gap: 2.2rem;
  padding: 0 1rem;
}


.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.blog-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-mid-gray);
  margin-bottom: 0.8rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-category {
  background: var(--color-p);
  color: var(--color-dark-gray);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content h3 {
  color: var(--color-dark);
  font-size: 1.5rem;
  text-transform: capitalize;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.blog-content h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

.blog-content h3 a:hover {
  color: var(--color-p);
}

/* Truncate intro (3 lines) */
.blog-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin: 0.5rem 0 1rem;
}


/* Read more button styling */
.read-more-btn {
  align-self: flex-start;
  font-weight: 600;
  color: var(--color-p);
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #e7623d;
}

/* for pagination  */
.pagination a {
  margin: 0 0.3rem;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  background: var(--color-dark);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.pagination a:hover {
  background: var(--color-p);
  color: var(--color-dark-gray);
}

.pagination span.active-page {
  margin: 0 0.3rem;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  background: var(--color-p);
  /* highlighted background */
  color: var(--color-dark-gray);
  /* highlighted text */
  border-radius: 6px;
}




/* ===============================
     ✅ MOBILE RESPONSIVE
  =============================== */
@media (max-width: 992px) {
  .hero-overlay h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }

  .blog-list h2 {
    text-align: center;
    font-size: 2rem;

  }


  .hero-banner img {
    height: 500px;
    object-fit: cover;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .intro {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.1rem;
  }

  .blog-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    /* single column on mobile */
    grid-template-rows: auto;
    /* automatic rows */
    gap: 1.5rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}