/* ============================================
   OSP Lahore Branch – Central Stylesheet
   Complete & Unified Responsive Code
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d4f8b;
  --primary-dark: #093a66;
  --primary-light: #1a73b5;
  --secondary: #2980b9;
  --accent: #3498db;
  --accent-light: #5dade2;
  --gold: #d4a843;
  --gold-dark: #b8912e;
  --light-blue: #eaf2f8;
  --lighter-blue: #f0f7fc;
  --white: #ffffff;
  --off-white: #f8fbfe;
  --gray-50: #f9fafb;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --text-dark: #1a2332;
  --text-body: #3a4a5c;
  --text-muted: #6b7c8f;
  --success: #27ae60;
  --danger: #e74c3c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Poppins', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent horizontal scrolling globally */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--off-white);
  max-width: 100%;
  overflow-x: hidden;
  -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; }

h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#siteHeader:empty, #siteFooter:empty { min-height: 0; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--white); }

.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-right { display: flex; align-items: center; gap: 14px; }

.top-bar-right a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 12px;
}

.top-bar-right a:hover { background: var(--accent); color: var(--white); }

/* ============================================
   MAIN HEADER / NAVBAR
   ============================================ */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  position: relative;
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.logo-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 24px;
  box-shadow: 0 4px 12px rgba(13,79,139,0.3);
}

.logo-text h1 { font-size: 16px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.logo-text span { font-size: 11.5px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.5px; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.main-nav a {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  position: relative;
  white-space: normal; /* Allow wrapping on smaller screens */
}

.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--light-blue); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px; background: var(--primary); border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: var(--light-blue);
  border: none;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.menu-toggle:hover { background: var(--light-blue); }

/* ============================================
   SECONDARY NAVIGATION
   ============================================ */
.secondary-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 0;
  position: sticky;
  top: 86px;
  z-index: 999;
}

.secondary-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto; /* Allows horizontal scroll on mobile without breaking screen */
  padding: 0 10px;
}

.secondary-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap; /* Keep on one line, use overflow-x above */
  border-bottom: 2.5px solid transparent;
  transition: var(--transition);
}

.secondary-nav a i { font-size: 12px; opacity: 0.7; }
.secondary-nav a:hover, .secondary-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); border-bottom-color: var(--gold); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #00838f 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.03) 0%, transparent 45%);
  pointer-events: none; z-index: 0;
}

.hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
}

.hero-content { min-width: 0; }
.hero-content h1 {
  font-size: 2.6rem; font-weight: 700; color: #fff;
  line-height: 1.25; margin: 0 0 20px 0; letter-spacing: -0.01em;
}

.hero-content h1 .highlight { color: #4dd0e1; position: relative; }
.hero-content h1 .highlight::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 3px; background: rgba(77, 208, 225, 0.4); border-radius: 2px;
}

.hero-content p { font-size: 1rem; color: rgba(255, 255, 255, 0.78); line-height: 1.8; margin: 0 0 30px 0; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-image-wrapper {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.2); line-height: 0;
}

.hero-image-wrapper img { width: 100%; height: 340px; object-fit: cover; display: block; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
  padding: 16px 10px; text-align: center; transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.18); }
.hero-stat .number { font-size: 1.6rem; font-weight: 700; color: #4dd0e1; line-height: 1; margin-bottom: 4px; }
.hero-stat .label { font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-family: var(--font-primary);
  font-size: 13.5px; font-weight: 600; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: var(--transition);
  text-transform: none; letter-spacing: 0.3px;
}

.btn-conference { background-color: #0d4f8b; color: rgba(255,255,255,0.85); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn-primary { background: var(--white); color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); box-shadow: 0 4px 14px rgba(13,79,139,0.3); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,79,139,0.4); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); box-shadow: 0 4px 14px rgba(212,168,67,0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,67,0.4); }
.btn-sm { padding: 8px 18px; font-size: 12.5px; }
.btn-lg { padding: 14px 32px; font-size: 14.5px; }

/* ============================================
   SECTION STYLING
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--lighter-blue); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--light-blue); color: var(--primary);
  padding: 6px 16px; border-radius: 50px; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}

.section-header h2 { font-size: 2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 15px; }
.section-header .divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 16px auto 0; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-body { padding: 28px; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); }
.about-image .overlay-badge { position: absolute; bottom: 20px; left: 20px; background: var(--white); padding: 14px 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.about-image .overlay-badge .big { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.about-image .overlay-badge .small { font-size: 12px; color: var(--text-muted); }

.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-body); margin-bottom: 14px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.about-feature { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--lighter-blue); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: var(--text-dark); }
.about-feature i { color: var(--primary); font-size: 14px; }

/* ============================================
   OFFICE BEARERS
   ============================================ */
.bearers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.bearer-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); position: relative;
}
.bearer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bearer-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: var(--transition); }
.bearer-card:hover::before { opacity: 1; }

