/*
Theme Name: Young Magician Society
Theme URI: https://ymsbd.org/
Author: Young Magician Society Bangladesh
Author URI: https://ymsbd.org/
Description: Official WordPress Theme for Young Magician Society (YMS) Bangladesh. A united platform for young magicians of Bangladesh to learn, perform, connect and inspire.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: young-magician-society
*/

/* =========================================================
   YOUNG MAGICIAN SOCIETY (YMS) - BANGLADESH
   Premium Styling matching 100% with reference design
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Primary Magic Gold Palette */
  --gold-primary: #E5A93C;
  --gold-light: #FDE68A;
  --gold-bright: #F59E0B;
  --gold-dark: #B87D18;
  --gold-gradient: linear-gradient(135deg, #FFF3C4 0%, #E5A93C 50%, #B87D18 100%);
  --gold-glow: 0 0 20px rgba(229, 169, 60, 0.4);

  /* Deep Mystery Dark Palette */
  --bg-dark-hero: #08060D;
  --bg-dark-surface: #100C1B;
  --bg-dark-footer: #08060C;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Magic Purple Accents */
  --purple-primary: #63259B;
  --purple-deep: #2A0E46;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --purple-light: #F3E8FF;
  --purple-badge: #5B2186;

  /* Neutral Light Palette */
  --bg-light: #FFFFFF;
  --bg-light-soft: #F6F8FB;
  --text-dark: #1E1B2E;
  --text-muted: #64748B;
  --border-light: #E2E8F0;

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-script: 'Alex Brush', cursive;

  /* Container */
  --max-width: 1240px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER & NAVBAR (FIXED, LUXURY & ADMIN-BAR COMPLIANT)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(8, 6, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  transition: top 0.25s ease, background 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Perfect alignment when WordPress Admin Bar is active */
body.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

/* Fix mobile gap when scrolling:
   On mobile devices (<= 600px), WordPress Admin Bar has position: absolute and scrolls off-screen.
   When scrolled, the header must seamlessly stick to the very top (top: 0) without any gap above it! */
@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 46px;
    transition: top 0.25s ease, background 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  body.admin-bar .site-header.scrolled {
    top: 0 !important;
  }
}


/* Scrolled sticky state */
.site-header.scrolled {
  background: rgba(6, 4, 11, 0.97);
  border-bottom-color: rgba(229, 169, 60, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
}

.site-header.scrolled .navbar {
  height: 72px;
}

.site-header.scrolled .nav-brand img,
.site-header.scrolled .brand-logo img,
.site-header.scrolled .custom-logo-link img,
.site-header.scrolled .site-logo-img {
  height: 48px;
  width: 48px;
}

/* Header Container: Extended breathing room */
.site-header .container,
.header-container {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s ease;
  position: relative;
}

/* Society Medallion Logo */
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
}

.brand-logo-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo,
.custom-logo-link {
  height: 56px;
  width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-brand img,
.brand-logo img,
.custom-logo-link img,
.site-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(229, 169, 60, 0.5);
  box-shadow: 0 0 14px rgba(229, 169, 60, 0.25), 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.nav-brand:hover img,
.brand-logo:hover img,
.custom-logo-link:hover img {
  transform: scale(1.06);
  border-color: #f5c358;
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.55), 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #e5a93c;
}

.nav-link i.fa-chevron-down {
  font-size: 9px;
  color: #e5a93c;
  opacity: 0.75;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

.nav-item.active .nav-link {
  color: #e5a93c;
  font-weight: 700;
}

.nav-item.active .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #e5a93c 0%, #f5c358 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.75);
}

/* Luxurious Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 215px;
  background: linear-gradient(160deg, #130c22 0%, #0c0716 100%);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(229, 169, 60, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(229, 169, 60, 0.12);
  color: #e5a93c;
  padding-left: 18px;
}

/* Nav Actions Toolbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 10px;
}

/* Segmented Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(229, 169, 60, 0.3);
  backdrop-filter: blur(8px);
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
  line-height: 1;
}

.flag-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.flag-btn.active {
  opacity: 1;
  background: rgba(229, 169, 60, 0.22);
  border-color: rgba(229, 169, 60, 0.6);
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.35);
}

.flag-img {
  width: 19px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Search Button */
.btn-search {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.btn-search:hover {
  background: rgba(229, 169, 60, 0.15);
  border-color: rgba(229, 169, 60, 0.5);
  color: #e5a93c;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(229, 169, 60, 0.3);
}

/* Member Login & Auth */
.btn-member-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.15) 0%, rgba(229, 169, 60, 0.3) 100%);
  border: 1.5px solid #e5a93c;
  border-radius: 22px;
  padding: 8px 18px;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap !important;
  box-shadow: 0 2px 10px rgba(229, 169, 60, 0.2);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-member-login:hover {
  background: linear-gradient(135deg, #e5a93c 0%, #d98e1e 100%);
  color: #0b0714 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.45);
  border-color: #f5c358;
}

.btn-member-login i {
  font-size: 13px;
  color: #e5a93c;
  transition: color 0.25s ease;
}

.btn-member-login:hover i {
  color: #0b0714;
}

.auth-btn-desktop {
  display: inline;
}

.auth-btn-mobile {
  display: none;
}

.btn-nav-logout {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-nav-logout:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px) rotate(-6deg);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.nav-auth-wrap {
  display: inline-flex;
  align-items: center;
}

.nav-auth-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-auth-item {
  display: none !important;
}

.btn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #e5a93c;
  font-size: 22px;
  cursor: pointer;
}

/* Page Hero Top Padding for Fixed Header + Admin Bar */
body.admin-bar .hero-section,
body.admin-bar .news-hero-section,
body.admin-bar .dashboard-hero-section,
body.admin-bar .about-hero-section,
body.admin-bar .committee-hero-section,
body.admin-bar .events-hero-section,
body.admin-bar .gallery-hero-section,
body.admin-bar .forms-hero-section,
body.admin-bar .privacy-hero-section,
body.admin-bar .contact-hero-section,
body.admin-bar .page-main-content {
  padding-top: calc(130px + 32px) !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .hero-section,
  body.admin-bar .news-hero-section,
  body.admin-bar .dashboard-hero-section,
  body.admin-bar .about-hero-section,
  body.admin-bar .committee-hero-section,
  body.admin-bar .events-hero-section,
  body.admin-bar .gallery-hero-section,
  body.admin-bar .forms-hero-section,
  body.admin-bar .privacy-hero-section,
  body.admin-bar .contact-hero-section,
  body.admin-bar .page-main-content {
    padding-top: calc(100px + 46px) !important;
}
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  position: relative;
  background-color: var(--bg-dark-hero);
  background-image: 
    linear-gradient(to right, #08060D 0%, rgba(8, 6, 13, 0.95) 28%, rgba(8, 6, 13, 0.72) 48%, rgba(8, 6, 13, 0.25) 75%, rgba(8, 6, 13, 0.05) 100%),
    linear-gradient(to bottom, rgba(8, 6, 13, 0.85) 0%, transparent 18%, transparent 75%, var(--bg-dark-hero) 100%),
    url('assets/hero_bg.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 720px;
  padding-top: 130px;
  padding-bottom: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Ambient glow & particles */
.hero-glow-bg {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(99, 37, 155, 0.15) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-stars-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3) 1.5px, transparent 1.5px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.3) 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, rgba(255,255,255,0.5) 1.5px, transparent 1.5px),
    radial-gradient(circle at 90% 60%, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 300px 300px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 580px;
}

.hero-script-tag {
  font-family: var(--font-script);
  color: var(--gold-primary);
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 2px;
  text-shadow: 0 0 15px rgba(229, 169, 60, 0.4);
  transform: rotate(-3deg);
  display: inline-block;
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.hero-title-white {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-title-gold {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFF6D3 0%, #E5A93C 50%, #C98818 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(229, 169, 60, 0.3));
}

.hero-society-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  max-width: 320px;
}

.hero-society-divider .line {
  flex: 1;
  height: 1.5px;
  background: var(--gold-primary);
  opacity: 0.8;
}

.hero-society-divider .society-text {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.hero-star-sub {
  color: var(--gold-primary);
  font-size: 12px;
  text-align: center;
  max-width: 320px;
  margin-top: 6px;
  text-shadow: 0 0 8px var(--gold-primary);
}

.hero-description {
  color: #9CA3AF;
  font-size: 15px;
  line-height: 1.65;
  margin-top: 20px;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #0D0A15;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.4);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 12, 28, 0.7);
  border: 1px solid rgba(229, 169, 60, 0.5);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.2);
}

/* Hero Visual Column */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-visual-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: contrast(1.08) brightness(1.02);
}

/* Subtle gradient mask to blend into the hero background smoothly */
.hero-visual-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, transparent 60%, var(--bg-dark-hero) 98%),
              linear-gradient(to right, var(--bg-dark-hero) 0%, transparent 18%),
              linear-gradient(to bottom, transparent 75%, var(--bg-dark-hero) 100%);
  pointer-events: none;
}

/* =========================================================
   FLOATING STATS SECTION
   ========================================================= */
.stats-floating-bar {
  position: relative;
  z-index: 20;
  margin-top: -45px;
  margin-bottom: 25px;
}

