:root {
  --dark-green: #163823;
  --mid-green:  #478f5e;
  --cream:      #f4efe9;
  --beige:      #e8e6dd;
  --sage:       #acb886;
  --yellow:     #febd11;
  --black:      #111;
  --white:      #fff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar       { width: 12px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #aaa; border-radius: 5px; max-height: 20px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--beige);
  color: var(--black);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 700; }

/* ── SECTION BASE ── */
section { padding: 6rem 2rem; }

h2.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
}

.container { max-width: 1100px; margin: 0 auto; }

/* ── SHARED BODY FONT (Glacial Indifference sections) ── */
.about-text p,
.text,
.involvedPara,
.timeCard p,
.timeCard h2 {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.5rem;
  line-height: 1.8;
}

/* ── HERO ── */
.hero {
  background: var(--dark-green);
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  position: relative;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 6.5rem);
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bolder;
  color: var(--cream);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

#titleImgDiv { display: flex; justify-content: center; align-items: center; }
#titleImg    {
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* ── ABOUT ── */
#about { background: var(--beige); }
#about h2.section-title { color: var(--dark-green); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: 2rem;
  gap: 2rem;
}

.about-text p {
  color: black;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.about-text p em { color: var(--dark-green); font-weight: 700; }

#aboutImg { width: 530px; height: 530px; margin: 0 auto; display: block; }

/* ── OUR WORK ── */
#work { background: var(--dark-green); }

#work h2.section-title {
  color: var(--cream);
  text-align: center;
}

#work .section-lead,
.workFooter {
  color: var(--cream);
  font-weight: 900;
  font-size: 1.3rem;
  text-align: center;
}

#work .section-lead {
  margin: 0 auto 3rem;
  max-width: 1000px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem auto 0;
  width: 75vw;
}

.work-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--cream);
  font-size: 30px;
  line-height: 1.7;
  font-family: 'Glacial Indifference', sans-serif;
  text-align: center;
}

.workFooter { width: 75vw; margin: 2rem auto 0; }

.OWtitleImg  { width: 530px; }
#OWlistImg   { height: 600px; }

/* ── TEAM ── */
#team { background: var(--beige); }
#team h2.section-title { color: var(--dark-green); text-align: center; }

#teamImg { width: 1100px; }

#textContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.text { width: 30%; color: black; margin-bottom: 1rem; padding-left: 1rem; }

/* ── GET INVOLVED ── */
#involved { background: var(--dark-green); }
#involved h2.section-title { color: var(--cream); text-align: center; }

.involvedContainer {
  width: 90vw;
  margin: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.involvedPara { width: 75vw; color: var(--cream); }

.involvedImg { width: 80vw; margin-top: 30px; margin-bottom: 30px; }

#fireImg { width: 300px; height: 350px; }

/* ── JOURNEY ── */
#journey { background: var(--beige); }
#journey h2.section-title { color: var(--dark-green); text-align: center; }

.timeContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.timeCard { width: 20%; }
.timeCard p  { color: black; }
.timeCard h2 { color: black; font-weight: bold; }
.timeCard h1 { color: var(--mid-green); }

.descContainer { display: flex; width: 88%; gap: 5vw; }

#timeImg { width: 85vw; }

/* ── CONTACT ── */
#contact { background: var(--dark-green); text-align: center; height: 98vh; }
#contact h2.section-title { color: var(--cream); margin-bottom: 3rem; }

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-direction: column;
  width: 33%;
}

.contact-card { padding: 2rem 3rem; transition: background 0.3s; }

.img-card { width: 33%; }

.contact-card-type {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.contact-card a,
.contact-card span {
  display: block;
  color: var(--cream);
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 600;
}

#contactImg { width: 550px; height: 500px; }


/* ── MOODLE ABOUT SECTION ── */
#pohaImages {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}

#pohaImages img:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
}

#pohaImages img:last-child {
  position: absolute;
  top: 10px;
  left: 25px;
  width: 350px;
  height: 380px;
  z-index: 1;
}

#moodleAboutSection {
  background: var(--dark-green);
}

#moodleAboutSection h2.section-title {
  color: var(--beige);
}

.moodleGrid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.moodleTopRow {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.moodleIntro {
  flex: 1;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--beige);
}

.moodleCarouselWrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.moodleViewport {
  overflow: hidden;
  width: 100%;
}

.moodlePoints {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.pointCard {
  flex: 0 0 100%;
  background-color: var(--beige);
  color: var(--dark-green);
  padding: 2.5rem;
  border-radius: 16px;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

.pointCard h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark-green);
}

