
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.profile-modal {
  background: #c8d421;
  width: 75%;
  height: 85%;
  display: flex;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
  border-radius: 40px;
  -webkit-animation: slideIn 0.4s ease-out;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  -ms-border-radius: 40px;
  -o-border-radius: 40px;
}

.left-section {
  flex: 0 0 50%;
  padding: 60px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 100px;
    background: none;
    border: none;
    /*font-size: 16px;
    *//*font-weight: 700;
    *//*color: #2d2d2d;
    *//*cursor: pointer;
    */display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    width: 30px;
    height: 30px;
    font-weight: 900;
    font-size: 20px;
}

.close-btn:hover {
  opacity: 0.7;
}

.close-icon {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.student-name {
  font-size: 48px;
  font-weight: 900;
  color: #2d2d2d;
  line-height: 0.85;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  margin-top: 5px;
}

.class-info {
  font-size: 26px;
  color: #4a4a4a;
  margin-bottom: 5px;
  font-weight: 400;
}

.modal-image {
  width: 100%;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 0.8;
  border-radius: 3px;
  object-fit: cover;
  margin-top: auto;
  /* margin-bottom: 5px; */
}

.right-section {
  flex: 1;
  background: #f5f5f5;
  padding: 50px;
  overflow-y: auto;
  border-radius: 50px 0 0 5px;
  margin: 80px 0 5px 0;
  -webkit-border-radius: 50px 0 0 5px;
  -moz-border-radius: 50px 0 0 5px;
  -ms-border-radius: 50px 0 0 5px;
  -o-border-radius: 50px 0 0 5px;
}
.story-content {
  color: #3a3a3a;
  line-height: 1.65;
  font-size: 1.05rem;
  font-weight: 400;
}

.story-paragraph {
  margin-bottom: 28px;
}

/* .student-card:hover {
height: 435px;
  width: 300px;
  background-color: #fdbd03;
  transform: (-50%, -50%) rotate(-1deg);
  -webkit-transform: (-50%, -50%) rotate(-1deg);
  -moz-transform: (-50%, -50%) rotate(-1deg);
  -ms-transform: (-50%, -50%) rotate(-1deg);
  -o-transform: (-50%, -50%) rotate(-1deg);
} */


.story-title {
  font-size: 4rem;
  font-weight: 900;
  color: #502850;
  margin-bottom: 35px;
  letter-spacing: -0.02em;
}


.quote {
  color: #2d2d2d;
  margin: 5px 0;
  font-size: 4px;
  line-height: 1.2;
  font-weight: 400;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.article-wrapper:hover {
    background: #fdbd03 !important;
}

.next-step-image {
    width: 100% !important;
    height: auto;
}

body:not(.fsComposeMode) .fsContent[class*=image-button] {
    width: 100%;
    max-width: 400px;
    min-height: 470px;
    max-height: 500px;
    margin: 0px !important;
    position: relative
}
/* ---------- MOBILE FIX ---------- */
@media (max-width: 768px) {
  .profile-modal {
    flex-direction: column;
    width: 95%;
    height: auto;
    max-height: 90vh;          /* keeps it within view height */
    overflow-y: auto;          /* allow vertical scrolling */
    -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
    border-radius: 20px;
  }

  .left-section {
    flex: none;
    width: 100%;
    padding: 30px;
    align-items: center;
    text-align: center;
  }

  .right-section {
    padding: 30px;
    margin: 0;
    border-radius: 20px;
  }

  .close-btn {
    top: 15px;
    right: 15px;
  }

  .story-title {
    font-size: 2rem;
  }

  .student-name {
    font-size: 2.5rem;
  }

  .class-info {
    font-size: 1.2rem;
  }
}
