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

body {
  margin: 0;
  background-color: #181A1B;
  color: #E0E0E0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

a {
  color: #4DA6FF;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top Navbar */
.navbar {
  background-color: #232526;
  padding: 1rem;
  text-align: center;
}
.logo img {
  display: block;
  margin: 0 auto;
  max-height: 60px;
}
.top-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.top-nav a {
  color: #E0E0E0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}
.top-nav a:hover,
.top-nav a.active {
  color: #4DA6FF;
  border-bottom: 2px solid #4DA6FF;
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: #1F2122;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #AAB8C2;
  text-align: center;
}

/* Bottom Mobile Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #232526;
  border-top: 1px solid #333;
  z-index: 100;
  padding: 0.5rem 0;
  justify-content: space-around;
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  text-decoration: none;
  color: #AAB8C2;
}
.bottom-nav .icon {
  font-size: 1.3rem;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: #4DA6FF;
  font-weight: 600;
}

/* Show bottom nav only on small screens */
@media screen and (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  .top-nav {
    display: none;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: #1F2122;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #AAB8C2;
  text-align: center;
}

.breadcrumbs a {
  color: #AAB8C2;
}

.breadcrumbs a:hover {
  color: #4DA6FF;
}

/* Hero section */
.hero {
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  background-color: #181818;
  border-radius: 8px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 1rem;
  text-align: justify;
}
.hero p1 {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .page-intro {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn.primary {
  background-color: #4da6ff;
  color: #000;
}
.btn.primary:hover {
  background-color: #3399ff;
}
.btn.secondary {
  background: transparent;
  border: 2px solid #4da6ff;
  color: #4da6ff;
}
.btn.secondary:hover {
  background-color: #4da6ff;
  color: #000;
}
.btn.subtle {
  font-size: 0.95rem;
  color: #aaaaaa;
  text-decoration: underline;
}
.btn.subtle:hover {
  color: #ffffff;
}

.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Thought cards section */

.thought-cards {
  padding: 2rem 1rem;
  background-color: #1C1E1F;
  border-top: 1px solid #2B2D2F;
  border-bottom: 1px solid #2B2D2F;
}

.thought-cards h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.thought-cards a {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-weight: bold; /* optional styling */
  text-decoration: none; /* optional styling */
}

.thought-cards:hover a {
  color: #3399ff;
}

.card-grid,
.thought-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Individual card */
.card,
.thought-card {
  background-color: #232526;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.card:hover,
.thought-card:hover {
  transform: translateY(-3px);
}

.thought-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  min-height: 100px;
}

.thought-card .front {
  font-style: italic;
  font-size: 1.05rem;
}

.thought-card .back {
  display: none;
  margin-top: 1rem;
  color: #AAB8C2;
  font-size: 0.95rem;
}

.thought-card.open {
  background-color: #2D3033;
}

.thought-card.open .back {
  display: block;
}

/* Support section */
.support-message {
  padding: 3rem 1rem;
  text-align: center;
}

.support-message h2 {
  margin-bottom: 1rem;
}

.support-message p {
  font-size: 1rem;
  text-align: justify;
}

/* CTA bottom section */
.cta-bottom {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.cta-bottom p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Footer styles */
footer {
  background-color: #232526;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: #AAB8C2;
  font-weight: 500;
}

.footer-links a:hover {
  color: #4DA6FF;
}

.footer-visit {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-visit a {
  color: #4da6ff;
  text-decoration: none;
}

.footer-visit a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo img {
    max-height: 48px;
  }

  nav ul {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
    flex-direction: row;
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
  }

  .card-grid,
  .thought-cards-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns always */
    gap: 1rem;
  }

  .card,
  .thought-card {
    font-size: 0.95rem;
    padding: 1rem;
  }

  @media (max-width: 768px) {
  .thought-card .front,
  .thought-card .back, .card p {
    text-align: left;
    margin-top: 5px;
  }
}


  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }
}

/* Contact/Resources Page */
.contact-hero {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  font-size: 1.1rem;
  color: #AAB8C2;
  margin-bottom: 1rem;
}

.contact-hero a {
  color: #4DA6FF;
  font-weight: bold;
}

.contact-form {
  padding: 2rem 1rem;
}

.contact-form iframe {
  width: 100%;
  height: 800px; /* you can tweak height */
  border: none;
  border-radius: 8px;
}

/* About Page Styles */
.about-hero {
  text-align: center;
  padding: 3rem 1rem;
}
.about-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.about-hero p {
  font-size: 1.1rem;
  color: #AAB8C2;
  margin-bottom: 2rem;
}

.about-story,
.about-mission,
.about-links {
  padding: 2rem 1rem;
  background-color: #1C1E1F;
  margin-top: 2rem;
  border-radius: 10px;
}
.about-story h2,
.about-mission h2,
.about-links h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.about-story p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #E0E0E0;
  text-align: justify !important;
}
.about-mission ul {
  list-style: disc inside;
  max-width: 700px;
  margin: 0 auto;
  color: #E0E0E0;
  line-height: 1.6;
}
.about-links p {
  text-align: center;
  color: #E0E0E0;
}
.about-links ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
.about-links li {
  margin: 0.5rem 0;
}
.about-links a {
  color: #4DA6FF;
  font-weight: 500;
  text-decoration: none;
}
.about-links a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .about-hero h1 {
    font-size: 2rem;
  }
  .about-mission ul,
  .about-story p,
  .about-links p {
    font-size: 1rem;
  }
}

.bottom-nav {
  display: none; /* desktop-only hidden; will show on mobile */
}

@media screen and (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;              /* fixed height */
    background: #232526;
    border-top: 1px solid #333;
    justify-content: space-evenly;  /* evenly space icons */
    align-items: center;            /* vertically center */
    padding: 0;
    margin: 0;
    z-index: 1000;
  }

  .bottom-nav .nav-item {
    flex: 1;                       /* each takes equal space */
    text-align: center;
    padding: 0;
    margin: 0;
  }

  .bottom-nav .icon {
    font-size: 1.5rem;
    display: block;
    margin: 0 auto;
  }

  .bottom-nav .label {
    font-size: 0.75rem;
    margin-top: 2px;
    display: block;
  }

  /* Ensure the page content doesn’t get hidden behind nav */
  body {
    padding-bottom: 60px;  /* same as .bottom-nav height */
  }
}

/* Home—Why KBlend? */
.home-about {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1C1E1F;
  margin-top: 2rem;
  border-radius: 10px;
}
.home-about h2 {
  color: #E0E0E0;
  margin-bottom: 1rem;
}
.home-about p {
  color: #AAB8C2;
  max-width: 700px;
  margin: 0 auto 1rem;
  text-align: justify;
}

/* Home—Crisis Shortcut */
.home-crisis {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1C1E1F;
  margin-top: 2rem;
  border-radius: 10px;
}
.home-crisis h2 {
  color: #E0E0E0;
  margin-bottom: 1rem;
}
.home-crisis p {
  color: #AAB8C2;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Partner button reuse */
.btn.subtle {
  border: 1px solid #4DA6FF;
  background: transparent;
  color: #4DA6FF;
}



/* ===== Divider ==== */

/* ===== Container ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* ===== Page Intro ===== */
.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.intro h1{
  text-align: center;
}


/* ===== Sections ===== */
section {
  margin: 3rem 0;
}

section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

section p {
  text-align: center;
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* ===== Home About Section ===== */
.home-about {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #181818;
  border-radius: 8px;
}

/* ===== Crisis Section ===== */
.home-crisis {
  background-color: #1c1c1c;
  border-left: 5px solid #ff6666;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-radius: 8px;
  text-align: center;
}

.home-crisis h2 {
  color: #ff8888;
}

.home-crisis p {
  margin-bottom: 1rem;
}

.home-crisis-ketamine {
  background-color: #1c1c1c;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-radius: 8px;
  text-align: center;
}

.home-crisis p{
  margin-bottom: 1rem;
  text-align: justify;
}

.home-crisis-ketamine p {
  margin-bottom: 1rem;
  text-align: justify;
}  

.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4rem auto;
  text-align: center;
}

.anim-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(188, 237, 243, 0.85);
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
  transform: scale(1);
  box-shadow: none;
}

.breathing-text {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #ccc;
}

  .faq-accordion {
    margin: 3rem auto;
    max-width: 800px;
  }

  .faq-item {
    border-bottom: 1px solid #333;
    padding: 1rem 0;
  }

  .faq-question {
    width: 100%;
    background: none;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .faq-question:after {
    content: "+";
    float: right;
    font-size: 1.2rem;
  }

  .faq-question[aria-expanded="true"]:after {
    content: "−";
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 1rem;
    color: #ccc;
    margin-top: 0.5rem;
  }

  .faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 400px;
  }

  .cta-bottom {
    text-align: center;
    margin-top: 3rem;
  }

  .cta-bottom p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

/* Centered About Location Card */
.about-location {
  margin: 4rem 0;
  text-align: center;      /* center text by default */
}

/* Center the card itself */
.location-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center inner columns horizontally */
  align-items: center;     /* center inner columns vertically */
  background: #1c1c1e;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
  margin: 0 auto;          /* center card within container */
  max-width: 900px;        /* optional: constrain width */
}

/* Center content inside the info column */
.location-info {
  flex: 1 1 300px;
  padding: 2rem;
  text-align: center;      /* center headings, paragraphs, address, button */
}

/* Headings and icon */
.location-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-flex;    /* shrink to content */
  align-items: center;
  justify-content: center;
}
.location-info .icon {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

/* Address styling */
.location-info address {
  font-style: normal;
  line-height: 1.4;
  margin: 0.75rem 0 1.5rem;
  color: #ccc;
}

/* Map column */
.location-map {
  flex: 1 1 300px;
  min-height: 250px;
  display: flex;
  justify-content: center; /* center map iframe */
  align-items: center;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .location-card {
    flex-direction: column;
  }
  .location-map {
    margin-top: 1rem;
  }
}

/* Calming Goal Timer */
.calm-timer {
  margin: 2rem auto;
  max-width: 400px;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}
.timer-bar {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}
#timer-progress {
  width: 0%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transition: width 1s linear;
}

