/* --- THEME COLORS & VARIABLES --- */
:root {
  --primary-color: #e62b1e;    /* TEDx red */
  --primary-dark: #c41e12;
  --secondary-color: #111;     /* Dark background */
  --light-color: #f9f9f9;
  --text-color: #222;
  --nav-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --max-width: 1200px;
  --header-bg: rgba(17, 17, 17, 0.95);
  --text-light: #f8f9fa;
}

/* Additional responsive refinements */
@media (max-width: 900px) {
  section { padding: 4rem 5%; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; margin-bottom: 1.5rem; }
  .section-title h2 { font-size: 2.1rem; }
}

@media (max-width: 600px) {
  section { padding: 3.25rem 5%; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.25rem; }
  .section-title h2 { font-size: 1.8rem; }
  .btn, button { padding: 0.7rem 1.4rem; }
}
  
  /* --- BASE STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary-dark);
}
  
  /* --- HEADER / NAVBAR --- */
header {
  background: var(--header-bg);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  background: rgba(17, 17, 17, 0.98);
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: var(--transition);
}

.hamburger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle .line2 {
  opacity: 0;
}

.hamburger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
  
  header h1 {
    font-size: 1.5rem;
    margin: 0;
  }
  
  nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
  }
  nav a:hover {
    color: var(--primary-color);
  }
  
  /* --- SECTIONS --- */
main {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

section {
  padding: 6rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%), url('../images/hero.png') center/cover no-repeat;
  color: white;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(transparent, var(--light-color));
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  animation: slideInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  opacity: 0.9;
}

/* Mobile hero adjustments */
@media (max-width: 900px) {
  .hero {
    align-items: center;
    text-align: center;
    min-height: 90vh;
  }
  .hero-content { max-width: 90%; }
  .hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .hero { min-height: 80vh; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* --- COUNTDOWN --- */
.countdown-container {
  margin-top: 1rem;
  z-index: 2;
}

.countdown-container h3 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 560px;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.countdown-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.countdown-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f0f0f0;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .countdown {
    max-width: 520px;
    gap: 0.9rem;
  }
  .countdown-number {
    font-size: 2.4rem;
  }
}

@media (max-width: 680px) {
  .countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .countdown {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 420px;
  }
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  margin-left: 1rem;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* --- MOBILE NAVIGATION --- */
body.no-scroll { overflow: hidden; }

@media (max-width: 900px) {
  /* Reduce nav height on tablets/phones */
  :root { --nav-height: 70px; }

  .hamburger { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    background: rgba(17, 17, 17, 0.98);
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 5% 2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .nav-links a { padding: 0.25rem 0; }

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

/* --- ABOUT GRID (Home) --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.about-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  text-align: center;
}

.about-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.section-title h2 {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Responsive tweaks for About section */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 1rem; }
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* --- BUTTONS --- */
button, .btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button::after, .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transition: var(--transition);
  z-index: -1;
}

button:hover::after, .btn:hover::after {
  width: 100%;
}

button:hover, .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 43, 30, 0.3);
  color: white;
}

a.btn,
a.btn:visited {
  color: white;
}

a.btn:hover,
a.btn:focus {
  color: white;
}

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

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

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-icon {
  padding: 0.6rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- FORMS --- */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fff;
  color: var(--text-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 43, 30, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #999;
  opacity: 1;
}

.form-control:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Form validation */
.is-invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Form layouts */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.form-col {
  flex: 1 0 0%;
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 1rem;
}

/* Custom form controls */
.custom-select {
  display: block;
  width: 100%;
  padding: 0.8rem 2.25rem 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Form with card styling */
.form-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  transition: var(--transition);
}

/* Reduce form padding on small screens */
@media (max-width: 600px) {
  .form-card { padding: 1.5rem; }
}

.form-card:hover {
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6c757d;
  margin-bottom: 0;
}

.form-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Stripe Elements */
.StripeElement {
  box-sizing: border-box;
  height: 50px;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: white;
  transition: var(--transition);
}

.StripeElement--focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 43, 30, 0.1);
}

.StripeElement--invalid {
  border-color: #dc3545;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

/* --- INPUTS & SELECTS --- */
input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fff;
  color: var(--text-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 43, 30, 0.1);
  outline: none;
}

/* Custom select styling */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  top: 50%;
  right: 1rem;
  position: absolute;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

