@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    width: 100%;
    height: 500px;
    background-image: url("./assets/img/background_img_sec1.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero_content {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 0px 20px;
}

.hero_content h1 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 500;
    line-height: 100%;
    font-family: "Playfair+Display";
}

/* =========================
   BLOG SECTION
========================= */

.blogs_section {
  width: 100%;
  padding:60px 0px;
}

.blogs_section_wrapper {
  width: 100%;
  max-width: 1600px;
  margin: auto;
  /*padding: 80px 120px;*/
  padding:0px 120px;
}

.blogs_grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

/* =========================
   BLOG CARD
========================= */
.blog_card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.blog_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
       transition: transform 0.5s ease;
}

.blog_card:hover img {
  transform: scale(1.1);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.card_bottom:hover .arrow {
  transform: translateX(6px);
}

/* =========================
   OVERLAY
========================= */

.blog_card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

.card_content {
  position: absolute;
  bottom: 25px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: white;
}

.card_content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: "Montserrat";
    line-height: 120%;
}

.card_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card_bottom p {
    font-size: 14px;
    line-height: 150%;
    font-family: "Montserrat";
    margin:0px;

}
.arrowbtn {
      display: flex;
      gap: 4px;
}
.arrow {
      width: fit-content;
}

/* =========================
   GLOBAL CLASSES
========================= */

.font_w_600 {
  font-weight: 600;
}

.font_w_500 {
  font-weight: 500;
}

.font_w_400 {
  font-weight: 400;
}

.font_size_38px {
  font-size: 38px;
}

.font_size_24px {
  font-size: 24px;
}

.font_size_14px {
  font-size: 14px;
}

/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1600px) {

  .blogs_section_wrapper {
    max-width: 1800px;
    /*padding: 100px 160px;*/
  }

  .blogs_grid {
    gap: 35px;
  }

  .blog_card {
    height: 500px;
  }

  .hero_content h1 {
    font-size: 72px;
  }

  .card_content h2 {
    font-size: 34px;
  }
}

/* =========================================
   DESKTOP
========================================= */

@media (max-width: 1400px) {

  /*.blogs_section_wrapper {*/
  /*  padding: 70px 80px;*/
  /*}*/

  .blog_card {
    height: 390px;
  }

  .card_content h2 {
    font-size: 24px;
  }
}

/* =========================================
   LAPTOP / TABLET
========================================= */

@media (max-width: 992px) {

  .hero {
    height: 500px;
  }

  .hero_content {
    bottom: 60px;
  }

  .hero_content h1 {
    font-size: 44px;
  }

  .blogs_section_wrapper {
    padding: 60px 40px;
  }

  .blogs_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .blog_card {
    height: 360px;
  }

  .card_content h2 {
    font-size: 22px;
    line-height: 130%;
  }

  .card_bottom p {
    font-size: 13px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .hero {
    height: 380px;
  }

  .hero_content {
    bottom: 45px;
    padding: 0 15px;
  }

  .hero_content h1 {
    font-size: 34px;
  }

  .blogs_section_wrapper {
    padding: 40px 20px;
  }

  .blogs_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog_card {
    height: 400px;
  }

  .card_content {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .card_content h2 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .card_bottom p {
    font-size: 12px;
  }
  .arrow {
      width: fit-content;
}
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .hero {
    height: 300px;
  }

  .hero_content {
    bottom: 35px;
  }

  .hero_content h1 {
    font-size: 28px;
  }

  .blogs_section_wrapper {
    padding: 30px 14px;
  }

  .blog_card {
    height: 330px;
  }

  .card_content {
    left: 15px;
    right: 15px;
    bottom: 16px;
  }

  .card_content h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .card_bottom {
    flex-wrap: wrap;
    gap: 6px;
  }

  .card_bottom p {
    font-size: 11px;
  }
  .arrow {
      width: fit-content;
}
}