/* === CRS Hero Section (Styled like Success Section) === */
.crs-hero-section {
  width: 100%;
  padding: 95px 0px 30px 150px;
  box-sizing: border-box;
}

.crs-hero-inner {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0px;
}

/* === LEFT SIDE === */
.crs-hero-left {
  flex: 1;
  padding: 20px 30px;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.crs-hero-title h1 {
  color: #ef365c;
  font-size: 60px;
  font-weight: 400;
  margin: 0;
}

.crs-hero-text {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: #18548a;
}

.crs-hero-btn {
  margin-top: 10px;
}

/* === RIGHT SIDE === */
.crs-hero-right {
  flex: 1;
  display: flex;
  justify-content: end;
  align-items: center;
  min-width: 300px;
}

.crs-right-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Responsive Styles === */
@media (max-width: 1400px) {
  .crs-hero-text {
    font-size: 18px;
  }
}

@media (max-width: 1245px) {
  .crs-hero-section {
    padding: 100px 0px 30px 50px;
  }

  .crs-hero-text {
    font-size: 16px;
  }
}

@media (max-width: 1072px) {
  .crs-hero-title h1 {
    font-size: 40px;
  }
}

@media (max-width: 1000px) {
  .crs-hero-title h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .crs-hero-section {
    width: 100%;
    padding: 50px 0px 0px 0px;
  }

  .crs-hero-inner {
    flex-direction: column;
    padding: 75px 0px;
  }

  .crs-hero-left {
    text-align: center;
    padding: 20px 15px;
    max-width: 100%;
    gap: 10px;
  }

  .crs-hero-title h1 {
    font-size: 50px;
  }

  .crs-hero-text {
    font-size: 16px;
    line-height: 1.5;
  }

  .crs-hero-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .crs-hero-left {
    padding: 10px;
  }

  .crs-hero-title h1 {
    font-size: 40px;
  }

  .crs-hero-text {
    font-size: 14px;
  }

  .crs-hero-btn .gradient-btn {
    padding: 10px 20px;
  }
}

/* === Show image again above 768px === */
@media (min-width: 769px) {
  .crs-hero-right {
    display: flex;
  }
}

/******* stories Section Styles *********************************/

.stories-section {
  overflow: hidden;
  padding: 20px 50px;
}


.stories-cards{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
}

.stories-card {
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff),
                    linear-gradient(to bottom right, #1d5689, #ef365c);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border-radius: 16px;
  overflow: hidden;
  width: 300px;
  height: 290px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stories-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  /* No border-radius on image */
}

.card-inner {
  flex: 1;
  padding: 10px;
  align-items: center;
  color: #1d5689;
  font-size: 16px;
  position: relative;
  padding-bottom: 50px;
}

.card-title {
  font-size: 25px;
  text-align: center;
  color: #18548a;
}

.card-btn {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
.stories-section {
    padding: 0px 30px;
}

.popup-box {
    padding: 10px;
    border: 3px solid #ef365c;
}

.crs-section-card-desc {
    font-size: 14px;
}

.crs-section-card-title {
    font-size: 25px;
}
}


/* === POPUP Styles === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-box {
  background: white;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  border-radius: 20px;
  border:5px solid#ef365c; 
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.close-popup {
  position: absolute;
  color: #18548a;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}



.crs-section-card{
  align-items: center;
}

.crs-section-card-title{
  text-align: center;
  color: #ef365c;
  font-size: 30px;
}

.crs-section-card-desc {
  text-align: center;
  color: #18548a;
  font-size: 16px;
    margin: 10px 0;
}

.crs-section-btn{
  text-align: center;
}



