/* =============================
    CSS PROMISE PAGE
============================= */

/* =============================
    GLOBAL IMPORTS
============================== */
@import url('../global.css');

/* =============================
   CONSTELLATION BACKGROUND
============================= */
.constellation-bg {
  background-image: url('../Resources/DR_Earth.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  z-index: 0;
  color: white;
}
/* Optional: Overlay for better text readability */
.constellation-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Soft dark overlay */
  z-index: 1;
}
.constellation-bg > * {
  position: relative;
  z-index: 2;
}

/* =============================
    HERO SECTION
============================== */
.hero-promise {
  position: relative;
  background-color: #111;
  color: white;
  text-align: center;
  padding: 100px 20px 80px;
  overflow: hidden;
  height: 65vh;
}
.hero-promise .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 6rem auto;
}
.hero-promise .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero-promise .hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.hero-promise .hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  opacity: 0.05;
  z-index: 1;
}

/* =============================
    PILLARS SECTION
============================== */
.pillars-section {
  background-color: white;
  color: #111;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pillars-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.pillars-section p {
  font-size: 1.3rem;
  font-weight: bold;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.pillar-card {
  background-color: #fff;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.pillar-card h3 {
  font-size: 1.4rem;
  color: black;
  margin: 0 0 1rem;
  transition: color 0.3s ease;
}
.pillar-card ul {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}
.pillar-card ul li {
  margin-bottom: 0.5rem;
  list-style: disc;
  color: white;
}
/* Active state */
.pillar-card.active {
  background-color: #000;
}
.pillar-card.active ul,
.pillar-card.active .pillar-details {
  display: block;
}
/* Highlight overrides for h3 */
.pillar-card.active h3.legacy-color-aurelith  { color: #e3ad57 !important; }
.pillar-card.active h3.legacy-color-mythara   { color: #a7becd !important; }
.pillar-card.active h3.legacy-color-omnithis  { color: #d4634a !important; }
.pillar-card.active h3.legacy-color-novaeon   { color: #b69d8c !important; }
.pillar-card.active h3.legacy-color-zenithis  { color: #98b188 !important; }
/* Responsive grid */
@media (max-width: 1023px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================
   OUR PROMISE TO YOU SECTION
============================= */
.promise-to-you {
  padding: 40px 0px;
  text-align: center;
  color: white;
  position: relative;
}
.promise-to-you h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: bold;
}
.promise-to-you p.intro-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-weight: 500;
}
.promise-list-container {
  align-items: center;
  text-align: center;
}
.promise-list {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}
.promise-list li {
  font-size: 1.1rem;
  margin: 1.2rem 0;
  position: relative;
  padding-left: 0rem;
  line-height: 1.6;
  font-weight: 600;
  left: 0.1rem;
}
.promise-list.bullet {
  color: gold;
  font-size: 1.2rem;
  padding-right: 0.5rem;
  top: 0.2rem;
}

/* =============================
    DREAM PHILOSOPHY BANNER
============================== */
.philosophy-banner {
  background-color: #111;
  padding: 10px 20px;
  text-align: center;
  overflow-wrap: break-word;
}
.typing-container {
  text-align: left;
  margin: 40px auto;
  max-width: 75vw;
  white-space: wrap;
  overflow: hidden;
  border-right: 2px solid black;
  animation: blinkCursor 0.8s steps(2, start) infinite;
}
#typing-text {
  display: inline-block;
  white-space: normal;      /* Allow wrapping */
  word-wrap: break-word;    /* Break long words if needed */
  max-width: 100%;
  font-size: 1.6rem;         
  text-align: center;       /* Center text if desired */
}
@keyframes blinkCursor {
  to {
    border-color: transparent;
  }
}

/* =============================
    BELIEFS CULTURE SECTION
============================== */
.beliefs-culture {
  background-color: #fff;
  color: #000;
  padding: 40px 20px;
  text-align: center;
}
.beliefs-culture h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.beliefs-culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.beliefs-box, .culture-box {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.beliefs-box:hover, .culture-box:hover {
  transform: scale(1.02);
  box-shadow: 0 9px 18px rgba(0,0,0,0.3);
}
.beliefs-box h3, .culture-box h3 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 1rem;
}
.beliefs-box ul, .culture-box ul {
  list-style: none;
  padding: 0;
}
.beliefs-box li, .culture-box li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.2rem;
}
.beliefs-box li::before, .culture-box li::before {
  content: "✦";
  color: #e3ad57;
  position: absolute;
  left: 0;
}

/* =============================
    WE DO GOOD SECTION
============================== */
.we-do-good-section {
  padding: 60px 20px;
  text-align: center;
}
.we-do-good-section .section-heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}
.we-do-good-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: white;
  line-height: 1.6;
}
.good-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.good-card {
  background: rgba(256, 256, 256, 0.9);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}
.good-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.good-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.good-card ul {
  padding-left: 1.25rem;
  list-style-type: disc;
  color: #333;
}
.good-card ul li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* =============================
   OUR FINAL PROMISE SECTION
============================= */
.final-promise-section {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.final-promise-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.final-promise-box {
  background-color: #fff;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.final-promise-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.final-promise-line {
  font-size: 1.2rem;
  margin: 15px 0;
  color: #111;
}
.final-promise-content {
  max-width: 800px;
  margin: 0 auto;
}

/* =============================
    CTA FINAL
============================== */
.cta-final {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-final p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cta-final .cta-button:hover {
  transform: scale(1.05);
}


/* =============================
    MOBILE RESPONSIVE ADJUSTMENTS 
============================= */
@media (max-width: 768px) {

  /* =============================
      HERO SECTION - MOBILE
  ============================= */
  .hero-promise-mobile {
    position: relative;
    background-image: url('../Resources/DR_Constellation.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
  }
  .hero-promise-mobile .hero-content-mobile {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 auto;
  }
  .hero-promise-mobile h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .hero-promise-mobile p {
    font-size: 1rem;
    opacity: 0.95;
  }

  /* =============================
      PILLARS MOBILE SECTION
  ============================= */
  .pillars-mobile-section {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    overflow-x: hidden;
  }
  .pillars-heading {
    font-size: 2rem;
    margin-bottom: 0rem;
    color: #111;
  }
  /* Carousel container */
  .pillars-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 10px;
    margin-top: 0rem;
  }
  /* Each 2-pillar slide */
  .pillar-slide {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 70vw;
    scroll-snap-align: start;
    justify-content: center;
    align-items: center;
  }
  /* Individual pillar box */
  .pillar-card-mobile {
    background: #fff;
    color: #111;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    width: 65vw;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .pillar-card-mobile h3 {
    color: black;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }
  .pillar-card-mobile ul {
    padding-left: 1.2rem;
    list-style-type: disc;
    display: none; /* Default hidden unless expanded */
  }
  .pillar-card-mobile ul li {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  /* Highlight overrides for h3 */
  .pillar-card-mobile.expanded h3.legacy-color-aurelith  { color: #e3ad57 !important; }
  .pillar-card-mobile.expanded h3.legacy-color-mythara   { color: #a7becd !important; }
  .pillar-card-mobile.expanded h3.legacy-color-omnithis  { color: #d4634a !important; }
  .pillar-card-mobile.expanded h3.legacy-color-novaeon   { color: #b69d8c !important; }
  .pillar-card-mobile.expanded h3.legacy-color-zenithis  { color: #98b188 !important; }
  /* CLICK-TO-REVEAL STATES */
  .pillar-card-mobile.expanded {
    background-color: #111;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }
  .pillar-card-mobile.expanded ul {
    display: block;
  }

  /* =============================
    PROMISE SECTION (MOBILE)
  ============================= */
  .promise-mobile-section {
    padding: 30px 10px;
    color: white;
    text-align: center;
    overflow-x: hidden;
  }
  .mobile-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .mobile-intro-text {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Carousel-style horizontal scroll */
  .mobile-promise-carousel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    justify-content: flex-start;
  }
  .promise-card {
    flex: 0 0 75vw;
    max-width: 320px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.2rem;
    font-size: 1rem;
    scroll-snap-align: start;
    text-align: center;
    color: white;
    line-height: 1.6;
  }

  /* =============================
      PHILOSOPHY BANNER - MOBILE
  ============================= */
  .philosophy-banner-mobile {
    font-size: 1rem;
    padding: 5px 20px;
    text-align: center;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* =============================
      BELIEFS CULTURE MOBILE
  ============================= */
  .beliefs-culture-mobile {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    overflow-x: hidden;
  }
  .beliefs-culture-mobile .section-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111;
  }
  /* Swipeable container */
  .beliefs-culture-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  /* Individual card */
  .belief-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
    background: #f9f9f9;;
    color: #111;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: left;
    max-width: 320px;
  }
  .belief-card h3 {
    color: black;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
  }
  .belief-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  .belief-card ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  .belief-card ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #e3ad57;
    font-size: 1rem;
    line-height: 1;
  }

  /* =============================
    WE DO GOOD (MOBILE STYLE)
  ============================= */
  .we-do-good-mobile-section {
    padding: 30px 20px;
    text-align: center;
    color: white;
    overflow-x: hidden;
  }
  .we-do-good-mobile-section .section-heading {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  .we-do-good-intro {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
  }
  /* Horizontal swipe carousel */
  .good-mobile-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .good-mobile-card {
    flex: 0 0 75vw;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.8);
  }
  .good-mobile-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
  }
  .good-mobile-card ul {
    padding-left: 1.2rem;
    list-style-type: disc;
  }
  .good-mobile-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }

  /* =============================
    FINAL PROMISE (MOBILE)
  ============================= */
  .final-promise-mobile-section {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
    color: black;
    overflow-x: hidden;
  }
  .final-promise-mobile-content {
    max-width: 700px;
    margin: 0 auto;
  }
  .final-promise-mobile-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
  }
  .final-promise-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  .final-promise-list li {
    font-size: 1.1rem;
    margin: 1.2rem 0;
    position: relative;
    line-height: 1.6;
    padding-left: 2rem;
    text-align: left;
  }
  .final-promise-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: gold;
    font-size: 1.2rem;
    top: 0.1rem;
  }

  /* =============================
      CTA FINAL - MOBILE
  ============================= */
  .cta-final-mobile {
    padding: 40px 20px;
    text-align: center;
    background: #000;
    color: white;
  }
  .cta-final-mobile h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  .cta-final-mobile p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .cta-final-mobile .cta-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}