/* =============================================
   Bangladesh Law Association UK (BLA UK)
   Premium Stylesheet — blauk.org inspired
   ============================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Color ramps — deep navy + gold (legal/professional) */
  --navy-50:  #eef2f8;
  --navy-100: #d4dde9;
  --navy-200: #a9bdd3;
  --navy-300: #6e8cb5;
  --navy-400: #3d5f8f;
  --navy-500: #1e3a6b;
  --navy-600: #162d54;
  --navy-700: #102242;
  --navy-800: #0b1932;
  --navy-900: #071222;

  --gold-50:  #fdf8ed;
  --gold-100: #f9edca;
  --gold-200: #f2d98e;
  --gold-300: #e9c455;
  --gold-400: #d4a72c;
  --gold-500: #b8901f;
  --gold-600: #947318;

  --green-500: #15803d;
  --green-600: #166534;

  --red-500: #b91c1c;

  --neutral-0:   #ffffff;
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Semantic */
  --bg:        var(--neutral-0);
  --bg-soft:   var(--neutral-50);
  --bg-dark:   var(--navy-800);
  --text:      var(--neutral-700);
  --text-muted: var(--neutral-500);
  --heading:   var(--navy-700);
  --border:    var(--neutral-200);
  --primary:   var(--navy-500);
  --accent:    var(--gold-400);

  /* Typography */
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14);
  --shadow-gold: 0 12px 30px rgba(212, 167, 44, 0.28);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
}

/* ---------- 2. Reset & Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  letter-spacing: -0.01em;
}

a { text-decoration: none; transition: color var(--dur) var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
section { position: relative; }

/* ---------- 3. Reusable Utilities ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2.5rem;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.75rem;
  height: 2px;
  background: var(--gold-400);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0;
  color: var(--navy-700);
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.content-subtitle {
  font-size: 1.25rem;
  color: var(--navy-500);
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

/* ---------- 4. Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease-out);
  border: none;
  letter-spacing: 0.02em;
}

.btn-gold-pill {
  background: var(--gold-400);
  color: var(--navy-800);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.75rem;
  box-shadow: var(--shadow-gold);
}
.btn-gold-pill:hover {
  background: var(--gold-300);
  color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(212, 167, 44, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-300);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.75rem;
}
.btn-outline-gold:hover {
  background: var(--gold-400);
  color: var(--navy-800);
  transform: translateY(-2px);
}

/* Gold pill dropdown toggle (Become a Member) */
.btn-gold-pill.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.btn-gold-pill.dropdown-toggle::after { display: none; }
.btn-gold-pill.dropdown-toggle .bi-chevron-down {
  font-size: 0.8rem;
  transition: transform var(--dur) var(--ease);
}
.btn-gold-pill.dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}
.btn-gold-pill.dropdown-toggle.show {
  background: var(--gold-300);
  color: var(--navy-800);
}

/* Membership dropdown menu */
.membership-dropdown {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  margin-top: 0.6rem !important;
  animation: dropIn 0.25s var(--ease-out);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.membership-dropdown .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--dur) var(--ease);
}
.membership-dropdown .dropdown-item i {
  color: var(--gold-500);
  font-size: 1.05rem;
}
.membership-dropdown .dropdown-item:hover,
.membership-dropdown .dropdown-item:focus {
  background: var(--navy-50);
  color: var(--navy-700);
}
.membership-dropdown .dropdown-item:hover i {
  color: var(--navy-600);
}
/* ---------- 5. Top Bar ---------- */
.top-bar {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}
.top-bar a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur) var(--ease);
}
.top-bar a:hover { color: var(--gold-300); }
.top-bar-left a { font-weight: 600; }
.top-bar-left i { margin-right: 0.35rem; color: var(--gold-400); }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.top-bar-text { margin-right: 0.5rem; }
.top-bar-right a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.top-bar-right a:hover { background: var(--gold-400); color: var(--navy-800); }

/* ---------- 6. Navbar ---------- */
.site-header { position: relative; z-index: 1000; }

