* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "chopinscript";
  src: url(../fonts/CHOPINSCRIPT.TTF);
}

@font-face {
  font-family: "dearest";
  src: url(../fonts/DEAREST.NORMAL.TTF);
}

.noto-sans-regular {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  /* font-weight: <weight>; */
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.main__content__header #metal-button.btn,
.main__content__header #neo-button.btn {
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: 0;
  /* font-family: serif; */
  font-family: "Noto Sans", sans-serif;
}

body {
  background: var(--background);
  color: var(--text-color);
  font-size: 0.9rem;
}

.main__content {
  width: clamp(400px, 100%, 1260px);
  margin-inline: auto;
  /* font-family: sans-serif; */
  padding: 2rem;
}

.main__content__heading {
  /* margin-top: 2rem; */
  /* text-align: justify; */
  letter-spacing: 3px;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: crimson;
  text-align: center;
  flex: 1;
  font-family: chopinscript;
  /* margin-bottom: 3rem; */
}

button:hover,
button:focus {
  cursor: pointer;
}

.main__content__highlights {
  display: grid;
  /* list-style-type: none; */
  /* grid-template-columns: repeat(2, 1fr); */
  /* color: rgb(45, 38, 38); */
  gap: 2rem;
  /* margin-top: 1.5rem;   */
  border: 0.5px solid rgb(255, 255, 255);
  /* box-shadow: 0 0 10px rgba(164, 164, 164, 0.623); */
  /* padding: 3rem; */
  border-radius: 1rem;
  place-content: start;
  list-style-type: "\1F604";
}

.main__content__highlights li {
  /* padding: 24px; */
  text-align: justify;
  letter-spacing: 1px;
  /* border: 0.5px solid rgb(164, 164, 164); */
  /* box-shadow: 0 0 10px rgba(164, 164, 164, 0.623); */
  border-radius: 8px;
  line-height: 1.3;
  display: flex;
  list-style-type: "\231B";

  align-items: center;
}

.main__content__highlights li:hover,
.main__content__highlights li:focus {
  /* box-shadow: -5px -5px 10px rgba(164, 164, 164, 0.623); */
  cursor: pointer;
}

.main__content__subheading {
  margin-top: 2rem;
  color: rgb(0, 179, 211);
  text-align: center;
}

.back-button {
  position: fixed;
  border: none;
  background: rgb(64, 64, 64);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  top: 30px;
  left: 2px;
}

a:has(.back-button) {
  text-decoration: none;
  color: white;
}

a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
  color: white;
}

.main__content__header {
  display: flex;
  align-items: center;
  position: relative;
  flex-direction: column;
  margin-bottom: 3rem;
}

/* model code starts */
#imgBox[data-open="true"] {
  visibility: visible;
  scale: 1;
  transition: all 0.1s ease-in-out;
  z-index: 2000;
}

#imgBox[data-open="false"] {
  visibility: hidden;
}

.modal {
  /* display: none; */
  position: fixed;
  z-index: 1001;
  padding-top: 20px;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.moon-close {
  position: absolute;
  top: 10px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  /* transition: 0.3s; */
}
.moon-close:hover,
.moon-close:focus {
  color: rgb(248, 7, 7);
  text-decoration: none;
  cursor: pointer;
}
.modal-content {
  max-height: 98vh; /* Limit the height of the modal content */
  overflow-y: auto; /* Enable vertical scrolling */
  margin: auto;
  display: block;
  width: 80%;
  scrollbar-width: none;
  /* background: rgb(255, 255, 255); */
  padding: 2rem;
  border-radius: 1rem;
}
.img-content {
  margin: auto;
  display: block;
  border-radius: 3px;
  height: auto;
  max-height: 75vh;
  /* width: 100%; */
  user-select: none;
  max-width: 100%;
}
#text {
  padding: 10px;
  margin: auto;
  display: block;
  text-align: center;
  color: white;
  font-size: 1.2rem;
  font-family: dearest;
}
.img-content,
#text {
  animation-name: animate;
  animation-duration: 0.6s;
}

.modal__content__subheading {
  margin: 0;
  padding-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0px 0px 26px rgb(255, 255, 255);
  color: teal;
  line-height: 1.5;
  text-align: center;
  /* position: absolute; */
}

