@font-face {
  font-family: HeliosExt;
  src: url(./font//HeliosExt.otf);
}

@font-face {
  font-family: HeliosExtBold;
  src: url(./font//HeliosExt-Bold.otf);
}

@font-face {
  font-family: HeliosExtItalics;
  src: url(./font//HeliosExt-Italic.otf);
}

@font-face {
  font-family: HeliosExtBoldItalics;
  src: url(./font//HeliosExt-Bold-Italic.otf);
}

:root {
  --primary-1: #ea974a;
  --primary-1-hover: #cf8137;
  --primary-1-hover-light: #ffe5cd;
  --tertiary-1: #00c5d0;
  --tertiary-1-hover: #4de6ee;
  --primary-2: #cc2944;
  --dark-1: #701131;
  --bg-1: #e7d6cf;
  --bg-2: #fcfcfc;
  --secondary-1: #ffaa5c;
  --secondary-1-hover: #ff9500ea;
}

body {
  font-family: "Manrope", sans-serif !important;
  font-size: 22px;
  padding: 0;
  margin: 0;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero h1 {
  font-family: "HeliosExtBold", sans-serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 255, 255, 0.4);
}

footer {
  background: #35424a;
  color: #ffffff;
  text-align: center;
  padding: 10px;
}

.content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.hero {
  min-height: 30vh;
  background-size: cover;
  background-position: center;
  background-image: url("img/hero-bg.png");
}

.hero h1 {
  font-size: 3em;
  font-weight: bold;
  color: #fff;

  @media (max-width: 768px) {
    font-size: 2em;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(255, 255, 255, 0.4);
  
  }
}

.hero p {
  line-height: 1.5em;
  font-size: 2em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 255, 255, 0.4);

  @media (max-width: 768px) {
    font-size: 1.5em;
    }
}

.hero-img {
  width: 100%;
  height: auto;
}

.about-the-programme {
  background-color: #fafafa;
  padding: 24px;
}

.about-the-programme p {
  font-size: 1.2em;
  line-height: 1.5em;
  color: #333;
  text-align: justify;
}

.cards {
  display: flex;
}

.summary-details__card:hover {
  background-color: var(--primary-1-hover-light) !important;
}

.info-card {
  padding: 16px;
  margin: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
  box-shadow: 0 0 1px #333;
  border: solid 1px #b23d58;
  background-color: #ffeaea;
}

.info-card__header {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.2em;
}

.info-card__header img {
  margin-top: 4px;
}

.summary-details p {
  color: #212529;
  font-size: 1em;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.card-text {
  font-style: italic;
}

.enrol-programme {
  background: linear-gradient(to right, #b23d58, var(--dark-1));

  text-align: center;
}

form {
  background-color: #303345;
  border-radius: 1em;
}

.nav-item {
  width: 50%;
}

.nav-link {
  width: 100%;
  background-color: #303345 !important;
  color: white !important;
  border: none !important;
  padding: 20px !important;
  font-size: 1.2em !important;
  font-weight: 600 !important;
}

.nav-link.active {
  background-color: #15172b !important;
  color: white !important;
  border: none !important;
}

#brochure-tab {
  border-radius: 1em 1em 0 0;
}

#brochure-tab .active {
  background-color: red;
}

#enquire-tab {
  border-radius: 1em 1em 0 0;
}

#myTabContent {
  padding: 24px;
  background-color: #15172b;
  border-radius: 0 0 1em 1em;
  min-height: 540px;
}

button .nav-link .active {
  background-color: red !important;
}

.form-group {
  color: white;
  margin-bottom: 16px;
}

.form-group label {
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  background-color: #303345;
  border-color: #303345;
  padding: 12px;
  color: white;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #55556a;
}

.btn-primary {
  background-color: var(--primary-1) !important;
  color: white;
  border: none;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary-1-hover) !important;
}