/* Quick-Exit Button */
#quick-exit {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.2s ease;
}
#quick-exit:hover {
  background: rgba(255,255,255,0.4);
}
#quick-exit::before,
#quick-exit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}
#quick-exit::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#quick-exit::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* Calm Room Styles */
.calm-controls {
  text-align: center;
  margin: 2rem 0;
}
.control-btn {
  margin: 0 .5rem;
  padding: .5rem 1rem;
  background: #333;
  color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.control-btn.active {
  background: #4da6ff;
  color: #000;
}

/* Hidden helper */
.hidden { display: none !important; }

/* Breathing Animation */
.breathe-box {
  text-align: center;
  margin: 2rem 0;
}
.breathe-circle {
  width: 80px; height: 80px;
  margin: 0 auto;
  background: rgba(188,237,243,0.85);
  border-radius: 50%;
  transform: scale(1);
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.breathe-text {
  margin-top: 1rem;
  color: #ccc;
}

/* Affirmation Loop */
.affirm-box {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  height: 3rem;
  overflow: hidden;
  position: relative;
}
.affirmation {
  position: absolute;
  width: 100%;
  opacity: 0;
  color: #eee;
  font-size: 1.1rem;
  transition: opacity 1s ease;
}

/* Soft CTA */
.calm-cta {
  position: fixed;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  pointer-events: none;
}
.calm-cta .btn {
  pointer-events: auto;
}

/* Hide all audio tags */
audio[id^="audio-"] {
  display: none;
}

/* Audio toggle container */
.audio-toggle {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-size: 1rem;
  color: #eee;
}

/* Style each label as a pill */
.audio-toggle label {
  position: relative;
  padding: 0.5rem 1rem 0.5rem 2rem;
  border: 2px solid #555;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;               /* prevent text highlight */
}

/* Hide the actual radio button */
.audio-toggle input[type="radio"] {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  width: 1rem;
  height: 1rem;
}

/* Custom circle indicator */
.audio-toggle label::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #888;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

/* When a radio is checked: */
.audio-toggle input[type="radio"]:checked + span {
  background: #4da6ff;
  border-color: #4da6ff;
  color: #000;
}
.audio-toggle input[type="radio"]:checked + span::before {
  background: #000;
  border-color: #000;
}

/* Off‐selected style */
.audio-toggle input[value="off"]:checked + span {
  background: #333;
  border-color: #666;
  color: #aaa;
}
.audio-toggle input[value="off"]:checked + span::before {
  background: #666;
  border-color: #666;
}

/* hidden helper */
.hidden { display: none !important; }

/* Slideshow Styles */
.text-slideshow {
  text-align: center;
  margin: 3rem auto;
  max-width: 700px;
  color: #eee;
}
.text-slideshow h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #fff;
}
.slideshow {
  position: relative;
  height: 4.5rem; /* enough for large text */
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.4;
  transition: opacity 1s ease;
}
/* show the first slide initially */
.slide:first-child {
  opacity: 1;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  color: #fff;
  margin-right: 10px;
  font-size: 18px;
  text-decoration: none;
}

.footer-social a:hover {
  color: #ccc;
}
