@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  background-color: #f5f5f5;
}


/* ========== Carousel========== */
.new-masthead {
  overflow: hidden;
  background: #fff;
  padding: 32px 0 13px;
}

.new-masthead h1 {
  font-weight: bolder;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #292f3a;
  font-size: min(6vw, 74px);
  text-align: center;
}

@media screen and (max-width: 767px) {
  .masthead--margin .wrapper {
    padding: 0 16px;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin .wrapper {
    padding: 0 24px;
  }
}

@media screen and (max-width: 1200px) {
  .masthead--margin .wrapper {
    padding: 0 20px;
  }
}

@media screen and (max-width: 767px) {
  .masthead--margin {
    margin: 0px 0px 100px;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin {
    margin: 0px 0px 60px;
  }
}

@media screen and (max-width: 1200px) {
  .masthead--margin {
    margin: 0px 0px 50px;
  }
}

.masthead--margin {
  background: rgb(255, 255, 255);
}

.masthead--margin .wrapper {
  margin: 0 auto;
  z-index: 5;
  padding: 0 40px;
  max-width: 1440px;
}

.masthead--margin .masthead h2 {
  text-transform: uppercase;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .masthead--margin h2 {
    font-size: 36px !important;
    line-height: 1 !important;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin h2 {
    font-size: 36px !important;
    line-height: 1.1 !important;
    max-width: 480px !important;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin h2 {
    font-size: 55px;
  }
}

@media screen and (max-width: 1200px) {
  .masthead--margin h2 {
    font-size: 60px;
  }
}

.masthead--margin h2 {
  font-style: italic;
  max-width: 600px;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
}

.masthead--margin h2 {
  margin: 0px 0px 10px;
}

@media screen and (max-width: 767px) {
  .masthead--margin .masthead {
    min-height: 500px;
    padding: 0px 0px 68px;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin .masthead {
    min-height: 600px;
    padding: 0px 40px 68px 0px;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin {
    margin: 0 0 60px !important;
  }
}

@media screen and (max-width: 1200px) {
  .masthead--margin {
    margin: 0 0 50px !important;
  }
}

.masthead--margin {
  background: #fff;
}

.masthead--margin .masthead {
  max-width: 925px;
  min-height: 630px;
  display: flex;
  align-items: flex-start;
  z-index: 50;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0px 0px 48px;
}

.masthead--margin .masthead .counter span,
.masthead--margin .masthead,
.masthead--margin .masthead .spec-block-wrapper .spec-block > a > div > span {
  color: rgb(255, 255, 255);
}

@media screen and (max-width: 767px) {
  .masthead--margin . {
    min-height: 527px;
    padding: 0px 0px 52px;
  }
}

@media screen and (max-width: 1024px) {
  .masthead--margin {
    min-height: 450px;
    padding: 0px 0px 53px;
  }
}

.masthead--margin .in {
  min-height: 677px;
  padding: 0px 0px 40px;
}

.content p {
  font-size: 20px;
}

.masthead--margin .btn-color {
  background: rgb(0, 167, 240);
  height: 48px;
  padding: 12px 25px;
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
  line-height: 24px;
  color: rgb(255, 255, 255);
  margin: 0px 0px 0px 9px;
}

.masthead--margin a {
  color: rgb(0, 169, 224);
  text-decoration: none;
}

.wrapper {
  margin: 0 auto;
  z-index: 5;
  padding: 0 40px;
  max-width: 1440px;
}

.carousel {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color 0.8s ease;
  z-index: 1;
}

.slide::before {
  background-color: rgba(0,0,0,0.4); /* transparent by default */
  z-index: 1; /* below content */
}
.slide.active::before {
  background-color: rgba(0,0,0,0.4); /* visible overlay */
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: white;
  z-index: 2;
}

@media (max-width: 768px) {

.content {
  position: absolute;
  bottom: 20%;
  left: 2%;
  color: white;
  z-index: 2;
}

}
.content p {
  margin-top: 15px;
  font-size: 18px;
}

.content .btn {
  display: inline-block;
  background: #00a7f0;
  height: 48px;
  padding: 12px 25px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  margin-left: 9px;
  border: none;
  text-decoration: none;
  transform: skew(-20deg);
  transition: 0.3s;
}

/* reverse skew the text inside */
.content .btn span {
  display: inline-block;
  transform: skew(20deg);
}

.content .btn:hover {
  background: #008ccc;
}

.bottom-bar {
  position: absolute;
  bottom: 40px;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.slide-count {
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
}

.progress-line {
  position: relative;
  flex-grow: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 20px;
  overflow: hidden;
}

.progress-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #009eff;
  animation: progress 6s linear infinite;
}

@media (min-width: 1200px) {
  .slide .content {
    bottom: 40px;
    left: 5%;
    max-width: 45%;
  }

  .bottom-bar {
    left: auto;
    right: 5%;
    width: auto;
    gap: 24px;
  }

  .bottom-bar .progress-line {
    flex: 0 0 200px;
  }
}

@keyframes progress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
} /* Arrows */

.arrows button {
  background: #212529;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 15px;
  border-radius: 3px;
  margin-left: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.arrows button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.slide-count,
.arrows {
  display: static;
}
#prev, #next{
transform: skew(-20deg);
    width: 50px;
}

@media (max-width: 1080px) {
  .slide-count,
  .arrows {
    display: none;
  }
}
/* ========== Advantages ========== */
.advantages-section {
  background-color: #ffffff;
  padding-bottom: 20px;
  border-radius: 0px 0px 70px 70px;
  justify-content: center !important;
  width: 100% !important;
  display: flex !important;
}

.advantages-container {
  max-width: 1200px;
  margin: 0 20px;
  gap: 1.5rem !important;
  margin-top: 1.5rem !important;
  flex-direction: column !important;
  width: 100% !important;
  display: flex !important;
}

.advantages_cardsMain {
  justify-content: center;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  display: flex !important;
}

.advantages_card {
  max-width: 264px;
  width: 100%;
  border-radius: 1rem;
  flex-direction: column;
  gap: 1rem !important;
  align-items: center !important;
  display: flex !important;
}

.advantages_img {
  background-color: #092f53;
  padding: 11px;
  border-radius: 15px;
}

.advantages_title h1 {
  font-size: 19px !important;
  font-weight: 700 !important;
  text-align: center;
}

.advantages_title  p {
  font-size: 14px;
  color: #454f5b;
  text-align: center;
}

.advantages_title {
  width: 100%;
  max-width: 221px;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  display: flex !important;
}

/* ========== About ========== */
.about-section {
  margin-block: 80px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-box {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2rem;
}

.bloqTitleButton {
  display: flex !important;
  justify-content: space-between !important;
}

.bloqTitle {
  margin-bottom: 1rem !important;
}

.bloqTitle h2 {
  font-weight: 600 !important;
  font-size: calc(1.375rem + 1.5vw) !important;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1184px) {
  .about-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* Make Missiyamız span full width before company intro */
  .card-wishlist {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    max-height: 500px;
  }

  .company-intro-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 1024px) {
  .about-card .card-wishlist {
    max-height: 700px;
  }

  .about-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  #mainAbout .about-grid > div {
    max-height: 500px;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* better balance */
  gap: 1.5rem;
  align-items: stretch; /* cards stay even */
}

#mainAbout .about-grid > div {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 25px;
  background: white;
  overflow: hidden;
}

.card-pathways {
  grid-column: span 2;
  grid-row: span 2;
}

.about-card {
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-wishlist {
  grid-column: 5 / span 2;
  grid-row: span 4;
  position: relative;
}

@media (max-width: 768px) {
  .about-card,
  .company-intro-card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .card-pathways,
  .card-teamwork,
  .card-wishlist,
  .company-intro-card {
    grid-column: span 2 !important;
    grid-row: auto;
  }
}

.card-content {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.875rem;
  font-weight: 500;
}

.card-text {
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.image-large {
  position: relative;
  height: 54%;
  width: 100%;
  overflow: hidden;
}

.image-large::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px; /* fade height */
  background: linear-gradient(to bottom, white 0%, transparent 20%);
  z-index: 2;
  pointer-events: none;
}

.image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image img {
  width: 100%;
}

#mainAbout .about-grid > div {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 25px;
  background: white;
  overflow: hidden;
}

.card-teamwork {
  grid-column: 3 / span 2;
  grid-row: span 2;
}

.about-card {
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image.image-relative {
  position: relative;
  height: 50%;
  width: 100%;
  overflow: hidden;
}

.card-image.image-relative::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px; /* fade height */
  background: linear-gradient(to bottom, white 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.card-image.image-relative img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .card-pathways,
  .card-teamwork,
  .card-wishlist,
  .company-intro-card {
    grid-column: span 2 !important;
    grid-row: auto;
  }
}

.card-content {
  padding: 1.25rem;
}

.company-intro-card {
  grid-column: span 4;
  grid-row: 3 / span 2;
  background: linear-gradient(135deg, #eef7f1 0%, #f4fff6 100%);
  padding: 2rem;
  border-radius: 25px;
  overflow: hidden;
}

.company-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 70%;
}

@media (max-width: 768px) {
  .company-intro {
    width: 100%;
  }
}

.button-more {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
  margin-top: 1.5rem;
  padding: 10px 60px;
  background-color: #092f53;
  text-decoration: none;
  border-radius: 60px;
  transition: background-color .3s, color .3s;
  color: #fff !important;
}
/* ========== Products  ========== */
.products {
  padding: 3rem 0 !important;
}

/* Container width setup */
.products-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section title layout */
.bloqTitleButton {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
}

.bloqTitle h2 {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 600;
  color: #000;
}

/* Grid system */
.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Distribute evenly on big screens */
}
/* Columns */
.col-md-4 {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

/* Product card */
.new-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  max-width: 376px;
  width: 100%;
  transition: transform 0.3s ease;
}

.new-product-card:hover {
  transform: translateY(-5px);
}

/* Product image */
.new-product-card img {
  width: 100%;
  max-width: 376px;
  height: 400px;
  object-fit: cover;
  filter: brightness(70%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.new-product-card:hover img {
  filter: brightness(90%);
}

/* Top-left label text */
.new-product-card span {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
}

/* Overlay content */
.new-product-content {
  position: absolute;
  inset: 0;
  max-width: 376px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  color: #fff;
  z-index: 3;
}

/* Product title */
.new-product-content h4 {
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* “Daha ətraflı” button */
.new-product-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  height: 40px;
  padding: 9px 20px;
  font-size: 15px;
  color: #003a70 !important;
  background: #fff;
  clip-path: polygon(13% 0, 100% 0%, 87% 100%, 0% 100%);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.new-product-content a:hover {
  background: #003a70;
  color: #fff !important;
}


/* Large tablets */
@media (max-width: 992px) {
  .col-md-4 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}
/* Tablets & small screens */
@media (max-width: 568px) {
  .col-sm-6 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .new-product-content h4 {
    font-size: 1.2rem;
  }

  .new-product-content a {
    font-size: 13px;
    padding: 8px 16px;
  }

  .new-product-card img {
    height: 340px;
  }
}

/* Small screens (phones) */
@media (max-width: 576px) {
  .products {
    padding: 2rem 0 !important;
  }

  .new-product-card img {
    height: 300px;
  }

  .new-product-card span {
    font-size: 12px;
  }

  .new-product-content h4 {
    font-size: 1rem;
  }

  .new-product-content a {
    width: 160px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .col-md-4,
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* ====== New Items ====== */
.new-section {
  justify-content: center !important;
  width: 100% !important;
  display: flex !important;
}

.new-container {
  max-width: 1200px;
  margin: 0 20px;
  gap: 1.5rem !important;
  padding-top: 1rem !important;
  margin-top: 1.5rem !important;
  flex-direction: column !important;
  width: 100% !important;
  display: flex !important;
}

.new-title-button {
  justify-content: space-between !important;
  display: flex !important;
}

.new-title h1 {
  font-size: 30px !important;
  font-weight: 700;
}

.bloqButton {
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  background-color: black;
}

.blogMain {
  gap: 1.5rem !important;
  display: flex !important;
  flex-wrap: nonwrap;
  justify-content: center;
}

@media only screen and (max-width: 992px) {
  .blogMain {
    flex-wrap: wrap;
  }
}

.blog-LeftCard {
  padding: 20px;
  background-color: #fff;
  border-radius: 20px;
  max-width: 352px;
  max-width: 100%;
}

.blog-LeftCard a {
  gap: 1rem !important;
  flex-direction: column !important;
  display: flex !important;
}

picture {
  height: 430px;
}

.blog-LeftCard img {
  max-width: 100%;
  border-radius: 16px;
  height: 100%;
  object-fit: cover;
}

.blog-LeftCard h2 {
  font-size: 1.5rem;
  letter-spacing: -0.72px;
  font-weight: 600;
  color: #212529;
}

.blog-leftCardFooter {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem !important;
}

.blog-detail {
  position: relative;
  font-weight: 500;
  color: #212529;
}

.blog-detail::after {
  content: "";
  position: absolute;
  background: url("https://hesampaper.com/assets/img/arrow-red.svg") no-repeat 50% 50%;
  background-color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  top: 50%;
  right: -3.5rem;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

p {
  margin: 0;
}

.blog-date {
  color: #b5b5b5;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.blog-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

@media only screen and (max-width: 1252px) {
  .blog-rightCard {
    width: 100% !important;
  }
}

.blog-rightCard {
  position: relative;
  width: 389px;
  height: 303px;
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 1000px 20px 20px 20px #00000085;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s ease;
}

/* Dark overlay layer */
.blog-rightCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.5s ease;
  z-index: 1;
}

/* Keep content above overlay */
.blog-rightCard * {
  position: relative;
  z-index: 2;
}

/* Text styles */
.blog-rightCard h3,
.blog-rightCard .blog-detail {
  color: white;
  transition: color 0.3s ease;
}

/* Hover effect */
.blog-rightCard:hover::before {
  background-color: rgba(255, 255, 255, 1);
}

.blog-rightCard:hover h3,
.blog-rightCard:hover .blog-detail {
  color: #212529;
}

.blog-rightCard 
    .blog-detail {
  color: white;
}

.blog-rightCard {
  * {
    position: relative;
    z-index: 2;
  }
}
/* ====== Partners ====== */

.partners-section {
  background-color: #ffffff;
  border-radius: 0px 0px 70px 70px;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  margin-top: 3rem !important;
  justify-content: center !important;
  width: 100% !important;
  display: flex !important;
}

.partners-container {
  max-width: 1200px;
  margin: 0 20px;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  flex-direction: column !important;
  width: 100% !important;
  display: flex !important;
}

.partners-title {
  width: 100% !important;
  font-size: 30px !important;
  font-weight: 700;
}

.partners {
  margin-top: 3rem !important;
  flex-wrap: wrap !important;
  display: flex !important;
  justify-content: center;
}

.PartnyorA {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  margin-top: -1px;
  position: relative;
  border: 1px solid rgba(40, 40, 40, .1);
  height: 138px;
  width: 288px;
}

.PartnyorA:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.PartnyorA img {
  filter: grayscale(100%);
  margin: 0 16px;
  max-height: 90px;
  max-width: 130px;
  transition: .2s ease-in-out;
  object-fit: contain;
}

img {
  border: 0;
}

img,
svg {
  vertical-align: middle;
}
/* ====== FAQ ====== */
.sec-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== Section ====== */
#faq {
  padding: 3rem 0;
}

.resources-items {
  padding-right: 1rem;
  padding-bottom: 3.125rem;
  overflow: visible;
}

.resources-items.scrollable {
  max-height: 502px;
  overflow-y: auto;
}

.resources-items.scrollable:hover {
  scrollbar-width: thin;
}

.resources-items.scrollable::-webkit-scrollbar {
  width: 0;
}

.resources-items.scrollable:hover::-webkit-scrollbar {
  width: 10px;
}

.resources-item-wrapper.active .description {
  max-height: 500px;
  transition: max-height 0.4s ease;
  opacity: 1;
}

@media (max-width: 992px) {
  .resources-items {
    max-height: none;
    padding-right: 0;
    padding-bottom: 2rem;
    overflow-y: visible;
  }

  .resources .f66 {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .resources-item {
    padding: 1.25rem 2.5rem 1.25rem 1.25rem;
    border-radius: 24px;
  }

  .link {
    padding-inline: 1rem 2.5rem;
    font-size: 1rem;
  }

  .resources-item-wrapper .description {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  #faq {
    padding: 2.5rem 0;
  }

  .sec-container {
    padding: 0 16px;
  }

  .resources-item {
    padding: 1rem 2.25rem 1rem 1rem;
  }

  .link::after {
    right: 1rem;
  }
}
.flex {
  display: flex;
  flex-wrap: wrap;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.resources .f66 {
  position: relative;
  padding-left: 0.75rem;
}

.f66 {
  width: 100%;
}


/* ====== Item ====== */
.resources-item-wrapper {
  width: 100%;
}

.resources-item {
  margin-bottom: 1rem;
  padding: 1.5625rem 3.75rem 1.5625rem 1.5rem;
  background-color: #fff;
  border-radius: 36px;
}

.link {
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  padding-inline: 1.5rem 3.125rem;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
}

.resources-item {
  display: block;
  position: relative;
  width: 100%;
  background-color: #fff;
  border-radius: 24px;
  padding: 1.5rem 3rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #212529;
  transition: all 0.3s ease;
  cursor: pointer;
}

.resources-item:hover {
  background-color: #fff7f8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ====== Arrow ====== */
.link {
  position: relative;
  display: inline-block;
  padding-right: 2rem; /* space for the arrow */
  cursor: pointer;
}

.link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%) rotate(0deg);
  width: 1.3rem;
  height: 1.3rem;
  background: url("https://hesampaper.com/assets/img/arrow-red.svg") 50% 50% no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}
/* Rotate arrow when open */
.resources-item-wrapper.active .link::after {
  transform: translateY(-50%) rotate(45deg);
}
.resources-item-wrapper:hover .link::after {
  transform: translateY(-50%) rotate(45deg);
}
/* ====== Description ====== */

.resources-item-wrapper .description {
  margin-left: 10px;
  padding-bottom: 10px;
  font-size: 17px;
  color: #212529;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  max-height: 0;
  opacity: 0;
}

.resources-item-wrapper.active .description {
  max-height: 500px;
  transition: max-height 0.4s ease;
  opacity: 1;
}