/* ============================================================
   FOSCO 2009 Alumni System - Main Stylesheet
   Theme: Green (#39A460), Dark (#1b2336), Accent (#66CFA9)
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --primary: #39A460;
  --primary-dark: #2d8a50;
  --primary-light: #4dbd72;
  --secondary: #1b2336;
  --secondary-light: #2a3550;
  --accent: #66CFA9;
  --accent-light: #8de0c0;
  --white: #ffffff;
  --off-white: #f8faf9;
  --gray-50: #f0f4f2;
  --gray-100: #e2e8e4;
  --gray-200: #c8d1cb;
  --gray-300: #a8b5ae;
  --gray-400: #7a8b82;
  --gray-500: #5a6b62;
  --gray-600: #3d4a44;
  --gray-700: #2c3630;
  --gray-800: #1b231f;
  --gray-900: #0f1411;
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --font-family: 'Segoe UI', 'Segoe UI Web', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-xl: 0 8px 40px rgba(0,0,0,0.2);
  --transition: 0.3s ease;
  --sidebar-width: 260px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--off-white);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p { margin-bottom: 1rem; }

small, .text-sm { font-size: var(--font-size-sm); }

.text-muted { color: var(--gray-400); }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* ----- Container & Grid ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

[class*="col-"] {
  padding: 0 12px;
  flex: 0 0 auto;
  width: 100%;
}

.col-1 { width: 25%; }
.col-2 { width: 50%; }
.col-3 { width: 75%; }
.col-4 { width: 100%; }

.col-auto { flex: 1 1 auto; }

@media (max-width: 1024px) {
  .col-1 { width: 50%; }
}

@media (max-width: 768px) {
  .col-1, .col-2 { width: 100%; }
}

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ----- Spacers ----- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mr-1 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* ----- Navigation / Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  z-index: 1000;
  transition: all var(--transition);
}

.site-header.scrolled {
  height: 56px;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--secondary);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.btn-primary {
  padding: 0.5rem 1.25rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ----- Hero Section ----- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, rgba(27,35,54,0.92) 0%, rgba(57,164,96,0.85) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(102,207,169,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 15px;
}

.hero-scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

.hero-small {
  min-height: 40vh;
  padding: 100px 20px 60px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  font-family: var(--font-family);
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  background: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 0.35rem 1rem;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.btn-danger {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}

.btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
  color: var(--white);
}

.btn-warning {
  background: var(--warning);
  color: var(--secondary);
  border-color: var(--warning);
}

.btn-info {
  background: var(--info);
  color: var(--white);
  border-color: var(--info);
}

/* ----- Cards ----- */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-image-lg {
  height: 280px;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.card-text {
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--off-white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-horizontal {
  display: flex;
}

.card-horizontal .card-image {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

/* ----- Sections ----- */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-title {
  font-size: var(--font-size-3xl);
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--gray-400);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--secondary);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.section-wave {
  position: relative;
}

.section-wave::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--off-white);
  clip-path: ellipse(50% 100% at 50% 100%);
}

/* ----- Forms ----- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--gray-700);
  font-size: var(--font-size-sm);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  line-height: 1.5;
  color: var(--gray-700);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(57,164,96,0.15);
}

.form-control::placeholder {
  color: var(--gray-300);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6b62' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-control.error {
  border-color: var(--error);
}

.form-control.success {
  border-color: var(--success);
}

.form-error {
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-group {
  display: flex;
}

.input-group .form-control:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ----- Tables ----- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

table th:first-child {
  border-radius: var(--border-radius-sm) 0 0 0;
}

table th:last-child {
  border-radius: 0 var(--border-radius-sm) 0 0;
}

table tr:nth-child(even) {
  background: var(--gray-50);
}

table tr:hover {
  background: rgba(57,164,96,0.05);
}

table .actions {
  display: flex;
  gap: 0.5rem;
}

table .actions .btn {
  padding: 0.25rem 0.6rem;
  font-size: var(--font-size-sm);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: var(--font-size-lg);
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.footer-col p {
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-sm);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all var(--transition);
  font-size: var(--font-size-lg);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: var(--font-size-sm);
}

/* ----- Member Directory Grid ----- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.member-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--gray-100);
  transition: border-color var(--transition);
}

.member-card:hover .member-avatar {
  border-color: var(--primary);
}

.member-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.member-year {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.member-location {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.member-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: rgba(57,164,96,0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ----- Event Cards ----- */
.event-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  margin-bottom: 1rem;
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.event-date-badge {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  text-align: center;
}