.bearer-img-wrapper { width: 110px; height: 110px; margin: 24px auto 16px; border-radius: 50%; overflow: hidden; border: 3px solid var(--light-blue); transition: var(--transition); }
.bearer-card:hover .bearer-img-wrapper { border-color: var(--accent); }
.bearer-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.bearer-card h4 { font-size: 15px; margin-bottom: 4px; }
.bearer-card .designation { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; padding-bottom: 20px; }

/* ============================================
   CONFERENCE BANNER
   ============================================ */
.conference-banner {
  position: relative; background: linear-gradient(135deg, var(--primary-dark), var(--secondary), var(--accent));
  border-radius: var(--radius-xl); padding: 50px; overflow: hidden; color: var(--white); width: 100%; max-width: 100%;
}
.conference-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 500px 300px at 90% 20%, rgba(212,168,67,0.2), transparent), radial-gradient(ellipse 400px 400px at 10% 80%, rgba(52,152,219,0.2), transparent); pointer-events: none; }
.conference-banner > * { position: relative; z-index: 2; }

.conf-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

.conf-text { min-width: 0; max-width: 100%; }
.conf-text .conf-label { display: inline-flex; align-items: center; gap: 6px; background: rgba(212,168,67,0.2); color: var(--gold); padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; border: 1px solid rgba(212,168,67,0.3); }
.conf-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; line-height: 1.25; }
.conf-text .conf-details { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; flex-wrap: nowrap; justify-content: flex-start; }
.conf-text .conf-detail { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }
.conf-text .conf-detail i { color: var(--gold); width: 16px; text-align: center; flex-shrink: 0; }

.conf-image { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: visible; box-sizing: border-box; }
.conf-image-frame { position: relative; width: 100%; max-width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.2); border: 4px solid rgba(255,255,255,0.2); transition: transform 0.4s ease; box-sizing: border-box; }
.conf-image-frame:hover { transform: translateY(-4px); }
.conf-image-frame img { width: 100%; height: 660px; object-fit: cover; display: block; max-width: 100%; }

.conf-float { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.conf-float-1 { width: 150px; height: 150px; background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); top: -25px; right: -25px; }
.conf-float-2 { width: 80px; height: 80px; background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.05)); bottom: -15px; left: -15px; }

/* ============================================
   PRESIDENT'S MESSAGE
   ============================================ */
.message-grid { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; }
.message-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: 160px; }
.message-image img { width: 100%; height: 420px; object-fit: cover; }
.message-image .caption { background: var(--primary); color: var(--white); padding: 14px 20px; text-align: center; font-size: 13px; font-weight: 500; }