.stats-card {
  background: linear-gradient(135deg, rgba(16, 11, 28, 0.95) 0%, rgba(26, 15, 45, 0.95) 100%);
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding: 0 12px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
  font-size: 28px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(229, 169, 60, 0.4));
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-number {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.stat-label {
  color: #94A3B8;
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

/* =========================================================
   QUICK ACCESS 8-CARD GRID
   ========================================================= */
.quick-access-section {
  padding: 30px 0 45px;
  background-color: var(--bg-light);
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.quick-card {
  background: #FFFFFF;
  border: 1px solid #E6EAF2;
  border-radius: 8px;
  padding: 20px 8px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  cursor: pointer;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(99, 37, 155, 0.09);
  border-color: rgba(99, 37, 155, 0.35);
}

.quick-card-icon {
  font-size: 24px;
  color: var(--purple-badge);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  transition: transform 0.3s ease;
}

.quick-card:hover .quick-card-icon {
  transform: scale(1.15);
  color: #7928CA;
}

.quick-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.35;
  text-align: center;
}

.quick-card-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: #64748B;
  display: block;
}

/* =========================================================
   THREE-COLUMN MAIN SECTION (NEWS / CENTER CARD / EVENTS)
   ========================================================= */
.showcase-section {
  padding: 20px 0 55px;
  background-color: var(--bg-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

/* Column Common Styling */
.showcase-column {
  display: flex;
  flex-direction: column;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.column-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--purple-badge);
}

.view-all-link i {
  font-size: 10px;
}

.column-bottom-link-wrapper {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
}

.column-bottom-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.column-bottom-link:hover {
  color: var(--purple-badge);
}

.column-bottom-link i {
  font-size: 11px;
}

/* --- Left Column: Latest News --- */
.news-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item-card,
a.news-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-item-card:hover .news-item-title,
a.news-item-card:hover .news-item-title {
  color: var(--purple-badge);
}

.news-thumb {
  width: 90px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-item-card:hover .news-thumb img {
  transform: scale(1.08);
}

.news-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-tag {
  align-self: flex-start;
  background-color: #581C87;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.news-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.35;
  transition: var(--transition);
}

.news-item-date {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

/* --- Center Column: Feature Magic Card --- */
.feature-magic-card {
  position: relative;
  background-color: #0E051B;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 440px;
  height: 100%;
}

.feature-magic-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.feature-magic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  opacity: 1;
  filter: none;
  transition: transform 0.5s ease;
}

.feature-magic-card:hover .feature-magic-bg img {
  transform: scale(1.03);
}

/* No color overlay over the image as requested */
.feature-magic-bg::after {
  display: none;
}

.feature-magic-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 55%;
  max-width: 215px;
}

.magic-sub-top {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.magic-word-gold {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #D49B28;
  line-height: 1.05;
  margin: 2px 0 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.magic-sub-bottom {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2;
}

.magic-star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 175px;
  margin-bottom: 14px;
}

.magic-star-divider .star-line {
  flex: 1;
  height: 1.5px;
  background: #D49B28;
  opacity: 0.9;
}

.magic-star-divider .magic-star {
  color: #D49B28;
  font-size: 13px;
  line-height: 1;
}

.btn-magic-become-member {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #D49B28;
  color: #1A1208;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-magic-become-member:hover {
  background: #E5A93C;
  color: #0D0A15;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.45);
}

/* --- Right Column: Upcoming Events --- */
.events-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item-card,
a.event-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.event-item-card:hover .event-title,
a.event-item-card:hover .event-title {
  color: var(--purple-badge);
}

.event-date-box {
  width: 58px;
  height: 58px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.event-item-card:hover .event-date-box {
  background: var(--purple-light);
  border-color: rgba(99, 37, 155, 0.3);
}

.event-day {
  font-size: 20px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1;
}

.event-month {
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.35;
  transition: var(--transition);
}

.event-location {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-location i {
  font-size: 11px;
  color: #94A3B8;
}

/* =========================================================
   MEMBERSHIP CTA BANNER
   ========================================================= */
.membership-cta-section {
  padding: 10px 0 50px;
  background-color: var(--bg-light);
}

.cta-banner-wrapper {
  background-color: #0A0314;
  background-image: url('assets/cta_bg.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 12px;
  padding: 30px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  position: relative;
  box-shadow: 0 15px 35px rgba(10, 3, 20, 0.4);
  overflow: hidden;
}

.cta-banner-wrapper::before {
  display: none;
}

.cta-hat-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-hat-icon {
  width: 76px;
  height: 76px;
}

.cta-content-col {
  display: flex;
  flex-direction: column;
}

.cta-tagline {
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cta-main-title {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-top: 3px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #FFF2B2 0%, #E5A93C 50%, #C98818 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cta-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.cta-perk-text {
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

/* CTA Action (Button + Wand Glow) */
.cta-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.cta-wand-art {
  display: none;
}

.btn-cta-apply {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #0D0A15;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.45);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 169, 60, 0.6);
}

.cta-login-hint {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-size: 11px;
  color: #94A3B8;
}

.cta-login-hint a {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.cta-login-hint a:hover {
  color: var(--gold-primary);
}

/* =========================================================
   FOOTER SECTION
   ========================================================= */
.site-footer {
  background-color: var(--bg-dark-footer);
  color: #94A3B8;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr 1.35fr 0.9fr;
  gap: 36px;
  padding-bottom: 45px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-about-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: #94A3B8;
  margin-bottom: 22px;
}

.footer-socials,
.footer-social-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.social-link,
.social-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #181424 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #E2E8F0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.social-link:hover,
.social-btn:hover {
  background: #E5A93C !important;
  color: #08060D !important;
  border-color: #E5A93C !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.4) !important;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  font-size: 12.5px;
  color: #94A3B8;
  transition: var(--transition);
  display: inline-block;
}

.footer-link-item a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

/* Contact Info Column */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: #94A3B8;
}

.contact-info-item i {
  color: var(--gold-primary);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info-item a {
  color: #94A3B8;
  word-break: break-word;
  transition: var(--transition);
}

.contact-info-item a:hover {
  color: var(--gold-primary);
}

/* Footer Brand Emblem */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-emblem {
  width: 160px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.footer-emblem:hover {
  transform: scale(1.05);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  font-size: 12px;
  color: #64748B;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heart-icon {
  color: #EF4444;
  margin: 0 2px;
}

/* =========================================================
   MODAL (SEARCH & LOGIN)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-container,
.modal-card,
.login-modal-card,
.search-modal-card,
.member-notif-modal-card {
  background: #150E24 !important;
  border: 1px solid rgba(229, 169, 60, 0.45) !important;
  border-radius: 18px !important;
  padding: 32px 30px !important;
  width: 100% !important;
  max-width: 460px !important;
  position: relative !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 169, 60, 0.18) !important;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-sizing: border-box !important;
}

.modal-overlay.active .modal-container,
.modal-overlay.active .modal-card,
.modal-overlay.active .login-modal-card,
.modal-overlay.active .search-modal-card,
.modal-overlay.active .member-notif-modal-card {
  transform: scale(1) translateY(0) !important;
}

/* Universal Notification Details Modal */
.member-notif-modal-card {
  max-width: 520px !important;
  background: linear-gradient(145deg, #180d2e 0%, #0d061a 100%) !important;
  border: 1px solid rgba(229, 169, 60, 0.4) !important;
  border-radius: 20px !important;
  padding: 28px 24px !important;
}

.member-notif-header {
  text-align: center;
  margin-bottom: 20px;
}

.member-notif-icon-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.15);
  border: 1.5px solid rgba(229, 169, 60, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5C358;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.2);
}

.mnotif-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.mnotif-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.mnotif-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mnotif-info-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mnotif-info-item.mnotif-full-width {
  grid-column: 1 / -1;
}

.mnotif-info-label {
  font-size: 11.5px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mnotif-info-label i {
  color: #E5A93C;
}

.mnotif-info-value {
  font-size: 13.5px;
  color: #FFFFFF;
  font-weight: 600;
  word-break: break-word;
}

.mnotif-general-desc-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #E2E8F0;
}

.mnotif-security-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(229, 169, 60, 0.08);
  border: 1px solid rgba(229, 169, 60, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.mnotif-security-notice i {
  color: #E5A93C;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .mnotif-info-grid {
    grid-template-columns: 1fr;
  }
}

.btn-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #94A3B8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-modal-close:hover {
  background: rgba(229, 169, 60, 0.2);
  border-color: rgba(229, 169, 60, 0.5);
  color: #FFDF7E;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-brand-logo,
.login-modal-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 14px auto !important;
  text-align: center !important;
}

.modal-brand-logo img,
.login-modal-logo img,
.modal-logo-img,
#loginModal .modal-header img,
#loginModal img,
#searchModal img {
  height: 65px !important;
  max-height: 65px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 10px auto !important;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.6)) !important;
}

.modal-title {
  color: #FFFFFF !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  font-family: var(--font-serif, 'Cinzel', serif) !important;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0 !important;
  text-align: center;
}

.modal-subtitle {
  color: #A098B5 !important;
  font-size: 13px !important;
  line-height: 1.4;
  margin: 0 !important;
  text-align: center;
}

.modal-form,
.modal-login-form,
.modal-search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-label {
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .input-icon,
.input-with-icon > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #C5A059;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.input-with-icon .form-input,
.input-with-icon input {
  padding-left: 42px !important;
}

.modal-form .form-input,
.modal-login-form input,
.modal-search-form input,
.form-input {
  background: #0A0614 !important;
  border: 1px solid rgba(229, 169, 60, 0.25) !important;
  border-radius: 8px !important;
  padding: 12px 14px;
  color: #FFFFFF !important;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.modal-form .form-input:focus,
.modal-login-form input:focus,
.modal-search-form input:focus,
.form-input:focus {
  border-color: #E5A93C !important;
  box-shadow: 0 0 14px rgba(229, 169, 60, 0.35) !important;
  background: #0E081C !important;
}

.btn-modal-submit,
.btn-submit-login,
.btn-submit-search {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  background: linear-gradient(135deg, #E5A93C 0%, #D4881E 100%) !important;
  border: 1px solid #FFDF7E !important;
  border-radius: 8px !important;
  padding: 13px 20px !important;
  color: #0D0A15 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.35) !important;
  margin-top: 6px;
  box-sizing: border-box;
}

.btn-modal-submit:hover,
.btn-submit-login:hover,
.btn-submit-search:hover {
  background: linear-gradient(135deg, #FFDF7E 0%, #E5A93C 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(229, 169, 60, 0.55) !important;
}

.btn-modal-submit:active,
.btn-submit-login:active,
.btn-submit-search:active {
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================= */
@media (max-width: 1100px) {
  .quick-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-main-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-brand-col {
    grid-column: span 2;
    margin-top: 10px;
  }
  .cta-banner-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .cta-hat-col {
    display: none;
  }
  .cta-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-action-col {
    margin-top: 10px;
  }
  .cta-wand-art {
    display: none;
  }
}

@media (max-width: 992px) {
  .site-header {
    background: rgba(8, 6, 13, 0.95);
    border-bottom: 1px solid rgba(229, 169, 60, 0.15);
  }
  .navbar {
    height: 68px;
  }
  .nav-brand .brand-logo,
  .nav-brand .brand-logo img {
    height: 44px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(14, 9, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 0 24px;
    border-bottom: 2px solid rgba(229, 169, 60, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-menu.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 999999 !important;
    background: rgba(14, 9, 26, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 2px solid rgba(229, 169, 60, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95) !important;
  }
  .nav-menu .nav-item {
    width: 100%;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-menu .nav-link {
    width: 100%;
    padding: 12px 20px;
    font-size: 13.5px;
    letter-spacing: 0.8px;
    justify-content: center;
    display: flex;
  }
  .nav-menu .nav-item.has-dropdown > .nav-link {
    cursor: pointer;
  }
  .nav-menu .nav-item.has-dropdown .dropdown-menu {
    display: none;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(229, 169, 60, 0.2) !important;
    border-radius: 10px !important;
    margin: 4px 16px 12px !important;
    padding: 6px 10px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    min-width: unset !important;
    width: auto !important;
  }
  .nav-menu .nav-item.has-dropdown.dropdown-open .dropdown-menu {
    display: block !important;
    animation: fadeInDropdown 0.2s ease;
  }
  .nav-menu .nav-item.has-dropdown.dropdown-open > .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
  }
  .nav-menu .dropdown-item {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
  }
  .nav-menu .dropdown-item:last-child {
    border-bottom: none;
  }
  .mobile-menu-auth-item {
    display: block !important;
    padding: 16px 20px 8px !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(229, 169, 60, 0.2) !important;
    margin-top: 10px;
    width: 100%;
  }
  .mobile-drawer-auth-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }
  .btn-drawer-signup {
    flex: 1;
    max-width: 180px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #e5a93c 0%, #b87d18 100%);
    color: #08060d !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.4);
    transition: all 0.25s ease;
  }
  .btn-drawer-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.6);
  }
  .btn-drawer-login {
    flex: 1;
    max-width: 180px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(229, 169, 60, 0.15);
    border: 1.5px solid #e5a93c;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  .btn-drawer-login:hover {
    background: rgba(229, 169, 60, 0.3);
    color: #f5c358 !important;
  }
  .btn-drawer-dashboard {
    flex: 1;
    max-width: 200px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #e5a93c 0%, #b87d18 100%);
    color: #08060d !important;
    font-size: 12px;
    font-weight: 800;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.4);
  }
  .btn-drawer-logout {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5 !important;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  .btn-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5a93c;
    flex-shrink: 0;
  }
  .hero-section {
    min-height: 620px;
    padding-top: 110px;
    padding-bottom: 70px;
    background-position: center top;
    background-image: 
      linear-gradient(to bottom, rgba(8, 6, 13, 0.88) 0%, rgba(8, 6, 13, 0.82) 50%, var(--bg-dark-hero) 100%),
      url('assets/hero_bg.jpg');
  }
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0;
    max-width: 580px;
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-society-divider {
    margin: 10px 0 0 0;
    max-width: 280px;
  }
  .hero-star-sub {
    margin: 6px 0 0 0;
    max-width: 280px;
    text-align: center;
  }
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: rgba(8, 6, 13, 0.98);
  }
  .site-header .container,
  .header-container {
    padding: 0 12px !important;
    max-width: 100% !important;
  }
  .navbar,
  .site-header.scrolled .navbar {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }
  .nav-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-brand {
    margin-right: 4px;
    flex-shrink: 0;
  }
  .nav-brand .brand-logo,
  .nav-brand .brand-logo img,
  .site-header.scrolled .nav-brand img,
  .site-header.scrolled .brand-logo img,
  .site-header.scrolled .custom-logo-link img,
  .site-header.scrolled .site-logo-img {
    height: 38px;
    width: 38px;
  }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }
  .nav-auth-wrap,
  .nav-auth-btns {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .nav-guest-btns {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  
  /* Auth desktop vs mobile text */
  .auth-btn-desktop {
    display: none !important;
  }
  .auth-btn-mobile {
    display: inline !important;
  }

  /* Member Login Button on Mobile */
  .btn-member-login {
    height: 30px;
    padding: 0 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    gap: 4px;
    border-radius: 15px;
    line-height: 1;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-member-login i {
    font-size: 11px;
  }

  /* Member Sign Up Button on Mobile - HIDDEN on mobile navbar to fit all buttons and keep hamburger visible */
  .btn-member-signup {
    display: none !important;
  }

  /* Language Switcher on Mobile */
  .lang-switcher {
    gap: 1px;
    padding: 2px 3px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .flag-btn {
    padding: 2px 2px;
    border-radius: 2px;
  }
  .flag-img {
    width: 16px;
    height: 11px;
  }

  /* Notification Bell on Mobile */
  .btn-notification-bell {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  /* Search Button on Mobile */
  .btn-search {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Hamburger Toggle on Mobile - PROMINENT, PINNED, GUARANTEED VISIBLE */
  .btn-mobile-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    background: rgba(229, 169, 60, 0.12) !important;
    border: 1px solid rgba(229, 169, 60, 0.4) !important;
    border-radius: 6px !important;
    color: #e5a93c !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin-left: 2px !important;
    z-index: 10 !important;
  }
  .btn-mobile-toggle:hover,
  .btn-mobile-toggle:active {
    background: rgba(229, 169, 60, 0.25) !important;
    border-color: #f5c358 !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
  }
  .btn-mobile-toggle i {
    pointer-events: none !important;
  }

  /* Logged In Member Chip on Mobile */
  .nav-logged-in-chip {
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-member-chip {
    height: 30px;
    padding: 0 8px;
    font-size: 10.5px;
    max-width: 95px;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-nav-logout {
    width: 28px;
    height: 28px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 390px) {
  .site-header .container,
  .header-container {
    padding: 0 8px !important;
  }
  .nav-actions {
    gap: 3px !important;
  }
  .btn-member-login {
    padding: 0 6px !important;
    font-size: 9.5px !important;
  }
  .btn-search {
    display: none !important; /* Conceal search icon on screens under 390px so other actions fit comfortably */
  }
}
  
  /* Hero Section Alignment & Sleek Responsive Elements */
  .hero-content {
    margin: 0;
    max-width: 100%;
    text-align: left;
  }

  .hero-script-tag {
    font-size: 34px;
    margin-bottom: 2px;
  }

  .hero-title-white,
  .hero-title-gold {
    font-size: 42px;
    letter-spacing: 2px;
    line-height: 1.05;
  }

  .hero-society-divider {
    margin: 10px 0 0 0;
    max-width: 250px;
    width: 100%;
  }

  .hero-society-divider .society-text {
    font-size: 15px;
    letter-spacing: 5px;
  }

  .hero-star-sub {
    margin: 6px 0 0 0;
    max-width: 250px;
    width: 100%;
    text-align: center;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 100%;
    text-align: left;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    justify-content: flex-start;
  }

  .btn-hero-primary {
    flex: 1;
    height: 44px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    gap: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(229, 169, 60, 0.35);
  }
  .btn-hero-primary i {
    font-size: 12px;
  }

  .btn-hero-secondary {
    flex: 1;
    height: 44px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    gap: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    line-height: 1;
    background: rgba(16, 12, 28, 0.85);
    border: 1px solid rgba(229, 169, 60, 0.5);
  }
  .btn-hero-secondary i {
    font-size: 11px;
  }
  
  .hero-section {
    padding-top: 85px;
  }
}

@media (max-width: 420px) {
  .site-header .container {
    padding: 0 10px;
  }
  .navbar,
  .site-header.scrolled .navbar {
    height: 56px;
  }
  .nav-menu {
    top: 56px;
  }
  .nav-brand {
    margin-right: 4px;
    flex-shrink: 0;
  }
  .nav-brand .brand-logo,
  .nav-brand .brand-logo img,
  .site-header.scrolled .nav-brand img,
  .site-header.scrolled .brand-logo img,
  .site-header.scrolled .custom-logo-link img,
  .site-header.scrolled .site-logo-img {
    height: 34px;
    width: 34px;
  }
  .nav-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .nav-auth-wrap,
  .nav-auth-btns {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .btn-member-login {
    height: 28px;
    padding: 0 8px;
    font-size: 10px;
    gap: 3px;
    border-radius: 14px;
    flex-shrink: 0;
  }
  .btn-member-login i {
    font-size: 10px;
  }
  .btn-member-signup {
    display: none !important;
  }
  .lang-switcher {
    padding: 1.5px 3px;
    gap: 2px;
    flex-shrink: 0;
  }
  .flag-img {
    width: 15px;
    height: 10px;
  }
  .btn-search {
    width: 28px;
    height: 28px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .btn-notification-bell {
    width: 32px;
    height: 32px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .btn-mobile-toggle {
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
    min-height: 33px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
  }
  .btn-member-chip {
    height: 28px;
    padding: 0 7px;
    font-size: 10px;
    max-width: 85px;
    flex-shrink: 0;
  }
  .btn-nav-logout {
    width: 28px;
    height: 28px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .hero-script-tag {
    font-size: 28px;
  }

  .hero-title-white,
  .hero-title-gold {
    font-size: 34px;
    letter-spacing: 1.5px;
  }

  .hero-society-divider {
    margin: 8px 0 0 0;
    max-width: 215px;
    gap: 8px;
  }

  .hero-society-divider .society-text {
    font-size: 13px;
    letter-spacing: 4px;
  }

  .hero-star-sub {
    margin: 4px 0 0 0;
    max-width: 215px;
    font-size: 11px;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 14px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 8px;
    max-width: 100%;
  }

  .btn-hero-primary {
    height: 40px;
    padding: 0 8px;
    font-size: 11px;
    gap: 5px;
    border-radius: 6px;
  }
  .btn-hero-primary i {
    font-size: 11px;
  }

  .btn-hero-secondary {
    height: 40px;
    padding: 0 8px;
    font-size: 11px;
    gap: 5px;
    border-radius: 6px;
  }
  .btn-hero-secondary i {
    font-size: 10px;
  }

  .hero-section {
    padding-top: 75px;
  }
}

@media (max-width: 360px) {
  .site-header .container {
    padding: 0 6px;
  }
  .nav-actions {
    gap: 3px !important;
  }
  .nav-auth-wrap,
  .nav-auth-btns {
    gap: 3px !important;
  }
  .btn-member-login {
    height: 28px;
    padding: 0 6px;
    font-size: 9.5px;
    gap: 3px;
  }
  .btn-member-login i {
    font-size: 9.5px;
  }
  .lang-switcher {
    padding: 1px 2px;
    gap: 1px;
  }
  .flag-img {
    width: 13.5px;
    height: 9px;
  }
  .btn-search {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .btn-notification-bell {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .btn-mobile-toggle {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 350px) {
  .hero-actions {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    height: 40px;
  }
}

@media (max-width: 580px) {
  .hero-title-white, .hero-title-gold {
    font-size: 38px;
  }
  .stats-card {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none !important;
  }
  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-perks-grid {
    grid-template-columns: 1fr;
  }
  .footer-main-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-flex {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =========================================================
   ABOUT US PAGE STYLES (100% MATCH WITH REFERENCE DESIGN)
   ========================================================= */

/* Language Switcher in Navbar */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 5px;
  border-radius: 20px;
  border: 1px solid rgba(229, 169, 60, 0.35);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  border: 1.5px solid transparent;
  padding: 2px 3px;
  opacity: 0.75;
  outline: none;
}

.flag-btn:hover {
  transform: scale(1.08);
  opacity: 1;
}

.flag-btn.active {
  opacity: 1;
  border-color: #e5a93c;
  box-shadow: 0 0 6px rgba(229, 169, 60, 0.45);
  background: rgba(229, 169, 60, 0.22);
}

.flag-img {
  width: 20px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Bengali Language Specific Typography */
body.lang-bn {
  font-family: 'Hind Siliguri', 'Outfit', 'Poppins', sans-serif;
}

body.lang-bn .hero-main-title .hero-title-white,
body.lang-bn .hero-main-title .hero-title-gold,
body.lang-bn .magic-word-gold,
body.lang-bn .about-hero-title,
body.lang-bn .cta-main-title,
body.lang-bn .welcome-main-heading,
body.lang-bn .who-main-title {
  font-family: 'Hind Siliguri', 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

body.lang-bn .btn-hero-primary,
body.lang-bn .btn-hero-secondary,
body.lang-bn .btn-member-login,
body.lang-bn .btn-magic-become-member,
body.lang-bn .btn-cta-apply,
body.lang-bn .nav-link {
  font-family: 'Hind Siliguri', 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}

/* --- About Us Page Hero Banner --- */
.about-hero-banner {
  position: relative;
  min-height: 320px;
  padding-top: 140px;
  padding-bottom: 55px;
  background-color: #030b22;
  background-image: url('assets/about_banner_magician.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3, 11, 34, 0.95) 0%, rgba(3, 11, 34, 0.72) 32%, rgba(3, 11, 34, 0.25) 60%, transparent 100%),
              linear-gradient(to bottom, rgba(3, 11, 34, 0.5) 0%, transparent 20%, transparent 75%, #07040D 100%);
  pointer-events: none;
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.about-hero-emblem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.about-emblem-hat {
  font-size: 22px;
  color: #D49B28;
  filter: drop-shadow(0 0 8px rgba(229, 169, 60, 0.5));
}

.about-emblem-line {
  width: 50px;
  height: 1.5px;
  background: #D49B28;
  opacity: 0.8;
}

.about-hero-title {
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-hero-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  margin-bottom: 12px;
}

.about-hero-divider .line {
  flex: 1;
  height: 1.5px;
  background: #D49B28;
  opacity: 0.8;
}

.about-hero-divider .diamond {
  color: #D49B28;
  font-size: 11px;
}

.about-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.about-breadcrumb a {
  color: #D49B28;
}

.about-breadcrumb a:hover {
  text-decoration: underline;
}

.about-breadcrumb .separator {
  color: #94A3B8;
  font-size: 11px;
}

.about-breadcrumb .current {
  color: #D49B28;
}

/* --- Section 1: Welcome to YMS --- */
.about-welcome-section {
  padding: 65px 0 50px;
  background-color: #FFFFFF;
}

.welcome-story-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 46px;
  align-items: center;
  margin-bottom: 50px;
}

.welcome-tagline {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #D49B28;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.welcome-main-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 8px;
}

.welcome-star-divider {
  color: #D49B28;
  font-size: 11px;
  margin-bottom: 14px;
}

.welcome-lead-quote {
  font-size: 14.5px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.6;
  margin-bottom: 16px;
}

.welcome-body-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.68;
  margin-bottom: 14px;
}

.story-image-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #E2E8F0;
}

.story-image-card .group-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.story-image-card:hover .group-photo-img {
  transform: scale(1.03);
}

/* 4 Core Value Cards */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card {
  background: #FFFFFF;
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: #D49B28;
  box-shadow: 0 10px 25px rgba(229, 169, 60, 0.15);
}

.value-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.value-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0B0718;
  border: 1.5px solid #D49B28;
  color: #D49B28;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.value-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.value-card-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.55;
}

/* --- Section 2: WHO WE ARE (3-Column Showcase Box) --- */
.about-who-section {
  padding: 40px 0 50px;
  background-color: #080512;
}

.who-showcase-box {
  background: linear-gradient(135deg, #0B0618 0%, #150B28 100%);
  border: 1.5px solid rgba(229, 169, 60, 0.45);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 28px;
  align-items: center;
}

.who-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.who-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.who-showcase-box:hover .who-showcase-img {
  transform: scale(1.03);
}

.who-main-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.who-gold-tagline {
  color: #E5A93C;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 18px;
}

.who-points-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.who-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.point-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #E5A93C;
  color: #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.point-text {
  color: #D1D5DB;
  font-size: 12px;
  line-height: 1.55;
}

/* --- Section 3: Stats Counter Bar --- */
.about-stats-section {
  padding: 15px 0 35px;
  background-color: #080512;
}

.about-stats-card {
  background: #0E081F;
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 12px;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-stat-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-stat-icon {
  font-size: 26px;
  color: #D49B28;
  flex-shrink: 0;
}

.about-stat-number {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  display: block;
  line-height: 1.1;
}

.about-stat-label {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
  margin-top: 3px;
  display: block;
}

/* --- Section 4: Join Us & Pillars --- */
.about-join-section {
  padding: 15px 0 60px;
  background-color: #080512;
}

.about-join-container {
  background: #0F0922;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 34px 34px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-join-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.3fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.join-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.join-header-title h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.join-title-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.2);
}

.join-intro-p {
  color: #CBD5E1;
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.join-golden-callout {
  background: #D49B28;
  color: #161008;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(212, 155, 40, 0.3);
}

.join-closing-p {
  color: #94A3B8;
  font-size: 12px;
  line-height: 1.6;
}

.pillar-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pillar-icon {
  font-size: 20px;
  color: #D49B28;
  width: 28px;
  text-align: center;
}

.pillar-action {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 13.5px;
  letter-spacing: 1px;
  display: block;
}

.pillar-sub {
  color: #94A3B8;
  font-size: 10px;
  font-weight: 700;
  display: block;
}

.history-org-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.history-dates-line {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 14px;
}

.history-dates-line strong {
  color: #E2E8F0;
}

.history-dates-line .sep {
  margin: 0 6px;
  color: #D49B28;
}

.history-wand-box {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-wand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Quick Contact Strip under Join */
.join-contact-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.strip-item i {
  color: #D49B28;
  font-size: 13px;
}

.strip-item:hover {
  color: #D49B28;
}

/* --- Responsive Design for About Us Page --- */
@media (max-width: 1024px) {
  .welcome-story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .who-showcase-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .who-image-wrapper {
    height: 280px;
  }
  .about-stats-card {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }
  .about-join-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .about-hero-banner {
    min-height: 260px;
    padding-top: 115px;
    padding-bottom: 40px;
    background-position: 75% center;
  }
  .about-hero-title {
    font-size: 36px;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-card {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .join-contact-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   EVENTS PAGE STYLING (100% MATCH WITH REFERENCE DESIGN)
   ========================================================= */

.events-page-body {
  background-color: #F4F6F9;
}

/* --- Hero Banner Section --- */
.events-hero-section {
  position: relative;
  background-color: #05081A;
  background-image: url('assets/events_hero_banner.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  min-height: 250px;
  padding-top: 125px;
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 -10px 25px rgba(0, 0, 0, 0.4);
}

.events-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(6, 10, 26, 0.95) 0%, rgba(6, 10, 26, 0.75) 45%, rgba(6, 10, 26, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.events-hero-section .container {
  position: relative;
  z-index: 2;
}

.events-hero-content {
  max-width: 560px;
}

.events-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.events-title-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  width: 90px;
}

.events-title-divider .divider-line {
  flex: 1;
  height: 2px;
  background: #E5A93C;
}

.events-title-divider .divider-gem {
  color: #E5A93C;
  font-size: 10px;
  line-height: 1;
}

.events-hero-desc {
  font-size: 14.5px;
  color: #CBD5E1;
  line-height: 1.55;
  font-weight: 400;
}

/* --- Events Main Section --- */
.events-main-section {
  padding: 32px 0 60px;
  background-color: #F4F6F9;
}

/* --- Control & Filter Bar --- */
.events-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.events-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.events-nav-tabs .tab-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.events-nav-tabs .tab-btn i {
  font-size: 13px;
  color: inherit;
}

.events-nav-tabs .tab-btn:hover {
  border-color: #E5A93C;
  color: #B45309;
}

.events-nav-tabs .tab-btn.active {
  background: #0B0E1E;
  border-color: #E5A93C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 14, 30, 0.25);
}

.events-nav-tabs .tab-btn.active i {
  color: #E5A93C;
}

/* Search Box */
.events-search-box {
  display: flex;
  align-items: center;
}

.events-search-form {
  display: flex;
  align-items: center;
  height: 38px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.events-search-form .search-input {
  height: 100%;
  width: 200px;
  padding: 0 14px;
  border: 1px solid #D1D5DB;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #FFFFFF;
  font-size: 13px;
  color: #1F2937;
  outline: none;
  transition: width 0.25s ease, border-color 0.2s ease;
}

.events-search-form .search-input:focus {
  border-color: #0B0E1E;
  width: 230px;
}

.events-search-form .search-input::placeholder {
  color: #9CA3AF;
}

.events-search-form .search-submit-btn {
  height: 100%;
  padding: 0 16px;
  background: #0B0E1E;
  border: 1px solid #0B0E1E;
  border-radius: 0 6px 6px 0;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.events-search-form .search-submit-btn:hover {
  background: #E5A93C;
  border-color: #E5A93C;
  color: #0B0E1E;
}

/* Active Category Filter Indicator */
.active-filter-indicator {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #1E40AF;
}

.active-filter-indicator .btn-clear-filter {
  background: none;
  border: none;
  color: #EF4444;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.active-filter-indicator .btn-clear-filter:hover {
  text-decoration: underline;
}

/* --- Layout Grid (2 Columns: Main + Sidebar) --- */
.events-content-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

.events-main-area {
  min-width: 0;
}

/* --- 6-Event Cards Grid --- */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Event Card */
.event-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.event-card-header {
  position: relative;
  width: 100%;
  aspect-ratio: 145 / 55;
  background-color: #0A0D1F;
  overflow: hidden;
}

.event-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.event-card:hover .event-card-banner-img {
  transform: scale(1.03);
}

.event-card-body {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-title {
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.8px;
  color: #4B5563;
  line-height: 1.35;
}

.event-meta-item i {
  font-size: 12px;
  color: #6B7280;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-view-details {
  align-self: flex-start;
  background: #0B0E1E;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-view-details:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

/* No Events Message */
.no-events-found {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
  color: #64748B;
}

.no-events-found .no-events-icon {
  font-size: 40px;
  color: #E5A93C;
  margin-bottom: 12px;
}

.no-events-found h4 {
  font-size: 18px;
  color: #1E293B;
  margin-bottom: 6px;
}

.no-events-found p {
  font-size: 13.5px;
  margin-bottom: 18px;
}

.btn-reset-search {
  background: #0B0E1E;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-search:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

/* --- Sidebar Widgets --- */
.events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  border-radius: 8px;
  padding: 18px 18px 20px;
}

/* Widget 1: Upcoming Events (Dark Navy) */
.sidebar-widget-upcoming {
  background: #0B0E1E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(11, 14, 30, 0.2);
}

.sidebar-widget-upcoming .widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-widget .widget-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 44px;
  margin-bottom: 16px;
}

.sidebar-widget .widget-divider .w-line {
  flex: 1;
  height: 1.5px;
  background: #E5A93C;
}

.sidebar-widget .widget-divider .w-star {
  color: #E5A93C;
  font-size: 9px;
  line-height: 1;
}

.mini-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.mini-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease;
}

.mini-event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-event-item:hover {
  transform: translateX(3px);
}

.mini-event-item .mini-thumb {
  width: 62px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #05081A;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-event-item .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-event-item .mini-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mini-event-item .mini-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #F3F4F6;
  line-height: 1.3;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-event-item:hover .mini-title {
  color: #E5A93C;
}

.mini-event-item .mini-date {
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-event-item .mini-date i {
  font-size: 10px;
  color: #E5A93C;
}

.btn-view-all-events {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid #E5A93C;
  background: transparent;
  color: #E5A93C;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-view-all-events:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

/* Widget 2: Event Categories (Light Card) */
.sidebar-widget-categories {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sidebar-widget-categories .widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-item a .category-icon {
  width: 16px;
  font-size: 13px;
  text-align: center;
  color: #6B7280;
  transition: color 0.2s ease;
}

.category-item:hover a {
  color: #B45309;
  background: #FEF3C7;
}

.category-item:hover a .category-icon {
  color: #B45309;
}

.category-item.active a {
  color: #D97706;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.08);
}

.category-item.active a .category-icon {
  color: #D97706;
}

/* --- Stay Updated Newsletter Strip (100% Match) --- */
.newsletter-strip {
  margin-top: 28px;
  background: #0B0E1E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(11, 14, 30, 0.15);
  flex-wrap: wrap;
}

.newsletter-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.newsletter-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E5A93C;
  font-size: 17px;
  flex-shrink: 0;
  background: rgba(229, 169, 60, 0.08);
}

.newsletter-text .newsletter-title {
  font-size: 15px;
  font-weight: 800;
  color: #E5A93C;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.newsletter-text .newsletter-sub {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.35;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.newsletter-input {
  height: 38px;
  border-radius: 5px;
  border: 1px solid #374151;
  background: #FFFFFF;
  padding: 0 14px;
  font-size: 12.5px;
  color: #111827;
  outline: none;
  min-width: 170px;
  flex-grow: 1;
  max-width: 220px;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: #E5A93C;
}

.newsletter-input::placeholder {
  color: #9CA3AF;
}

.btn-subscribe {
  height: 38px;
  background: #E5A93C;
  color: #0B0E1E;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: #F59E0B;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(229, 169, 60, 0.3);
}

/* --- Calendar View Section --- */
.calendar-view-container {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.calendar-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E5E7EB;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cal-arrow {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-cal-arrow:hover {
  border-color: #0B0E1E;
  color: #0B0E1E;
}

.cal-month-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  min-width: 160px;
  text-align: center;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #4B5563;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.festival { background: #8B5CF6; }
.legend-dot.meetup { background: #3B82F6; }
.legend-dot.workshop { background: #10B981; }
.legend-dot.competition { background: #F59E0B; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
  padding: 6px 0;
  background: #F9FAFB;
  border-radius: 6px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-cell {
  min-height: 80px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.cal-day-cell.other-month {
  background: #F9FAFB;
  opacity: 0.45;
}

.cal-day-cell .day-num {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.cal-day-cell.has-event {
  border-color: #E5A93C;
  background: #FFFBEB;
}

.cal-event-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  margin-top: 2px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cal-event-pill.festival { background: #7C3AED; }
.cal-event-pill.meetup { background: #2563EB; }
.cal-event-pill.workshop { background: #059669; }
.cal-event-pill.competition { background: #D97706; }

/* --- Past Events Container --- */
.past-events-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.past-events-notice {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #64748B;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #334155;
}

.past-events-notice i {
  font-size: 26px;
  color: #64748B;
}

.past-events-notice h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.past-events-notice p {
  font-size: 12.5px;
  color: #64748B;
}

.past-header {
  position: relative;
}

.past-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #CBD5E1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 2;
}

.past-card {
  filter: grayscale(15%);
}

.past-btn {
  background: #475569;
}

/* --- Event Details Modal --- */
.event-modal-container {
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.event-modal-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #0A0D1F;
}

.event-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #E5A93C;
  color: #0B0E1E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 4px;
}

.event-modal-content {
  padding: 24px;
}

.event-modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
  line-height: 1.25;
}

.event-modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.modal-meta-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-meta-icon {
  font-size: 16px;
  color: #E5A93C;
  margin-top: 2px;
}

.modal-meta-box .meta-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 2px;
}

.modal-meta-box .meta-value {
  display: block;
  font-size: 12.5px;
  color: #0F172A;
  font-weight: 600;
  line-height: 1.3;
}

.event-modal-description {
  margin-bottom: 22px;
}

.event-modal-description h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.event-modal-description p {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.event-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #E2E8F0;
  padding-top: 18px;
}

.btn-modal-register {
  flex-grow: 1;
  background: #0B0E1E;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-modal-register:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

.btn-modal-share {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-modal-share:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0B0E1E;
  color: #FFFFFF;
  border-left: 4px solid #E5A93C;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 13px;
  font-weight: 500;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification .toast-icon {
  color: #E5A93C;
  font-size: 16px;
}

/* --- Responsive Adjustments for Events Page --- */
@media (max-width: 1080px) {
  .events-content-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
  .events-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .events-content-layout {
    grid-template-columns: 1fr;
  }
  .events-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .newsletter-form {
    justify-content: flex-start;
    width: 100%;
  }
  .newsletter-input {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .events-hero-section {
    min-height: 230px;
    padding-top: 110px;
    padding-bottom: 35px;
    background-position: 80% center;
  }
  .events-hero-title {
    font-size: 32px;
  }
  .events-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .events-nav-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
  .events-nav-tabs .tab-btn {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 7px 12px;
  }
  .events-search-box, .events-search-form {
    width: 100%;
  }
  .events-search-form .search-input {
    flex-grow: 1;
    width: auto;
  }
  .events-cards-grid {
    grid-template-columns: 1fr;
  }
  .events-sidebar {
    grid-template-columns: 1fr;
  }
  .newsletter-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .event-modal-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   NEWS & UPDATES PAGE STYLING (100% MATCH WITH REFERENCE)
   ========================================================= */

.news-page-body {
  background-color: #F4F6F9;
}

/* --- Hero Banner Section --- */
.news-hero-section {
  position: relative;
  background-color: #05081A;
  background-image: url('assets/news_hero_banner.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  min-height: 250px;
  padding-top: 125px;
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 -10px 25px rgba(0, 0, 0, 0.4);
}

.news-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(6, 10, 26, 0.95) 0%, rgba(6, 10, 26, 0.75) 45%, rgba(6, 10, 26, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.news-hero-section .container {
  position: relative;
  z-index: 2;
}

.news-hero-content {
  max-width: 580px;
}

.news-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.news-title-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  width: 90px;
}

.news-title-divider .divider-line {
  flex: 1;
  height: 2px;
  background: #E5A93C;
}

.news-title-divider .divider-gem {
  color: #E5A93C;
  font-size: 10px;
  line-height: 1;
}

.news-hero-desc {
  font-size: 14.5px;
  color: #CBD5E1;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 12px;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.news-breadcrumb .breadcrumb-link {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

.news-breadcrumb .breadcrumb-link:hover {
  color: #E5A93C;
}

.news-breadcrumb .breadcrumb-sep {
  color: #64748B;
}

.news-breadcrumb .breadcrumb-active {
  color: #E5A93C;
  font-weight: 600;
}

/* --- News Main Section --- */
.news-main-section {
  padding: 32px 0 60px;
  background-color: #F4F6F9;
}

/* --- Control & Filter Bar --- */
.news-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.news-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-nav-tabs .tab-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-nav-tabs .tab-btn i {
  font-size: 12px;
  color: inherit;
}

.news-nav-tabs .tab-btn:hover {
  border-color: #E5A93C;
  color: #B45309;
}

.news-nav-tabs .tab-btn.active {
  background: #0B0E1E;
  border-color: #E5A93C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 14, 30, 0.25);
}

.news-nav-tabs .tab-btn.active i {
  color: #E5A93C;
}

/* Search Box */
.news-search-box {
  display: flex;
  align-items: center;
}

.news-search-form {
  display: flex;
  align-items: center;
  height: 38px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.news-search-form .search-input {
  height: 100%;
  width: 200px;
  padding: 0 14px;
  border: 1px solid #D1D5DB;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #FFFFFF;
  font-size: 13px;
  color: #1F2937;
  outline: none;
  transition: width 0.25s ease, border-color 0.2s ease;
}

.news-search-form .search-input:focus {
  border-color: #0B0E1E;
  width: 230px;
}

.news-search-form .search-input::placeholder {
  color: #9CA3AF;
}

.news-search-form .search-submit-btn {
  height: 100%;
  padding: 0 16px;
  background: #0B0E1E;
  border: 1px solid #0B0E1E;
  border-radius: 0 6px 6px 0;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.news-search-form .search-submit-btn:hover {
  background: #E5A93C;
  border-color: #E5A93C;
  color: #0B0E1E;
}

/* Active Category Filter Indicator */
.active-news-indicator {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #1E40AF;
}

.active-news-indicator .btn-clear-news-filter {
  background: none;
  border: none;
  color: #EF4444;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.active-news-indicator .btn-clear-news-filter:hover {
  text-decoration: underline;
}

/* --- Layout Grid (2 Columns: Main + Sidebar) --- */
.news-content-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

.news-main-area {
  min-width: 0;
}

/* --- 6-News Cards Grid --- */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* News Card */
.news-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.news-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background-color: #0A0D1F;
  overflow: hidden;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-thumb-img {
  transform: scale(1.04);
}

/* Yellow/Gold Date Badge */
.news-date-badge {
  position: absolute;
  top: 0;
  left: 14px;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  color: #0B0E1E;
  padding: 6px 9px 7px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  min-width: 38px;
}

.news-date-badge .badge-day {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.news-date-badge .badge-month {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.news-date-badge .badge-year {
  font-size: 8.5px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.9;
}

.news-card-body {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: #B45309;
}

.news-card-excerpt {
  font-size: 12px;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94A3B8;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
  margin-top: auto;
}

.news-card-meta i {
  color: #64748B;
  margin-right: 4px;
  font-size: 11px;
}

.meta-author, .meta-date {
  display: inline-flex;
  align-items: center;
}

/* Pagination Bar */
.news-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.news-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-pagination .page-item:hover:not(.disabled):not(.dots) .page-link {
  border-color: #E5A93C;
  color: #B45309;
}

.news-pagination .page-item.active .page-link {
  background: #E5A93C;
  border-color: #E5A93C;
  color: #0B0E1E;
}

.news-pagination .page-item.disabled .page-link {
  background: #0B0E1E;
  border-color: #0B0E1E;
  color: #FFFFFF;
  cursor: default;
}

.news-pagination .page-item.dots .page-link {
  border: none;
  background: transparent;
  color: #9CA3AF;
  cursor: default;
}

/* No News Message */
.no-news-found {
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  padding: 50px 20px;
  text-align: center;
  color: #64748B;
}

.no-news-found .no-news-icon {
  font-size: 40px;
  color: #E5A93C;
  margin-bottom: 12px;
}

.no-news-found h4 {
  font-size: 18px;
  color: #1E293B;
  margin-bottom: 6px;
}

.no-news-found p {
  font-size: 13.5px;
  margin-bottom: 18px;
}

.btn-reset-news {
  background: #0B0E1E;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-news:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

/* --- News Sidebar Widgets --- */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Widget 1: Latest News (Dark Navy) */
.sidebar-widget-latest {
  background: #0B0E1E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(11, 14, 30, 0.2);
  border-radius: 8px;
  padding: 18px 18px 20px;
}

.sidebar-widget-latest .widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease;
}

.mini-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-news-item:hover {
  transform: translateX(3px);
}

.mini-news-item .mini-thumb {
  width: 62px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #05081A;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-news-item .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-news-item .mini-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mini-news-item .mini-title {
  font-size: 12px;
  font-weight: 600;
  color: #F3F4F6;
  line-height: 1.3;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-news-item:hover .mini-title {
  color: #E5A93C;
}

.mini-news-item .mini-date {
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-news-item .mini-date i {
  font-size: 10px;
  color: #E5A93C;
}

/* Widget 2: Categories (Light Card with counts) */
.sidebar-widget-news-cats {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 18px 18px 20px;
}

.sidebar-widget-news-cats .widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-cat-item .cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-cat-item .cat-icon {
  width: 16px;
  font-size: 13px;
  text-align: center;
  color: #6B7280;
  transition: color 0.2s ease;
}

.news-cat-item .cat-badge {
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.news-cat-item:hover a {
  color: #B45309;
  background: #FEF3C7;
}

.news-cat-item:hover a .cat-icon {
  color: #B45309;
}

.news-cat-item.active a {
  color: #D97706;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.08);
}

.news-cat-item.active a .cat-icon {
  color: #D97706;
}

.news-cat-item.active .cat-badge {
  background: #E5A93C;
  color: #0B0E1E;
}

/* --- News Details Modal --- */
.news-modal-container {
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}

.news-modal-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background: #0A0D1F;
}

.news-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #E5A93C;
  color: #0B0E1E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 4px;
}

.news-modal-content {
  padding: 24px;
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
}

.news-modal-meta i {
  color: #E5A93C;
}

.news-modal-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 16px;
  line-height: 1.3;
}

.news-modal-body {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-modal-footer {
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* --- Responsive Adjustments for News Page --- */
@media (max-width: 1080px) {
  .news-content-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .news-content-layout {
    grid-template-columns: 1fr;
  }
  .news-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .news-hero-section {
    min-height: 230px;
    padding-top: 110px;
    padding-bottom: 35px;
    background-position: 80% center;
  }
  .news-hero-title {
    font-size: 32px;
  }
  .news-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .news-nav-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
  .news-nav-tabs .tab-btn {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 7px 12px;
  }
  .news-search-box, .news-search-form {
    width: 100%;
  }
  .news-search-form .search-input {
    flex-grow: 1;
    width: auto;
  }
  .news-cards-grid {
    grid-template-columns: 1fr;
  }
  .news-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GALLERY PAGE STYLING (100% REFERENCE MATCH)
   ========================================================================== */
.gallery-page-body {
  background-color: #F8FAFC;
}

/* --- Hero Banner Section --- */
.gallery-hero-section {
  position: relative;
  background: url('assets/gallery_hero_banner.jpg') no-repeat center right;
  background-size: cover;
  background-color: #030712;
  min-height: 270px;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 45px;
  overflow: hidden;
}

.gallery-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.8) 45%, rgba(3, 7, 18, 0.15) 100%);
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.gallery-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2.5px;
  margin-bottom: 6px;
  line-height: 1.15;
  text-transform: uppercase;
}

.gallery-title-divider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gallery-title-divider .divider-line {
  width: 35px;
  height: 1.5px;
  background: #E5A93C;
}

.gallery-title-divider .divider-gem {
  color: #E5A93C;
  font-size: 10px;
}

.gallery-hero-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 400;
}

.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.gallery-breadcrumb .breadcrumb-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gallery-breadcrumb .breadcrumb-link:hover {
  color: #E5A93C;
}

.gallery-breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.55);
}

.gallery-breadcrumb .breadcrumb-active {
  color: #E5A93C;
  font-weight: 600;
}

/* --- Main Gallery Section --- */
.gallery-main-section {
  padding: 30px 0 65px;
  background-color: #F8FAFC;
}

/* Control Bar: Tabs & Search */
.gallery-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gallery-nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.gallery-nav-tabs .tab-btn {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gallery-nav-tabs .tab-btn i {
  font-size: 12px;
  color: inherit;
}

.gallery-nav-tabs .tab-btn:hover {
  border-color: #E5A93C;
  color: #B45309;
}

.gallery-nav-tabs .tab-btn.active {
  background: #0B0E1E;
  border-color: #E5A93C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 14, 30, 0.25);
}

.gallery-nav-tabs .tab-btn.active i {
  color: #E5A93C;
}

/* Search Box */
.gallery-search-box {
  display: flex;
  align-items: center;
}

.gallery-search-form {
  display: flex;
  align-items: center;
  height: 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gallery-search-form .search-input {
  height: 100%;
  width: 180px;
  padding: 0 12px;
  border: 1px solid #D1D5DB;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #1F2937;
  outline: none;
  transition: width 0.25s ease, border-color 0.2s ease;
}

.gallery-search-form .search-input:focus {
  border-color: #0B0E1E;
  width: 210px;
}

.gallery-search-form .search-input::placeholder {
  color: #9CA3AF;
}

.gallery-search-form .search-submit-btn {
  height: 100%;
  padding: 0 14px;
  background: #0B0E1E;
  border: 1px solid #0B0E1E;
  border-radius: 0 6px 6px 0;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.gallery-search-form .search-submit-btn:hover {
  background: #E5A93C;
  border-color: #E5A93C;
  color: #0B0E1E;
}

/* Active Filter Indicator */
.active-gallery-indicator {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 7px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #1E40AF;
}

.active-gallery-indicator .btn-clear-gallery-filter {
  background: none;
  border: none;
  color: #EF4444;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.active-gallery-indicator .btn-clear-gallery-filter:hover {
  text-decoration: underline;
}

/* --- Layout Grid (2 Columns: Main + Sidebar) --- */
.gallery-content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.gallery-main-area {
  min-width: 0;
}

/* --- 12 Album Cards Grid (4 Columns x 3 Rows) --- */
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0B0E1E;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, outline 0.2s ease;
  aspect-ratio: 4 / 3;
  display: block;
}

.gallery-card:focus-visible {
  outline: 3px solid #E5A93C;
  outline-offset: 2px;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(11, 14, 30, 0.22);
}

.gallery-card-thumb {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 30, 0.94) 0%, rgba(11, 14, 30, 0.45) 45%, rgba(0, 0, 0, 0) 80%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-card-overlay {
  background: linear-gradient(to top, rgba(11, 14, 30, 0.98) 0%, rgba(11, 14, 30, 0.55) 50%, rgba(0, 0, 0, 0.1) 85%);
}

.gallery-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  z-index: 2;
  pointer-events: none;
}

.gallery-card-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.gallery-card-count i {
  color: #E5A93C;
  font-size: 10.5px;
}

/* Empty State */
.no-gallery-found {
  text-align: center;
  padding: 48px 24px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  margin: 16px 0;
}

.no-gallery-found .no-gallery-icon {
  font-size: 40px;
  color: #94A3B8;
  margin-bottom: 12px;
}

.no-gallery-found h4 {
  font-size: 18px;
  color: #1E293B;
  margin-bottom: 6px;
  font-weight: 700;
}

.no-gallery-found p {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 18px;
}

.no-gallery-found .btn-reset-gallery {
  background: #0B0E1E;
  color: #FFFFFF;
  border: 1px solid #0B0E1E;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.no-gallery-found .btn-reset-gallery:hover {
  background: #E5A93C;
  border-color: #E5A93C;
  color: #0B0E1E;
}

/* --- Right Sidebar Widgets --- */
.gallery-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Widget 1: Gallery Albums (Light Theme) */
.sidebar-widget-albums {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sidebar-widget-albums .widget-title,
.sidebar-widget-highlights .widget-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.gallery-album-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-album-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 6px;
  text-decoration: none;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.gallery-album-item a:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.gallery-album-item a:hover .album-icon {
  color: #E5A93C;
}

.gallery-album-item.active a {
  background: #EFF6FF;
  color: #1D4ED8;
  font-weight: 700;
}

.gallery-album-item.active .album-icon {
  color: #1D4ED8;
}

.gallery-album-item .album-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-album-item .album-icon {
  font-size: 12px;
  color: #94A3B8;
  width: 16px;
  text-align: center;
  transition: color 0.2s ease;
}

.gallery-album-item .album-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.gallery-album-item.active .album-badge {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Widget 2: Recent Highlights (Light Theme) */
.sidebar-widget-highlights {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.gallery-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.highlight-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.highlight-item:hover {
  background: #F8FAFC;
}

.highlight-thumb {
  width: 58px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0B0E1E;
}

.highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-info {
  min-width: 0;
}

.highlight-title {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.25;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.highlight-date {
  font-size: 11px;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.highlight-date i {
  color: #E5A93C;
}

.btn-more-highlights {
  width: 100%;
  padding: 8px 12px;
  background: #0B0E1E;
  color: #FFFFFF;
  border: 1px solid #0B0E1E;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-more-highlights:hover {
  background: #E5A93C;
  border-color: #E5A93C;
  color: #0B0E1E;
}

/* --- Interactive Lightbox / Album Modal --- */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 18, 0.94);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

.gallery-lightbox-container {
  background: #0B0E1E;
  border: 1px solid rgba(229, 169, 60, 0.45);
  border-radius: 12px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 14, 30, 0.95);
}

.lightbox-album-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.lightbox-tag {
  background: #E5A93C;
  color: #0B0E1E;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.lightbox-album-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-counter {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.lightbox-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: #E5A93C;
  color: #0B0E1E;
  border-color: #E5A93C;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 360px;
  max-height: 500px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 14, 30, 0.75);
  border: 1px solid rgba(229, 169, 60, 0.5);
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

.lightbox-nav-btn.prev-btn {
  left: 14px;
}

.lightbox-nav-btn.next-btn {
  right: 14px;
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  transition: opacity 0.22s ease;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  color: #FFFFFF;
  padding: 12px 18px 8px;
  font-size: 12.5px;
  text-align: center;
  font-weight: 500;
}

.lightbox-thumbnails-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #070A16;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-thumb-item {
  width: 52px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb-item.active {
  border-color: #E5A93C;
  opacity: 1;
  transform: scale(1.05);
}

.lightbox-thumb-item:hover {
  opacity: 1;
}

/* --- Responsive Adjustments for Gallery Page --- */
@media (max-width: 1200px) {
  .gallery-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .gallery-content-layout {
    grid-template-columns: 1fr;
  }
  .gallery-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .gallery-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .gallery-hero-section {
    min-height: 220px;
    padding-top: 105px;
    padding-bottom: 30px;
    background-position: 80% center;
  }
  .gallery-hero-title {
    font-size: 32px;
  }
  .gallery-control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-nav-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
  .gallery-nav-tabs .tab-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 6px 11px;
  }
  .gallery-search-box, .gallery-search-form {
    width: 100%;
  }
  .gallery-search-form .search-input {
    flex-grow: 1;
    width: auto;
  }
  .gallery-cards-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-stage {
    min-height: 260px;
  }
}

/* ==========================================================================
   PRIVACY POLICY PAGE STYLES (100% VISUAL MATCH)
   ========================================================================== */

/* --- Hero Banner Section --- */
.privacy-hero-section {
  position: relative;
  background: #01040D url('assets/privacy_hero_banner.jpg') no-repeat right center;
  background-size: cover;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding-top: 115px;
  padding-bottom: 45px;
  overflow: hidden;
}

.privacy-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 4, 13, 0.92) 0%, rgba(1, 4, 13, 0.72) 42%, rgba(1, 4, 13, 0.05) 75%, transparent 100%);
  pointer-events: none;
}

.privacy-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.privacy-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2.5px;
  margin-bottom: 6px;
  line-height: 1.15;
  text-transform: uppercase;
}

.privacy-title-divider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.privacy-title-divider .divider-line {
  width: 35px;
  height: 1.5px;
  background: #E5A93C;
}

.privacy-title-divider .divider-gem {
  color: #E5A93C;
  font-size: 10px;
}

.privacy-hero-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 400;
}

.privacy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.privacy-breadcrumb .breadcrumb-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.privacy-breadcrumb .breadcrumb-link:hover {
  color: #E5A93C;
}

.privacy-breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.55);
}

.privacy-breadcrumb .breadcrumb-active {
  color: #E5A93C;
}

/* --- Main Privacy Content Layout --- */
.privacy-main-section {
  padding: 50px 0 80px;
  background: #FAFAFA;
}

.privacy-content-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
}

/* Left Policy Area Card */
.privacy-content-area {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #E2E8F0;
}

/* Last Updated Meta Badge */
.privacy-meta-badge {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 16px;
}

.privacy-meta-badge .privacy-updated-date {
  color: #2563EB;
  font-weight: 700;
  margin-left: 4px;
}

/* Introductory Paragraph */
.privacy-intro-box {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
}

.privacy-intro-text {
  font-size: 14.5px;
  line-height: 1.68;
  color: #334155;
}

/* 8 Policy Section Items */
.privacy-section-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F1F5F9;
  scroll-margin-top: 110px;
  transition: background-color 0.2s ease;
}

.privacy-section-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Dark circular icon badge with gold glyph */
.privacy-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #0B0E1E;
  color: #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(11, 14, 30, 0.15);
  margin-top: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.privacy-section-item:hover .privacy-item-icon {
  transform: scale(1.06);
  box-shadow: 0 6px 14px rgba(229, 169, 60, 0.25);
}

.privacy-item-content {
  flex: 1;
}

.privacy-item-title {
  font-family: var(--font-sans);
  font-size: 17.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.35;
}

.privacy-item-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 0;
}

/* Contact Details in Section 8 */
.privacy-contact-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #475569;
}

.p-contact-line i {
  color: #E5A93C;
  width: 16px;
  text-align: center;
}

.p-contact-line a {
  color: #2563EB;
  text-decoration: none;
}

.p-contact-line a:hover {
  text-decoration: underline;
}

/* --- Right Sidebar Widgets --- */
.privacy-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px 22px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

/* Widget 1: In This Page (TOC) */
.sidebar-widget-toc .widget-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-widget-toc .widget-divider.light-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sidebar-widget-toc .widget-divider.light-divider .w-line {
  flex: 1;
  height: 1.5px;
  background: #F1F5F9;
}

.sidebar-widget-toc .widget-divider.light-divider .w-star {
  color: #E5A93C;
  font-size: 12px;
}

.privacy-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.privacy-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  transition: all 0.2s ease;
}

.privacy-toc-link .toc-icon {
  font-size: 14px;
  color: #64748B;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.privacy-toc-item.active .privacy-toc-link,
.privacy-toc-link:hover {
  background: #FFFBEB;
  color: #B45309;
  font-weight: 600;
}

.privacy-toc-item.active .privacy-toc-link .toc-icon,
.privacy-toc-link:hover .toc-icon {
  color: #D97706;
}

/* Widget 2: Your Privacy Matters (Trust Card) */
.sidebar-widget-trust {
  text-align: center;
  padding: 28px 22px;
  background: #FFFFFF;
}

.trust-shield-wrapper {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.trust-shield-img {
  width: 115px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.16));
  transition: transform 0.3s ease;
}

.sidebar-widget-trust:hover .trust-shield-img {
  transform: scale(1.05);
}

.trust-widget-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.trust-widget-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748B;
  margin: 0;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .privacy-content-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .privacy-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .privacy-content-area {
    padding: 24px 18px;
  }
  .privacy-sidebar {
    grid-template-columns: 1fr;
  }
  .privacy-section-item {
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .privacy-item-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .privacy-hero-section {
    min-height: 250px;
    padding-top: 105px;
    padding-bottom: 35px;
    background-position: 85% center;
  }
  .privacy-hero-title {
    font-size: 32px;
  }
  .privacy-item-title {
    font-size: 16px;
  }
}

/* ==========================================================================
   COMMITTEE PAGE STYLES (100% VISUAL MATCH & ARCHIVE SYSTEM)
   ========================================================================== */

/* --- Committee Hero Banner --- */
.committee-hero-section {
  position: relative;
  background: #01040D url('assets/committee_hero_banner.jpg') no-repeat right center;
  background-size: cover;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding-top: 115px;
  padding-bottom: 45px;
  overflow: hidden;
}

.committee-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 4, 13, 0.94) 0%, rgba(1, 4, 13, 0.78) 42%, rgba(1, 4, 13, 0.1) 75%, transparent 100%);
  pointer-events: none;
}

.committee-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.committee-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E5A93C;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.committee-hero-tag .c-year-highlight {
  color: #F59E0B;
}

.committee-hero-tag .c-tag-sep {
  opacity: 0.6;
}

.committee-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin-bottom: 6px;
  line-height: 1.15;
  text-transform: uppercase;
}

.committee-title-divider {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.committee-title-divider .divider-star {
  color: #E5A93C;
  font-size: 14px;
}

.committee-hero-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 400;
}

.committee-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.committee-breadcrumb .breadcrumb-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.committee-breadcrumb .breadcrumb-link:hover {
  color: #E5A93C;
}

.committee-breadcrumb .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.55);
}

.committee-breadcrumb .breadcrumb-active {
  color: #E5A93C;
}

/* --- Main Committee Section --- */
.committee-main-section {
  padding: 55px 0 85px;
  background: #FAFAFA;
}

.committee-header-wrapper {
  text-align: center;
  margin-bottom: 25px;
}

.committee-year-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.committee-year-tag .c-line {
  width: 45px;
  height: 1.5px;
  background: #E5A93C;
}

.committee-year-tag .c-year {
  color: #D97706;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
}

.committee-main-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 900;
  color: #0B0E1E;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.committee-star-accent {
  color: #E5A93C;
  font-size: 13px;
}

/* --- Committee Toolbar (Active status, Archive dropdown, Admin btn) --- */
.committee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 12px 18px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.active-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
}

.active-status-badge.archived {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1;
}

.committee-members-count {
  font-size: 13px;
  color: #64748B;
  font-weight: 600;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Archive Dropdown */
.committee-archive-dropdown {
  position: relative;
}

.btn-archive-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-archive-dropdown:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

.btn-archive-dropdown .dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.btn-archive-dropdown[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.archive-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 230px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 6px 0;
}

.archive-dropdown-menu.show {
  display: block;
}

.archive-dropdown-header {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-years-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-year-item {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
}

.archive-year-item:hover {
  background: #F1F5F9;
  color: #B45309;
}

.archive-year-item.active {
  background: #FFFBEB;
  color: #D97706;
}

.archive-year-item .pill-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.archive-year-item .pill-badge.active {
  background: #059669;
  color: #FFFFFF;
}

.archive-year-item .pill-badge.archived {
  background: #E2E8F0;
  color: #475569;
}

/* Admin Trigger Button */
.btn-admin-manage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0B0E1E;
  color: #E5A93C;
  border: 1px solid #E5A93C;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-manage:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

/* --- 10 Member Cards Grid (5 Columns x 2 Rows) --- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.committee-card {
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(11, 14, 30, 0.12);
  border-color: #FCD34D;
}

.card-image-box {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  background-color: #090D1A;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-box .member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.committee-card:hover .card-image-box .member-photo {
  transform: scale(1.06);
}

.committee-card .card-body {
  padding: 14px 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}

.committee-card .member-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
  line-height: 1.3;
}

.committee-card .member-position {
  font-size: 12.5px;
  font-weight: 700;
  color: #D97706;
  margin-bottom: 8px;
  line-height: 1.25;
}

.committee-card .member-district {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.committee-card .member-district i {
  color: #94A3B8;
  font-size: 11px;
}

/* --- Admin Modal Styles --- */
.committee-admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.committee-admin-modal.active {
  display: flex;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(4px);
}

.admin-modal-card {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  border: 1px solid #CBD5E1;
}

.admin-modal-header {
  padding: 20px 24px;
  background: #0B0E1E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #E5A93C;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header-title i {
  font-size: 26px;
  color: #E5A93C;
}

.admin-header-title h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: #FFFFFF;
}

.admin-header-title p {
  font-size: 12px;
  color: #94A3B8;
  margin: 2px 0 0;
}

.btn-close-admin-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-admin-modal:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.admin-modal-tabs {
  display: flex;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
  padding: 0 16px;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #0F172A;
}

.admin-tab-btn.active {
  color: #D97706;
  border-bottom-color: #D97706;
  background: #FFFFFF;
}

.admin-tab-content {
  display: none;
  padding: 24px;
}

.admin-tab-content.active {
  display: block;
}

.admin-section-desc {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #1E40AF;
  margin-bottom: 18px;
}

.badge-active-demo {
  background: #059669;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
}

/* Admin Table */
.admin-committee-table-wrap {
  overflow-x: auto;
}

.admin-committee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-committee-table th,
.admin-committee-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
}

.admin-committee-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: #475569;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-status.active {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-status.archived {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.btn-make-active {
  background: #0B0E1E;
  color: #E5A93C;
  border: 1px solid #E5A93C;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-make-active:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

.btn-make-active:disabled {
  background: #E2E8F0;
  color: #94A3B8;
  border-color: #E2E8F0;
  cursor: default;
}

/* Add New Committee Form */
.admin-new-committee-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-new-committee-form .form-group {
  margin-bottom: 16px;
}

.admin-new-committee-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13.5px;
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: #D97706;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #1E293B;
}

.custom-checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: #D97706;
  cursor: pointer;
}

.admin-form-note {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #92400E;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-submit {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-admin-submit:hover {
  background: #B45309;
}

.btn-admin-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 11px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* System Rules Tab */
.system-rules-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 20px;
  border-radius: 8px;
}

.system-rules-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-rules-card ul {
  padding-left: 20px;
  margin: 0 0 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.system-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-system-reset {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-system-reset:hover {
  background: #DC2626;
  color: #FFFFFF;
}

/* --- Responsive Layout for Committee --- */
@media (max-width: 1100px) {
  .committee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .committee-hero-title {
    font-size: 32px;
  }
  .committee-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-right {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .committee-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MEMBERSHIP PAGE STYLES (100% MATCH WITH REFERENCE DESIGN)
   ========================================================= */
.membership-page-body {
  background-color: #050711;
  color: #E2E8F0;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* --- Hero Section (Seamless Background Matching Reference 100%) --- */
.membership-hero-section {
  position: relative;
  padding-top: 145px;
  padding-bottom: 75px;
  min-height: 600px;
  background: #050711 url('assets/membership_hero_seamless.jpg') no-repeat right center / cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.membership-hero-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.membership-hero-content {
  max-width: 560px;
  position: relative;
  z-index: 3;
}

.hero-cursive-tag {
  font-family: 'Alex Brush', cursive;
  font-size: 34px;
  color: #E5A93C;
  margin-bottom: 10px;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.membership-hero-title {
  margin: 0 0 16px;
}

.hero-title-main {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 46px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1.15;
}

.hero-title-sub {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 46px;
  font-weight: 900;
  color: #E5A93C;
  letter-spacing: 2px;
  line-height: 1.15;
  text-shadow: 0 0 25px rgba(229, 169, 60, 0.35);
}

.membership-hero-tags {
  font-size: 14px;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.membership-hero-tags span {
  color: #FFFFFF;
}

.membership-hero-desc {
  font-size: 15px;
  color: #94A3B8;
  line-height: 1.75;
  max-width: 530px;
  margin-bottom: 32px;
}

.btn-choose-membership {
  background: #E5A93C;
  color: #0B0E1E;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.3);
  text-decoration: none;
}

.btn-choose-membership:hover {
  background: #FBBF24;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 169, 60, 0.45);
}

.hero-magic-slogan {
  position: absolute;
  right: 25px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: 'Alex Brush', cursive;
  font-size: 34px;
  color: #E5A93C;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.slogan-star {
  font-size: 16px;
  color: #E5A93C;
  margin-top: 5px;
  align-self: center;
}

/* --- Plans Section --- */
.membership-plans-section {
  padding: 60px 0;
  background: #050711;
}

.plans-header-wrapper {
  margin-bottom: 45px;
}

.plans-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.plans-eyebrow .line {
  width: 32px;
  height: 1.5px;
  background: #E5A93C;
}

.plans-eyebrow .tag-text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #E5A93C;
  text-transform: uppercase;
}

.plans-main-title {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin: 0 0 12px;
}

.plans-main-title .highlight-gold {
  color: #E5A93C;
}

.plans-sub-desc {
  font-size: 14.5px;
  color: #94A3B8;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Pricing Grid */
/* Pricing Grid */
.membership-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* --- Single Membership Package Card --- */
.single-package-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.single-membership-card {
  position: relative;
  background: linear-gradient(145deg, #0F142A 0%, #080A15 100%);
  border: 2px solid #E5A93C;
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 169, 60, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.single-membership-card:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(229, 169, 60, 0.25);
  border-color: #FBBF24;
}

.single-card-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0B0E1E;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.single-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.single-card-left {
  text-align: left;
  border-right: 1px solid rgba(229, 169, 60, 0.18);
  padding-right: 36px;
}

.single-card-left .card-icon-wrap {
  font-size: 38px;
  color: #E5A93C;
  margin-bottom: 12px;
}

.single-card-left .plan-card-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.single-card-left .plan-card-tagline {
  font-size: 13.5px;
  color: #94A3B8;
  margin: 0 0 20px;
  line-height: 1.5;
}

.single-price-box {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 6px;
}

.single-price-box .currency-symbol {
  font-size: 30px;
  font-weight: 800;
  color: #E5A93C;
}

.single-price-box .price-amount {
  font-family: 'Cinzel', serif;
  font-size: 52px;
  font-weight: 900;
  color: #E5A93C;
  letter-spacing: 1px;
  line-height: 1;
}

.single-price-box .price-period {
  font-size: 16px;
  color: #CBD5E1;
  font-weight: 600;
}

.price-subtext {
  font-size: 12px;
  color: #A0AEC0;
  margin-bottom: 25px;
}

.btn-hero-checkout {
  padding: 16px 28px;
  font-size: 15px;
  letter-spacing: 1.5px;
  font-weight: 900;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  width: 100%;
}

.payment-accept-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.p-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bkash-pill {
  background: rgba(216, 34, 107, 0.18);
  color: #FF5E9C;
  border: 1px solid rgba(216, 34, 107, 0.4);
}

.nagad-pill {
  background: rgba(243, 112, 33, 0.18);
  color: #FFA05E;
  border: 1px solid rgba(243, 112, 33, 0.4);
}

.rocket-pill {
  background: rgba(140, 52, 148, 0.2);
  color: #D97DE6;
  border: 1px solid rgba(140, 52, 148, 0.45);
}

.upay-pill {
  background: rgba(0, 92, 158, 0.25);
  color: #60B8FF;
  border: 1px solid rgba(0, 92, 158, 0.5);
}

/* Right Perks */
.single-card-right .perks-heading {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  color: #E5A93C;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.single-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.single-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.perk-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.15);
  color: #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.perk-detail strong {
  display: block;
  font-size: 13.5px;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 2px;
}

.perk-detail span {
  display: block;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.4;
}

@media (max-width: 850px) {
  .single-card-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .single-card-left {
    border-right: none;
    border-bottom: 1px solid rgba(229, 169, 60, 0.18);
    padding-right: 0;
    padding-bottom: 28px;
  }
}

.membership-plan-card {
  position: relative;
  background: linear-gradient(180deg, #0F1326 0%, #080A15 100%);
  border: 1px solid rgba(229, 169, 60, 0.22);
  border-radius: 12px;
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.membership-plan-card:hover {
  transform: translateY(-8px);
  border-color: #E5A93C;
  box-shadow: 0 18px 45px rgba(229, 169, 60, 0.25);
}

.membership-plan-card.popular {
  border: 2px solid #E5A93C;
  box-shadow: 0 15px 40px rgba(229, 169, 60, 0.28);
  overflow: hidden;
}

.badge-popular {
  position: absolute;
  top: 14px;
  right: -32px;
  transform: rotate(45deg);
  background: #E5A93C;
  color: #0B0E1E;
  font-size: 10.5px;
  font-weight: 900;
  padding: 4px 34px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-icon-wrap {
  font-size: 32px;
  color: #E5A93C;
  margin-bottom: 14px;
}

.plan-card-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px;
  letter-spacing: 1px;
}

.plan-card-tagline {
  font-size: 12.5px;
  color: #94A3B8;
  margin: 0 0 16px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 20px;
}

.plan-price-box .currency-symbol {
  font-size: 22px;
  font-weight: 700;
  color: #E5A93C;
}

.plan-price-box .price-amount {
  font-family: 'Cinzel', serif;
  font-size: 34px;
  font-weight: 900;
  color: #E5A93C;
  letter-spacing: 0.5px;
}

.plan-price-box .price-period {
  font-size: 13px;
  color: #94A3B8;
}

.plan-price-box .price-period-note {
  font-size: 11.5px;
  color: #94A3B8;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features-list li:last-child {
  border-bottom: none;
}

.plan-features-list .check-gold {
  color: #E5A93C;
  font-size: 12px;
  flex-shrink: 0;
}

.plan-action-box {
  margin-top: auto;
}

.btn-plan-action {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn-outline-gold {
  background: transparent;
  color: #E5A93C;
  border: 1.5px solid #E5A93C;
}

.btn-outline-gold:hover {
  background: #E5A93C;
  color: #0B0E1E;
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.35);
}

.btn-filled-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0B0E1E;
  border: none;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.btn-filled-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

/* --- Benefits Bar --- */
.membership-benefits-section {
  padding: 10px 0 40px;
}

.membership-benefits-bar {
  background: #0B0E1E;
  border: 1px solid rgba(229, 169, 60, 0.28);
  border-radius: 12px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.benefits-badge-title {
  display: block;
  font-family: 'Cinzel', serif;
  color: #E5A93C;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.35;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  font-size: 22px;
  color: #E5A93C;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-text strong {
  display: block;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
}

.benefit-text span {
  display: block;
  color: #94A3B8;
  font-size: 11.5px;
}

/* --- Quote & FAQ Section --- */
.membership-quote-faq-section {
  padding: 20px 0 70px;
}

.quote-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

.magician-quote-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border: 1px solid rgba(229, 169, 60, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.magician-quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.quote-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 30, 0.2) 0%, rgba(11, 14, 30, 0.85) 75%, #0B0E1E 100%);
  z-index: 2;
}

.quote-text-content {
  position: relative;
  z-index: 3;
}

.quote-mark {
  font-family: 'Cinzel', serif;
  font-size: 60px;
  line-height: 1;
  color: #E5A93C;
  display: block;
  margin-bottom: -15px;
}

.quote-phrase {
  font-family: 'Alex Brush', cursive;
  font-size: 34px;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.quote-author {
  color: #E5A93C;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* FAQ Column */
.faq-main-heading {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #0B0E1E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: #E5A93C;
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
}

.faq-icon {
  color: #E5A93C;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 20px 16px;
}

.faq-answer p {
  color: #94A3B8;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

/* Footer Together Column */
.footer-together-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.together-cursive-slogan {
  font-family: 'Alex Brush', cursive;
  font-size: 26px;
  color: #E5A93C;
  margin: 0 0 2px;
  line-height: 1.2;
}

.together-star-accent {
  color: #E5A93C;
  font-size: 14px;
  margin-bottom: 14px;
}

.btn-join-yms-footer {
  border: 1.5px solid #E5A93C;
  color: #E5A93C;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-join-yms-footer:hover {
  background: #E5A93C;
  color: #0B0E1E;
}

.footer-logo-small {
  max-height: 52px;
  margin-bottom: 12px;
}

/* --- Membership Registration / Checkout Modal --- */
/* --- Membership Registration / Checkout Modal --- */
.membership-modal-card {
  max-width: 620px;
  background: #0B0E1E;
  border: 1.5px solid #E5A93C;
}

.modal-selected-plan-banner {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-plan-badge {
  background: #E5A93C;
  color: #0B0E1E;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
}

.selected-plan-tagline {
  font-size: 12px;
  color: #CBD5E1;
  display: block;
  margin-top: 3px;
}

.selected-plan-price-block {
  text-align: right;
}

.calculation-formula {
  font-size: 11.5px;
  color: #94A3B8;
  margin-bottom: 2px;
}

.modal-selected-plan-banner .modal-currency {
  font-size: 18px;
  color: #E5A93C;
  font-weight: 700;
}

.modal-selected-plan-banner .modal-price {
  font-size: 26px;
  color: #E5A93C;
  font-weight: 800;
  font-family: 'Cinzel', serif;
}

.modal-selected-plan-banner .modal-period {
  font-size: 12px;
  color: #94A3B8;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.membership-modal-card .form-input {
  background: #111528;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.membership-modal-card .form-input:focus {
  border-color: #E5A93C;
  outline: none;
}

/* Duration Pills */
.year-selection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.btn-year-pill {
  background: #111528;
  border: 1.5px solid rgba(229, 169, 60, 0.25);
  border-radius: 8px;
  padding: 10px 4px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-year-pill:hover {
  border-color: #E5A93C;
  background: rgba(229, 169, 60, 0.1);
}

.btn-year-pill.active {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.25) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: #E5A93C;
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.3);
}

.btn-year-pill .pill-yr {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.btn-year-pill.active .pill-yr {
  color: #FBBF24;
}

.btn-year-pill .pill-cost {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
}

.btn-year-pill.active .pill-cost {
  color: #FFFFFF;
}

/* Payment Gateway Choices Grid */
.payment-method-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-pm-choice {
  background: #111528;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-pm-choice:hover {
  transform: translateY(-2px);
}

.btn-pm-choice .pm-logo-icon {
  font-size: 20px;
}

.btn-pm-choice .pm-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.btn-pm-choice .pm-bn {
  font-size: 10.5px;
  color: #94A3B8;
}

/* bKash active */
.bkash-choice .pm-logo-icon { color: #E2136E; }
.btn-pm-choice.bkash-choice.active {
  border-color: #E2136E;
  background: rgba(226, 19, 110, 0.15);
  box-shadow: 0 0 15px rgba(226, 19, 110, 0.3);
}
.btn-pm-choice.bkash-choice.active .pm-title { color: #FF66A3; }

/* Nagad active */
.nagad-choice .pm-logo-icon { color: #F37021; }
.btn-pm-choice.nagad-choice.active {
  border-color: #F37021;
  background: rgba(243, 112, 33, 0.15);
  box-shadow: 0 0 15px rgba(243, 112, 33, 0.3);
}
.btn-pm-choice.nagad-choice.active .pm-title { color: #FF9B5E; }

/* Rocket active */
.rocket-choice .pm-logo-icon { color: #8C3494; }
.btn-pm-choice.rocket-choice.active {
  border-color: #A855F7;
  background: rgba(140, 52, 148, 0.18);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.btn-pm-choice.rocket-choice.active .pm-title { color: #C084FC; }

/* Upay active */
.upay-choice .pm-logo-icon { color: #0088D6; }
.btn-pm-choice.upay-choice.active {
  border-color: #0088D6;
  background: rgba(0, 136, 214, 0.18);
  box-shadow: 0 0 15px rgba(0, 136, 214, 0.3);
}
.btn-pm-choice.upay-choice.active .pm-title { color: #60B8FF; }

.modal-payment-guide {
  background: rgba(229, 169, 60, 0.08);
  border: 1px dashed rgba(229, 169, 60, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.payment-guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E5A93C;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 700;
}

.guide-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(229, 169, 60, 0.2);
}

.guide-target-number {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.target-lbl {
  font-size: 11.5px;
  color: #94A3B8;
}

.target-val {
  font-family: 'Cinzel', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #E5A93C;
  letter-spacing: 1px;
}

.target-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(229, 169, 60, 0.2);
  color: #FBBF24;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-copy-target-num {
  background: #E5A93C;
  color: #0B0E1E;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-copy-target-num:hover {
  background: #FBBF24;
}

.payment-instructions-text {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0 0 10px;
}

.trx-group {
  margin-bottom: 0;
}

/* ============================================================
   OFFICIAL YMS MEMBERSHIP ID CARD MODAL & STYLES
   ============================================================ */
.membership-card-modal-container {
  max-width: 650px;
  background: #090B18;
  border: 2px solid #E5A93C;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(229, 169, 60, 0.25);
}

.success-sparkle-icon {
  font-size: 36px;
  color: #E5A93C;
  margin-bottom: 8px;
  animation: pulseSparkle 2s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(229, 169, 60, 0.4)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 16px rgba(229, 169, 60, 0.9)); }
}

.card-success-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 4px;
  letter-spacing: 1px;
}

.card-success-sub {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 24px;
}

.id-card-wrapper-outer {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* The actual Card Canvas */
.yms-id-card {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 85.6 / 53.98; /* Standard ID-1 Credit Card ratio */
  background: linear-gradient(135deg, #0D1022 0%, #060812 50%, #151A36 100%);
  border: 2px solid #E5A93C;
  border-radius: 16px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(229, 169, 60, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.id-card-glow-bg {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.18) 0%, rgba(229, 169, 60, 0) 70%);
  pointer-events: none;
}

.id-card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  width: 220px;
  pointer-events: none;
  user-select: none;
}

.id-card-watermark img {
  width: 100%;
}

/* Top Bar */
.id-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 169, 60, 0.3);
  padding-bottom: 8px;
  position: relative;
  z-index: 2;
}

.id-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.id-card-logo {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.id-org-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 1px;
  line-height: 1.2;
}

.id-org-sub {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #E5A93C;
  letter-spacing: 1px;
}

.id-verified-stamp {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0B0E1E;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Main Content */
.id-card-main-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0;
  position: relative;
  z-index: 2;
}

.id-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.id-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A213D 0%, #0F1326 100%);
  border: 2px solid #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #E5A93C;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.id-member-type-badge {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #0B0E1E;
  background: #E5A93C;
  padding: 2px 6px;
  border-radius: 3px;
}

.id-details-box {
  flex-grow: 1;
  text-align: left;
}

.id-member-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 900;
  color: #FBBF24;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.id-number-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.id-number-pill .lbl {
  font-size: 9px;
  font-weight: 800;
  color: #E5A93C;
}

.id-number-pill .val {
  font-family: monospace;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.id-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
}

.id-info-item {
  font-size: 10px;
  line-height: 1.35;
}

.id-info-item .i-lbl {
  color: #94A3B8;
  font-weight: 600;
  margin-right: 3px;
}

.id-info-item .i-val {
  color: #FFFFFF;
  font-weight: 700;
}

.id-qr-seal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.id-qr-code-wrap {
  background: #FFFFFF;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.svg-qr-code {
  display: block;
}

.qr-label {
  font-size: 7.5px;
  font-weight: 800;
  color: #E5A93C;
  letter-spacing: 1px;
}

/* Bottom Bar */
.id-card-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(229, 169, 60, 0.2);
  padding-top: 6px;
  position: relative;
  z-index: 2;
}

.id-signature-box {
  text-align: center;
}

.sig-script {
  display: block;
  font-family: 'Alex Brush', cursive;
  font-size: 17px;
  color: #E5A93C;
  line-height: 1;
}

.sig-title {
  display: block;
  font-size: 8px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.id-security-crest {
  font-size: 8.5px;
  font-weight: 700;
  color: #E5A93C;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Action Buttons Grid */
.card-actions-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 10px;
}

.btn-card-action {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.btn-gold-download {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0B0E1E;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-gold-download:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  transform: translateY(-2px);
}

.btn-outline-print {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-print:hover {
  border-color: #E5A93C;
  color: #E5A93C;
}

.btn-outline-copy {
  background: transparent;
  color: #E5A93C;
  border: 1.5px solid #E5A93C;
}

.btn-outline-copy:hover {
  background: rgba(229, 169, 60, 0.15);
}

.btn-subtle-close {
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  border: none;
}

.btn-subtle-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Print modal styling when modal print is invoked */
@media print {
  body.modal-print-active #page,
  body.modal-print-active header,
  body.modal-print-active footer {
    display: none !important;
  }
  .card-modal-header,
  .btn-modal-close,
  .card-actions-grid {
    display: none !important;
  }
  .yms-id-card {
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    border: 2px solid #E5A93C !important;
    page-break-inside: avoid;
  }
}

/* --- Responsive Breakpoints for Membership --- */
@media (max-width: 1100px) {
  .membership-plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .membership-benefits-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }
}

@media (max-width: 850px) {
  .membership-hero-section {
    background-position: 70% center;
    padding-top: 135px;
  }
  .membership-hero-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-magic-slogan {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 30px;
    align-self: flex-end;
  }
  .quote-faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .membership-plans-grid {
    grid-template-columns: 1fr;
  }
  .hero-title-main,
  .hero-title-sub {
    font-size: 34px;
  }
  .hero-cursive-tag {
    font-size: 26px;
  }
  .membership-benefits-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .quote-phrase {
    font-size: 26px;
  }
}

/* =========================================================
   CONTACT US PAGE STYLING (100% MATCH WITH REFERENCE DESIGN)
   ========================================================= */
.contact-page-body {
  background-color: #FFFFFF;
}

/* --- Hero Section --- */
.contact-hero-section {
  position: relative;
  background-color: #030611;
  background-image: linear-gradient(to right, rgba(3, 6, 17, 0.95) 0%, rgba(3, 6, 17, 0.88) 38%, rgba(3, 6, 17, 0.25) 70%, rgba(3, 6, 17, 0) 100%), url('assets/contact-hero-bg.jpg');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 135px;
  padding-bottom: 52px;
  min-height: 290px;
  display: flex;
  align-items: center;
}

.contact-hero-container {
  width: 100%;
}

.contact-hero-content {
  max-width: 530px;
  z-index: 2;
}

.contact-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.contact-hero-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.contact-hero-divider .divider-line {
  width: 54px;
  height: 1.5px;
  background: #E5A93C;
}

.contact-hero-divider .divider-star {
  color: #E5A93C;
  font-size: 13px;
  line-height: 1;
}

.contact-hero-desc {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 480px;
}

.contact-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.contact-breadcrumbs .bc-link {
  color: #FFFFFF;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.contact-breadcrumbs .bc-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-breadcrumbs .bc-sep {
  color: rgba(255, 255, 255, 0.55);
}

.contact-breadcrumbs .bc-active {
  color: #E5A93C;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(229, 169, 60, 0.4);
}

/* --- Main Contact Section --- */
.contact-main-section {
  background-color: #FFFFFF;
  padding: 55px 0 75px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.05fr;
  gap: 36px;
  align-items: stretch;
}

.contact-col {
  display: flex;
  flex-direction: column;
}

.contact-col-title {
  font-family: var(--font-main);
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.contact-col-accent {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
}

.contact-col-accent .acc-bar {
  width: 34px;
  height: 2px;
  background: #E5A93C;
}

.contact-col-accent .acc-star {
  color: #E5A93C;
  font-size: 11px;
  line-height: 1;
}

/* --- Column 1: Info List --- */
.contact-info-list {
  display: flex;
  flex-direction: column;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

.contact-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #0D1424;
  color: #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(13, 20, 36, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-info-row:hover .contact-icon-badge {
  transform: scale(1.08);
  background: #15223C;
}

.contact-info-text {
  flex: 1;
}

.contact-info-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 3px;
}

.contact-info-val {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.contact-info-val a {
  color: #475569;
  transition: color 0.2s ease;
}

.contact-info-val a:hover {
  color: #B87D18;
  text-decoration: underline;
}

/* --- Column 2: Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
}

.contact-input {
  width: 100%;
  background: #FAFAFA;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13.5px;
  color: #1E293B;
  transition: all 0.25s ease;
}

.contact-input::placeholder {
  color: #94A3B8;
}

.contact-input:focus {
  background: #FFFFFF;
  border-color: #E5A93C;
  box-shadow: 0 0 0 3.5px rgba(229, 169, 60, 0.16);
  outline: none;
}

.contact-textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.btn-contact-submit {
  background: #0B1220;
  color: #FFFFFF;
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 6px;
  padding: 12px 34px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.2);
}

.btn-contact-submit:hover {
  background: #141F38;
  border-color: #E5A93C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 169, 60, 0.25);
}

/* --- Column 3: Promo Card Widget --- */
.contact-promo-card {
  background: radial-gradient(circle at 50% 20%, #0D1A33 0%, #060B17 100%);
  border: 1px solid rgba(229, 169, 60, 0.45);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.promo-card-content {
  padding: 24px 20px 6px;
  text-align: center;
}

.promo-card-emblem {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  padding: 3px;
  background: #091021;
  border: 2px solid #E5A93C;
  box-shadow: 0 0 14px rgba(229, 169, 60, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-card-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-card-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  line-height: 1.35;
  margin: 0 0 4px;
}

.promo-card-tagline {
  font-family: 'Alex Brush', cursive;
  font-size: 24px;
  color: #E5A93C;
  font-weight: normal;
  margin: 2px 0 8px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(229, 169, 60, 0.35);
}

.promo-card-star-divider {
  margin: 0 0 10px;
}

.promo-card-star-divider .pc-star {
  color: #E5A93C;
  font-size: 11px;
}

.promo-card-desc {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 270px;
}

.promo-card-visual {
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

.promo-card-img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: bottom center;
  max-height: 250px;
}

/* --- Responsive Breakpoints for Contact Us Page --- */
@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .contact-col-card {
    grid-column: span 2;
    max-width: 460px;
    margin: 10px auto 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-hero-section {
    padding-top: 125px;
    padding-bottom: 40px;
    background-position: 75% center;
  }
  .contact-hero-title {
    font-size: 30px;
  }
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-col-card {
    grid-column: auto;
    max-width: 100%;
  }
  .contact-form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-submit-wrap {
    justify-content: stretch;
  }
  .btn-contact-submit {
    width: 100%;
  }
}

/* =========================================================
   MEMBER DASHBOARD STYLING (100% MATCH WITH REFERENCE DESIGN)
   ========================================================= */
.dashboard-page-body {
  background-color: #060913;
  color: #E2E8F0;
}

/* --- Hero Section --- */
.dashboard-hero-section {
  position: relative;
  background-color: #050814;
  padding-top: 130px;
  padding-bottom: 35px;
  min-height: 275px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.15);
}

.dashboard-hero-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.dashboard-hero-content {
  max-width: 530px;
}

.dashboard-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin: 4px 0 10px;
}

.dashboard-hero-title .hero-title-main {
  color: #FFFFFF;
  display: block;
}

.dashboard-hero-title .hero-title-sub {
  color: #E5A93C;
  display: block;
  text-shadow: 0 0 14px rgba(229, 169, 60, 0.35);
}

.dashboard-hero-tagline {
  font-size: 14.5px;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.dashboard-hero-desc {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 440px;
}

.dashboard-hero-visual-box {
  flex-shrink: 0;
  max-width: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(229, 169, 60, 0.25);
}

.dashboard-hero-magic-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* --- Main Dashboard Workspace --- */
.dashboard-main-section {
  background-color: #060913;
  padding: 40px 0 60px;
}

.dashboard-layout-grid {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 28px;
  align-items: start;
}

/* --- Sidebar --- */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-sidebar-menu {
  background: #0B1122;
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: #CBD5E1;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.sidebar-nav-btn i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.2s ease;
}

.sidebar-nav-btn:hover {
  background: rgba(229, 169, 60, 0.12);
  color: #E5A93C;
}

.sidebar-nav-btn:hover i {
  color: #E5A93C;
}

.sidebar-nav-btn.active {
  background: #E5A93C;
  color: #0B1122;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.35);
}

.sidebar-nav-btn.active i {
  color: #0B1122;
}

.sidebar-nav-btn.btn-sidebar-logout {
  color: #F87171;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  padding-top: 12px;
}

.sidebar-nav-btn.btn-sidebar-logout i {
  color: #F87171;
}

.sidebar-nav-btn.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.sidebar-nav-btn.btn-sidebar-logout:hover i {
  color: #EF4444;
}

.sidebar-slogan-box {
  text-align: center;
  padding: 12px 10px 0;
}

.sidebar-cursive-slogan {
  font-family: 'Alex Brush', cursive;
  font-size: 20px;
  color: #E5A93C;
  margin-bottom: 2px;
  line-height: 1.1;
}

.sidebar-star-accent {
  color: #E5A93C;
  font-size: 10px;
}

.demo-member-switcher-box {
  background: rgba(11, 17, 34, 0.95);
  border: 1px dashed rgba(229, 169, 60, 0.4);
  border-radius: 8px;
  padding: 12px;
  margin-top: 5px;
}

.switcher-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E5A93C;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-member-select {
  width: 100%;
  background: #080D1A;
  color: #E5A93C;
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 11.5px;
  margin: 7px 0 5px;
  cursor: pointer;
}

.switcher-hint {
  font-size: 10.5px;
  color: #94A3B8;
  line-height: 1.4;
  margin: 0;
}

/* --- Content Area & Cards --- */
.dashboard-content-area {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dashboard-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Dynamic Status Banners */
.yms-dashboard-status-banner {
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yms-dashboard-status-banner.pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.18);
}

.yms-dashboard-status-banner.inactive {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.18);
}

.yms-dashboard-status-banner.approved {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1.5px solid #22c55e;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.18);
}

.status-banner-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.status-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #ffffff;
}

.status-banner-icon.bg-amber { background: #f59e0b; }
.status-banner-icon.bg-red { background: #ef4444; }
.status-banner-icon.bg-green { background: #22c55e; font-size: 22px; }

.status-banner-heading {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.status-banner-heading.text-amber { color: #92400e; }
.status-banner-heading.text-red { color: #991b1b; }
.status-banner-heading.text-green { color: #14532d; }

.status-banner-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}

.status-banner-desc.text-amber-dark { color: #78350f; }
.status-banner-desc.text-red-dark { color: #7f1d1d; }
.status-banner-desc.text-green-dark { color: #166534; }

.status-banner-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.status-banner-sub.text-amber { color: #92400e; }
.status-banner-sub.text-red { color: #991b1b; }

.status-banner-badge-wrap {
  flex-shrink: 0;
}

.status-badge-pill {
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
}

.status-badge-pill.bg-amber-badge { background: #b45309; }
.status-badge-pill.bg-red-badge { background: #dc2626; }
.status-badge-pill.bg-green-badge { background: #15803d; }

.dashboard-card {
  background: #090E1C;
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Card 1: Profile Summary */
.member-profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.member-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 2.5px solid #E5A93C;
  padding: 3px;
  box-shadow: 0 0 18px rgba(229, 169, 60, 0.35);
  cursor: pointer;
}

.member-avatar-wrapper:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  background: rgba(7, 7, 10, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fde68a;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
  backdrop-filter: blur(2px);
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.member-crown-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  background: #E5A93C;
  color: #0B1122;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #090E1C;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.dash-member-name {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.dash-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 4px;
}

.dash-meta-item i {
  color: #E5A93C;
  width: 14px;
  font-size: 12px;
}

.dash-meta-item strong {
  color: #CBD5E1;
  font-weight: 600;
}

.member-id-highlight {
  color: #E5A93C;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.member-status-wrapper {
  margin-top: 8px;
}

.member-active-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.member-active-status-pill .status-dot {
  font-size: 10px;
}

.member-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-code-frame {
  background: #FFFFFF;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(229, 169, 60, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.qr-code-frame:hover {
  transform: scale(1.05);
}

.qr-code-img {
  width: 72px;
  height: 72px;
  display: block;
}

.btn-scan-verify {
  background: transparent;
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #CBD5E1;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-scan-verify:hover {
  border-color: #E5A93C;
  color: #E5A93C;
}

/* Card 2: Membership Details */
.dash-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-card-header .header-icon {
  color: #E5A93C;
  font-size: 16px;
}

.dash-card-title {
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0;
}

.membership-details-body {
  display: grid;
  grid-template-columns: 125px 1fr 135px;
  gap: 22px;
  align-items: center;
}

.gold-card-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(229, 169, 60, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.gold-card-img {
  width: 100%;
  display: block;
}

.details-meta-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.meta-title-label {
  display: block;
  font-size: 11.5px;
  color: #94A3B8;
  margin-bottom: 2px;
}

.meta-value-text {
  font-size: 13.5px;
  color: #FFFFFF;
  font-weight: 700;
}

.meta-value-text.price-text {
  color: #E5A93C;
  font-size: 16px;
  font-family: 'Cinzel', serif;
}

.details-crest-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 16px;
}

.gold-crest-frame {
  width: 78px;
  height: 78px;
  margin-bottom: 6px;
}

.gold-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crest-cursive-welcome {
  font-family: 'Alex Brush', cursive;
  font-size: 18px;
  color: #E5A93C;
  line-height: 1.1;
  margin: 0 0 2px;
}

.crest-star {
  color: #E5A93C;
  font-size: 10px;
}

/* Card 3: Transaction History Table */
.table-responsive {
  overflow-x: auto;
}

.dash-transaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dash-transaction-table th {
  text-align: left;
  padding: 10px 14px;
  color: #94A3B8;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-transaction-table td {
  padding: 12px 14px;
  color: #CBD5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-transaction-table .amount-val {
  color: #E5A93C;
  font-weight: 700;
}

.dash-transaction-table .ledger-date-cell {
  vertical-align: middle;
}

.dash-transaction-table .ledger-datetime {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-transaction-table .ledger-day-date {
  color: #F1F5F9;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dash-transaction-table .ledger-day-date i {
  color: #E5A93C;
  font-size: 13px;
}

.dash-transaction-table .ledger-time-text {
  font-size: 11.5px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
}

.dash-transaction-table .ledger-time-text i {
  color: #E5A93C;
  font-size: 11px;
}

.badge-completed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.btn-invoice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
  font-size: 12px;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-invoice:hover {
  color: #E5A93C;
}

/* Other Tab Inner Forms */
.dash-inner-form .form-label {
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.dash-inner-form .form-input {
  background: #0D152A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
}

.dash-inner-form .form-input:focus {
  border-color: #E5A93C;
  outline: none;
}

.btn-save-profile {
  background: #E5A93C;
  color: #0B1122;
  font-weight: 700;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-save-profile:hover {
  background: #F59E0B;
  transform: translateY(-2px);
}

.certificate-box {
  background: #0B1224;
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.cert-gold-badge {
  font-size: 36px;
  color: #E5A93C;
  margin-bottom: 8px;
}

.btn-cert-download {
  background: #E5A93C;
  color: #0B1122;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-cert-download.cert-locked {
  background: #475569 !important;
  color: #cbd5e1 !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

.btn-cert-download.cert-locked:hover {
  background: #334155 !important;
  transform: none !important;
}

/* Bottom CTA Banner */
.dashboard-cta-section {
  background: #060913;
  padding-bottom: 50px;
}

.dashboard-cta-banner {
  background: linear-gradient(90deg, #0B1224 0%, #070B16 100%);
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.cta-hat-img {
  width: 58px;
  height: auto;
  display: block;
}

.cta-text-col {
  flex: 1;
}

.cta-cursive-slogan {
  font-family: 'Alex Brush', cursive;
  font-size: 24px;
  color: #E5A93C;
  line-height: 1.1;
  margin: 0 0 2px;
}

.cta-desc-sub {
  font-size: 13px;
  color: #CBD5E1;
  margin: 0;
}

.btn-join-next-event {
  background: #E5A93C;
  color: #0B1122;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.3);
}

.btn-join-next-event:hover {
  background: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 169, 60, 0.4);
}

/* QR Modal Specific */
.qr-modal-card {
  max-width: 380px;
}

.qr-verify-body {
  text-align: center;
  padding: 15px 10px;
}

.modal-qr-big {
  width: 140px;
  height: 140px;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
  border: 2px solid #E5A93C;
  padding: 6px;
  background: #FFFFFF;
}

.qr-verified-info h4 {
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.qr-verified-info p {
  font-size: 13px;
  color: #CBD5E1;
  margin-bottom: 4px;
}

.gold-txt {
  color: #E5A93C;
  font-weight: 700;
}

.badge-status-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  margin-top: 10px;
}

/* Dynamic Active Chip in Navbar */
.btn-member-login.active-chip {
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid #E5A93C;
  color: #FFFFFF;
}

/* --- Responsive Breakpoints for Dashboard --- */
@media (max-width: 992px) {
  .dashboard-layout-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dashboard-hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .dashboard-hero-content {
    max-width: 100%;
    text-align: center;
  }
  .dashboard-hero-visual-box {
    align-self: center;
    max-width: min(320px, 90vw);
  }
  .membership-details-body {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .details-card-image-col {
    margin: 0 auto;
    max-width: 160px;
  }
  .details-crest-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
  }
  .dashboard-cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .dashboard-card.member-profile-card,
  .member-profile-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .member-avatar-col {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto 14px auto !important;
  }
  .member-info-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .id-card-stage-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px auto 0 auto !important;
    gap: 24px !important;
  }
  .id-card-perspective-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 768px) {
  /* Hero Section for Dashboard on Mobile */
  .dashboard-hero-section {
    padding-top: 85px !important;
    padding-bottom: 25px !important;
    min-height: auto !important;
    overflow: hidden !important;
  }
  body.admin-bar .dashboard-hero-section {
    padding-top: calc(60px + 46px + 12px) !important;
  }
  .dashboard-hero-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .dashboard-hero-content {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  .hero-cursive-tag {
    font-size: 26px !important;
    margin-bottom: 2px !important;
    text-align: center !important;
    display: block !important;
  }
  .dashboard-hero-title {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    letter-spacing: 0.8px !important;
    line-height: 1.15 !important;
    margin: 4px 0 8px !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .dashboard-hero-title .hero-title-main,
  .dashboard-hero-title .hero-title-sub {
    display: block !important;
    text-align: center !important;
  }
  .dashboard-hero-tagline {
    font-size: 13.5px !important;
    text-align: center !important;
    margin-bottom: 6px !important;
  }
  .dashboard-hero-desc {
    font-size: 12px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 8px !important;
    margin: 0 auto !important;
  }
  .dashboard-hero-visual-box {
    max-width: min(290px, 88vw) !important;
    width: 100% !important;
    margin: 0 auto !important;
    align-self: center !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  }

  /* Workspace & Card Containers */
  .dashboard-main-section {
    padding: 20px 0 45px !important;
  }
  .dashboard-main-section .container {
    padding: 0 12px !important;
    max-width: 100% !important;
  }
  .dashboard-card {
    padding: 18px 14px !important;
    border-radius: 10px !important;
  }

  /* Status Banner Mobile Adaptation */
  .yms-dashboard-status-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 14px !important;
    gap: 12px !important;
    border-radius: 10px !important;
    margin-bottom: 18px !important;
  }
  .yms-dashboard-status-banner > div:first-child {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .yms-dashboard-status-banner > div:last-child {
    align-self: flex-start !important;
  }

  /* Profile Summary Card */
  .member-profile-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 18px 14px !important;
    gap: 16px !important;
  }
  .member-avatar-col {
    margin: 0 auto !important;
  }
  .member-info-col {
    width: 100% !important;
    text-align: center !important;
  }
  .dash-member-name {
    font-size: 19px !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }
  .dash-meta-item {
    justify-content: center !important;
    font-size: 12px !important;
    flex-wrap: wrap !important;
  }
  .member-qr-col {
    margin: 0 auto !important;
  }

  /* Card Action Toolbar (PDF, PNG, Flip, Print) */
  .id-card-actions-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 14px !important;
    width: 100% !important;
  }
  .btn-download-pdf {
    flex: 1 1 100% !important;
    justify-content: center !important;
    font-size: 12px !important;
    padding: 10px 14px !important;
    order: -1 !important;
  }
  .btn-flip-card,
  .btn-print-card,
  .btn-download-png {
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center !important;
    font-size: 11px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* CR80 Smart ID Card Stage on Mobile */
  .id-card-stage-container {
    padding: 14px 0 !important;
    gap: 20px !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .id-card-perspective-wrapper {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  .yms-cr80-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 320 / 508 !important;
    box-sizing: border-box !important;
  }

  /* Pending / Inactive Notice Flow */
  .pending-notice-box {
    flex-direction: column !important;
    padding: 16px 14px !important;
    gap: 12px !important;
  }
  .pending-badge-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
  }
  .pending-title {
    font-size: 15.5px !important;
    line-height: 1.35 !important;
  }
  .pending-steps-flow {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .pending-steps-flow .step-arrow {
    transform: rotate(90deg) !important;
    margin-left: 16px !important;
  }
  .step-pill {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* Responsive Transaction Table */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .dash-transaction-table {
    min-width: 480px !important;
  }
}

@media (max-width: 650px) {
  .meta-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   11. MEMBERS DIRECTORY PAGE STYLING (members.html)
   ========================================================================== */
.members-page-body {
  background-color: #0E0720;
  color: #E2E8F0;
  font-family: var(--font-body);
}

.members-hero-section {
  position: relative;
  padding: 85px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(106, 27, 154, 0.45) 0%, rgba(14, 7, 32, 0.95) 75%),
              url('assets/hero_bg.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.members-hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.members-hero-cursive {
  font-family: 'Alex Brush', cursive;
  color: #F5C358;
  font-size: 36px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(229, 169, 60, 0.4);
}

.members-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.members-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto 16px;
  max-width: 240px;
}

.members-hero-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E5A93C, transparent);
}

.members-hero-divider .star {
  color: #F5C358;
  font-size: 14px;
}

.members-hero-desc {
  font-size: 15.5px;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 20px;
}

.members-hero-stats {
  display: inline-flex;
  gap: 25px;
  background: rgba(26, 14, 56, 0.7);
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid rgba(229, 169, 60, 0.3);
  margin-bottom: 20px;
}

.m-stat-item {
  font-size: 13.5px;
  color: #E2E8F0;
}

.m-stat-item strong {
  color: #E5A93C;
  font-weight: 700;
}

.members-breadcrumb {
  font-size: 13px;
  color: #94A3B8;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.members-breadcrumb a {
  color: #E5A93C;
  text-decoration: none;
}

.members-breadcrumb a:hover {
  text-decoration: underline;
}

/* Members Controls Bar */
.members-main-section {
  padding: 50px 0 80px;
}

.members-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(22, 11, 48, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.25);
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 35px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.members-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.m-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-tab-btn:hover {
  background: rgba(229, 169, 60, 0.15);
  border-color: #E5A93C;
  color: #F5C358;
}

.m-tab-btn.active {
  background: linear-gradient(135deg, #E5A93C 0%, #D49228 100%);
  color: #0E0720;
  border-color: #F5C358;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(229, 169, 60, 0.35);
}

.members-search-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.m-search-input, .m-district-select {
  background: rgba(14, 7, 32, 0.8);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease;
}

.m-search-input:focus, .m-district-select:focus {
  border-color: #E5A93C;
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.3);
}

.m-district-select {
  cursor: pointer;
}

/* Members Grid */
.members-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.member-dir-card {
  background: rgba(22, 11, 48, 0.75);
  border: 1px solid rgba(229, 169, 60, 0.2);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-dir-card:hover {
  transform: translateY(-6px);
  border-color: #E5A93C;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 18px rgba(229, 169, 60, 0.25);
}

.member-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-lifetime {
  background: linear-gradient(135deg, #F59E0B, #B45309);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-executive {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #FFFFFF;
}

.badge-general {
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

.member-avatar-box {
  position: relative;
  width: 105px;
  height: 105px;
  margin: 10px auto 14px;
  border-radius: 10px;
  padding: 3px;
  background: linear-gradient(135deg, #E5A93C, #78350F);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 12px rgba(229, 169, 60, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-dir-card:hover .member-avatar-box {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(229, 169, 60, 0.35);
}

.member-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.member-dir-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.member-dir-id {
  font-family: monospace;
  font-size: 11.5px;
  color: #F5C358;
  background: rgba(229, 169, 60, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid rgba(229, 169, 60, 0.2);
}

.member-dir-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 12.5px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.member-dir-meta li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.member-dir-meta li i {
  color: #E5A93C;
  font-size: 11px;
}

.btn-view-profile {
  margin-top: auto;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #E5A93C;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view-profile:hover {
  background: #E5A93C;
  color: #0E0720;
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.3);
}

/* ==========================================================================
   12. NOTICES & UPDATES PAGE STYLING (notices.html)
   ========================================================================== */
.notices-page-body {
  background-color: #0E0720;
  color: #E2E8F0;
  font-family: var(--font-body);
}

.notices-hero-section {
  position: relative;
  padding: 85px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.35) 0%, rgba(14, 7, 32, 0.95) 75%),
              url('assets/news_hero_banner.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.notices-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notice-item-card {
  background: rgba(22, 11, 48, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.2);
  border-left: 4px solid #E5A93C;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.notice-item-card.urgent {
  border-left-color: #EF4444;
}

.notice-item-card:hover {
  transform: translateX(4px);
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.notice-date-box {
  min-width: 72px;
  background: rgba(14, 7, 32, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.notice-date-box .n-day {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 800;
  color: #E5A93C;
  line-height: 1;
}

.notice-date-box .n-month {
  font-size: 11px;
  text-transform: uppercase;
  color: #CBD5E1;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 3px;
}

.notice-content-col {
  flex: 1;
}

.notice-header-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.notice-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-urgent-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-dept-tag {
  background: rgba(229, 169, 60, 0.12);
  color: #F5C358;
  border: 1px solid rgba(229, 169, 60, 0.3);
}

.notice-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.4;
}

.notice-excerpt {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
}

.notice-actions-col {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-notice-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #E2E8F0;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-notice-action:hover {
  background: rgba(229, 169, 60, 0.15);
  color: #E5A93C;
  border-color: #E5A93C;
}

.btn-notice-action.primary {
  background: linear-gradient(135deg, #E5A93C, #D49228);
  color: #0E0720;
  border: none;
  font-weight: 700;
}

.btn-notice-action.primary:hover {
  background: #F59E0B;
}

/* ==========================================================================
   13. FORMS & APPLICATIONS PAGE STYLING (forms.html)
   ========================================================================== */
.forms-page-body {
  background-color: #0E0720;
  color: #E2E8F0;
  font-family: var(--font-body);
}

.forms-hero-section {
  position: relative;
  padding: 85px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(106, 27, 154, 0.4) 0%, rgba(14, 7, 32, 0.95) 75%),
              url('assets/membership_hero.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.forms-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.pdf-download-card {
  background: rgba(22, 11, 48, 0.8);
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s ease;
}

.pdf-download-card:hover {
  border-color: #E5A93C;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.pdf-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
  font-size: 22px;
  flex-shrink: 0;
}

.pdf-info-box h4 {
  font-size: 15px;
  color: #FFFFFF;
  margin: 0 0 4px;
  font-weight: 700;
}

.pdf-info-box p {
  font-size: 12px;
  color: #94A3B8;
  margin: 0 0 10px;
}

.btn-pdf-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #E5A93C;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn-pdf-dl:hover {
  text-decoration: underline;
}

/* Interactive Online Application Portal */
.online-form-container {
  background: rgba(22, 11, 48, 0.9);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 14px;
  padding: 35px 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.form-tabs-header {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.f-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.f-tab-btn.active {
  background: linear-gradient(135deg, #E5A93C 0%, #D49228 100%);
  color: #0E0720;
  border-color: #F5C358;
  font-weight: 700;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
}

.yms-input, .yms-select, .yms-textarea {
  background: rgba(14, 7, 32, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.25);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.25s ease;
  font-family: inherit;
}

.yms-input:focus, .yms-select:focus, .yms-textarea:focus {
  border-color: #E5A93C;
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.25);
}

.btn-yms-submit {
  background: linear-gradient(135deg, #E5A93C 0%, #F59E0B 100%);
  color: #0E0720;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.35);
}

.btn-yms-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.5);
  background: #F5C358;
}

/* ==========================================================================
   14. IN MEMORY (WE MISS THEM) PAGE STYLING (in-memory.html)
   ========================================================================== */
.memory-page-body {
  background-color: #0A0417;
  color: #E2E8F0;
  font-family: var(--font-body);
}

.memory-hero-section {
  position: relative;
  padding: 90px 0 65px;
  background: radial-gradient(circle at 50% 25%, rgba(90, 20, 130, 0.4) 0%, rgba(10, 4, 23, 0.98) 80%),
              url('assets/hero_bg.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.25);
}

.memory-quote-strip {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 18px 24px;
  background: rgba(26, 14, 56, 0.6);
  border: 1px dashed rgba(229, 169, 60, 0.35);
  border-radius: 8px;
  text-align: center;
  font-style: italic;
  color: #F5C358;
  font-size: 15px;
}

.memory-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.memory-card {
  background: rgba(18, 9, 40, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 12px;
  padding: 30px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.memory-card:hover {
  transform: translateY(-5px);
  border-color: #E5A93C;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 169, 60, 0.2);
}

.memory-portrait-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #E5A93C, #78350F);
  position: relative;
}

.memory-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(80%) sepia(20%);
  display: block;
}

.memory-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.memory-lifespan {
  font-size: 13px;
  color: #F5C358;
  font-weight: 600;
  margin-bottom: 10px;
}

.memory-title-tag {
  font-size: 12px;
  color: #CBD5E1;
  margin-bottom: 14px;
  font-weight: 500;
}

.memory-tribute-text {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.candle-tribute-btn {
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #F5C358;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.candle-tribute-btn:hover, .candle-tribute-btn.lit {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0E0720;
  border-color: #FCD34D;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   15. SPECIAL MESSAGES PAGE STYLING (messages.html)
   ========================================================================== */
.messages-page-body {
  background-color: #0E0720;
  color: #E2E8F0;
  font-family: var(--font-body);
}

.messages-hero-section {
  position: relative;
  padding: 85px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(106, 27, 154, 0.4) 0%, rgba(14, 7, 32, 0.95) 75%),
              url('assets/about_banner_magician.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.messages-cards-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.speech-message-card {
  background: rgba(22, 11, 48, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 14px;
  padding: 35px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.speech-author-col {
  text-align: center;
}

.speech-photo-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 12px;
  padding: 3px;
  background: linear-gradient(135deg, #E5A93C, #78350F);
}

.speech-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.speech-author-name {
  font-family: 'Cinzel', serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.speech-author-role {
  font-size: 12px;
  color: #E5A93C;
  font-weight: 600;
}

.speech-body-col {
  position: relative;
}

.speech-watermark-quote {
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 80px;
  color: rgba(229, 169, 60, 0.08);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.speech-headline {
  font-size: 18px;
  color: #F5C358;
  margin-bottom: 12px;
  font-weight: 700;
}

.speech-paragraph {
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ==========================================================================
   16. FEE & PAYMENT GUIDE PAGE STYLING (payment.html)
   ========================================================================== */
.payment-page-body {
  background-color: #0E0720;
  color: #E2E8F0;
  font-family: var(--font-body);
}

.payment-hero-section {
  position: relative;
  padding: 85px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(106, 27, 154, 0.45) 0%, rgba(14, 7, 32, 0.95) 75%),
              url('assets/hero_bg.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.payment-method-card {
  background: rgba(22, 11, 48, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.payment-method-card:hover {
  transform: translateY(-5px);
  border-color: #E5A93C;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.pm-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.bkash-theme {
  background: rgba(226, 19, 110, 0.15);
  color: #E2136E;
  border: 1px solid rgba(226, 19, 110, 0.35);
}

.nagad-theme {
  background: rgba(247, 148, 29, 0.15);
  color: #F7941D;
  border: 1px solid rgba(247, 148, 29, 0.35);
}

.rocket-theme {
  background: rgba(140, 43, 137, 0.15);
  color: #A855F7;
  border: 1px solid rgba(140, 43, 137, 0.35);
}

.bank-theme {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.upay-theme {
  background: rgba(0, 136, 214, 0.15);
  color: #0088D6;
  border: 1px solid rgba(0, 136, 214, 0.35);
}

.pm-name {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.pm-number-box {
  background: rgba(14, 7, 32, 0.9);
  border: 1px dashed rgba(229, 169, 60, 0.35);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}

.pm-num-text {
  font-family: monospace;
  font-size: 14px;
  color: #F5C358;
  font-weight: 700;
}

.btn-copy-num {
  background: transparent;
  border: none;
  color: #CBD5E1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.btn-copy-num:hover {
  color: #E5A93C;
}

.pm-steps-list {
  text-align: left;
  list-style: decimal inside;
  font-size: 12px;
  color: #94A3B8;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

/* Payment Verification Box */
.trx-verify-container {
  background: rgba(22, 11, 48, 0.9);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Global Responsive for New Sections */
@media (max-width: 1100px) {
  .members-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .payment-methods-grid, .forms-download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .members-cards-grid, .memory-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .speech-message-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .payment-methods-grid, .forms-download-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .notice-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .members-cards-grid, .memory-cards-grid {
    grid-template-columns: 1fr;
  }
  .members-hero-title {
    font-size: 30px;
  }
}

/* =========================================================
   PORTAL / EVENT DETAILS VIEW (100% MATCH WITH REFERENCE MOCKUP)
   ========================================================= */

.event-details-portal-body {
  margin: 0;
  padding: 0;
  background-color: #f3f5f9;
  font-family: 'Poppins', 'Outfit', sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

.portal-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* --- Left Sidebar --- */
.portal-sidebar {
  width: 250px;
  min-width: 250px;
  background: #080d1a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.portal-sidebar::-webkit-scrollbar {
  width: 4px;
}
.portal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.portal-brand {
  padding: 22px 18px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.portal-brand-logo-frame {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #e5a93c;
  background: radial-gradient(circle, #1e1b4b 0%, #080d1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.35);
  flex-shrink: 0;
}

.portal-brand-logo-frame img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.portal-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.portal-brand-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1px;
}

/* Sidebar Nav Items */
.portal-nav-menu {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.portal-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.portal-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}
.portal-nav-item:hover i {
  color: #f8fafc;
}

/* Active State with Yellow/Gold Pill (Exact Match) */
.portal-nav-item.active {
  background: #e5a93c;
  background: linear-gradient(180deg, #fbb024 0%, #e5a93c 100%);
  color: #0b0f19 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
}

.portal-nav-item.active i {
  color: #0b0f19 !important;
}

.portal-nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

/* Sidebar Bottom Footer */
.portal-sidebar-footer {
  padding: 14px 14px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.portal-sidebar-hat-visual {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 16px rgba(0, 195, 255, 0.35));
}

.portal-sidebar-slogan {
  font-family: 'Alex Brush', cursive;
  font-size: 21px;
  color: #f59e0b;
  margin: 0 0 2px;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.portal-sidebar-subtext {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
}

/* --- Right / Main Layout --- */
.portal-main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Header Bar */
.portal-topbar {
  height: 64px;
  background: #080e1d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 500;
}

.portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

.portal-search-box {
  position: relative;
  width: 340px;
}

.portal-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.portal-search-input {
  width: 100%;
  height: 38px;
  background: #141c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 14px 0 38px;
  color: #f1f5f9;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.portal-search-input:focus {
  border-color: #e5a93c;
  background: #18233b;
  box-shadow: 0 0 0 2px rgba(229, 169, 60, 0.2);
}

.portal-search-input::placeholder {
  color: #64748b;
}

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.portal-bell-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.portal-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.portal-user-profile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.portal-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e5a93c;
}

.portal-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.portal-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.portal-user-tier {
  font-size: 11px;
  color: #94a3b8;
}

/* --- Main Content Area --- */
.portal-content-view {
  padding: 24px 28px 40px;
  flex: 1;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Top Hero Event Banner */
.portal-hero-banner {
  background: linear-gradient(105deg, #160a2c 0%, #1e113b 35%, #0f162c 70%, #0a0e1c 100%);
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-hero-left {
  flex: 1;
  z-index: 2;
}

.portal-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.28);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.portal-event-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.portal-event-org {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px;
}

.portal-event-org strong {
  color: #cbd5e1;
  font-weight: 600;
}

.portal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.portal-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.portal-meta-item i {
  color: #cbd5e1;
  font-size: 14px;
}

.portal-hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 320px;
  z-index: 2;
}

.portal-hero-magic-img {
  height: 165px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.portal-hero-slogan-box {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: 'Alex Brush', cursive;
  font-size: 26px;
  color: #ffffff;
  line-height: 1.1;
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

/* Tabs Bar Under Banner */
.portal-tabs-bar {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 22px;
  padding-left: 4px;
  position: relative;
  z-index: 10;
}

.portal-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 4px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  font-family: inherit;
  pointer-events: auto;
  user-select: none;
}

.portal-tab-btn:hover {
  color: #0f172a;
}

.portal-tab-btn.active {
  color: #0f172a;
  font-weight: 700;
}

.portal-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e5a93c;
  border-radius: 3px 3px 0 0;
}

/* Main 2-Column Grid Layout */
.portal-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

/* Portal Content Cards (White, Crisp) */
.portal-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid #e5e9f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  margin-bottom: 20px;
}

.portal-card:last-child {
  margin-bottom: 0;
}

.portal-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.portal-card-header i {
  font-size: 17px;
  color: #0f172a;
}

.portal-card-header h2,
.portal-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.portal-card-header.between-header {
  justify-content: space-between;
}

.portal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Event Description & Quote */
.portal-desc-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 16px;
}

.portal-quote-container {
  background: #fffcf2;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 14px;
}

.portal-quote-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.portal-quote-mark {
  font-family: serif;
  font-size: 32px;
  line-height: 0.8;
  color: #d97706;
  font-weight: bold;
}

.portal-quote-body {
  font-size: 14px;
  font-style: italic;
  color: #334155;
  margin: 0;
  line-height: 1.5;
}

.portal-quote-author {
  align-self: flex-end;
  font-size: 12.5px;
  font-weight: 700;
  color: #b45309;
  margin-top: 6px;
}

/* Event Details Subgrid */
.portal-details-subgrid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-top: 6px;
}

.portal-details-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.portal-detail-item i {
  font-size: 15px;
  color: #0f172a;
  width: 18px;
  text-align: center;
  margin-top: 3px;
}

.portal-detail-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.portal-detail-val {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.portal-guest-title {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.portal-guest-title a {
  color: #2563eb;
  text-decoration: underline;
}

.portal-special-guest-entry {
  margin-top: 4px;
}
.portal-special-guest-entry + .portal-special-guest-entry {
  margin-top: 8px;
}

/* Right Column Cards */
/* 1. Registration Open */
.portal-reg-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-reg-icon {
  font-size: 24px;
  color: #059669;
  margin-top: 1px;
}

.portal-reg-titles h3 {
  font-size: 15px;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 2px;
}

.portal-reg-titles p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

.portal-btn-reg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0f766e;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.portal-btn-reg:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* 2. Highlights Card */
.portal-highlight-star {
  color: #f59e0b !important;
}

.portal-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-highlights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

.portal-highlights-list li i {
  color: #e5a93c;
  font-size: 13px;
}

/* 3. Event Committee Card */
.portal-view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-view-all-link:hover {
  text-decoration: underline;
}

.portal-committee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.portal-committee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-committee-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  border: 1.5px solid #e2e8f0;
}

.portal-committee-item h4 {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
  white-space: nowrap;
}

.portal-committee-item span {
  font-size: 9px;
  color: #64748b;
  white-space: nowrap;
}

/* 4. Join Community Card */
.portal-join-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 100%);
  border-radius: 12px;
  padding: 16px 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(30, 27, 75, 0.15);
}

.portal-join-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-join-wand {
  color: #fbbf24;
  font-size: 18px;
}

.portal-join-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px;
}

.portal-join-info p {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

.portal-btn-join-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.portal-btn-join-circle:hover {
  background: #e5a93c;
  color: #0f172a;
  transform: translateX(2px);
}

/* Tab Panels Switching */
.portal-tab-panel {
  display: none;
}

.portal-tab-panel.active {
  display: block !important;
}

/* Responsive Portal Layout */
@media (max-width: 1080px) {
  .portal-content-grid {
    grid-template-columns: 1fr;
  }
  .portal-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .portal-hero-right {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
  .portal-sidebar.open {
    transform: translateX(0);
  }
  .portal-mobile-toggle {
    display: block;
  }
  .portal-search-box {
    width: 220px;
  }
  .portal-details-subgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .portal-content-view {
    padding: 16px;
  }
  .portal-topbar {
    padding: 0 16px;
  }
  .portal-search-box {
    display: none;
  }
  .portal-event-title {
    font-size: 22px;
  }
  .portal-meta-strip {
    gap: 14px;
  }
  .portal-tabs-bar {
    gap: 18px;
    overflow-x: auto;
  }
  .portal-committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* =========================================================
   OFFICIAL YMS MEMBER ID CARD (CR80 2.125" x 3.375")
   ========================================================= */

.member-id-card-section {
  background: #080e1d !important;
  border: 1px solid rgba(229, 169, 60, 0.35) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

.id-card-format-tag {
  display: inline-block;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #e5a93c;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  margin-left: 10px;
  letter-spacing: 0.5px;
}

.id-card-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e5a93c 0%, #b87d18 100%);
  color: #0b0f19;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #fbb024 0%, #e5a93c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 169, 60, 0.45);
}

.btn-flip-card, .btn-print-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 169, 60, 0.3);
  color: #cbd5e1;
  padding: 9px 15px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flip-card:hover, .btn-print-card:hover {
  background: rgba(229, 169, 60, 0.18);
  color: #ffffff;
  border-color: #e5a93c;
}

/* Card Showcase Stage */
.id-card-stage-container {
  padding: 24px 10px 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.id-card-perspective-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.id-card-side-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.id-card-side-label i {
  color: #e5a93c;
}

/* CR80 Physical Dimensions Ratio (320px x 508px - 2.125" x 3.375") */
.yms-cr80-card {
  width: 320px;
  height: 508px;
  border-radius: 18px;
  background: #060609;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(229, 169, 60, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.yms-cr80-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.95), 0 0 0 1.5px rgba(229, 169, 60, 0.7);
}

/* 1. Header Emblem & Typography: 2-Column Horizontal Layout with Official Logo */
.id-card-header-block {
  padding: 13px 14px 6px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.id-header-logo-box {
  width: 82px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yms-card-emblem,
.id-card-hat-logo,
.id-card-official-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(229, 169, 60, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  user-select: none;
  -webkit-user-drag: none;
}

.id-header-brand-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  text-align: left;
}

.id-header-brand-block .brand-word-young {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.06;
  text-transform: uppercase;
}

.id-header-brand-block .brand-word-magician {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 21.5px;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.8px;
  line-height: 1.06;
  text-transform: uppercase;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #f59e0b !important;
}

.id-header-brand-block .brand-word-society {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.06;
  text-transform: uppercase;
}

.id-header-brand-block .brand-country-divider {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  width: 100%;
}

.id-header-brand-block .brand-country-divider .country-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #e5a93c, transparent);
}

.id-header-brand-block .brand-country-divider .country-text {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  color: #e5a93c;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* FRONT CARD BODY */
.id-card-front-body {
  padding: 6px 10px 0 10px;
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 3;
  align-items: flex-start;
  margin-top: 2px;
}

.id-card-photo-box {
  width: 96px;
  height: 188px;
  border-radius: 12px;
  border: 2px solid #e5a93c;
  overflow: hidden;
  background: #0b0c10;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  position: relative;
}

.id-card-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.id-card-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0b1122;
  border-radius: 9px;
  user-select: none;
  gap: 4px;
}

.id-card-no-photo i {
  font-size: 28px;
  color: rgba(229, 169, 60, 0.35);
}

.id-card-no-photo span {
  font-size: 8px;
  color: rgba(229, 169, 60, 0.45);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.card-highlight-glow {
  box-shadow: 0 0 0 3.5px #e5a93c, 0 16px 45px rgba(229, 169, 60, 0.55) !important;
  transform: translateY(-5px) scale(1.02);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.id-card-details-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.id-member-title-name {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding: 2px 0 1px;
  line-height: 1.35;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: visible;
  text-shadow: none !important;
}

.id-member-role-row,
.id-member-role-pill {
  display: none !important;
}

.id-info-row {
  display: flex;
  align-items: center;
  font-size: 10.6px;
  margin-bottom: 5.5px;
  line-height: 1.32;
}

.id-info-row:last-child {
  margin-bottom: 0;
}

.id-info-row i {
  color: #fbbf24;
  width: 12px;
  font-size: 9px;
  text-align: center;
  flex-shrink: 0;
  margin-right: 2px;
}

.id-info-row .lbl {
  color: #cbd5e1;
  font-weight: 700;
  width: 58px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 9.6px;
  letter-spacing: -0.2px;
  text-shadow: none !important;
}

.id-info-row .sep {
  color: #fbbf24;
  font-weight: 800;
  width: 6px;
  flex-shrink: 0;
  text-align: center;
  font-size: 10.5px;
  margin-right: 2px;
  text-shadow: none !important;
}

.id-info-row .val {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: visible;
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.3;
  padding-left: 1px;
  text-shadow: none !important;
  letter-spacing: 0.1px;
}

.id-info-row .val.highlight-gold {
  color: #fde047 !important;
  font-weight: 800;
  font-size: 11.2px;
  letter-spacing: 0.3px;
  text-shadow: none !important;
}

.id-info-row .val.status-active-txt {
  color: #4ade80 !important;
  font-weight: 800;
  font-size: 10.8px;
  letter-spacing: 0.5px;
  text-shadow: none !important;
}

#idCardOrganization {
  font-size: 8.5px !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* CARD FOOTER: ANGLED CHEVRON, GOLD SCALLOPED SEAL & SIGNATURES */
.id-card-bottom-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 186px;
  pointer-events: none;
  z-index: 2;
}

/* Front card bottom area extends upward to seamlessly meet the photo & details without gap */
.card-front .id-card-bottom-area,
.id-card-bottom-area-front {
  height: 230px !important;
}

.id-card-bottom-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 186px;
  pointer-events: none;
  display: block;
}

.card-front .id-card-bottom-svg,
.id-card-bottom-svg-front {
  height: 230px !important;
}

.id-seal-badge-container {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  width: 82px;
  height: 82px;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front .id-seal-badge-container,
.id-seal-badge-container-front {
  top: 42px !important;
}

.id-card-gold-seal-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

/* FRONT CARD BOTTOM MOTTO ROW (Magic Unites Us - Dreams Make Us Stronger) */
.id-front-motto-row {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
  text-align: center;
}

.id-front-motto-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.id-front-motto-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.id-motto-line {
  display: inline-block;
  flex: 0 0 34px;
  height: 1.8px;
  border-radius: 1px;
}

.id-motto-line-left {
  background: linear-gradient(90deg, transparent, #e5a93c 40%, #fde68a 100%);
  box-shadow: 0 0 4px rgba(229, 169, 60, 0.4);
}

.id-motto-line-right {
  background: linear-gradient(90deg, #fde68a 0%, #e5a93c 60%, transparent);
  box-shadow: 0 0 4px rgba(229, 169, 60, 0.4);
}

.id-motto-script {
  font-family: 'Alex Brush', cursive;
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: #fde68a;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(229, 169, 60, 0.4);
}

.id-footer-signatures-row {
  position: absolute;
  bottom: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 6;
  pointer-events: auto;
}

.id-sig-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
}

.id-sig-img-wrap {
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.id-sig-graphic {
  max-height: 30px;
  max-width: 95px;
  object-fit: contain;
  mix-blend-mode: screen;
  display: block;
}

.id-sig-underline {
  width: 100%;
  height: 1px;
  background: #e5a93c;
  margin-bottom: 4px;
}

.id-sig-name {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.35px;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.id-sig-mid-sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

/* BACK CARD ELEMENTS */
.id-back-notice-box {
  margin: 6px 10px 9px;
  padding: 10px 12px;
  border: 1.5px solid rgba(229, 169, 60, 0.7);
  border-radius: 10px;
  background: rgba(12, 12, 22, 0.95);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
  color: #ffffff !important;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  text-shadow: none !important;
  box-shadow: none !important;
}

.id-back-notice-box strong {
  color: #fde047 !important;
  font-size: 12.5px;
  font-weight: 800;
}

.id-card-back-meta-grid {
  padding: 2px 10px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.id-back-contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.id-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  line-height: 1.3;
  color: #ffffff;
  font-weight: 600;
  text-shadow: none !important;
}

.id-contact-item i {
  color: #fbbf24;
  font-size: 10.5px;
  width: 13px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.id-contact-item span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  color: #ffffff;
}

.id-contact-item #idBackEmail {
  font-size: 9px;
  word-break: break-all;
  letter-spacing: -0.1px;
}

.id-contact-item #idBackPhone {
  font-weight: 700;
  color: #fde047;
}

.id-back-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.id-qr-box {
  width: 96px;
  height: 96px;
  border-radius: 9px;
  border: 2px solid #e5a93c;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.id-qr-box:hover {
  transform: scale(1.85);
  z-index: 100;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 20px rgba(229, 169, 60, 0.9);
}

.id-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}

.id-scan-verify-pill {
  display: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 8px rgba(245, 158, 11, 0.35) !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.id-scan-verify-pill:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #000000 !important;
  transform: scale(1.04);
}

/* Toolbar Buttons */
.id-card-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-download-png {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.45);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-download-png:hover {
  background: rgba(229, 169, 60, 0.25);
  border-color: #e5a93c;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Printable PDF Sheet (Rendered by html2pdf.js) */
.yms-printable-pdf-sheet {
  display: none;
  background: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

@media print {
  @page {
    size: portrait;
    margin: 8mm 10mm;
  }
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  /* Hide all dashboard layout chrome, navigation, headers, footers and modals */
  #page > *:not(main):not(.site-main),
  header, footer, nav, aside,
  .site-header, .site-footer, .header-container,
  .dashboard-sidebar, .dash-header-bar, .id-card-actions-toolbar,
  .dashboard-tabs-nav, .forms-download-card,
  .dashboard-events-card, .profile-edit-card,
  .quick-stats-row, .yms-navbar, #wpadminbar, .no-print,
  .id-card-pending-state, .id-card-inactive-state,
  .dash-meta-grid, .dash-quick-links, .dash-notices-container,
  .id-card-side-label, .id-qr-mode-switch,
  .modal-overlay, #ymsQrScanModal,
  /* CRITICAL: HIDE ALL PAYMENT DETAILS, FORMS AND TRANSACTION HISTORIES */
  .transaction-history-card,
  .recent-transactions-card,
  #transactionTable,
  .dash-transaction-table,
  .table-responsive,
  .btn-invoice,
  #tabPayments,
  #paymentHistoryCloneContainer,
  .dash-payment-only-meta,
  .channel-tabs-bar,
  .app-channel-guide-box,
  .payment-required-notice,
  .example-trx-preview,
  .trx-verify-container,
  #paymentVerifyForm,
  .payment-method-card,
  .payment-gateways-grid,
  .pm-instructions-wrap {
    display: none !important;
  }
  .dashboard-content-area, .dashboard-main-col, .dashboard-card, .dash-card-body,
  .dashboard-container, .main-dashboard-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* Official Member Profile Summary Card in Print */
  .member-profile-card {
    display: flex !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .member-avatar-wrapper {
    box-shadow: none !important;
  }
  .avatar-upload-overlay {
    display: none !important;
  }
  /* ID Card stage: Front and back cards centered side-by-side */
  #idCardStageContainer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15mm !important;
    padding: 4mm 0 8mm !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  #idCardFrontWrapper, #idCardBackWrapper {
    display: flex !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .yms-cr80-card {
    width: 320px !important;
    height: 508px !important;
    box-shadow: 0 0 0 1px #d97706 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  /* Membership Details Card: Display official membership records (dates, tier, duration) without payment fields */
  .membership-details-card {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-top: 12px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .membership-details-card .dash-card-header {
    border-bottom: 2px solid #e5a93c !important;
    padding-bottom: 6px !important;
    margin-bottom: 10px !important;
    color: #0f172a !important;
  }
  .membership-details-card .dash-card-title {
    color: #0f172a !important;
  }
  .membership-details-card .meta-data-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }
  .membership-details-card .meta-title-label {
    color: #64748b !important;
  }
  .membership-details-card .meta-value-text {
    color: #0f172a !important;
  }
}

/* =========================================================
   MEMBERSHIP APPLICATION & AUTH SYSTEM (V2.0.0 MATCHING REFERENCE)
   ========================================================= */

/* Hero Banner */
.app-hero-section {
  position: relative;
  background: #080d24 url('assets/membership_hero_seamless.jpg') right center / cover no-repeat;
  padding: 60px 0 50px;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.app-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080d24 0%, rgba(8, 13, 36, 0.92) 50%, rgba(8, 13, 36, 0.4) 100%);
  z-index: 1;
}

.app-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.app-hero-content {
  max-width: 650px;
}

.app-hero-eyebrow {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #e5a93c;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.app-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
}

.app-hero-title .highlight-gold {
  color: #f5c358;
}

.app-hero-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

.app-hero-visual {
  flex-shrink: 0;
  text-align: right;
  padding-right: 40px;
}

.hero-cursive-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cursive-word {
  font-family: 'Alex Brush', cursive;
  font-size: 44px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.7), 0 0 30px rgba(59, 130, 246, 0.5);
  line-height: 1.05;
  letter-spacing: 1px;
}

/* Main Section */
.membership-app-main {
  background: #f1f5f9;
  padding: 45px 0 80px;
}

/* Logged-in Notice Banner */
.logged-in-membership-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #e5a93c;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.logged-in-membership-banner .banner-icon {
  font-size: 32px;
  color: #4ade80;
  flex-shrink: 0;
}

.logged-in-membership-banner .banner-text {
  flex-grow: 1;
}

.logged-in-membership-banner .banner-text strong {
  color: #f5c358;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.logged-in-membership-banner .banner-text p {
  margin: 0;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.logged-in-membership-banner .btn-banner-dash {
  background: #e5a93c;
  color: #0b0e1e;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.logged-in-membership-banner .btn-banner-dash:hover {
  background: #f5c358;
  transform: translateY(-2px);
}

/* Grid Layout */
.membership-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

/* Left Form Column */
.app-form-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Step Sections */
.app-step-section {
  margin-bottom: 38px;
  padding-bottom: 34px;
  border-bottom: 1px solid #f1f5f9;
}

.app-step-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.step-badge-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.step-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Step 1: Tier Selection Cards */
.tier-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tier-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tier-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tier-card.active {
  border-color: #e5a93c;
  background: #fffdf7;
  box-shadow: 0 0 0 1px #e5a93c, 0 8px 20px rgba(229, 169, 60, 0.15);
}

.tier-card .popular-pill {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.tier-card .tier-icon-wrap {
  font-size: 22px;
  color: #0f172a;
  margin-bottom: 8px;
}

.tier-card.active .tier-icon-wrap {
  color: #d97706;
}

.tier-card .tier-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.tier-card .tier-duration {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.tier-card .tier-price-val {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.tier-card.active .tier-price-val {
  color: #b45309;
}

/* Step 2: Payment Section */
.payment-required-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-required-notice .notice-icon {
  color: #16a34a;
  font-size: 18px;
  margin-top: 1px;
}

.payment-required-notice .notice-text {
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  margin: 0;
}

.channel-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.channel-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-tab-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.channel-tab-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.channel-tab-btn .bkash-color { color: #e2136e; }
.channel-tab-btn .nagad-color { color: #f7931e; }
.channel-tab-btn .rocket-color { color: #a855f7; }
.channel-tab-btn .upay-color { color: #0088d6; }
.channel-tab-btn .bank-color { color: #2563eb; }
.channel-tab-btn.active .bkash-color,
.channel-tab-btn.active .nagad-color,
.channel-tab-btn.active .rocket-color,
.channel-tab-btn.active .upay-color,
.channel-tab-btn.active .bank-color {
  color: #ffffff;
}

/* Form Inputs Grid */
.app-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.app-field-group {
  margin-bottom: 18px;
}

.app-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
}

.app-label i {
  color: #64748b;
  margin-right: 4px;
}

.app-input,
.app-select,
.app-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-input:focus,
.app-select:focus,
.app-textarea:focus {
  outline: none;
  border-color: #e5a93c;
  box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.18);
}

.password-toggle-wrap {
  position: relative;
}

.password-toggle-wrap .app-input,
.password-toggle-wrap .form-input {
  padding-right: 42px;
}

.btn-pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 0.2s ease;
  z-index: 2;
}

.btn-pw-eye:hover,
.dash-inner-form .btn-pw-eye:hover {
  color: #e5a93c;
}

.password-guideline-hint {
  font-size: 12px;
  color: #64748b;
  margin: -6px 0 0;
}

/* File Dropzones */
.file-dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-dropzone:hover,
.file-dropzone.drag-over {
  border-color: #e5a93c;
  background: #fffdfa;
}

.file-hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none;
  z-index: 1;
}

.dropzone-cloud-icon {
  font-size: 30px;
  color: #94a3b8;
  margin-bottom: 6px;
  pointer-events: none;
}

.dropzone-prompt {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  pointer-events: none;
}

.dropzone-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
  pointer-events: none;
}

.dropzone-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
  z-index: 6;
}

.dropzone-preview img {
  max-height: 140px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}

.btn-remove-preview {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  pointer-events: auto !important;
  z-index: 15;
  transition: transform 0.15s, background 0.15s;
}

.btn-remove-preview:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Example Transaction Preview Card */
.example-trx-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

.example-title-tag {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.trx-card-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trx-brand-icon {
  color: #e2136e;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trx-card-info-table {
  display: flex;
  gap: 24px;
}

.trx-info-row {
  display: flex;
  flex-direction: column;
}

.trx-info-row .t-lbl {
  font-size: 11px;
  color: #94a3b8;
}

.trx-info-row .t-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.trx-info-row .code-font {
  font-family: monospace;
  letter-spacing: 1px;
}

.trx-info-row .amount-font {
  color: #b45309;
}

/* Terms Agreement Checkbox */
.terms-agree-wrap {
  margin: 22px 0 26px;
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox-label input {
  margin-top: 3px;
  accent-color: #d97706;
  width: 16px;
  height: 16px;
}

.terms-checkbox-label a {
  color: #d97706;
  text-decoration: underline;
}

/* Large Gold Submit Button */
.btn-app-submit {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-app-submit:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
}

.btn-app-submit:active {
  transform: translateY(0);
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  background-color: #fff8f8 !important;
  animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Site Toast Notification Styling */
.site-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0b0e1e;
  color: #ffffff;
  padding: 15px 22px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(229, 169, 60, 0.35);
  border-left: 5px solid #e5a93c;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(25px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 480px;
}

.site-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-toast i {
  color: #e5a93c;
  font-size: 20px;
  flex-shrink: 0;
}

.site-toast.toast-error {
  border-left-color: #ef4444;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.site-toast.toast-error i {
  color: #ef4444;
}

.site-toast.toast-success {
  border-left-color: #10b981;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.site-toast.toast-success i {
  color: #10b981;
}

@media (max-width: 640px) {
  .site-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* Right Sidebar Column */
.app-sidebar-col {
  width: 100%;
}

.sticky-sidebar-wrapper {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Widget 1: Tier Benefits */
.tier-benefits-widget .widget-header {
  background: #0b1536;
  padding: 18px 20px;
  color: #ffffff;
}

.widget-title-flex {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.widget-gold-crown {
  color: #f5c358;
  font-size: 20px;
  margin-top: 2px;
}

.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
}

.widget-tier-subtitle {
  font-size: 12px;
  color: #cbd5e1;
}

.widget-tier-card {
  padding: 20px;
}

.side-tier-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.side-tier-icon {
  width: 44px;
  height: 44px;
  background: #f0f7ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 20px;
  flex-shrink: 0;
}

.side-tier-info {
  flex-grow: 1;
}

.side-tier-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.side-tier-cost {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
}

.side-tier-badge {
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.side-tier-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-tier-perks-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
}

.side-tier-perks-list li:last-child {
  margin-bottom: 0;
}

.side-tier-perks-list li i {
  color: #16a34a;
  font-size: 12px;
}

/* Widget 2: Notes */
.widget-header-simple {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 0;
}

.info-circle-icon {
  color: #2563eb;
  font-size: 18px;
}

.widget-title-simple {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.notes-bullet-list {
  margin: 14px 0 0;
  padding: 0 20px 20px 36px;
}

.notes-bullet-list li {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 6px;
}

/* Widget 3: Help */
.help-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  padding: 12px 20px 0;
  margin: 0 0 12px;
}

.help-contact-items {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #0f172a;
  text-decoration: none;
}

.help-contact-row i {
  color: #64748b;
  width: 16px;
}

.help-contact-row:hover {
  color: #d97706;
}

/* Widget 4: Quote */
.quote-widget {
  position: relative;
  background: #0b1536 url('assets/membership_quote.jpg') center center / cover no-repeat;
  color: #ffffff;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.quote-widget-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 21, 54, 0.88) 0%, rgba(30, 27, 75, 0.75) 100%);
  z-index: 1;
}

.quote-widget-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.quote-phrase {
  font-family: 'Alex Brush', cursive;
  font-size: 26px;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 8px;
}

.quote-author {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #f5c358;
}

/* Header Auth Buttons & States */
.nav-auth-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.nav-guest-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-member-signup {
  background: linear-gradient(135deg, #e5a93c, #f5c358);
  color: #0b0e1e !important;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1;
}

.btn-member-signup:hover {
  background: linear-gradient(135deg, #f5c358, #ffffff);
  box-shadow: 0 6px 18px rgba(229, 169, 60, 0.5);
  transform: translateY(-1px);
}

.nav-logged-in-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-member-chip {
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid #e5a93c;
  color: #f5c358 !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-member-chip:hover {
  background: rgba(229, 169, 60, 0.3);
}

.btn-nav-logout {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Footer Slogan Connect */
.footer-slogan-connect {
  font-family: 'Alex Brush', cursive;
  font-size: 20px;
  color: #f5c358;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .membership-app-grid {
    grid-template-columns: 1fr;
  }
  .app-sidebar-col {
    order: 2;
  }
  .sticky-sidebar-wrapper {
    position: static;
  }
}

@media (max-width: 768px) {
  .app-hero-container {
    flex-direction: column;
    text-align: center;
  }
  .app-hero-visual {
    padding-right: 0;
  }
  .hero-cursive-slogan {
    align-items: center;
    flex-direction: row;
    gap: 16px;
  }
  .app-form-col {
    padding: 24px 18px;
  }
  .tier-selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trx-card-preview-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .trx-card-info-table {
    gap: 14px;
    flex-wrap: wrap;
  }
}




/* =========================================================
   DASHBOARD ADMIN APPROVALS & APPLICANT DETAILS VIEW MODAL
   ========================================================= */

/* Sidebar Admin Tab & Badge */
.sidebar-nav-btn.btn-admin-tab {
  border: 1px solid rgba(229, 169, 60, 0.25);
  background: rgba(229, 169, 60, 0.05);
}

.sidebar-nav-btn.btn-admin-tab:hover {
  background: rgba(229, 169, 60, 0.18);
  border-color: #E5A93C;
}

.badge-pending-count {
  margin-left: auto;
  background: #F59E0B;
  color: #08060D;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
}

/* ID Card Pending Approval State in Dashboard */
.id-card-pending-state {
  margin-bottom: 24px;
}

.pending-notice-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 12, 27, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.pending-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.pending-content-group {
  flex: 1;
}

.pending-title {
  color: #F59E0B;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--font-main);
}

.pending-desc {
  color: #CBD5E1;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.pending-steps-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.step-pill {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-pill.step-done {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.step-pill.step-active {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.step-pill.step-locked {
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-arrow {
  color: #64748B;
  font-size: 10px;
}

/* Approvals Tab KPI Stats */
.approvals-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.approval-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.approval-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 169, 60, 0.3);
}

.approval-stat-box.highlight-pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.approval-stat-box.highlight-gold {
  border-color: rgba(229, 169, 60, 0.4);
  background: rgba(229, 169, 60, 0.05);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-blue { background: rgba(59, 130, 246, 0.18); color: #60A5FA; }
.icon-amber { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.icon-green { background: rgba(34, 197, 94, 0.18); color: #4ADE80; }
.icon-gold { background: rgba(229, 169, 60, 0.2); color: #FCD34D; }

.stat-meta {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 2px;
  font-weight: 500;
}

.stat-num {
  font-size: 20px;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.approval-stat-box.highlight-gold .stat-num {
  color: #E5A93C;
}

.approval-stat-box.highlight-pending .stat-num {
  color: #F59E0B;
}

/* Toolbar & Filters */
.approvals-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.approvals-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.approvals-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 13px;
}

.approvals-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.approvals-search-input:focus {
  border-color: #E5A93C;
  background: rgba(255, 255, 255, 0.07);
}

.approvals-filters-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-app-filter {
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-app-filter:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 169, 60, 0.3);
}

.btn-app-filter.active {
  background: #E5A93C;
  color: #0B1122;
  font-weight: 700;
  border-color: #E5A93C;
}

/* Approvals Table */
.approvals-table-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.approvals-table {
  width: 100%;
  border-collapse: collapse;
}

.approvals-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.approvals-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.approvals-table tr:hover td {
  background: rgba(229, 169, 60, 0.04);
}

.applicant-cell-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-thumb-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E5A93C;
  background: #1E1B2E;
  flex-shrink: 0;
}

.applicant-info-col strong {
  display: block;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
}

.applicant-info-col span {
  display: block;
  font-size: 11.5px;
  color: #94A3B8;
}

.applicant-id-pill {
  display: inline-block;
  font-size: 10.5px;
  color: #E5A93C;
  font-family: monospace;
  font-weight: 600;
  margin-top: 2px;
}

.amount-highlight-td {
  font-weight: 800;
  font-size: 15px;
  color: #E5A93C;
  letter-spacing: 0.5px;
}

.plan-pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-block;
}

.plan-starter { background: rgba(148, 163, 184, 0.15); color: #CBD5E1; border: 1px solid rgba(148, 163, 184, 0.3); }
.plan-silver { background: rgba(192, 132, 252, 0.15); color: #D8B4FE; border: 1px solid rgba(192, 132, 252, 0.3); }
.plan-gold { background: rgba(229, 169, 60, 0.18); color: #FCD34D; border: 1px solid rgba(229, 169, 60, 0.4); }
.plan-platinum { background: rgba(56, 189, 248, 0.15); color: #7DD3FC; border: 1px solid rgba(56, 189, 248, 0.3); }

.payment-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-method-tag {
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.payment-method-tag.bkash { color: #EC4899; }
.payment-method-tag.nagad { color: #F97316; }
.payment-method-tag.rocket { color: #A855F7; }
.payment-method-tag.bank { color: #38BDF8; }

.trxid-copy-line {
  font-family: monospace;
  font-size: 11px;
  color: #94A3B8;
  cursor: pointer;
}

.trxid-copy-line:hover {
  color: #E5A93C;
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.status-badge.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-badge.badge-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-badge.badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Table Action Buttons */
.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-tbl-view {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60A5FA;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-tbl-view:hover {
  background: #3B82F6;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-tbl-accept {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-tbl-accept:hover {
  background: #22C55E;
  color: #08060D;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.btn-tbl-reject {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tbl-reject:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* =========================================================
   APPLICANT DETAILS VIEW MODAL STYLING
   ========================================================= */
.applicant-details-modal-container {
  max-width: 860px;
  width: 95%;
  background: #0D1224;
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.applicant-modal-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.app-header-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-glow-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(229, 169, 60, 0.18);
  color: #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(229, 169, 60, 0.4);
}

.applicant-modal-title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 3px;
  font-family: var(--font-main);
}

.applicant-modal-subtitle {
  color: #94A3B8;
  font-size: 12.5px;
  margin: 0;
}

.app-modal-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-id-pill {
  font-family: monospace;
  font-size: 13px;
  color: #E5A93C;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.app-status-pill {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.app-status-pill.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.app-status-pill.approved {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

/* Modal Body Scrollable */
.applicant-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Top Hero Grid: Photo + Payment Card */
.app-modal-hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.app-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-photo-frame {
  position: relative;
  width: 170px;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #E5A93C;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: #1A1F36;
}

.app-modal-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 17, 34, 0.9);
  color: #E5A93C;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 0;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(229, 169, 60, 0.4);
}

.app-photo-caption {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 8px;
}

/* Payment Highlight Box (কে কতোটা দিলো) */
.app-payment-highlight-card {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.1) 0%, rgba(16, 12, 27, 0.95) 100%);
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.payment-highlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payment-highlight-header .lbl {
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-method-badge {
  background: #E5A93C;
  color: #08060D;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.amount-hero-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0 12px;
}

.amount-currency {
  font-size: 26px;
  font-weight: 700;
  color: #E5A93C;
}

.amount-number {
  font-size: 38px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.amount-period {
  font-size: 14px;
  color: #94A3B8;
  margin-left: 6px;
}

.payment-trx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trx-code-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trx-lbl {
  font-size: 12px;
  color: #94A3B8;
}

.trx-val {
  font-family: monospace;
  font-size: 14px;
  color: #FCD34D;
  letter-spacing: 0.5px;
}

.btn-copy-trx {
  background: rgba(229, 169, 60, 0.2);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #E5A93C;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-trx:hover {
  background: #E5A93C;
  color: #08060D;
}

.payment-proof-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.proof-lbl {
  font-size: 12px;
  color: #CBD5E1;
  display: block;
  margin-bottom: 6px;
}

.proof-img-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.proof-thumbnail {
  width: 50px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #E5A93C;
}

.proof-zoom-hint {
  font-size: 11.5px;
  color: #60A5FA;
}

/* Sections Grid */
.app-details-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.app-detail-section-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
}

.sec-box-title {
  color: #E5A93C;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.sec-box-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-info-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.sec-info-item .k-lbl {
  color: #94A3B8;
  flex-shrink: 0;
}

.sec-info-item .k-val {
  color: #FFFFFF;
  text-align: right;
  word-break: break-word;
}

.sec-info-item .k-val.bold {
  font-weight: 700;
}

.sec-info-item .k-val.highlight-gold {
  color: #E5A93C;
  font-weight: 600;
}

.app-bio-text {
  color: #CBD5E1;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Card Generation Status Box in Modal */
.app-card-generation-status-box {
  margin-top: 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
}

.app-card-generation-status-box.card-active {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
}

.card-status-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.app-card-generation-status-box.card-active .status-icon-circle {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}

.card-status-left strong {
  display: block;
  font-size: 13.5px;
  color: #F59E0B;
  margin-bottom: 3px;
}

.app-card-generation-status-box.card-active strong {
  color: #4ADE80;
}

.card-status-left p {
  color: #94A3B8;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* Modal Footer */
.applicant-modal-footer {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.applied-timestamp {
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-app-modal-accept {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.2s;
}

.btn-app-modal-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.5);
}

.btn-app-modal-viewcard {
  background: #E5A93C;
  color: #08060D;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
  transition: all 0.2s;
}

.btn-app-modal-viewcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 169, 60, 0.5);
}

.btn-app-modal-reject {
  background: transparent;
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-app-modal-reject:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
}

.btn-action-close {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .approvals-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-modal-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-photo-frame {
    margin: 0 auto;
  }
  .app-details-sections-grid {
    grid-template-columns: 1fr;
  }
  .applicant-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-action-btns {
    flex-direction: column;
  }
  .footer-action-btns button {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   EXISTING ACCOUNT PORTAL CARD & RENEWAL STYLES
   ========================================================= */
.existing-account-portal-card {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95), rgba(11, 14, 26, 0.98));
  border: 1px solid rgba(229, 169, 60, 0.45);
  border-radius: 16px;
  padding: 36px 30px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(229, 169, 60, 0.12);
  text-align: center;
}

.existing-card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(229, 169, 60, 0.25), transparent 70%);
  pointer-events: none;
}

.existing-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.existing-card-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.existing-card-title span {
  color: var(--gold-primary, #e5a93c);
}

.existing-card-subtitle {
  color: #cbd5e1;
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.existing-info-chips {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.info-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 12px;
  min-width: 140px;
  text-align: center;
}

.info-chip .chip-label {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-chip .chip-val {
  display: block;
  font-size: 15px;
  color: #f1f5f9;
}

.info-chip .chip-status {
  color: #f5c358;
}

.existing-card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-portal-dash {
  background: linear-gradient(135deg, #e5a93c, #f5c358);
  color: #0b0e1e !important;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.35);
  transition: all 0.2s ease;
}

.btn-portal-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.5);
}

.btn-portal-renew-toggle {
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.5);
  color: #f5c358;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-portal-renew-toggle:hover {
  background: rgba(229, 169, 60, 0.2);
  color: #ffffff;
}

.btn-portal-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-portal-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* =========================================================
   NOTIFICATION BELL ICON (Header)
   ========================================================= */
.btn-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.25);
  color: #e5a93c;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-right: 4px;
}

.btn-notification-bell:hover {
  background: rgba(229, 169, 60, 0.2);
  border-color: #e5a93c;
  transform: scale(1.08);
  color: #e5a93c;
}

.btn-notification-bell:hover .fa-bell {
  animation: bellRing 0.6s ease-in-out;
}

@keyframes bellRing {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  border-radius: 10px;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
  animation: badgePulse 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 3px 10px rgba(239, 68, 68, 0.7); }
}

/* =========================================================
   REALTIME NOTIFICATION CENTER DROPDOWN
   ========================================================= */
.notif-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: rgba(11, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(229, 169, 60, 0.15);
  z-index: 99999;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.notif-dropdown-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.notif-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #0b0f1e;
  border-left: 1px solid rgba(229, 169, 60, 0.3);
  border-top: 1px solid rgba(229, 169, 60, 0.3);
  transform: rotate(45deg);
  z-index: 1;
}

.notif-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.notif-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-bell-icon-pulse {
  color: #e5a93c;
  font-size: 14px;
}

.notif-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.notif-count-badge {
  background: rgba(229, 169, 60, 0.15);
  color: #e5a93c;
  border: 1px solid rgba(229, 169, 60, 0.3);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.notif-mark-read-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.notif-mark-read-btn:hover {
  color: #e5a93c;
  background: rgba(229, 169, 60, 0.1);
}

.notif-tabs-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.notif-tab {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.notif-tab.active {
  background: rgba(229, 169, 60, 0.2);
  color: #e5a93c;
  border-color: rgba(229, 169, 60, 0.45);
}

.notif-list {
  position: relative;
  z-index: 2;
  max-height: 350px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
  width: 5px;
}

.notif-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.notif-list::-webkit-scrollbar-thumb {
  background: rgba(229, 169, 60, 0.3);
  border-radius: 4px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 169, 60, 0.5);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background: rgba(229, 169, 60, 0.08);
}

.notif-item.is-unread {
  background: rgba(229, 169, 60, 0.04);
  border-left: 3px solid #e5a93c;
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.notif-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #e5a93c;
  box-shadow: 0 0 6px #e5a93c;
  flex-shrink: 0;
}

.notif-item-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-time {
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-item-arrow {
  color: #475569;
  font-size: 11px;
  align-self: center;
  margin-left: 4px;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.notif-item:hover .notif-item-arrow {
  color: #e5a93c;
  transform: translateX(3px);
}

.notif-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: #64748b;
}

.notif-empty-state i {
  font-size: 32px;
  color: #475569;
  margin-bottom: 8px;
  display: block;
}

.notif-empty-state p {
  font-size: 12px;
  margin: 0;
}

.notif-footer {
  position: relative;
  z-index: 2;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.notif-footer-link {
  color: #e5a93c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.notif-footer-link:hover {
  color: #f59e0b;
  gap: 10px;
}

/* Responsive Notification Center for Tablet & Mobile (Prevent clipping & cut-off) */
@media (max-width: 768px) {
  .notif-dropdown-panel {
    position: fixed !important;
    top: 68px;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    max-height: calc(100vh - 85px) !important;
    border-radius: 16px !important;
    transform: translateY(-8px) scale(0.97) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(229, 169, 60, 0.25) !important;
    z-index: 999999 !important;
  }

  .notif-dropdown-panel.active {
    transform: translateY(0) scale(1) !important;
  }

  .notif-dropdown-panel::before {
    display: none !important;
  }

  .notif-header {
    padding: 12px 14px;
  }

  .notif-title {
    font-size: 13px;
  }

  .notif-tabs-bar {
    padding: 8px 10px;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .notif-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .notif-tab {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 11px;
  }

  .notif-list {
    max-height: calc(100vh - 220px);
  }
}

@media (max-width: 480px) {
  .notif-dropdown-panel {
    left: 8px !important;
    right: 8px !important;
    top: 62px;
  }
}

body.admin-bar .notif-dropdown-panel {
  top: 112px;
}


/* =========================================================
   SPECIAL MESSAGES PAGE — SPEECH CARDS
   ========================================================= */
.messages-hero-section {
  background: linear-gradient(135deg, #0b071a 0%, #1a1035 50%, #2d1b4e 100%);
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.messages-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(229, 169, 60, 0.06) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.messages-cards-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 60px 0 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.speech-message-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speech-message-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.speech-author-col {
  background: linear-gradient(135deg, #0b071a 0%, #1a1035 100%);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.speech-author-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(229, 169, 60, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.speech-photo-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e5a93c;
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.speech-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speech-author-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.speech-author-role {
  font-size: 12px;
  color: #e5a93c;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
}

.speech-body-col {
  padding: 40px 36px;
  position: relative;
}

.speech-watermark-quote {
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 120px;
  line-height: 1;
  color: rgba(229, 169, 60, 0.06);
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
  user-select: none;
}

.speech-headline {
  font-size: 20px;
  font-weight: 700;
  color: #0b071a;
  line-height: 1.4;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(229, 169, 60, 0.15);
}

.speech-paragraph {
  font-size: 14.5px;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.speech-paragraph:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .speech-message-card {
    grid-template-columns: 1fr;
  }

  .speech-author-col {
    padding: 30px 24px;
    flex-direction: row;
    gap: 16px;
    text-align: left;
    justify-content: flex-start;
  }

  .speech-photo-box {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .speech-body-col {
    padding: 24px 20px;
  }

  .speech-headline {
    font-size: 17px;
  }

  .speech-watermark-quote {
    font-size: 80px;
  }

  .messages-cards-list {
    padding: 30px 0 50px;
    gap: 24px;
  }

  .messages-hero-section {
    padding: 80px 0 50px;
  }

  .btn-notification-bell {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
  
  .notif-badge {
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 8.5px;
    top: -2px;
    right: -2px;
  }
}

/* ==========================================================================
   EXCLUSIVE HIGH-PRIORITY MOBILE STYLING: MEMBERSHIP CARD & ACTION BUTTONS
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent horizontal scrollbars and ensure full centering */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .main-dashboard-wrapper,
  .dashboard-main-section {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px 0 35px !important;
  }

  /* Container & Profile Card Full Containment */
  .dashboard-main-section .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    overflow-x: hidden !important;
  }

  .dashboard-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .dashboard-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .dashboard-sidebar-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dashboard-content-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .dashboard-tab-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 16px !important;
  }

  /* 1. MEMBER PROFILE SUMMARY CARD - PURE VERTICAL CENTERED LAYOUT */
  .dashboard-card.member-profile-card,
  .member-profile-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 8px 24px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .member-avatar-col {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto 12px auto !important;
  }

  .member-avatar-wrapper {
    margin: 0 auto !important;
  }

  /* Member Meta Details */
  .member-info-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .dash-member-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    margin: 4px auto 10px auto !important;
    text-align: center !important;
    width: 100% !important;
  }

  .dash-meta-item {
    font-size: 12px !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    margin: 0 auto 5px auto !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* 2-Column Balanced Grid for Card Action Buttons */
  .id-card-actions-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 16px auto 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  /* Main Download PDF Button (Full Width Header) */
  .btn-download-pdf {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 44px !important;
    background: linear-gradient(135deg, #f5c358 0%, #e5a93c 50%, #b87d18 100%) !important;
    color: #090e1c !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 18px rgba(229, 169, 60, 0.4) !important;
    border: none !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .btn-download-pdf:active {
    transform: scale(0.98) !important;
  }

  /* Secondary Actions: Flip Card, PNG Front, PNG Back, Print */
  .btn-flip-card,
  .btn-download-png,
  .btn-print-card {
    width: 100% !important;
    height: 38px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .btn-flip-card {
    background: rgba(229, 169, 60, 0.12) !important;
    border: 1px solid rgba(229, 169, 60, 0.45) !important;
    color: #fde68a !important;
    font-weight: 700 !important;
  }

  .btn-flip-card:active {
    background: rgba(229, 169, 60, 0.25) !important;
    transform: scale(0.98) !important;
  }

  .btn-download-png,
  .btn-print-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f1f5f9 !important;
  }

  .btn-download-png:active,
  .btn-print-card:active {
    background: rgba(229, 169, 60, 0.18) !important;
    border-color: #e5a93c !important;
    color: #ffffff !important;
    transform: scale(0.98) !important;
  }

  /* 2. Card Showcase Stage - 100% CENTERED */
  .id-card-stage-container:not([style*="display: none"]):not([style*="display:none"]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 18px auto 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 24px !important;
    overflow: visible !important;
  }
  .id-card-stage-container[style*="display: none"],
  .id-card-stage-container[style*="display:none"] {
    display: none !important;
  }

  .id-card-perspective-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .id-card-side-label {
    font-size: 11px !important;
    letter-spacing: 1.8px !important;
    color: #e5a93c !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 auto 10px auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  /* 3. The CR80 Physical Card - ALWAYS CENTERED & NON-OVERFLOWING */
  .yms-cr80-card {
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;
    height: 508px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 0 1.5px rgba(229, 169, 60, 0.55), 0 0 25px rgba(229, 169, 60, 0.15) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }

  .id-card-bottom-area {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .id-card-bottom-svg {
    width: 100% !important;
    height: 186px !important;
    left: 0 !important;
    right: 0 !important;
  }

  .card-front .id-card-bottom-area,
  .card-front .id-card-bottom-svg,
  .id-card-bottom-area-front,
  .id-card-bottom-svg-front {
    height: 230px !important;
  }

  .id-seal-badge-container {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .card-front .id-seal-badge-container,
  .id-seal-badge-container-front {
    top: 42px !important;
  }

  .id-footer-signatures-row {
    left: 12px !important;
    right: 12px !important;
    bottom: 24px !important;
    box-sizing: border-box !important;
  }

  .id-front-motto-row {
    bottom: 28px !important;
  }

  /* 4. GENERAL DASHBOARD CARDS & HEADERS - 100% CONTAINED & VISIBLE */
  .dashboard-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 18px 14px !important;
    border-radius: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px !important;
  }

  .dash-card-header {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  .dash-card-header .header-icon {
    font-size: 16px !important;
    color: #e5a93c !important;
    flex-shrink: 0 !important;
  }

  .dash-card-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    margin: 0 !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
  }

  .tab-subtitle {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
    margin: 0 0 14px 0 !important;
    word-break: break-word !important;
  }

  /* 5. TRANSACTION HISTORY & PAYMENT LEDGER TABLES - HORIZONTALLY SCROLLABLE & LEFT-ALIGNED */
  .transaction-history-card,
  .dashboard-card:has(.table-responsive),
  .dashboard-card:has(#paymentHistoryCloneContainer) {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .table-responsive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    margin: 6px 0 0 0 !important;
    padding-bottom: 8px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(229, 169, 60, 0.18) !important;
    background: rgba(11, 17, 34, 0.5) !important;
    touch-action: pan-x pan-y !important;
  }

  .table-responsive::-webkit-scrollbar {
    height: 5px !important;
  }
  .table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
  }
  .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(229, 169, 60, 0.45) !important;
    border-radius: 4px !important;
  }

  .dash-transaction-table {
    width: 100% !important;
    min-width: 520px !important;
    border-collapse: collapse !important;
    font-size: 12px !important;
    margin: 0 !important;
    table-layout: auto !important;
  }

  .dash-transaction-table th {
    padding: 10px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
    background: rgba(14, 22, 45, 0.85) !important;
    border-bottom: 1px solid rgba(229, 169, 60, 0.25) !important;
    text-align: left !important;
  }

  .dash-transaction-table td {
    padding: 10px 10px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .dash-transaction-table .ledger-date-cell {
    min-width: 140px !important;
  }

  .dash-transaction-table .ledger-datetime {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .dash-transaction-table .ledger-day-date {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }

  .dash-transaction-table .ledger-day-date i {
    color: #e5a93c !important;
    font-size: 11px !important;
  }

  .dash-transaction-table .ledger-time-text {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    padding-left: 2px !important;
  }

  .dash-transaction-table .amount-val {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #e5a93c !important;
    white-space: nowrap !important;
  }

  .dash-transaction-table .badge-completed {
    font-size: 10.5px !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .dash-transaction-table .btn-invoice {
    font-size: 10.5px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  /* 6. MEMBERSHIP DETAILS CARD - VERTICAL MOBILE LAYOUT */
  .membership-details-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .details-card-image-col {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  .details-meta-col {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .meta-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .details-crest-col {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 0 0 0 !important;
    margin-top: 4px !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 7. INNER FORMS & MODALS FULL RESPONSIVENESS */
  .form-row-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-group {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Extra Mobile Precision for Viewports <= 360px */
@media screen and (max-width: 360px) {
  .dashboard-main-section .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .dashboard-card.member-profile-card,
  .member-profile-card {
    padding: 16px 4px 20px !important;
  }

  .yms-cr80-card {
    width: 300px !important;
    height: 476px !important;
    margin: 0 auto !important;
  }

  .id-card-header-block {
    padding: 10px 10px 4px 10px !important;
  }

  .id-card-front-body {
    padding: 6px 8px 0 8px !important;
    gap: 8px !important;
  }

  .id-card-photo-box {
    width: 84px !important;
    height: 126px !important;
  }

  .id-info-row {
    font-size: 9.5px !important;
    margin-bottom: 3px !important;
    line-height: 1.4 !important;
  }

  .id-info-row .lbl {
    width: 60px !important;
    font-size: 9.2px !important;
  }

  .id-info-row .val {
    font-size: 9.8px !important;
    line-height: 1.35 !important;
  }

  .id-sig-col {
    width: 108px !important;
  }

  .id-sig-graphic {
    max-width: 86px !important;
  }

  .id-sig-name {
    font-size: 10.5px !important;
  }

  .id-card-actions-toolbar {
    max-width: 290px !important;
    gap: 6px !important;
  }

  .btn-flip-card,
  .btn-download-png,
  .btn-print-card {
    font-size: 10px !important;
    height: 36px !important;
    padding: 0 3px !important;
  }
}

/* Extra Compact Mobile <= 325px */
@media screen and (max-width: 325px) {
  .yms-cr80-card {
    width: 275px !important;
    height: 436px !important;
    margin: 0 auto !important;
  }

  .id-card-photo-box {
    width: 96px !important;
    height: 148px !important;
  }

  .id-info-row .lbl {
    width: 50px !important;
    font-size: 8.5px !important;
  }

  .id-info-row .val {
    font-size: 8.8px !important;
  }

  .id-sig-col {
    width: 98px !important;
  }

  .id-sig-name {
    font-size: 9.8px !important;
  }

  .id-card-actions-toolbar {
    max-width: 260px !important;
  }

  .btn-flip-card,
  .btn-download-png,
  .btn-print-card {
    font-size: 9.5px !important;
  }
}

/* =========================================================
   MEMBER NOTIFICATION POPUP MODAL (SECURITY & DETAILS)
   ========================================================= */
#ymsMemberNotifModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(4, 3, 8, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

#ymsMemberNotifModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.member-notif-modal-card {
  max-width: 490px !important;
  background: linear-gradient(145deg, #130d22 0%, #1a102f 100%) !important;
  border: 1px solid rgba(229, 169, 60, 0.45) !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.92), 0 0 35px rgba(229, 169, 60, 0.18) !important;
  padding: 30px 24px !important;
  position: relative !important;
}

.member-notif-icon-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(229, 169, 60, 0.25) 100%);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  animation: pulseNotifBadge 2.4s infinite ease-in-out;
}

@keyframes pulseNotifBadge {
  0% { transform: scale(1); box-shadow: 0 0 14px rgba(16, 185, 129, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 26px rgba(16, 185, 129, 0.55); }
  100% { transform: scale(1); box-shadow: 0 0 14px rgba(16, 185, 129, 0.3); }
}

.mnotif-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0 auto 18px auto;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.mnotif-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mnotif-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 480px) {
  .mnotif-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.mnotif-info-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 169, 60, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mnotif-full-width {
  grid-column: 1 / -1;
}

.mnotif-info-label {
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mnotif-info-label i {
  color: #e5a93c;
  font-size: 11px;
}

.mnotif-info-value {
  font-size: 13.5px;
  color: #f8fafc;
  word-break: break-word;
  font-weight: 600;
}

.mnotif-security-notice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

.mnotif-security-notice i {
  color: #38bdf8;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.mnotif-security-notice strong {
  display: block;
  color: #7dd3fc;
  margin-bottom: 2px;
  font-size: 12.5px;
}

.mnotif-security-notice p {
  margin: 0;
  color: #94a3b8;
  font-size: 11.5px;
}

/* Global Print Styles - Never print payment details, gateways or transaction ledgers */
@media print {
  .channel-tabs-bar,
  .app-channel-guide-box,
  .payment-required-notice,
  .example-trx-preview,
  .trx-verify-container,
  #appChannelGuideBox,
  #evChannelGuideBox,
  #evChannelTabsBar,
  .app-field-group.upload-group,
  #paymentVerifyForm,
  .payment-method-card,
  .payment-gateways-grid,
  .pm-instructions-wrap,
  .transaction-history-card,
  .recent-transactions-card,
  #transactionTable,
  .dash-transaction-table,
  .table-responsive:has(#transactionTable),
  .btn-invoice,
  #tabPayments,
  #paymentHistoryCloneContainer,
  .payment-details-box,
  .payment-history-wrap,
  .dash-payment-only-meta {
    display: none !important;
  }
}

/* ==========================================================================
   YMS MASTER 100% MOBILE RESPONSIVE ENGINE (ALL PAGES & TEMPLATES)
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* 1. Base Global Overflow & Touch Optimizations */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
  }

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

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Prevent headings and long strings from breaking layout */
  h1, h2, h3, h4, h5, h6,
  .hero-main-title,
  .page-title,
  .entry-title,
  .archive-title {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Universal Media Safety */
  img, video, iframe, canvas {
    max-width: 100% !important;
    height: auto;
  }

  /* Table Horizontal Scrolling */
  .table-responsive,
  .dashboard-table-container,
  .notices-table-wrap,
  div:has(> table) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ================= HEADER & NAV BAR ================= */
  .site-header {
    height: auto !important;
    min-height: 56px !important;
  }

  .site-header .container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .header-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Mobile Drawer Menu */
  .main-nav-list {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Notification Bell & Dropdown Panel */
  .notif-dropdown-panel {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    z-index: 999999 !important;
  }

  /* ================= ALL MODALS & DIALOGS ================= */
  .modal-overlay {
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-container,
  .login-modal-card,
  .search-modal-card,
  .member-notif-modal-card,
  .ticket-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 16px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .modal-container input,
  .modal-container select,
  .modal-container textarea {
    font-size: 16px !important;
  }

  /* ================= 1. HOME (front-page.php) ================= */
  .hero-section {
    padding: 85px 0 45px !important;
    min-height: auto !important;
  }

  .hero-content {
    max-width: 100% !important;
    text-align: center !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 22px auto 0 !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 18px !important;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }

  .stat-item {
    padding: 8px !important;
    gap: 8px !important;
  }

  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .quick-card {
    padding: 18px 12px !important;
  }

  .showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .cta-banner-wrapper {
    flex-direction: column !important;
    padding: 28px 16px !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .cta-hat-col,
  .cta-action-col {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .cta-perks-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .btn-cta-apply {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ================= 2. ABOUT US (page-about.php) ================= */
  .about-hero-banner {
    padding: 80px 0 40px !important;
  }

  .welcome-story-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .who-showcase-box {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .who-left-media,
  .who-right-media {
    display: none !important;
  }

  .who-content-col {
    padding: 24px 18px !important;
  }

  .about-stats-card {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding: 20px 14px !important;
  }

  /* ================= 3. COMMITTEE (page-committee.php) ================= */
  .committee-hero-section {
    padding: 85px 0 35px !important;
  }

  .committee-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 12px !important;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .committee-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
    gap: 16px !important;
  }

  /* ================= 4. IN MEMORY (page-in-memory.php) ================= */
  .memory-hero-section {
    padding: 85px 0 35px !important;
  }

  .memory-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    gap: 18px !important;
  }

  .memory-card {
    padding: 22px 16px !important;
  }

  .candle-tribute-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ================= 5. SPECIAL MESSAGES (page-messages.php) ================= */
  .messages-hero-section {
    padding: 85px 0 35px !important;
  }

  .speech-message-card {
    flex-direction: column !important;
    padding: 22px 16px !important;
    gap: 18px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .speech-author-col {
    width: 100% !important;
    max-width: 220px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(229, 169, 60, 0.25) !important;
    padding-bottom: 16px !important;
    margin: 0 auto !important;
  }

  .speech-body-col {
    width: 100% !important;
    text-align: left !important;
  }

  /* ================= 6. MEMBERS DIRECTORY (page-members.php) ================= */
  .members-hero-section {
    padding: 85px 0 35px !important;
  }

  .members-hero-stats {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .members-control-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .members-filter-tabs {
    width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
  }

  .members-filter-tabs .m-tab-btn {
    flex-shrink: 0 !important;
  }

  .members-search-wrapper {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .m-search-input,
  .m-district-select {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .members-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)) !important;
    gap: 16px !important;
  }

  /* ================= 7. MEMBER VERIFY (page-verify-member.php) ================= */
  .verify-header-flex {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
    padding: 20px 14px !important;
  }

  .verify-photo-wrap {
    margin: 0 auto !important;
  }

  .verify-header-info {
    width: 100% !important;
    text-align: center !important;
  }

  .verify-header-info > div:first-child {
    justify-content: center !important;
  }

  .verify-hologram-seal {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .verify-details-container {
    padding: 16px 12px !important;
  }

  .verify-details-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* ================= 8. MEMBERSHIP & FORMS (page-membership.php, page-forms.php) ================= */
  .app-hero-container {
    flex-direction: column !important;
    text-align: center !important;
    padding: 85px 14px 30px !important;
  }

  .membership-app-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .app-form-col {
    padding: 18px 14px !important;
  }

  .tier-selection-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .tier-card {
    padding: 12px 8px !important;
    text-align: center !important;
  }

  .channel-tabs-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .channel-tab-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  .app-form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .card-actions-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .btn-card-action {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 6px !important;
    font-size: 11.5px !important;
    box-sizing: border-box !important;
  }

  .mode-btn-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .btn-app-mode-switch {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .form-tabs-header {
    width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }

  .f-tab-btn {
    flex-shrink: 0 !important;
  }

  /* ================= 9. EVENTS & EVENT DETAILS ================= */
  .events-hero-section {
    padding: 85px 0 35px !important;
  }

  .events-content-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .events-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .events-sidebar {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .portal-layout {
    flex-direction: column !important;
  }

  .portal-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: translateX(-100%) !important;
    z-index: 99999 !important;
    width: 270px !important;
  }

  .portal-sidebar.open {
    transform: translateX(0) !important;
  }

  .portal-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .portal-content-view {
    padding: 14px 10px !important;
  }

  .event-photos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .event-participants-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* ================= 10. NEWS, SEARCH & ARCHIVE ================= */
  .news-hero-section,
  .archive-header-banner,
  .search-results-banner {
    padding: 85px 0 35px !important;
  }

  .news-content-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .news-cards-grid,
  .archive-posts-grid,
  .search-results-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .news-sidebar {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .single-post-article,
  .standard-page-card {
    padding: 20px 14px !important;
    border-radius: 10px !important;
  }

  .single-post-article .post-title,
  .entry-title {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  /* ================= 11. NOTICES (page-notices.php) ================= */
  .notices-hero-section {
    padding: 85px 0 35px !important;
  }

  .notice-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px 14px !important;
    gap: 12px !important;
  }

  .notice-date-box {
    width: 100% !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
  }

  .notice-actions-col {
    flex-direction: row !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .btn-notice-action {
    flex: 1 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ================= 12. GALLERY (page-gallery.php) ================= */
  .gallery-hero-section {
    padding: 85px 0 35px !important;
  }

  .gallery-nav-tabs {
    width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }

  .gallery-nav-tabs .tab-btn {
    flex-shrink: 0 !important;
  }

  .gallery-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
    gap: 14px !important;
  }

  /* ================= 13. PAYMENT GUIDE (page-payment.php) ================= */
  .payment-hero-section {
    padding: 85px 0 35px !important;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .payment-method-card {
    padding: 20px 14px !important;
  }

  /* ================= 14. CONTACT US (page-contact.php) ================= */
  .contact-hero-section {
    padding: 85px 0 35px !important;
  }

  .contact-main-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .contact-form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .btn-contact-submit {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ================= 15. DASHBOARD (page-dashboard.php) ================= */
  .dashboard-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .dashboard-sidebar-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .sidebar-nav-btn {
    width: 100% !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ================= 16. FOOTER (footer.php) ================= */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
  }

  .footer-col-intro,
  .footer-col {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-social-links,
  .footer-socials {
    justify-content: center !important;
  }

  .footer-contact-list {
    align-items: center !important;
  }

  .contact-info-item {
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-emblem {
    margin: 0 auto !important;
  }

  .footer-bottom-flex {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
  }
}

/* 2. Extra Mobile Precision for 320px to 400px viewports */
@media screen and (max-width: 400px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .tier-selection-grid {
    grid-template-columns: 1fr !important;
  }

  .channel-tabs-bar {
    grid-template-columns: 1fr !important;
  }

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

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

  .cta-perks-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-sidebar-menu {
    grid-template-columns: 1fr !important;
  }

  .about-values-grid {
    grid-template-columns: 1fr !important;
  }

  .about-stats-card {
    grid-template-columns: 1fr !important;
  }
}