.btn-secondary {
  background-color: var(--secondary-1) !important;
  border: none;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--secondary-1-hover) !important;
}

section h2 {
  font-family: "HeliosExtBold", "Manrope", sans-serif;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 24px;
}

section h4 {
  font-family: "HeliosExtBold", "Manrope", sans-serif;
}

.enrol-programme {
  color: white;
}

footer {
  background: var(--dark-1);
}

footer span {
  text-align: start;
  padding: 0 12px;
  margin: 0;
}

.img-fluid {
  max-width: 100px;
  max-height: 100px;
}

.orange-box {
  background-image: url("img/why-join-grain.png");
  background-size: cover;
  color: white;
  border-radius: 40px;
}

.red-box {
  background-image: url("img/why-lkyspp-grain.png");
  background-size: cover;
  color: white;
  border-radius: 40px;
}

.blue-box {
  background-image: url("img/who-should-apply-grain.png");
  background-size: cover;
  color: white;
  border-radius: 40px;
  position: relative;
  /* Needed for the absolute image */
  color: white;
  /* Ensures text remains readable */
}

.image-wrapper {
  position: absolute;
  /* right: 5%; Moves image outside the box */
  /* top: 50%; */
  transform: translateY(-50%);
  max-width: 60%;
}

.image-wrapper img {
  height: 400px;
}

@media (max-width: 768px) {
  .image-wrapper {
    position: relative;
    /* Keeps it inside on small screens */
    right: 0;
    transform: none;
    max-width: 100%;
    margin-top: 1rem;
  }

  .image-wrapper img {
    max-width: 100%;
    height: auto;
  }

  .blue-box {
    text-align: center;
  }
}

/* tab style  */
.camp-schedule {
  position: relative;
  background-color: white;
  padding: 40px;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.7)
    ),
    url("/img/a-day-in-a-life-bg.png");
  background-size: cover;
  background-position: center;

  h6 {
    margin: 0;
  }

  .tabs {
    font-family: HeliosExtBold;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    margin-bottom: 24px;
    gap: 12px;
  }

  .tab {
    padding: 12px 24px;
    border: 2px solid var(--tertiary-1);
    border-radius: 40px;

    @media (max-width: 768px) {
      font-size: 12px;
    }
  }

  .tab:hover {
    background-color: var(--tertiary-1-hover);
    color: white;
  }

  .tab.active {
    background-color: var(--tertiary-1);
    color: white;
  }

  .camp-schedule-tab-content {
    display: none;
  }

  .camp-schedule-tab-content.active {
    display: block;
  }

  .time {
    font-family: HeliosExtBold;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    padding: 20px;
    border: 3px solid var(--primary-1);
    background-color: var(--primary-1-hover-light);
    border-radius: 16px;
  }

  .time:hover {
    background-color: #ffd2a8;
  }

  .inactive {
    color: gray;
    opacity: 0.5;
  }

  .time-content {
    display: none;
    height: 100%;
    font-family: HeliosExtBold;
    font-size: 18px;

    padding: 24px 40px;
    border: 3px solid black;
    border-radius: 16px;
    background-color: var(--primary-1);
  }

  .time-content.active {
    display: block;
  }
}

/* TESTIMONIAL CAROUSAL */
.testimonial-content {
  max-width: 700px;
  margin: auto;
}

.quote-icon {
  width: 40px;
  height: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  /* Turns white arrows black */
}

/* FAQ ACCORDION */

/* Accordion button when collapsed */
.accordion-button {
  color: #000 !important;
}

/* Accordion button when expanded (active state) */
.accordion-button:not(.collapsed) {
  background-color: var(--primary-1) !important;
}

.accordion-button:hover {
  background-color: var(--primary-1-hover-light) !important;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-player {
  width: 100%;
  display: block;
}

.control-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease-in-out, opacity 0.3s;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-container.playing .control-btn {
  opacity: 0;
}

.video-container.paused .control-btn {
  opacity: 1;
}