.message-content { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.message-content .quote-icon { font-size: 36px; color: var(--accent); opacity: 0.3; margin-bottom: 10px; }
.message-content h3 { margin-bottom: 20px; color: var(--primary-dark); }
.message-content p { color: var(--text-body); line-height: 1.85; font-size: 14.5px; }
.message-signature { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.message-signature .name { font-weight: 600; color: var(--text-dark); font-size: 15px; }
.message-signature .role { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ============================================
   NEWS & EVENTS
   ============================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card-img { width: 100%; height: 180px; object-fit: cover; }
.news-card-body { padding: 24px; }
.news-card .date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary); font-weight: 600; background: var(--light-blue); padding: 4px 12px; border-radius: 50px; margin-bottom: 10px; }
.news-card h4 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.news-card .read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.news-card .read-more:hover { gap: 10px; color: var(--primary-light); }

/* Text-based News Cards */
.news-text-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-text-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); border-left: 3px solid transparent; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.news-text-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; border-left-color: var(--accent); }
.news-text-card-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; gap: 12px; }
.news-text-date { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.news-text-day { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.news-text-month { font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.news-text-year { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.news-text-meta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.news-text-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
.news-text-tag i { font-size: 10px; }
.news-text-tag.tag-conference { background: #dbeafe; color: #1d4ed8; }
.news-text-tag.tag-workshop { background: #d1fae5; color: #059669; }
.news-text-tag.tag-award { background: #fef3c7; color: #b45309; }
.news-text-tag.tag-cme { background: #ede9fe; color: #6d28d9; }
.news-text-tag.tag-membership { background: #fce7f3; color: #be185d; }
.news-text-tag.tag-publication { background: #e0e7ff; color: #4338ca; }
.news-text-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.news-text-badge.new { background: #fef2f2; color: #dc2626; animation: pulse-badge 2s ease-in-out infinite; }
.news-text-badge.new i { font-size: 8px; }
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.news-text-card-body { padding: 16px 24px 0; flex-grow: 1; }
.news-text-card-body h4 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; color: var(--text-dark); transition: var(--transition); }
.news-text-card:hover .news-text-card-body h4 { color: var(--primary); }
.news-text-card-body p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 0; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-text-card-footer { padding: 16px 24px 20px; }
.news-text-card-footer .read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.news-text-card-footer .read-more:hover { gap: 10px; color: var(--primary-light); }

/* ============================================
   PAGE BANNER / BREADCRUMB
   ============================================ */
.page-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary)); padding: 60px 0 50px; text-align: center; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 24px 24px; }
.page-banner h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; position: relative; }
.page-banner p { color: rgba(255,255,255,0.7); font-size: 15px; position: relative; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 16px; position: relative; font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .separator { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: var(--gold); font-weight: 500; }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); }
.data-table th { padding: 14px 20px; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.data-table td { padding: 13px 20px; border-bottom: 1px solid var(--gray-100); color: var(--text-body); }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: var(--lighter-blue); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--light-blue); color: var(--primary); border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; }
.data-table .link-btn:hover { background: var(--primary); color: var(--white); }

/* ============================================
   MEMBERS PAGE
   ============================================ */
.members-intro { max-width: 800px; margin: 0 auto 10px; text-align: center; }
.members-intro p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.members-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 40px; }
.member-stat-card { background: var(--white); border-radius: var(--radius-md); padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.member-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.member-stat-card .stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.member-stat-card .stat-icon.life { background: #fef3c7; color: #d97706; }
.member-stat-card .stat-icon.ordinary { background: #dbeafe; color: #2563eb; }
.member-stat-card .stat-icon.associate { background: #d1fae5; color: #059669; }
.member-stat-card .stat-icon.honorary { background: #ede9fe; color: #7c3aed; }
.member-stat-card .stat-icon.overseas { background: #fce7f3; color: #db2777; }
.member-stat-card .stat-number { font-size: 1.6rem; font-weight: 700; color: var(--text-dark); line-height: 1; margin-bottom: 4px; }
.member-stat-card .stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.membership-info { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-bottom: 40px; }
.membership-info h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.membership-info h3 i { color: var(--primary); }
.membership-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.membership-type { padding: 20px; background: var(--lighter-blue); border-radius: var(--radius-md); border-left: 3px solid var(--accent); }
.membership-type h4 { font-size: 14px; margin-bottom: 6px; color: var(--primary); }
.membership-type p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

.search-bar { max-width: 500px; margin: 0 auto 30px; position: relative; }
.search-bar input { width: 100%; padding: 14px 20px 14px 48px; border: 1.5px solid var(--gray-300); border-radius: 50px; font-family: var(--font-primary); font-size: 14px; color: var(--text-dark); background: var(--white); transition: var(--transition); outline: none; box-shadow: var(--shadow-sm); }
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(52,152,219,0.1); }
.search-bar i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 15px; }

.no-results { text-align: center; padding: 40px 20px; color: var(--text-muted); display: none; }
.no-results i { font-size: 40px; color: var(--gray-300); margin-bottom: 12px; }

.member-section { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-bottom: 20px; overflow: hidden; transition: var(--transition); }
.member-section:hover { box-shadow: var(--shadow-md); }
.member-section-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; background: var(--lighter-blue); border-bottom: 1px solid var(--gray-200); cursor: pointer; transition: var(--transition); user-select: none; }
.member-section-header:hover { background: var(--light-blue); }
.member-section-header h3 { display: flex; align-items: center; gap: 12px; font-size: 16px; margin: 0; }
.member-section-header h3 .section-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.member-section-header h3 .section-icon.life { background: #fef3c7; color: #d97706; }
.member-section-header h3 .section-icon.ordinary { background: #dbeafe; color: #2563eb; }
.member-section-header h3 .section-icon.associate { background: #d1fae5; color: #059669; }
.member-section-header h3 .section-icon.honorary { background: #ede9fe; color: #7c3aed; }
.member-section-header h3 .section-icon.overseas { background: #fce7f3; color: #db2777; }
.member-section-header .header-right { display: flex; align-items: center; gap: 14px; }
.member-section-header .count { background: var(--primary); color: var(--white); padding: 3px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.member-section-header .toggle-icon { color: var(--text-muted); transition: transform 0.3s ease; font-size: 13px; }
.member-section.open .toggle-icon { transform: rotate(180deg); }

.member-section-body { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.member-section.open .member-section-body { max-height: 3000px; }
.member-section-body-inner { padding: 24px 28px; }
.member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.member-list li { padding: 10px 14px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-body); display: flex; align-items: center; gap: 10px; transition: var(--transition); border: 1px solid transparent; }
.member-list li:hover { background: var(--light-blue); border-color: rgba(52,152,219,0.15); }
.member-list li .member-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 10px; font-weight: 700; flex-shrink: 0; text-transform: uppercase; }
.member-list li .member-avatar.gold { background: linear-gradient(135deg, #d97706, #f59e0b); }
.member-list li .member-avatar.green { background: linear-gradient(135deg, #059669, #10b981); }
.member-list li .member-avatar.purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.member-list li .member-avatar.pink { background: linear-gradient(135deg, #db2777, #ec4899); }
.member-list li .member-location { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.member-section-body .download-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.member-section-body .download-row p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ============================================
   MEETINGS PAGES (Monthly & Executive)
   ============================================ */
.meetings-intro, .exec-intro { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.meetings-intro p, .exec-intro p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.meetings-features { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.meeting-feature { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); font-size: 13.5px; font-weight: 500; color: var(--text-dark); }
.meeting-feature i { color: var(--primary); font-size: 16px; }
.year-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.year-filter .filter-btn { padding: 8px 20px; border-radius: 50px; border: 1.5px solid var(--gray-300); background: var(--white); font-family: var(--font-primary); font-size: 13px; font-weight: 600; color: var(--text-body); cursor: pointer; transition: var(--transition); }
.year-filter .filter-btn:hover { border-color: var(--accent); color: var(--primary); }
.year-filter .filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 3px 10px rgba(13,79,139,0.25); }

.meeting-topic { font-weight: 600; color: var(--text-dark); font-size: 13.5px; display: block; margin-bottom: 3px; }
.meeting-speaker { font-size: 12.5px; color: var(--text-muted); font-style: italic; }
.meeting-date-cell { white-space: nowrap; font-weight: 500; color: var(--text-dark); }
.meeting-date-cell .day { font-size: 12px; color: var(--text-muted); display: block; }
.meeting-venue { font-size: 13px; color: var(--text-body); }
.recording-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fef2f2; color: #dc2626; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.recording-btn:hover { background: #dc2626; color: var(--white); transform: translateY(-1px); }
.recording-btn.unavailable { background: var(--gray-50); color: var(--gray-400); cursor: default; }
.recording-btn.unavailable:hover { background: var(--gray-50); color: var(--gray-400); transform: none; }
.upcoming-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: #dbeafe; color: #1d4ed8; border-radius: 50px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 8px; }

.meetings-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.summary-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.summary-card .summary-icon { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.summary-card .summary-icon.blue { background: #dbeafe; color: #2563eb; }
.summary-card .summary-icon.red { background: #fef2f2; color: #dc2626; }
.summary-card .summary-icon.green { background: #d1fae5; color: #059669; }
.summary-card .summary-number { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); line-height: 1; margin-bottom: 4px; }
.summary-card .summary-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.exec-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.exec-info-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.exec-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.exec-info-card .exec-icon { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.exec-info-card .exec-icon.blue { background: #dbeafe; color: #2563eb; }
.exec-info-card .exec-icon.amber { background: #fef3c7; color: #d97706; }
.exec-info-card .exec-icon.green { background: #d1fae5; color: #059669; }
.exec-info-card h4 { font-size: 14px; margin-bottom: 4px; }
.exec-info-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

.exec-table-section { margin-bottom: 30px; }
.exec-table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.exec-table-header h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.exec-table-header h3 i { color: var(--primary); }
.exec-table-header .meeting-count { background: var(--light-blue); color: var(--primary); padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.exec-date-cell { white-space: nowrap; }
.exec-date-cell .date-main { font-weight: 600; color: var(--text-dark); font-size: 14px; display: block; }
.exec-date-cell .date-time { font-size: 12px; color: var(--text-muted); }
.exec-venue { font-size: 14px; color: var(--text-body); }
.exec-agenda { font-size: 13px; color: var(--text-muted); max-width: 280px; line-height: 1.5; }
.exec-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 50px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.exec-status.completed { background: #d1fae5; color: #059669; }
.exec-status.scheduled { background: #dbeafe; color: #1d4ed8; }
.minutes-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--light-blue); color: var(--primary); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.minutes-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }
.minutes-btn.unavailable { background: var(--gray-50); color: var(--gray-400); cursor: default; }
.minutes-btn.unavailable:hover { background: var(--gray-50); color: var(--gray-400); transform: none; }

.attendees-section { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-top: 40px; }
.attendees-section h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.attendees-section h3 i { color: var(--primary); }
.attendees-section > p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.attendees-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.attendee-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--lighter-blue); border-radius: var(--radius-sm); transition: var(--transition); }
.attendee-item:hover { background: var(--light-blue); }
.attendee-item .att-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.attendee-item .att-name { font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.attendee-item .att-role { font-size: 12px; color: var(--text-muted); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-cards { display: grid; gap: 16px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 16px; padding: 22px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.contact-info-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-light); }
.contact-info-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--light-blue); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; flex-shrink: 0; }
.contact-info-card h4 { font-size: 14px; margin-bottom: 4px; }
.contact-info-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 0; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-top: 20px; }
.contact-map iframe { width: 100%; height: 260px; border: none; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 14px; color: var(--text-dark); background: var(--gray-50); transition: var(--transition); outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(52,152,219,0.1); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ============================================
   PUBLICATIONS PAGE
   ============================================ */
.pub-committee { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-bottom: 30px; }
.pub-committee h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.pub-committee h3 i { color: var(--primary); }
.committee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.committee-member { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--lighter-blue); border-radius: var(--radius-sm); }
.committee-member .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; font-weight: 600; flex-shrink: 0; }
.committee-member .info .name { font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.committee-member .info .role { font-size: 12px; color: var(--text-muted); }
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

/* ============================================
   PDF / DOWNLOAD SECTION
   ============================================ */
.pdf-section { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); text-align: center; max-width: 600px; margin: 0 auto; }
.pdf-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--light-blue); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--primary); }
.pdf-section h3 { margin-bottom: 10px; }
.pdf-section p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

/* ============================================
   CONFERENCE ARCHIVE
   ============================================ */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.archive-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition); }
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.archive-card-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 22px 24px; color: var(--white); }
.archive-card-header .year { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 6px; }
.archive-card-header h4 { color: var(--white); font-size: 16px; }
.archive-card-body { padding: 22px 24px; }
.archive-card-body .detail-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--text-body); border-bottom: 1px solid var(--gray-100); }
.archive-card-body .detail-row:last-of-type { border-bottom: none; }
.archive-card-body .detail-row i { color: var(--primary); width: 18px; text-align: center; font-size: 13px; }
.archive-card-body .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ============================================
   FOOTER
   ============================================ */
.main-footer { background: var(--gray-800); color: rgba(255,255,255,0.7); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-about .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-about .footer-logo .logo-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
.footer-about .footer-logo h4 { color: var(--white); font-size: 15px; }
.footer-about p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 14px; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col ul li a i { font-size: 10px; opacity: 0.5; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: var(--white); border: none; border-radius: 12px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition); z-index: 900; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }


/* ============================================
   UNIFIED RESPONSIVE MEDIA QUERIES
   ============================================ */

/* --- LAPTOP & TABLET (Max Width 1024px) --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
  .hero-image-wrapper img { height: 280px; }
  .hero-buttons { justify-content: center; }
  
  .bearers-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  
  .message-grid { grid-template-columns: 1fr; gap: 40px; }
  .message-image { position: static; max-width: 350px; margin: 0 auto; text-align: center; }
  .message-content { text-align: center; padding: 24px; }
  .message-content p { text-align: center; }
  
  .conf-content-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .conf-text { text-align: center; order: 2; }
  .conf-image { order: 1; max-width: 450px; margin: 0 auto; }
  .conf-image-frame img { height: 300px; }
  .conf-text h2 { font-size: 1.75rem; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .members-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .news-text-grid { grid-template-columns: repeat(2, 1fr); }
  .exec-info-cards { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr !important; }
}

/* --- MOBILE DEVICES (Max Width 992px) - Hamburger Menu Fixes --- */
@media (max-width: 992px) {
  .top-bar { display: none; }
  .header-inner { padding: 12px 0; }

  /* Show Hamburger */
  .menu-toggle { display: block; position: absolute; top: 15px; right: 15px; z-index: 10000; font-size: 1.5rem; color: var(--primary); background: var(--light-blue); padding: 8px 12px; border-radius: 8px; cursor: pointer; }

  /* Mobile Dropdown Menu */
  .main-nav {
    position: fixed; top: 70px; left: 0; width: 100% !important; max-width: 100% !important; height: auto !important;
    background: white; flex-direction: column !important; align-items: flex-start !important;
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 9999; padding: 0 !important; right: 0 !important;
  }

  .main-nav.open, .main-nav.active { max-height: 100vh; overflow-y: auto; padding: 10px 0 20px 0 !important; }
  .main-nav ul { width: 100%; flex-direction: column !important; }
  .main-nav li { width: 100%; }
  .main-nav li a { display: block; width: 100%; padding: 15px 25px !important; border-bottom: 1px solid #eee; white-space: normal !important; word-break: break-word !important; line-height: 1.4; }

  /* Secondary Nav Fixes */
  .secondary-nav { position: relative !important; top: 0 !important; padding: 10px 0 !important; }
  .secondary-nav .container { flex-wrap: nowrap !important; justify-content: flex-start !important; padding: 0 10px !important; overflow-x: auto !important; }
  .secondary-nav a { white-space: nowrap !important; padding: 8px 14px !important; font-size: 11px !important; text-align: center !important; border-bottom: none !important; }

  /* Left Vertical Sidebar Fixes */
  .inner-sidebar, .hero-vertical-nav { width: 100% !important; height: auto !important; position: relative !important; top: 0 !important; display: flex; flex-direction: row !important; overflow-x: auto; padding: 12px !important; gap: 8px !important; }
  .inner-sidebar .vertical-nav-title { display: none !important; }
  .inner-sidebar .vertical-nav-links, .hero-vertical-nav .vertical-nav-links { flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; }
  .inner-sidebar .vertical-nav-links a, .hero-vertical-nav .vertical-nav-links a { white-space: nowrap !important; background: rgba(255, 255, 255, 0.1) !important; padding: 8px 14px !important; border-radius: 20px !important; font-size: 0.8rem !important; }
  .page-layout-wrapper { flex-direction: column !important; }
}

/* --- SMALL MOBILE PHONES (Max Width 768px) --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 50px 0; }

  .hero { padding: 50px 0 40px; min-height: auto; }
  .hero .container { gap: 28px; }
  .hero-content h1 { font-size: 1.65rem; margin-bottom: 16px; text-align: center; }
  .hero-content p { font-size: 0.92rem; text-align: center; margin-bottom: 24px; }
  .hero-image-wrapper img { height: 220px; }
  .hero-stat { padding: 12px 8px; border-radius: 10px; }
  .hero-stat .number { font-size: 1.2rem; }

  .bearers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-grid, .news-text-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .archive-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 40px 0 30px; }
  .page-banner h1 { font-size: 1.8rem; }
  .data-table th, .data-table td { padding: 10px 14px; font-size: 13px; }
  .member-list { grid-template-columns: 1fr; }
  .membership-types { grid-template-columns: 1fr; }
  .meetings-summary { grid-template-columns: 1fr; }
  .exec-table-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .attendees-grid { grid-template-columns: 1fr; }
}

/* --- VERY SMALL PHONES (Max Width 480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  
  .hero-buttons { flex-direction: column !important; gap: 12px; width: 100%; }
  .hero-buttons .btn { display: block; width: 100%; margin: 0 !important; justify-content: center; }
  
  .bearers-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .conference-banner { padding: 28px 20px; }
  .conference-banner h2 { font-size: 1.4rem; }
  .conference-banner .conf-details { flex-direction: column; gap: 10px; align-items: flex-start; }
  
  .news-text-card-top { flex-direction: column; align-items: flex-start !important; gap: 15px; border-bottom: 1px dashed #ddd; padding-bottom: 15px; }
  .news-text-meta { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  
  .contact-form { padding: 24px; }
  .pub-committee { padding: 24px; }
  .committee-grid { grid-template-columns: 1fr; }
  .members-stats { grid-template-columns: repeat(2, 1fr); }
  .year-filter .filter-btn { padding: 6px 14px; font-size: 12px; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .main-header, .secondary-nav, .top-bar, .back-to-top, .main-footer { display: none !important; }
  body { background: white; color: black; }
  .section { padding: 20px 0; }
}


/* ============================================
   ADVERTISEMENT BANNER SYSTEM
   (rotating banners managed from admin.html)
   ============================================ */
.ad-section { padding: 26px 0; }

.ad-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.ad-container:hover { box-shadow: var(--shadow-md); border-color: var(--accent-light); }

/* Standard ad sizes */
.ad-size-horizontal-lg { max-width: 970px; height: 250px; }  /* Billboard 970×250 */
.ad-size-horizontal-md { max-width: 970px; height: 90px; }   /* Super Leaderboard 970×90 */
.ad-size-vertical      { max-width: 300px; height: 600px; }  /* Half-page 300×600  */
.ad-size-rectangle     { max-width: 336px; height: 280px; }  /* extra slot, ready if needed */

/* "Advertisement" tag */
.ad-label {
  position: absolute; top: 6px; left: 6px; z-index: 6;
  background: rgba(13,79,139,0.75); color: rgba(255,255,255,0.9);
  font-size: 8.5px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
  pointer-events: none;
}

/* Rotating slides (cross-fade) */
.ad-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.ad-slide.active { opacity: 1; visibility: visible; }
.ad-slide a { display: block; width: 100%; height: 100%; }
.ad-slide img { width: 100%; height: 100%; object-fit: contain; }

/* Dots */
.ad-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 6; }
.ad-dot { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(13,79,139,0.28); transition: var(--transition); }
.ad-dot.active { background: var(--primary); transform: scale(1.3); }

/* Arrows (on hover) */
.ad-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; z-index: 6; opacity: 0;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.ad-container:hover .ad-arrow { opacity: 1; }
.ad-arrow:hover { background: var(--primary); color: var(--white); }
.ad-arrow-prev { left: 8px; }
.ad-arrow-next { right: 8px; }
@media (hover: none) { .ad-arrow { display: none; } }

/* Placeholder when a zone has no banners yet */
.ad-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, var(--gray-50) 0 14px, var(--gray-100) 14px 28px);
  color: var(--text-muted); font-size: 12.5px; font-weight: 500;
}
.ad-placeholder i { font-size: 20px; color: var(--gray-400); }
.ad-placeholder:hover { color: var(--primary); border-color: var(--accent); }

/* ============================================
   NEWS & EVENTS — 2-COLUMN LAYOUT
   News cards (LEFT) | Vertical ad banner (RIGHT)
   Stays side-by-side down to 861px — NOT 1024px
   ============================================ */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;   /* news | banner */
  gap: 34px;
  align-items: start;
}

.news-main { min-width: 0; }   /* prevents grid blowout from long text */

.news-sidebar {
  align-self: start;
  position: sticky;
  top: 155px;                  /* clears the sticky navbar + secondary nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* 2 card columns fit best next to a 300px banner
   (delete this rule if you prefer to keep 3 columns) */
.news-layout .news-text-grid { grid-template-columns: repeat(2, 1fr); }

/* Short laptop screens: slightly shorter banner so it's never cut off */
@media (max-height: 820px) {
  .news-sidebar .ad-size-vertical { height: 480px; }
}

/* Tablet range: KEEP side-by-side, just a slightly narrower banner */
@media (max-width: 1024px) and (min-width: 861px) {
  .news-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
  .news-sidebar .ad-size-vertical { max-width: 250px; height: 500px; }
  .news-sidebar { top: 140px; }
}

/* Phones only: stack (banner moves below the news, centered) */
@media (max-width: 860px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
  .news-layout .news-text-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ad-size-horizontal-lg, .ad-size-horizontal-md, .ad-size-vertical, .ad-size-rectangle { height: auto; }
  .ad-slide { position: relative; inset: auto; display: none; }
  .ad-slide.active { display: flex; animation: adSlideFade 0.5s ease; }
  .ad-slide img { width: 100%; height: auto; }
  .ad-placeholder { position: relative; inset: auto; min-height: 110px; }
}
@keyframes adSlideFade { from { opacity: 0; } to { opacity: 1; } }


/* ============================================
   MEMBER UPDATE CTA + MODAL FORM
   ============================================ */
.update-info-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 30px 32px; color: var(--white); margin-bottom: 32px;
}
.update-info-cta h3 { color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1.15rem; }
.update-info-cta p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; max-width: 620px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,25,47,0.75);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 680px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff;
}
.modal-header h3 { color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.modal-close { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; cursor: pointer; transition: var(--transition); }
.modal-close:hover { background: rgba(255,255,255,0.3); }
.modal-body { padding: 24px 28px; overflow-y: auto; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 12px; background: var(--gray-50); }

.modal-note {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; display: flex; gap: 8px; align-items: center; margin-bottom: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-col { margin-bottom: 16px; }
.form-col.full { grid-column: 1 / -1; }
.form-col label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-col label span { color: var(--danger); }
.form-col input, .form-col select, .form-col textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 14px;
  color: var(--text-dark); background: var(--gray-50); transition: var(--transition); outline: none;
}
.form-col input:focus, .form-col select:focus, .form-col textarea:focus {
  border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}
.form-col textarea { min-height: 80px; resize: vertical; }

.file-upload-box {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-md);
  padding: 20px; text-align: center; cursor: pointer; background: var(--gray-50); transition: var(--transition);
}
.file-upload-box:hover { border-color: var(--accent); background: var(--light-blue); }
.file-upload-box i { font-size: 24px; color: var(--primary); margin-bottom: 6px; display: block; }
.file-upload-box p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.file-upload-box .file-name { font-weight: 600; color: var(--primary); margin-top: 6px; font-size: 13px; word-break: break-all; }
.file-upload-box input[type="file"] { display: none; }

.form-message { display: none; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; margin-bottom: 16px; }
.form-message.success { display: block; background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.form-message.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 18px; }
  .modal-header, .modal-footer { padding: 14px 18px; }
  .update-info-cta { flex-direction: column; text-align: center; }
}

/* ============================================
   MEMBER UPDATE MODAL – v3 (SCROLLABLE FIX)
   Paste at the VERY BOTTOM of style.css.
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);   /* never taller than the screen */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s ease;
}
/* Better height on mobile browsers (dynamic viewport) */
@supports (height: 100dvh) {
  .modal-box { max-height: calc(100dvh - 40px); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   THE FIX: the <form> wraps .modal-body, so the
   form ITSELF must be a scroll-capable flex child
   of .modal-box. Without this, nothing scrolls.
   ============================================ */
.modal-box form,
#memberUpdateForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;        /* CRITICAL – allows the form to shrink */
  overflow: hidden;     /* body handles the actual scrolling */
}

/* Header & footer stay pinned — only the body scrolls */
.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.modal-header h3 {
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.modal-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.3); }

/* The scrollable area */
.modal-body {
  flex: 1 1 auto;
  min-height: 0;                 /* CRITICAL – allows shrinking */
  overflow-y: auto;              /* ← the right-side scrollbar */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;  /* smooth scroll on iOS */
  padding: 24px 28px;
  scrollbar-width: thin;                     /* Firefox */
  scrollbar-color: var(--primary) #eef4f9;   /* Firefox */
}
/* Chrome / Edge / Safari – styled scrollbar */
.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-track { background: #eef4f9; border-radius: 8px; }
.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 8px;
  border: 2px solid #eef4f9;
}
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.modal-footer {
  flex-shrink: 0;
  padding: 16px 28px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--gray-50);
}

/* Sticky success/error message pinned at top of scroll area */
.form-message {
  display: none;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -4px 0 18px;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}
.form-message.success { display: block; background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.form-message.error   { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-message i { margin-right: 6px; }

.modal-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 10px; }
  .modal-box { max-height: calc(100vh - 20px); border-radius: 12px; }
  .modal-body { padding: 18px; }
  .modal-header, .modal-footer { padding: 14px 18px; }
}