/* Global Reset & Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6rem;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Inter", sans-serif;
  background: #0b0b10;
  color: #d8d8e3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sticky Transparent Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(26, 28, 50, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
header h1 {
  font-size: 1.3rem;
  color: #ffd84d;
}
nav a {
  color: #d8d8e3;
  margin: 0 0.8rem;
  text-decoration: none;
  transition: 0.3s;
}
nav a:hover,
nav a.active {
  color: #ffd84d;
}

/* Spacer below header (for LO page content to avoid overlap) */
.page-top-spacer {
  height: 6rem;
}

/*  MAIN STRUCTURE  */
main {
  flex: 1;
}

/* Sticky Footer  */
footer {
  background: #262840;
  color: #a8a8c4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 4rem;
  flex-shrink: 0;
  margin-top: auto;
}

/* HERO SECTION (Homepage) */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  padding: 8rem 5%;
  background: #0b0b10; /* fallback background color */
}

/* Aligns text box and slider side by side */
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 85%;
}

/* --- Left Text Box --- */
.hero-textbox {
  flex: 1;
  background: rgba(26, 28, 50, 0.7);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 12px;
}
.hero-textbox h2 {
  color: #ffd84d;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero-textbox p {
  color: #d8d8e3;
  font-size: 1rem;
  line-height: 1.6rem;
}
.text-btn {
  width: 4rem;
  height: 1.5rem;
  background-color: #07070d;
  color: white;
}

.text-btn:hover {
  background-color: #262840;
  color: #f2e30f;
}

/* --- Right Image Slider --- */
.hero-slider {
  flex: 1;
  position: relative;
  height: 400px;
  max-width: 550px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
.slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}

/* LO PAGE */
.tab-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  margin-top: 1rem;
}
.tab-btn {
  background: #23233b;
  border: none;
  color: #d8d8e3;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.tab-btn:hover {
  background: #343458;
}
.tab-btn.active {
  background: #444477;
  box-shadow: 0 0 8px #7d7dfb;
}

/* --- LO Tabs content layout --- */
.tab-section {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
.fast-travel {
  background: #23233b;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  width: 220px;
  min-width: 200px;
  position: sticky;
  top: 6rem;
  flex-shrink: 0;
}
.fast-travel h3 {
  color: #b3b3ff;
  font-size: 1rem;
}
.fast-travel ol {
  padding-left: 1.2rem;
}
.fast-travel a {
  color: #d8d8e3;
  text-decoration: none;
  transition: 0.2s;
}
.fast-travel a:hover {
  color: #ffd84d;
}

/* --- LO Main Content --- */
.main-content {
  background: #23233b;
  padding: 1.5rem;
  border-radius: 8px;
  width: 70%;
  scroll-behavior: smooth;
}
.main-content h2 {
  color: #fff;
  margin-top: 0;
}
.main-content img {
  max-width: 60%;
}
hr {
  border: none;
  border-top: 2px solid #d9c94b;
  margin: 1rem 0;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Text Boxes for Learning Outcomes --- */
.proof-text {
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.text-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.text-box a {
  border-bottom: #ffd84d 2px solid;
  color: #fff;
  text-decoration: none;
}
.text-box a:hover {
  color: #ffd84d;
}
section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

/* Created by AI/ChatGPT */
/* === Responsive Fix (Optional, tweak later) === */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-textbox,
  .hero-slider {
    width: 100%;
    max-width: 100%;
  }
  .hero-slider {
    height: 300px;
  }
}

main {
  margin-top: 128px;
}

/* Section Galleries (inside LO sections) */
.section-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.section-gallery img {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: #23233b;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.section-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #7d7dfb;
}

/* === Lightbox Overlay (shared across all sections) === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 16, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 200;
}
.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: 85%;
  max-height: 80%;
  border-radius: 10px;
  border: 3px solid #444477;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #ffd84d;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}
.lightbox .close:hover {
  color: #fff;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(35, 35, 59, 0.6);
  border: none;
  font-size: 3rem;
  color: #d8d8e3;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.lightbox .nav:hover {
  background: rgba(68, 68, 119, 0.9);
  color: #ffd84d;
  box-shadow: 0 0 10px #7d7dfb;
}
.lightbox .prev {
  left: 40px;
}
.lightbox .next {
  right: 40px;
}

@media (max-width: 800px) {
  .section-gallery img {
    width: 140px;
    height: 100px;
  }
  .lightbox .nav {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}
