:root {
  --blue-dark: rgb(60,130,165);
  --blue-mid: rgb(87,165,193);
  --gray-dark: #333;
  --gray-mid: #555;
  --gray-light: #f8f9fa;
}

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

body {
  font-family: "Segoe UI Rounded", "SF Pro Rounded", "Noto Sans", system-ui, sans-serif;
  background: #fff;
  color: var(--gray-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- HERO SECTION ---------- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 24px 20px;
}

.hero-box {
  max-width: 750px;
  width: 100%;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  color: var(--blue-dark);
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--gray-dark);
  margin: 0 0 24px;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.hero-photo img {
  width: 375px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-info {
  flex: 1;
  text-align: left;
  font-size: 18px;
}

.hero-info p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--gray-mid);
  line-height: 1.5;
}

.hero-info .info-label {
  flex: 0 0 90px;
  color: var(--blue-dark);
  font-weight: 700;
  padding-right: 6px;
}

.hero-info .info-text {
  flex: 1;
  color: var(--gray-dark);
}

.hero-info .info-note {
  font-size: 15px;
  color: var(--gray-mid);
}

.hero-info button {
  background: var(--blue-mid);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.hero-info button:hover {
  background: var(--blue-dark);
}

/* ---------- SHARED SECTION STYLING ---------- */
.theme-section,
.container,
.cant-make-it {
  width: 700px;
  margin: 60px auto;
  padding: 30px 0px; /* no side padding */
}
.cant-make-it {
  padding: 30px 10px; /* no side padding */
}
/* ---------- THEME SECTION ---------- */
.theme-section {
  text-align: center;
  background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 5px;
}

.theme-question {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.theme-answer {
  font-size: 22px;
  margin-top: 8px;
  font-style: italic;
  color: var(--gray-dark);
}

.theme-subtext {
  margin-top: 16px;
  color: var(--blue-mid);
  font-size: 18px;
}

/* ---------- GRID NOTES ---------- */
.grid-notes {
  display: grid;
  gap: 5px;
}

.grid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.grid-row.reverse {
  flex-direction: row-reverse;
}

.grid-photo,
.grid-text {
  flex: 1 1 50%;
  text-align:left;
  margin:3px;
}

.grid-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);

}

.grid-text {
  padding: 0 12px;
}

.grid-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.grid-text p {
  font-size: 17px;
  color: var(--gray-dark);
}

/* ---------- CAN'T MAKE IT SECTION ---------- */
.cant-make-it {
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.cant-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.cant-sub {
  font-size: 18px;
  color: var(--gray-mid);
  margin-bottom: 28px;
  line-height:20px;
}

.cant-grid {
  display: grid;
  gap: 5px;
}

.cantcome{cursor:pointer;}


/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  max-width: 350px;
}

.modal-content .qr {
  width: 180px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.modal-instructions {
  font-size: 17px;
  color: var(--gray-dark);
  margin-bottom: 12px;
}

#closeModal {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: var(--blue-dark);
}

.access-text {
  margin-top: 8px;
  font-size: 16px;
  color: var(--gray-dark);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:700px) {
  .hero,
  .theme-section,
  .container,
  .cant-make-it {
    width: auto;
    margin: 40px 12px;
    padding: 24px 0;
    margin-bottom:10px !important;
    margin-top:5px;
  }
  .hero-photo img {
    width: 345px;
    height: auto;
    max-width: 100%;
  }
  .theme-answer{font-size:18px;      margin:15px 80px 0px 80px;}
  .theme-question {line-height:24px; 
  }
    .theme-subtext {line-height:22px;} 

.theme-section-bottom{        padding: 24px 10px;}

  .hero-content {
    flex-direction: column;
    gap: 16px;
  }

  /* keep side-by-side but prevent overflow */
  .grid-row {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    margin: 0 auto;
    padding: 10px 8px; /* small inner padding to avoid touching edges */
    box-sizing: border-box;
  }

  .grid-row.reverse {
    flex-direction: row-reverse;
  }

  .grid-photo,
  .grid-text {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .grid-photo img {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    display: block;
  }

  .grid-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .grid-text h3 {
    font-size: 18px;
    margin-bottom: 6px;
    line-height:16px;
  }

  .grid-text p {
    font-size: 15px;
    line-height: 1.3;
  }
}
/* ---------- FINAL OVERFLOW FIX ---------- */

/* prevent subtle horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* ensure all flex rows stay within screen width */
.grid-row {
  max-width: 100%;
  overflow-x: hidden;
}

.grid-photo img {
  display: block; /* removes inline image spacing */
  max-width: 100%;
  height: auto;
}
