/* ===== Variables ===== */
:root {
  --primary: #1a468c;
  --primary-light: rgba(26, 70, 140, 0.08);
  --primary-hover: rgba(26, 70, 140, 0.06);
  --gold: #f6a919;
  --gold-dark: #e09510;
  --dark: #252525;
  --gray: #666;
  --gray-light: #f9f9f9;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font: 'Raleway', sans-serif;
  --container: 1200px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #153570;
  border-color: #153570;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 70, 140, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: #ddd;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-list>li>a:hover,
.nav-list>li>a.active {
  background: var(--primary-hover);
  color: var(--primary);
}

.has-dropdown {
  position: relative;
}

.has-dropdown .fa-chevron-down {
  font-size: 10px;
  margin-left: 2px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--gray);
}

.dropdown li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-signin {
  font-size: 13px;
  padding: 10px 20px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  margin-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 70, 140, 0.45) 0%, rgba(26, 70, 140, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 80px 20px 120px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

/* ===== Hero Carousel ===== */
.hero-carousel-section {
  margin-top: -80px;
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.hero-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-carousel .carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== Carousel Base ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.carousel-btn.prev {
  left: -22px;
}

.carousel-btn.next {
  right: -22px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ===== Section Common ===== */
section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== Feature Sections ===== */
.feature-section {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.feature-text p {
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.feature-reverse .feature-grid {
  direction: rtl;
}

.feature-reverse .feature-grid>* {
  direction: ltr;
}

/* ===== Categories ===== */
.categories-section {
  background: var(--gray-light);
}

.categories-carousel .carousel-track {
  gap: 24px;
}

.categories-carousel .category-card {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.category-overlay h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-overlay span {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.category-overlay .btn-sm {
  align-self: flex-start;
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== Core Section ===== */
.core-section {
  background: var(--white);
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.core-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--primary);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.core-card:hover {
  transform: translateY(-6px);
}

.core-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 8px rgba(26, 70, 140, 0.06);
}

.core-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.core-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Stats ===== */
.stats-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.stats-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
}

.stat-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-item p {
  font-size: 16px;
  margin-top: 8px;
  opacity: 0.9;
}

/* ===== Membership ===== */
.membership-section {
  background: var(--gray-light);
}

.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.membership-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 28px;
}

.membership-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.7;
}

.membership-list i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.membership-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== Events ===== */
.events-section {
  background: var(--white);
}

.events-carousel .carousel-track {
  gap: 24px;
}

.events-carousel .event-card {
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
}

.event-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.event-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.5;
}

.event-card p {
  font-size: 14px;
  color: var(--gray);
}

.event-card p i {
  color: var(--primary);
  margin-right: 6px;
}

/* ===== Board ===== */
.board-section {
  background: var(--gray-light);
}

/* Members share the board card styling but alternate the background. */
.members-section {
  background: var(--white);
}

.board-carousel .carousel-track {
  gap: 24px;
}

.board-carousel .board-card {
  min-width: calc(25% - 18px);
  flex-shrink: 0;
}

.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  padding-bottom: 20px;
}

.board-card:hover {
  transform: translateY(-4px);
}

.board-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.board-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 16px 4px;
}

.board-card span {
  display: block;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  padding: 0 16px;
}

/* The classification line under the member name. */
.board-card .board-card-tag {
  color: #777;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

/* ===== Partners ===== */
.partners-section {
  background: var(--white);
  padding: 60px 0;
}

.partners-carousel .carousel-track {
  align-items: center;
  gap: 40px;
}

.partners-carousel .partner-logo {
  min-width: calc(25% - 30px);
  flex-shrink: 0;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100px;
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--gray-light);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-full {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-text p {
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ===== Testimonials ===== */
.testimonials-section {
  background: var(--white);
}

.testimonials-carousel .carousel-track {
  gap: 24px;
}

.testimonials-carousel .testimonial-card {
  min-width: calc(50% - 12px);
  flex-shrink: 0;
}

.testimonial-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.testimonial-quote {
  font-size: 32px;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-light);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  background: var(--primary);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--white);
  font-size: 14px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.modal-close:hover {
  color: var(--dark);
}

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #eee;
}

.modal-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
  cursor: pointer;
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .categories-carousel .category-card {
    min-width: calc(50% - 12px);
  }

  .board-carousel .board-card {
    min-width: calc(33.333% - 16px);
  }

  .events-carousel .event-card {
    min-width: calc(50% - 12px);
  }

  .core-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list>li>a {
    padding: 14px 16px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-actions .btn-signin,
  .header-actions .btn-primary {
    display: none;
  }

  .feature-grid,
  .membership-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-reverse .feature-grid {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .categories-carousel .category-card,
  .events-carousel .event-card,
  .board-carousel .board-card,
  .testimonials-carousel .testimonial-card {
    min-width: 100%;
  }

  .partners-carousel .partner-logo {
    min-width: calc(50% - 20px);
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }

  .hero-carousel .carousel-slide img {
    height: 250px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 60px 20px 100px;
  }
}

/* ===== Auth ===== */
.flash-banner {
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  padding: 12px 0;
  text-align: center;
}

.header-user {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-user i {
  color: var(--primary);
  margin-right: 6px;
}

.logout-form {
  display: inline;
}

.form-error {
  background: #fdecea;
  border-left: 3px solid #d93025;
  border-radius: 4px;
  color: #a5261c;
  font-size: 13px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

/* Standalone auth pages (password reset) reuse the modal card styling. */
.auth-page {
  align-items: center;
  background: var(--gray-light);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 32px;
  width: 100%;
}

.auth-card h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-card .auth-intro {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-card .auth-logo {
  display: block;
  height: 48px;
  margin: 0 auto 20px;
  width: auto;
}

.auth-status {
  background: #e6f4ea;
  border-left: 3px solid #1e8e3e;
  border-radius: 4px;
  color: #186a2c;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.auth-back {
  display: block;
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}

/* ===== Dashboard and member profiles ===== */
.page-main {
  /* Clears the fixed site header. */
  padding: 110px 0 60px;
  min-height: 60vh;
}

.dash h1,
.profile h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.dash-head,
.profile-head {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.dash-avatar,
.profile-avatar {
  border-radius: 50%;
  height: 110px;
  object-fit: cover;
  width: 110px;
}

.dash-role,
.profile-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.dash-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
}

.badge-ok {
  background: #e6f4ea;
  color: #186a2c;
}

.badge-wait {
  background: #fef7e0;
  color: #8a6100;
}

.dash-hint {
  color: #666;
  font-size: 14px;
}

.dash-public-link,
.profile-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
}

.profile-back {
  margin-bottom: 24px;
}

.dash-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.dash-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.dash-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dash-form input[type="text"],
.dash-form input[type="number"],
.dash-form input[type="file"],
.dash-form textarea {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 16px;
  padding: 10px 14px;
  width: 100%;
}

.dash-form textarea {
  resize: vertical;
}

.dash-form input:focus,
.dash-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.dash-help {
  color: #777;
  display: block;
  font-size: 12px;
  margin: -10px 0 16px;
}

.dash-years {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.exp-item {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

.exp-item-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.exp-org,
.exp-period {
  display: block;
  font-size: 13px;
}

.exp-org {
  color: var(--primary);
}

.exp-period {
  color: #777;
}

.exp-desc {
  color: #555;
  font-size: 14px;
  margin-top: 6px;
}

.exp-remove {
  background: none;
  border: none;
  color: #a5261c;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
}

.exp-edit summary,
.exp-add summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.exp-add {
  margin-top: 20px;
}

.profile-details {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.profile-details dt {
  color: #777;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-details dd {
  font-size: 15px;
}

.profile-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.profile-timeline {
  list-style: none;
}

.profile-timeline li {
  border-left: 2px solid var(--primary);
  margin-bottom: 18px;
  padding-left: 16px;
}

.profile-timeline p {
  color: #555;
  font-size: 14px;
  margin-top: 6px;
}

/* The member cards became links to the public profile. */
a.board-card {
  color: inherit;
  display: block;
  text-decoration: none;
}

@media (max-width: 640px) {

  .dash-head,
  .profile-head {
    flex-direction: column;
    text-align: center;
  }

  .page-main {
    padding-top: 90px;
  }
}

/* ===== Dashboard picture uploader ===== */
.dash-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.uploader {
  margin-bottom: 8px;
}

/* Visually hidden but still focusable, so the field stays keyboard reachable
   and the plain input keeps working when JavaScript is unavailable. */
.uploader-input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.uploader-drop {
  align-items: center;
  background: #fafafa;
  border: 2px dashed #d8d8d8;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.uploader-drop:hover {
  background: #f5f8ff;
  border-color: var(--primary);
}

.uploader.is-dragging .uploader-drop {
  background: #eef4ff;
  border-color: var(--primary);
  transform: scale(1.01);
}

.uploader.is-focused .uploader-drop {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.uploader.has-file .uploader-drop {
  background: #f4fbf6;
  border-color: #1e8e3e;
  border-style: solid;
}

.uploader.is-invalid .uploader-drop {
  background: #fdf3f2;
  border-color: #d93025;
}

.uploader-preview-wrap {
  flex-shrink: 0;
  position: relative;
}

.uploader-preview {
  background: var(--white);
  border-radius: 50%;
  /* Matches the cover crop the member cards use, so the preview shows
     roughly what will actually appear on the site. */
  height: 84px;
  object-fit: cover;
  width: 84px;
}

.uploader-badge {
  align-items: center;
  background: var(--primary);
  border: 2px solid var(--white);
  border-radius: 50%;
  bottom: 0;
  color: var(--white);
  display: flex;
  font-size: 11px;
  height: 26px;
  justify-content: center;
  position: absolute;
  right: 0;
  width: 26px;
}

.uploader.has-file .uploader-badge {
  background: #1e8e3e;
}

.uploader-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.uploader-title {
  font-size: 14px;
  font-weight: 600;
}

.uploader-browse {
  color: var(--primary);
  text-decoration: underline;
}

.uploader-hint {
  color: #777;
  font-size: 12px;
}

.uploader-file {
  color: #186a2c;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploader-actions {
  margin-top: 8px;
}

.uploader-cancel {
  background: none;
  border: none;
  color: #a5261c;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
}

.uploader-cancel:hover {
  text-decoration: underline;
}

.uploader-error {
  background: #fdecea;
  border-left: 3px solid #d93025;
  border-radius: 4px;
  color: #a5261c;
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
}

@media (max-width: 480px) {
  .uploader-drop {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Classifications ===== */
.modal-select {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  width: 100%;
}

.modal-select:focus {
  border-color: var(--primary);
  outline: none;
}

.classifications-intro {
  color: #666;
  margin: 8px auto 0;
  max-width: 620px;
}

.classification-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 32px;
}

.classification-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.classification-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.classification-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.classification-card p {
  color: #666;
  flex-grow: 1;
  font-size: 14px;
}

.classification-count {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.member-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 24px;
}

/* The member cards here reuse .board-card, which is sized by the carousel on
   the home page. In this grid the column width does the sizing instead. */
.member-grid .board-card {
  min-width: 0;
}

/* ===== Member Directory Dedicated Styles ===== */
.members-filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.members-filter-form {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-input-wrap,
.filter-select-wrap {
  position: relative;
  flex: 1 1 240px;
}

.filter-input-wrap .filter-icon,
.filter-select-wrap .filter-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  pointer-events: none;
}

.filter-input-wrap input,
.filter-select-wrap select {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.filter-input-wrap input:focus,
.filter-select-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 70, 140, 0.12);
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-filter {
  padding: 12px 24px;
}

.btn-reset {
  padding: 12px 18px;
  font-size: 13px;
}

.members-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.members-count-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-filtered-label {
  font-weight: 400;
  color: var(--gray);
  font-size: 13px;
}

.members-alt-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.members-alt-link:hover {
  color: #153570;
  text-decoration: underline;
}

.member-directory-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-bottom: 0;
}

.member-directory-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.member-card-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--primary-light);
}

.member-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-directory-card:hover .member-card-img-wrap img {
  transform: scale(1.05);
}

.member-card-content {
  padding: 16px 14px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  padding: 0;
  line-height: 1.3;
}

.member-business-name {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.member-role-title {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 6px;
  padding: 0;
}

.member-card-content .board-card-tag {
  color: #666;
  font-size: 12px;
  background: #f0f4f9;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.member-card-action {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: #fafafa;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: gap 0.2s ease, background 0.2s ease;
}

.member-directory-card:hover .member-card-action {
  background: var(--primary-light);
  gap: 10px;
}

/* ===== Member showcase ===== */
.dash-card-wide {
  grid-column: 1 / -1;
}

.showcase-item {
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

.showcase-item-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.showcase-count {
  color: #777;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.showcase-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 12px;
}

.showcase-thumbs li {
  position: relative;
}

.showcase-thumbs img {
  border-radius: var(--radius);
  height: 84px;
  object-fit: cover;
  width: 84px;
}

.showcase-thumb-remove {
  background: rgba(0, 0, 0, 0.65);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  height: 22px;
  line-height: 1;
  position: absolute;
  right: -6px;
  top: -6px;
  width: 22px;
}

.showcase-thumb-remove:hover {
  background: #d93025;
}

/* Public profile */
.showcase-entry {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.showcase-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.showcase-entry h3 {
  font-size: 16px;
  font-weight: 700;
}

.showcase-entry p {
  color: #555;
  font-size: 14px;
  margin-top: 4px;
}

.showcase-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  list-style: none;
  margin-top: 12px;
}

.showcase-gallery img {
  border-radius: var(--radius);
  display: block;
  height: 150px;
  object-fit: cover;
  transition: transform 0.2s ease;
  width: 100%;
}

.showcase-gallery a:hover img {
  transform: scale(1.03);
}

/* ===== Inner Pages & Layout Extensions ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  font-size: 10px;
  color: #aaa;
}

.page-hero {
  background: linear-gradient(135deg, rgba(26, 70, 140, 0.95), rgba(26, 70, 140, 0.8)), url('../assets/images/7T8A2356.webp') center/cover no-repeat;
  color: var(--white);
  padding: 50px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  text-align: center;
  word-break: break-word;
}

.page-hero .section-tag {
  color: var(--gold);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.page-hero p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
}

.content-block {
  margin-bottom: 50px;
}

.content-block h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

.content-block p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-card-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.contact-card-content p,
.contact-card-content a {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.contact-card-content a:hover {
  color: var(--primary);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-form-wrap .form-intro {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Timeline */
.timeline-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-left: 54px;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-year {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-card h4 {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* Expo packages */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.package-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card.featured {
  border-top-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.package-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.package-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.package-features {
  text-align: left;
  margin-bottom: 24px;
}

.package-features li {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-features li i {
  color: #1e8e3e;
}

/* YBIC Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  border-top: 3px solid var(--primary);
}

.pillar-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 18px;
}

.pillar-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.faq-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}

.faq-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* Gallery Grid */
.photo-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.photo-showcase-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.photo-showcase-grid img:hover {
  transform: scale(1.03);
}

/* Chairman highlight */
.chairman-spotlight {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.chairman-portrait {
  text-align: center;
}

.chairman-portrait img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--primary-light);
}

.chairman-portrait h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.chairman-portrait span {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .chairman-spotlight {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== Event Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f0f0f0;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.06);
}

.gallery-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26, 70, 140, 0.9);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.gallery-zoom-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.gallery-body p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-top: auto;
}

/* Lightbox Modal */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-modal-overlay.active .gallery-modal-content {
  transform: scale(1);
}

.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}

.gallery-count-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.gallery-modal-media {
  position: relative;
  width: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  max-height: 520px;
  overflow: hidden;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 5;
}

.gallery-modal-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.gallery-modal-nav.prev {
  left: 14px;
}

.gallery-modal-nav.next {
  right: 14px;
}

.gallery-modal-counter {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.gallery-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #1a1a1a;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-modal-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gallery-modal-thumb:hover,
.gallery-modal-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
}

.gallery-modal-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #111;
}

.gallery-modal-info {
  padding: 24px;
  background: var(--white);
}

.gallery-modal-info .gallery-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-modal-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.gallery-modal-info p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}