/* Checkbox and radio buttons */
.input-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.input-check input[type="checkbox"],
.input-check input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Input groups */
.input-group {
  display: flex;
  position: relative;
  width: 100%;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-append {
  display: flex;
  margin-left: -1px;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-left: none;
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* Form validation icons */
.has-success .form-control {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Floating labels */
.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  padding: 1rem 0.75rem;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Range inputs */
.form-range {
  width: 100%;
  height: 1.5rem;
  padding: 0;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-range:focus {
  outline: 0;
}

.form-range::-webkit-slider-thumb {
  width: 1rem;
  height: 1rem;
  margin-top: -0.25rem;
  background-color: var(--primary-color);
  border: 0;
  border-radius: 1rem;
  -webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
}

.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.5rem;
  color: transparent;
  cursor: pointer;
  background-color: #dee2e6;
  border-color: transparent;
  border-radius: 1rem;
}

/* File inputs */
.form-control[type="file"] {
  overflow: hidden;
}

.form-control[type="file"]:not(:disabled):not([readonly]) {
  cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button {
  padding: 0.8rem 1rem;
  margin: -0.8rem -1rem;
  -webkit-margin-end: 1rem;
  margin-inline-end: 1rem;
  color: #212529;
  background-color: #e9ecef;
  pointer-events: none;
  border-color: inherit;
  border-style: solid;
  border-width: 0;
  border-inline-end-width: 1px;
  border-radius: 0;
  -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Switch toggles */
.form-switch {
  padding-left: 2.5em;
}

.form-switch .form-check-input {
  width: 2em;
  margin-left: -2.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
  background-position: left center;
  border-radius: 2em;
  transition: background-position 0.15s ease-in-out;
}

.form-switch .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  outline: none;
  box-shadow: 0 0 5px rgba(230, 43, 30, 0.3);
}

/* --- FOOTER --- */
footer {
  background: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: left;
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 6%;
  }
  .footer-column h3 { font-size: 1.1rem; }
}

.footer-column h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bbb;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

/* Footer contact info: keep icon and text on one line */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.6;
  white-space: nowrap;
}

.contact-info li i {
  width: 1.25em;
  min-width: 1.25em;
  text-align: center;
}

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

.social-links-footer a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  transition: var(--transition);
  font-size: 1.35rem;
  line-height: 1;
}

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

.newsletter-form {
  margin-top: 1.5rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 50px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #999;
  font-size: 0.9rem;
}

/* --- MODAL (Reusable) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.modal {
  background: #fff;
  color: var(--text-color);
  width: min(800px, 92%);
  max-height: 80vh;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-overlay.show .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--light-color);
  border-bottom: 1px solid #eee;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 1.25rem;
  overflow: auto;
  max-height: calc(80vh - 64px);
}

@media (max-width: 600px) {
  .modal-title { font-size: 1.1rem; }
  .modal-body { padding: 1rem; }
}

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background: var(--light-color); }
.bg-dark { background: var(--secondary-color); color: white; }
.py-5 { padding: 3rem 0; }
.my-5 { margin: 3rem 0; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.p-4 { padding: 1.5rem; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* --- INTERACTIONS --- */
.accordion {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-header {
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  background: #fafafa;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--primary-color);
  color: white;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1rem;
}

/* Open state driven by parent item class set via JS */
.accordion-item.open .accordion-content {
  max-height: 200px;
  padding: 1rem;
}

/* --- SCHEDULE TABS --- */
.schedule-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.6rem 1rem;
}

@media (max-width: 600px) {
  .schedule-tabs { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .schedule-tabs { grid-template-columns: 1fr; }
}

/* --- HEADER REFINEMENTS ON SMALL SCREENS --- */
@media (max-width: 900px) {
  header { padding: 0 4%; }
  .logo { font-size: 1.3rem; }
}

@media (max-width: 600px) {
  header { padding: 0 3.5%; }
  .logo { font-size: 1.2rem; }
}
  
  /* --- ANIMATIONS --- */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* --- TEAM SECTION --- */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
  }

  .team-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
  }

  .team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .team-photo {
    width: 160px;        /* Consistent size */
    height: 160px;       /* Consistent size */
    aspect-ratio: 1 / 1; /* Keep square even if width changes */
    object-fit: cover;   /* Crop to fill the box without distortion */
    border-radius: 50%;  /* Circular portraits (optional aesthetic) */
    display: block;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background: #f1f1f1; /* Fallback background if image missing */
  }

  .team-name {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
  }

  .team-role {
    color: #666;
    margin: 0.25rem 0 0.75rem;
    font-weight: 500;
  }

  .team-bio {
    color: #555;
    font-size: 0.95rem;
  }

  /* Responsive tweaks for small screens */
  @media (max-width: 480px) {
    .team-photo {
      width: 140px;
      height: 140px;
    }
  }