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

/* Prevent text selection / copying */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Re-enable selection only inside form fields */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Scroll anchor — must take zero space */
#page-top {
    display: block;
    height: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

/*  back to top button */
#btn-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0f3460;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  position: fixed;
  bottom: 32px;
  right: 32px;
  box-shadow: 0 4px 14px rgba(15,52,96,0.4);
  transition: background-color .25s, opacity .4s, visibility .4s, transform .25s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  text-decoration: none;
  cursor: pointer;
}
#btn-back-to-top::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}
#btn-back-to-top:hover {
  background-color: #16213e;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(15,52,96,0.5);
}
#btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/*back to top button finishes */

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — FRONTEND
══════════════════════════════════════════ */

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991.98px) {

    /* About image shorter */
    .about-img { height: 300px; }

    /* Join images shorter */
    .join-img-card img { height: 180px; }

    /* Testimonial photo */
    .testimonial-photo { height: 240px; }

    /* Hero stats card shown already hidden (d-none d-lg-block) */
}

/* ── Mobile landscape / large phone (≤ 767px) ── */
@media (max-width: 767.98px) {

    /* Navbar: tighten brand on small screens */
    .site-nav .navbar-brand-title { font-size: 0.68rem; }

    /* Hero */
    .hero-section { min-height: 75vh; padding-top: 56px; }
    .hero-divider  { margin: 14px 0; }
    .hero-sub      { font-size: 0.85rem; }

    /* Stats bar: 2×2 grid */
    .stat-item { width: 50%; padding: 20px 10px; }
    .stat-num  { font-size: 2rem; }
    .stat-sep  { display: none !important; }

    /* About */
    .about-img { height: 220px; border-radius: 12px; }
    .about-chip { flex-direction: row; align-items: flex-start; gap: 8px; }

    /* Join images */
    .join-img-card img { height: 140px; }

    /* Testimonial */
    .testimonial-photo { height: 260px; }
    .counter-bubble { padding: 30px 20px; }
    .counter-num    { font-size: 3.5rem; }

    /* Page banners (circulars, members, contact, executives) */
    .page-banner     { height: 120px !important; }
    .page-banner h1  { font-size: 1.5rem; }

    /* Circular card: stack icon + title + button vertically */
    .circular-card .card-body {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .circular-card .card-body .ms-auto {
        margin-left: 0 !important;
        align-self: flex-start;
    }

    /* Executive banner */
    .exec-banner { height: 60px; }
    .exec-photo-wrap { margin-top: -38px; }
    .exec-photo { width: 76px; height: 76px; }

    /* Mission cards (about page) — full width on mobile */
    .mission-card { padding: 18px; }

    /* Footer: reduce padding and center columns on mobile */
    .site-footer .py-5 { padding: 2.5rem 0 !important; }
    .site-footer .row > [class*="col-"] { text-align: center; }
    .site-footer .footer-heading { display: block !important; width: 100%; }
    .site-footer .info-row { justify-content: center; }
    .site-footer .d-flex.gap-2 { justify-content: center; }
    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }
}

/* ── Small phones (≤ 575px) ── */
@media (max-width: 575.98px) {

    /* Hero */
    .hero-section { min-height: 65vh; }
    .hero-cta, .hero-cta-outline {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    .hero-cta + .hero-cta-outline { margin-top: 4px; }

    /* Stats bar */
    .stat-item  { padding: 16px 6px; }
    .stat-num   { font-size: 1.6rem; }
    .stat-label { font-size: 0.68rem; }

    /* About image */
    .about-img { height: 180px; }

    /* Join section: stack text then images, reduce image height */
    .join-img-card img { height: 110px; }

    /* Testimonial */
    .testimonial-photo { height: 220px; }
    .counter-bubble    { padding: 24px 14px; }
    .counter-num       { font-size: 3rem; }
    .counter-label     { font-size: 0.78rem; }

    /* Section titles */
    .section-title { font-size: 1.35rem; }

    /* Page banners */
    .page-banner    { height: 100px !important; }
    .page-banner h1 { font-size: 1.25rem; }

    /* Back-to-top button smaller */
    #btn-back-to-top { width: 38px; height: 38px; bottom: 20px; right: 16px; }

    /* Executives: 1 col on xs */
    .row-cols-2 > * { flex: 0 0 50%; max-width: 50%; }

    /* Contact page: name+phone row stack fully on xs */
    .contact-form .col-sm-6 { flex: 0 0 100%; max-width: 100%; }

    /* About stats bar */
    .about-stats .stat-sep { display: none; }
    .about-stats .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 14px 8px; }

    /* Members page: 2-col already set, reduce photo */
    .member-photo { width: 60px !important; height: 60px !important; }
}

