/* === FONTS === */

@font-face {
  font-family: 'Optima';
  src: url('/fonts/Optima/OPTIMA_B.TTF') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Optima';
  src: url('/fonts/Optima/Optima_Italic.ttf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Optima';
  src: url('/fonts/Optima/Optima\ Medium.ttf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Optima';
  src: url('/fonts/Optima/OPTIMA.TTF') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Aleo';
  src: url('/fonts/Aleo/Aleo-SemiBold.ttf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Archia';
  src: url('/fonts/Archia/Archia-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archia';
  src: url('/fonts/Archia/Archia-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archia';
  src: url('/fonts/Archia/Archia-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archia';
  src: url('/fonts/Archia/Archia-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* === RESET === */
html {
  height: 100%;
}

body,
html,
p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Optima', sans-serif;
}

/* FIX: Make body flex container to handle tall screens */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === HERO SECTION === */
.hero-section {
  background-image: url('/assets/background-landing.svg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

/* Logo container */
.logo-container {
  margin-top: -5%;
  z-index: 2;
}

/* Logo image */
.logo-img {
  margin-top: 10%;
  max-width: 15%;
  width: 100%;
  height: auto;
}

/* Hero text */
.hero-text {
  margin-top: 2rem;
  padding: 0 1rem;
}

/* Wave at bottom */
.wave-bottom {
  position: absolute;
  bottom: 0;
  margin-bottom: -50px;
  width: 100%;
  height: auto;
  z-index: 1;
}

.courses-block {
  margin-top: -10%;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.courses-block .container {
  display: flex;
  justify-content: center;
}



.courses-block .row {
  justify-content: center;
  width: 100%;
}

/* FIX: Remove fixed width, use 100% */
.course-text {
  font-weight: 400;
  width: 100%;
}

/* FIX: Remove fixed width, use 100% */
.feature-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.feature-text {
  width: 100%;
}

.feature-block {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer {
  background-color: #113471;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10%;
  font-family: 'Archia';
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: auto;
}

.contact {
  background-color: #F2F2F2;
}

.container {
  display: flex;
  flex-direction: row;
}

.contact-text {
  font-weight: 600;
  color: #444444;
}

.btn-primary {
  margin-top: 10px;
  background-color: #113471;
  border-color: #113471;
}

.contact-text {
  font-weight: 600;
}


a {
  font-family: 'Optima';
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
}


/* === BREAKPOINTS === */

/* XL: Extra large devices (1200px and up) */
@media (max-width: 1200px) {
  .hero-section {
    min-height: 500px;
    padding-top: 4rem;
  }

  .logo-container {
    flex-direction: row;
    gap: 2rem !important;
  }

  .logo-img {
    max-width: 20%;
    height: auto;
  }
}

/* LG: Large devices (laptops, 992px and up) */
@media (max-width: 992px) {
  .hero-section {
    min-height: 400px;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .wave-bottom {
    margin-bottom: -20px;
  }

  .logo-img {
    max-width: 25%;
    height: auto;
  }

  .logo-container {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

}


/* MD: Medium devices (tablets, iPad Air) */
@media (max-width: 768px) {

  .hero-section {
    min-height: 400px;
    padding-top: 4rem;
    padding-bottom: 2rem;
    flex-shrink: 0;
  }

  .logo-container {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 0%;
  }

  .wave-bottom {
    margin-bottom: -15px;
  }

  .logo-img {
    max-width: 35%;
    height: auto;
    margin-top: 5%;
  }

  /* FIX: Ensure proper stacking on tablets */
  .courses-block {
    margin-top: -8%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .feature-img {
    display: flex;
    justify-self: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .course-column {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .course-text {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .course-title {
    font-family: 'Optima';
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  /* Ensure button is visible */
  .btn-primary {
    width: auto;
    display: inline-block;
  }
}


/* XS: Extra small devices (mobile-first defaults) */
@media (max-width: 576px) {
  .hero-section {
    flex-direction: row;
    min-height: 250px;
    padding-bottom: 15%;
    flex-shrink: 0;
  }

  .logo-img {
    max-width: 40%;
    height: auto;
    margin-top: 8%;
  }

  .wave-bottom {
    margin-bottom: -25px;
  }

  .logo-container {
    flex-direction: row !important;
    justify-content: center;
    gap: 1rem;
    margin-top: 0%;
  }

  .hero-text {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .courses-block {
    margin-top: -5%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .feature-img {
    display: flex;
    justify-self: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
  }

  .course-column {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }


  .container {
    display: flex;
    flex-direction: column;
  }

  .course-text {
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-family: 'Optima';
  }

  .course-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .btn-primary {
    width: auto;
    display: inline-block;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem;
  }

  /* Footer adjustments for mobile */
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 5%;
    font-size: 1rem;
    flex-shrink: 0;
  }
}

/* XXS: Very small devices - stack logos below 376px */
@media (max-width: 376px) {
  .logo-container {
    flex-direction: column !important;
    align-items: center;
    gap: 0.5rem;
  }

  .logo-img {
    max-width: 60%;
    margin-top: 5%;
  }
}


/* Use only Archia here */
.course-column,
.course-column * {
  font-family: 'Archia';
  /* prevent fake bold/italic */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optional precise weights */
.course-title {
  font-weight: 700;
}

.course-text {
  font-weight: 400;
}

/* Course Curriculum Section */
.course-info-section .container {
  margin-bottom: 5%;
  display: block;
}

.course-info-section {
  text-align: center;
  padding: 3rem 0;
}

.course-section-title {
  font-family: 'Optima', sans-serif;
  font-weight: 700;
  text-align: center;
  color: #113471;
  background-color: #113471;
  color: #ffffff;
  padding: 1rem 2rem;
  display: inline-block;
  border-radius: 5px;
}

.curriculum-module {
  text-align: center;
}

.curriculum-header {
  font-family: 'Optima', sans-serif;
  text-align: center;
}

.curriculum-item {
  font-family: 'Optima', sans-serif;
  text-align: center;
}

/* Accordion Styles */
.course-info-section .accordion {
  background: transparent;
  border: none;
}

.course-info-section .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17, 52, 113, 0.2);
}

.course-info-section .accordion-button {
  background: transparent;
  color: black;
  font-family: 'Optima', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  justify-content: center;
  box-shadow: none;
  padding: 1rem 0;
}

.course-info-section .accordion-button:not(.collapsed) {
  background: transparent;
  color: black;
  box-shadow: none;
}

.course-info-section .accordion-button::after {
  margin-left: 1rem;
}

.course-info-section .accordion-button:focus {
  box-shadow: none;
}

.course-info-section .accordion-body {
  background: transparent;
  color: #333333;
  padding: 0.5rem 0 1.5rem 0;
}

.course-info-section .accordion-body ul {
  margin: 0;
  padding: 0;
}

.course-info-section .accordion-body li {
  font-family: 'Optima', sans-serif;
  color: #333333;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(17, 52, 113, 0.1);
}

.course-info-section .accordion-body li:last-child {
  border-bottom: none;
}