.navbar-custom {
  background: #fff;
  padding: 0.75rem 0;
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1040;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}
.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  padding: 2px;
}
.brand-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-700);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--neutral-700);
  padding: 0.5rem 0.9rem !important;
  position: relative;
  font-size: 0.95rem;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--navy-600);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
  width: 26px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 7. Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background:
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 50%, var(--navy-500) 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 167, 44, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 58, 107, 0.4), transparent 60%);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.01) 40px, rgba(255,255,255,0.01) 41px);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--gold-400);
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-tagline {
  color: var(--gold-300);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 8. About Section ---------- */
.about-section { padding: 5rem 0; }

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.about-image:hover img { transform: scale(1.04); }
.about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--gold-400);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-content p {
  color: var(--neutral-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ---------- 9. Message Sections ---------- */
.message-section { padding: 5rem 0; background: var(--bg-soft); }
.message-section--alt { background: #fff; }

.message-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: sticky;
  top: 120px;
}
.message-section--alt .message-card {
  background: var(--bg-soft);
}
.message-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.message-card-body {
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--gold-400);
}
.message-card-body h4 {
  font-size: 1.2rem;
  color: var(--navy-600);
  margin-bottom: 0.25rem;
}
.message-card-body span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.message-content p {
  color: var(--neutral-600);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.message-list {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
}
.message-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--neutral-600);
  line-height: 1.7;
}
.message-list li::before {
  content: '\F285';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold-500);
  font-size: 1rem;
}
.message-sign {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gold-200);
  font-size: 0.95rem;
  color: var(--neutral-600);
}
.message-sign strong { color: var(--navy-600); font-size: 1.05rem; }

.editorial-heading {
  font-size: 1.5rem;
  color: var(--navy-500);
  margin-bottom: 1rem;
}

/* ---------- 10. Gallery ---------- */
.gallery-section { padding: 5rem 0; }

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 34, 66, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- 11. Events ---------- */
.events-section { padding: 5rem 0; background: var(--bg-soft); }

.event-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease-out);
  height: 100%;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.event-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.event-card:hover .event-image img { transform: scale(1.06); }
.event-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--navy-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}
.event-badge--gold { background: var(--gold-400); color: var(--navy-800); }
.event-body { padding: 1.75rem; }
.event-body h3 {
  font-size: 1.25rem;
  color: var(--navy-600);
  margin-bottom: 0.5rem;
}
.event-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.event-link {
  font-weight: 700;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.event-link i { transition: transform var(--dur) var(--ease); }
.event-link:hover { color: var(--gold-600); }
.event-link:hover i { transform: translateX(4px); }

/* ---------- 12. Editorial ---------- */
.editorial-section { padding: 5rem 0; }

/* ---------- 13. Contact ---------- */
.contact-section { padding: 5rem 0; background: var(--bg-soft); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}
.contact-info-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-info-item i {
  font-size: 1.5rem;
  color: var(--gold-500);
  margin-top: 0.15rem;
}
.contact-info-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy-600);
  margin-bottom: 0.15rem;
}
.contact-info-item a, .contact-info-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.contact-info-item a:hover { color: var(--gold-500); }

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--dur) var(--ease);
}
.contact-social a:hover {
  background: var(--gold-400);
  color: var(--navy-800);
  transform: translateY(-3px);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-600);
  margin-bottom: 0.4rem;
}
.contact-form .form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: all var(--dur) var(--ease);
}
.contact-form .form-control:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px var(--gold-50);
}
.contact-form .form-control::placeholder { color: var(--neutral-400); }

.form-feedback {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2rem;
}
.form-feedback.success { color: var(--green-600); }
.form-feedback.error { color: var(--red-500); }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 1.5rem;
}
.footer-top {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  padding: 3px;
  margin-bottom: 1.25rem;
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 380px;
}

.site-footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  transition: all var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--gold-300); padding-left: 4px; }
.footer-links li i { color: var(--gold-400); margin-right: 0.5rem; }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover {
  background: var(--gold-400);
  color: var(--navy-800);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 15. Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-600);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold-400);
  color: var(--navy-800);
  transform: translateY(-3px);
}

/* ---------- 16. Reveal Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-custom {
    position: fixed;
    top: 40px;
  }
  .navbar-collapse {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
    max-height: 70vh;
    overflow-y: auto;
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-item .btn { margin-top: 0.5rem; width: 100%; }
  .message-card { position: static; margin-bottom: 1.5rem; }
  .message-card img { height: 280px; }
    .membership-dropdown {
    position: static !important;
    margin-top: 0.4rem !important;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    padding: 0.25rem 0;
    animation: none;
  }
  .navbar-nav .nav-item.dropdown .btn-gold-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .top-bar-text { display: none; }
  .top-bar-right { margin-left: auto; }
  .hero-section { padding: 120px 0 60px; min-height: auto; }
  .hero-logo { width: 90px; height: 90px; }
  .hero-actions .btn { width: 100%; }
  .about-image img { height: 320px; }
  .about-image::after { width: 70px; height: 70px; }
  .contact-form { padding: 1.75rem; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
  .brand-sub { display: none; }
}

@media (max-width: 575.98px) {
  .top-bar { font-size: 0.78rem; padding: 0.35rem 0; }
  .top-bar-left a { font-size: 0.78rem; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 1.05rem; }
  .gallery-item { aspect-ratio: 1 / 1; }
  .contact-form { padding: 1.25rem; }
}


/* ---------- 18. Auth / Login Page ---------- */
.auth-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background:
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 50%, var(--navy-500) 100%);
  overflow: hidden;
}
.auth-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 167, 44, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 58, 107, 0.4), transparent 60%);
  pointer-events: none;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.01) 40px, rgba(255,255,255,0.01) 41px);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}