.main__content__button#neo-button.btn {
  /* position: absolute; */
  right: -0%;
  padding: 8px 24px;
}

.main__content__button:is(:focus-visible, :focus) {
  box-shadow: 0 0 20px #101010;
  background: #ffffff;
  color: #091921;
}

div.placements-model {
  /* display: none; */
  box-shadow: none;
  margin-top: 0;
}

button:hover,
button:focus-visible {
  cursor: pointer;
}

button.moon-close {
  /* font-size: 10px; */
  top: 25px;
}

@media screen and (min-width: 960px) {
  .back-button {
    position: fixed;
    /* background: green; */
    left: 40px;
  }

  .main__content__header {
    flex-direction: row;
  }

  .main__content__container {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    padding-block: 24px;
    row-gap: 2rem;
  }

  .main__content__container > .main__content__image {
    order: 2;
  }

  .main__content__container > .main__content__image.left {
    order: 1;
  }

  .main__content__details {
    text-align: justify;
    letter-spacing: 1px;
    order: 2;
    display: grid;
  }

  .main__content__details.left {
    text-align: justify;
    letter-spacing: 1px;
    order: 1;
  }
}

@media screen and (width < 860px) {
  .main__content__container {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: 1fr;
    padding-block: 24px;
  }
}

@media screen and (max-width: 960px) {
  .main__content__container {
    display: grid;
    /* column-gap: 2rem; */
    /* grid-template-columns: repeat(3, 1fr); */
    padding-block: 24px;
    row-gap: 2rem;
    place-items: center;
  }

  .main__content__header #metal-button.btn,
  .main__content__header #neo-button.btn {
    position: relative;
    border: none;
    padding: 8px 24px;
    /* outline: 5px solid gray; */
    background: linear-gradient(#131313, #424242);
    color: white;
    /* position: relative; */
    box-shadow: inset 0px 10px 5px rgba(150, 150, 150, 0.9);
    border-radius: 100px;
    isolation: above;
    display: inline-flex;
    z-index: unset;
    font-size: 12px;
    width: fit-content;
  }
}

.main__content__highlights {
  padding: 1.5rem;
  align-content: center;
  align-items: center;
}

@media screen and (min-width: 1260px) {
  .back-button {
    position: fixed;
    /* background: green; */
    /* left: -10%; */
  }
  .main__content__heading {
    letter-spacing: 5px;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: crimson;
    text-align: center;
    flex: 1;
    font-family: chopinscript;
  }
  .main__content__container {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    padding-block: 24px;
  }
  .main__content__container > .main__content__image {
    grid-column-start: 3;
    grid-column-end: 4;
    order: 2;
  }

  .main__content__container > .main__content__image.left {
    grid-column-start: 1;
    grid-column-end: 2;
    order: 1;
  }

  .main__content__details {
    grid-column-start: 2;
    grid-column-end: 4;
    text-align: justify;
    letter-spacing: 1px;
    order: 2;
    display: grid;
  }

  .main__content__details.left {
    grid-column-start: 1;
    grid-column-end: 3;
    text-align: justify;
    letter-spacing: 1px;
    order: 1;
  }
}

.main__content__image {
  width: clamp(300px, 100%, 400px);
  display: grid;
  place-content: center;
}

.main__content__image img {
  max-height: 250px;
  border-radius: 16px;
}

@media screen and (width<500px) {
  .main__content__container {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: 1fr;
    padding-block: 16px;
    place-items: center;
    row-gap: 2rem;
  }

  .main__content__highlights {
    padding: 1.5rem;
  }

  .main__content__image {
    display: subgrid;
    place-content: center;
    width: clamp(300px, 100%, 400px);
    /* max-height: 200px; */
  }

  .main__content__container > .main__content__image {
    /* grid-column-start: 3;
       grid-column-end: 4; */
    /* order: 2; */
  }

  .main__content__container > .main__content__image.left {
    /* grid-column-start: 1;
       grid-column-end: 2; */
    /* order: 1; */
  }

  .main__content__header {
    margin-bottom: 2rem;
  }

  .main__content__details {
    /* grid-column-start: 2;
  grid-column-end: 4; */
    text-align: justify;
    letter-spacing: 1px;
    /* order: 2; */
    display: grid;
  }

  .main__content__details.left {
    /* grid-column-start: 1;
  grid-column-end: 3; */
    text-align: justify;
    letter-spacing: 1px;
    /* order: 1; */
  }
}