.carouselBtn {
  border: none;
  background: var(--beige);
  color: var(--dark-green);
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.carouselBtn:hover {
  background: var(--mid-green);
}

/* ── MOODLE LINK SECTION ── */
#moodleRefSection {
  background-color: var(--beige);
  margin-bottom: 20px;
  margin-top: 20px;
  line-height: 1.8;
}

#moodleRefSection .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.refImg {
  width: 47%;
  height: 100%;
  margin-right: 50px;
}

.refContent {
  text-align: center;
  width: 49%;
  height: 100%;
}

#moodleRefSection h2 {
  color: var(--dark-green);
  margin-bottom: 3rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 60px;
}

#moodleRefSection a {
  display: inline-block;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  background-color: var(--yellow);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s ease;
}

#moodleRefSection a:hover {
  background-color: var(--sage);
}

#moodleRefSection p {
  color: var(--black);
  font-size: 20px;
  font-family: 'Glacial Indifference', sans-serif;
}

/* ── SMALL ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * { animation: fadeUp 0.7s ease both; }


/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — max-width: 768px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  section { padding: 4rem 1.2rem; }

  h2.section-title { font-size: 2.2rem; }

  /* ── HERO ── */
  .hero { min-height: 100svh; padding: 5rem 1.5rem 3rem; }

  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); margin-bottom: 1rem; }

  .hero-tagline { font-size: 1rem; }

  .imgToHide {
    display: none;
  }

  #titleImgDiv {
    width: 100%;
    max-width: 600px; /* or 250–400 depending on look */
    height: auto;
  }

  /* ── MOODLE REF ── */
  #moodleRefSection .container {
    flex-direction: column;
    gap: 2rem;
  }

  .refImg {
    width: 100%;
    margin-right: 0;
  }

  .refImg img {
    width: 100% !important;
    height: auto !important;
  }

  .refContent {
    width: 100%;
  }

  #moodleRefSection h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  #moodleRefSection p {
    font-size: 1.1rem;
  }

  /* ── MOODLE ABOUT ── */
  .moodleTopRow {
    flex-direction: column;
    gap: 2rem;
  }

  #pohaImages {
    width: 280px;
    height: 280px;
  }

  #pohaImages img:first-child {
    width: 280px;
    height: 280px;
  }

  #pohaImages img:last-child {
    width: 240px;
    height: 260px;
    top: 10px;
    left: 20px;
  }

  .moodleIntro { font-size: 1.1rem; }

  .pointCard { font-size: 1rem; padding: 1.8rem; }

  .pointCard h3 { font-size: 1.2rem; }

  /* ── ABOUT ── */
  .about-grid {
    grid-template-columns: 1fr;
  }

  #aboutImgDiv { order: -1; }

  #aboutImg {
    width: 100%;
    height: auto;
  }

  .about-text p { font-size: 1.1rem; padding-left: 0; }

  /* ── OUR WORK ── */
  .work-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .OWtitleImg {
    width: 100%;
    height: auto;
  }

  #OWlistImg {
    width: 100%;
    height: auto;
  }

  .work-card { font-size: 1.1rem; padding: 1.5rem; }

  .workFooter { width: 100%; font-size: 1rem; }

  /* ── TEAM ── */
  #imgContainer { overflow-x: auto; }

  #teamImg {
    width: 700px;
  }

  #textContainer {
    flex-direction: column;
    gap: 1rem;
  }

  .text { width: 100%; font-size: 1.1rem; padding-left: 0; }

  /* ── GET INVOLVED ── */
  .involvedContainer {
    width: 100%;
    margin: 0;
  }

  .involvedPara { width: 100%; font-size: 1.1rem; }

  .involvedImg { width: 100%; }

  #fireImg { width: 200px; height: auto; }

  /* ── JOURNEY ── */
  #timeImg { display: none; }

  .descContainer {
    flex-direction: column;
    width: 100%;
    gap: 2.5rem;
  }

  .timeCard {
    width: 100%;
    border-left: 4px solid var(--mid-green);
    padding-left: 1.2rem;
  }

  .timeCard h1 { font-size: 1.5rem; }
  .timeCard h2 { font-size: 1.2rem; }
  .timeCard p  { font-size: 1rem; }

  /* ── CONTACT ── */
  #contact {
    height: auto;
    padding: 4rem 1.5rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-cards { width: 100%; }

  .contact-card { padding: 1.2rem 1.5rem; }

  .contact-card-type { font-size: 1.4rem; }

  .img-card {
    width: 85%;
  }

  #contactImg {
    width: 100%;
    height: auto;
  }
}