.auth-card-inner {
  padding: 2.75rem 2.5rem;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--gold-400);
  padding: 4px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-700);
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.auth-alert-success {
  background: rgba(21, 128, 61, 0.08);
  color: var(--green-600);
  border: 1px solid rgba(21, 128, 61, 0.2);
}
.auth-alert-success i { font-size: 1.1rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 50px; }
/* Two-column grid for register form */
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

/* Wide card variant for register (more fields) */
.auth-card-wide .auth-card-inner { padding: 2.5rem 2.5rem; }

/* Custom select (resident dropdown) */
.auth-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-color: var(--neutral-50);
}
.auth-select-arrow {
  position: absolute;
  right: 1rem;
  color: var(--neutral-400);
  font-size: 0.8rem;
  pointer-events: none;
  transition: transform var(--dur) var(--ease);
}
.auth-input-wrap:focus-within .auth-select-arrow { color: var(--gold-500); }

/* Date input */
.auth-input[type="date"] {
  cursor: pointer;
}
.auth-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5) sepia(1) saturate(5) hue-rotate(15deg);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease);
}
.auth-input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* File upload */
.auth-file-wrap { cursor: pointer; }
.auth-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.auth-file-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.92rem;
  color: var(--neutral-500);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--dur) var(--ease);
}
.auth-file-label .bi-cloud-arrow-up {
  font-size: 1.2rem;
  color: var(--gold-500);
  flex-shrink: 0;
}
.auth-file-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-file-wrap:hover .auth-file-label,
.auth-file-input:focus + .auth-file-label {
  color: var(--navy-600);
}
.auth-file-input:focus + .auth-file-label {
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-50);
  border-radius: var(--radius-sm);
}
.auth-file-input.is-invalid ~ .auth-file-label {
  color: var(--red-500);
}
/* Required asterisk */
.auth-req {
  color: var(--red-500);
  font-weight: 800;
  margin-left: 2px;
}
.auth-field-full { grid-column: 1 / -1; }
.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-600);
  letter-spacing: 0.02em;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--neutral-400);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--dur) var(--ease);
}
.auth-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--neutral-50);
  transition: all var(--dur) var(--ease);
}
.auth-input::placeholder { color: var(--neutral-400); }
.auth-input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: #fff;
  box-shadow: 0 0 0 4px var(--gold-50);
}
.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--gold-500);
}
.auth-input.is-invalid {
  border-color: var(--red-500);
  background: rgba(185, 28, 28, 0.02);
}
.auth-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

.auth-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--neutral-400);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
  transition: color var(--dur) var(--ease);
}
.auth-toggle-pwd:hover { color: var(--navy-600); }

.auth-error-text {
  font-size: 0.82rem;
  color: var(--red-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.auth-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.auth-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--neutral-300);
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.auth-check-box::after {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--dur) var(--ease);
}
.auth-check-input:checked + .auth-check-box {
  background: var(--gold-400);
  border-color: var(--gold-400);
}
.auth-check-input:checked + .auth-check-box::after {
  opacity: 1;
  transform: scale(1);
}
.auth-check-input:focus + .auth-check-box {
  box-shadow: 0 0 0 4px var(--gold-50);
}
.auth-check-label {
  font-size: 0.88rem;
  color: var(--neutral-600);
  font-weight: 600;
}

.auth-link-muted {
  font-size: 0.88rem;
  color: var(--navy-500);
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}
.auth-link-muted:hover { color: var(--gold-500); }

.auth-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.auth-submit i { transition: transform var(--dur) var(--ease); }
.auth-submit:hover i { transform: translateX(4px); }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0 0.75rem;
  color: var(--neutral-400);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { padding: 0 1rem; }

.auth-foot {
  text-align: center;
  font-size: 0.92rem;
  color: var(--neutral-600);
  margin: 0;
}
.auth-link-gold {
  color: var(--gold-500);
  font-weight: 700;
  margin-left: 0.25rem;
  transition: all var(--dur) var(--ease);
}
.auth-link-gold:hover {
  color: var(--gold-600);
  text-decoration: underline;
}

/* Auth responsive */
@media (max-width: 575.98px) {
  .auth-card-inner { padding: 2rem 1.5rem; }
  .auth-logo { width: 64px; height: 64px; }
  .auth-title { font-size: 1.4rem; }
  .auth-options { flex-direction: column; align-items: flex-start; }
}

/* ---------- 19. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