.testimonial-container {
  position: relative;
  padding: 20px;
  margin: 2rem auto;
  width: 55%;
  max-width: 900px;
  clear: both;
  float: none;
}

.testimonial-wrapper {
  position: relative;
  background: transparent;
  border-radius: 30px;
  padding: 2.5px;
  height: 170px;
  overflow: hidden;
  border: 0.2px solid #898787;
  margin: 0 auto;
}

.testimonial-carousel {
  position: relative;
  border-radius: 28px;
  padding: 10px 0;
  background-image: url('../images/students-bg.png');
  background-size: cover;
  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 2px;
  padding: 0;
  transition: transform 0.7s ease-in-out;
  will-change: transform;
  position: relative;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 87%;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.testimonial-inner {
  background: transparent;
  border-radius: 20px;
  padding: 10px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  margin-l: 10px;
}

.testimonial-content .view-details-btn {
  position: relative;
  border: none;
  padding: 6px 16px;
  background: linear-gradient(#131313, #424242);
  color: #fff;
  box-shadow: inset 0 10px 5px rgba(150, 150, 150, .9);
  border-radius: 100px;
  isolation: above;
  display: inline-flex;
  z-index: unset;
  font-size: 10px;
  width: fit-content;
  margin-top: 5px;
}

.testimonial-content .view-details-btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(#111 5%, #fff, #111 95%);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover {
  cursor: pointer;
  background: linear-gradient(#000, #444);
}

.student-photo {
  width: 100px;
  height: 130px;
  border-radius: 10px;
  border: 0.5px solid white;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin-right: 0;
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.student-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0;
}

.student-details h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  color: #333;
}

.student-details p {
  margin: 3px 0;
  color: #666;
  font-size: 0.9rem;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.company {
  font-weight: bold;
  color: #2c5282;
}

.student-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 80%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.student-modal.active {
  display: block;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-overlay.active {
  display: block;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.student-details-extended {
  margin-top: 20px;
}

.student-details-extended h4 {
  color: #2c5282;
  margin: 15px 0 5px;
}

.student-details-extended p {
  margin: 5px 0;
  line-height: 1.5;
}

.achievement-list {
  list-style-type: none;
  padding: 0;
}

.achievement-list li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.achievement-list li:before {
  content: "•";
  color: #2c5282;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .testimonial-container {
    width: 95%;
    height: 100%;
    margin: 2rem auto;
    padding: 0;
  }

  .testimonial-track {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    gap: 4px;
    transform: translateX(0);
  }

  .testimonial-card {
    flex: 0 0 88%;
    max-width: 88%;
  }

  .testimonial-inner {
    padding: 6px;
    height: 170px;
    min-height: auto;
  }

  .testimonial-content {
    gap: 8px;
  }

  .student-photo {
    width: 80px;
    height: 110px;
  }

  .student-details h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .student-details p {
    font-size: 0.85rem;
    margin: 2px 0;
  }

  .nav-btn {
    width: 32px;
    height: 32px;
    opacity: 0.8;
  }

  .prev-btn {
    left: 2px;
  }

  .next-btn {
    right: 2px;
  }

  .view-details-btn {
    position: relative;
    border: none;
    padding: 8px 24px;
    background: linear-gradient(#131313, #424242);
    color: white;
    box-shadow: inset 0px 10px 5px rgba(150, 150, 150, 0.9);
    border-radius: 100px;
    isolation: above;
    display: inline-flex;
    z-index: unset;
    font-size: 10px;
    width: fit-content;
    margin-top: 3px;
    height: 20px;
    min-width: 40px;
  }

  .student-modal {
    width: 90%;
    margin: 20px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 5px 25px rgba(44, 82, 130, 0.2);
  }
  100% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

@keyframes expandFromCard {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.9) translateY(-25px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.student-details-box {
  display: none;
  background: white;
  margin: 2rem auto;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
  opacity: 0;
  transform-origin: top center;
  transform: scale(0.8) translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.student-details-box.active {
  display: block;
  animation: 
    expandFromCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.5s;
  border-color: rgba(44, 82, 130, 0.3);
}

.student-details-box.active .student-photo {
  animation: photoPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes photoPulse {
  0% {
    box-shadow: 0 0 0 rgba(44, 82, 130, 0);
  }
  50% {
    box-shadow: 0 0 15px rgba(44, 82, 130, 0.2);
  }
  100% {
    box-shadow: 0 0 0 rgba(44, 82, 130, 0);
  }
}

.student-details-box.fade-out {
  animation: shrinkToCard 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes shrinkToCard {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
}

/* Remove the backdrop effect */
/* .student-details-box::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.student-details-box.active::before {
  opacity: 1;
} */

.student-details-box .student-photo {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 30px;
  float: left;
}

.student-details-box .student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-details-extended {
  overflow: hidden;
}

.student-details-extended h3 {
  color: #2c5282;
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.student-details-extended h4 {
  color: #000000;
  margin: 18px 0 8px;
  font-size: 1.1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}

.student-details-extended p {
  margin: 6px 0;
  line-height: 1.5;
  color: #2d2e2e;
  font-size: 0.95rem;
}

.student-details-extended .course,
.student-details-extended .dates {
  font-size: 0.95rem;
  color: #666;
}

.student-details-extended .company {
  color: #050505;
  font-weight: bold;
  font-size: 1rem;
}

.achievement-list {
  list-style-type: none;
  padding: 0;
  margin: 12px 0;
}

.achievement-list li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
  font-size: 0.9rem;
  color: #000000;
}

.achievement-list li:before {
  content: "•";
  color: #020202;
  position: absolute;
  left: 6px;
  font-size: 1rem;
}

/* .view-details-btn {
  background: #2c5282;
  color: white;
  border: none;
  padding: 5px 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
} */

@media (max-width: 768px) {
  .student-details-box {
    width: 95%;
    padding: 20px;
  }

  .student-details-box .student-photo {
    width: 150px;
    height: 150px;
    float: none;
    margin: 0 auto 20px;
  }

  .student-details-extended {
    text-align: center;
  }

  .achievement-list li {
    text-align: left;
  }
}

.testimonial-quote {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #2c5282;
  border-radius: 0 8px 8px 0;
}

.testimonial-quote p {
  font-style: italic;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.student-details-extended h4:first-of-type {
  margin-top: 20px;
}

/* Add dearest font */
@font-face {
  font-family: "dearest";
  src: url(../fonts/DEAREST.NORMAL.TTF);
}

.student-details-extended h4,
.student-details-extended p,
.student-details-extended .course,
.student-details-extended .dates,
.student-details-extended .company,
.achievement-list li {
  font-family: "dearest", sans-serif;
  letter-spacing: 0.2px;
}

/* Adjust font sizes to be smaller with dearest font */
.student-details-extended h3 {
  font-family: "Noto Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.student-details-extended h4 {
  font-size: 1rem;
  letter-spacing: 0.8px;
  margin: 15px 0 6px;
}

.student-details-extended p {
  font-size: 0.9rem;
  margin: 4px 0;
}

.student-details-extended .course,
.student-details-extended .dates {
  font-size: 0.9rem;
}

.student-details-extended .company {
  font-size: 0.95rem;
  font-weight: 500;
}

.achievement-list {
  margin: 8px 0;
}

.achievement-list li {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin: 6px 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .student-details-extended h3 {
    font-size: 1.1rem;
  }

  .student-details-extended h4 {
    font-size: 0.95rem;
  }

  .student-details-extended p,
  .student-details-extended .course,
  .student-details-extended .dates {
    font-size: 0.85rem;
  }

  .student-details-extended .company {
    font-size: 0.9rem;
  }

  .achievement-list li {
    font-size: 0.8rem;
  }
}

/* Error message styling */
.error-message {
  background-color: #fff3f3;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  border: 1px solid #fecaca;
  font-family: "dearest", sans-serif;
  font-size: 1.1rem;
}

/* Desktop wider view */
@media (min-width: 769px) {
  .testimonial-container {
    width: 40%;
  }

  .testimonial-card {
    flex: 0 0 100%;
    max-width:93%;
  }
  
  .testimonial-track {
    gap: 0px;
  }
}
