/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root{
  --line: 34,197,94;
  --text: #e7f7ec;
  --muted: #b8d1c4;
}
html, body { height: 100%; }

/* Court-like background */
body.bg-overlay{
  background:
    linear-gradient(rgba(3,20,12,0.75), rgba(3,20,12,0.75)),
    url("./login_background.png") center/cover fixed no-repeat;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Layout so footer can sit at the bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* iOS safe area like Contact page */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ===== Court-like container (DESKTOP BASE) ===== */
.about-shell{
  width: 95%;
  max-width: 1100px;

  /* DESKTOP spacing – this is your “perfect” view */
  margin: 110px auto 64px;

  border-radius: 18px;
  padding: 28px;
  border: 2px solid rgba(var(--line), 0.6);
  background: linear-gradient(180deg, rgba(15,49,34,0.55), rgba(10,28,20,0.55));
  box-shadow:
    0 15px 40px rgba(0,0,0,0.45),
    0 0 0 1px rgba(var(--line),0.25) inset;
  backdrop-filter: blur(8px);
  min-height: 60vh;
  flex: 1 0 auto;
}

/* Keep injected footer at bottom */
#footer-container{
  width: 100%;
  flex: 0 0 auto;
  margin-top: auto;
}

/* ===== Title banner ===== */
.title-banner{
  width: 100%;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  padding: 14px 18px;
  color: var(--text);
  text-align: center;
  border-radius: 14px;
  border: 2px solid rgba(var(--line),0.65);
  box-shadow:
    0 0 18px rgba(0,0,0,0.35),
    0 0 0 1px rgba(var(--line),0.2) inset;
  background: linear-gradient(
    90deg,
    rgba(4,18,10,1) 0%,
    rgba(3,74,31,1) 50%,
    rgba(4,18,10,1) 100%
  );
  margin-bottom: 18px;
}

/* ===== Sections ===== */
.about-section{ margin-bottom: 26px; }
.about-section h2{
  font-size: 24px;
  font-weight: 800;
  color: #b3f7d1;
  margin-bottom: 8px;
}

/* Paragraphs injected by JS */
.about-section p{
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* ===== Tiny fade-in ===== */
.fade-in { animation: fade 280ms ease-out; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* =================== Responsive =================== */

/* Large tablets & small laptops (≤ 992px)
   — still big spacing under header, just slightly tighter than desktop */
@media (max-width: 992px) {
  .about-shell{
    padding: 24px;
    margin: 96px auto 56px; /* top 96, bottom 56 */
  }
  .title-banner{
    font-size: 30px;
    padding: 12px 14px;
  }
  .about-section h2{ font-size: 22px; }
  .about-section p{ font-size: 16px; }
}

/* Tablets & phones (≤ 768px)
   — container a bit narrower, spacing still consistent */
@media (max-width: 768px) {

  .about-shell{
    width: 92%;
    border-radius: 14px;
    padding: 18px;
    border-width: 1.5px;

    /* keep a clear gap below the header */
    margin: 90px auto 40px;

    box-shadow:
      0 10px 26px rgba(0,0,0,0.35),
      0 0 0 1px rgba(var(--line),0.18) inset;
    backdrop-filter: blur(6px);
  }

  .title-banner{
    font-size: 26px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-width: 1.5px;
  }

  .about-section{ margin-bottom: 18px; }
  .about-section h2{
    font-size: 21px;
    text-align: center;
  }

  .about-section p{
    font-size: 15.75px;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
  }
}

/* Small phones (≤ 480px)
   — extra top margin so the header + mobile browser bar never overlap */
@media (max-width: 480px) {
  .about-shell{
    width: 92%;
    padding: 14px;
    margin: 96px auto 28px; /* top 96, bottom 28 */
  }
  .title-banner{
    font-size: 22px;
    padding: 9px 10px;
  }
  .about-section h2{ font-size: 20px; }
  .about-section p{
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Extra-small phones (≤ 360px)
   — just font adjustments, spacing inherited from 480px block */
@media (max-width: 360px) {
  .title-banner{ font-size: 20px; }
  .about-section h2{ font-size: 18px; }
  .about-section p{ font-size: 14.5px; }
}