.event-date-badge .day {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  margin-bottom: 0.25rem;
}

.event-meta {
  display: flex;
  gap: 1rem;
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-description {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

/* ----- Gallery Grid ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,35,54,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-size: var(--font-size-2xl);
}

/* ----- Lightbox ----- */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

/* ----- Modal ----- */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 5000;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}

.modal-lg {
  max-width: 760px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--error);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}

/* ----- Alerts / Notifications ----- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid var(--success);
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid var(--error);
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid var(--info);
}

.alert-dismissible {
  position: relative;
  padding-right: 2.5rem;
}

.alert-dismissible .alert-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  color: inherit;
}

.alert-dismissible .alert-close:hover {
  opacity: 1;
}

/* ----- Toast Notifications (fixed corner) ----- */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.toast {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }

.toast-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-body {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--gray-800);
}

.toast-message {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1.125rem;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  color: var(--error);
}

/* ----- Dashboard Sidebar ----- */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h4 {
  color: var(--white);
  font-size: var(--font-size-base);
  margin: 0;
}

.sidebar-header small {
  color: var(--accent);
}

.sidebar-nav {
  padding: 0.75rem 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-sm);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-left-color: var(--primary);
}

.sidebar-nav li a .icon {
  width: 20px;
  text-align: center;
  font-size: var(--font-size-base);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
}

/* ----- Badges / Tags ----- */
.badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 20px;
}

.badge-primary {
  background: var(--primary);
  color: var(--white);
}

.badge-secondary {
  background: var(--secondary);
  color: var(--white);
}

.badge-success {
  background: var(--success);
  color: var(--white);
}

.badge-warning {
  background: var(--warning);
  color: var(--secondary);
}

.badge-danger {
  background: var(--error);
  color: var(--white);
}

.badge-info {
  background: var(--info);
  color: var(--white);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  color: var(--gray-600);
  margin: 0.15rem;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ----- Loading Spinner ----- */
.loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.loader-overlay.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 56px;
  height: 56px;
  border-width: 5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- Scroll To Top ----- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ----- Animation Keyframes ----- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease;
}

/* ----- Utility ----- */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.rounded { border-radius: var(--border-radius); }
.rounded-circle { border-radius: 50%; }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-white { background: var(--white); }
.bg-light { background: var(--off-white); }
.bg-accent { background: var(--accent); }

.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ----- Responsive Tablet ----- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-wrapper {
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .table-responsive table {
    font-size: var(--font-size-sm);
  }

  .table-responsive table th,
  .table-responsive table td {
    padding: 0.5rem 0.75rem;
  }

  .card-horizontal {
    flex-direction: column;
  }

  .card-horizontal .card-image {
    width: 100%;
    height: 200px;
  }
}

/* ----- Responsive Mobile ----- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: var(--font-size-base);
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .member-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card {
    flex-direction: column;
  }

  .event-date-badge {
    width: 60px;
    height: 60px;
  }

  .event-date-badge .day {
    font-size: var(--font-size-xl);
  }

  .main-content {
    padding: 1.25rem;
  }

  .modal {
    max-width: 100%;
    margin: 10px;
  }

  .lightbox-overlay {
    padding: 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
}

/* ----- Print Styles ----- */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .scroll-top,
  .hamburger,
  .toast-container,
  .loader-overlay,
  .btn {
    display: none !important;
  }

  .dashboard-wrapper {
    padding-top: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 0;
  }

  .member-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .member-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section {
    padding: 1rem 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  @page {
    margin: 1.5cm;
  }
}
