/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --bg-primary: #F5F0EA;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --accent-sage: #6BA292;
  --accent-gold: #C1A35F;
  --accent-rose: #B86B77;
  --nav-bg: #FFFFFF;
  --nav-border: #E2E8F0;
  --card-bg: #FFFFFF;
  --card-shadow: rgba(0, 0, 0, 0.05);
  --card-shadow-hover: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Layout */
  --nav-width: 280px;
  --nav-width-mobile: 100%;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== LOADING ANIMATION ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.loading-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--nav-border);
  border-top: 3px solid var(--accent-sage);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: spin 1s linear infinite, fadeIn 1s ease-out 0.9s forwards;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: var(--nav-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-gold));
  border-radius: 2px;
  width: 0%;
  animation: progressFill 2s ease-out 1.5s forwards;
}

.loading-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.8s forwards;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes progressFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

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

/* ===== LAYOUT STRUCTURE ===== */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== NAVIGATION ===== */
.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--nav-bg);
  border-right: 1px solid var(--nav-border);
  z-index: 1000;
  overflow-y: auto;
  transition: var(--transition);
}

.nav-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--nav-border);
  text-align: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.nav-menu {
  padding: var(--spacing-md) 0;
}

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

.nav-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link.active {
  
  border-right: 3px solid;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  height: 1px;
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--nav-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0) 100%);
}

.content-wrapper {
  flex: 1;
  padding: var(--spacing-xl);
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  margin-bottom: var(--spacing-2xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 4rem;
}

.section-subtitle {
  color: var(--text-primary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-description {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.section-paragraph {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

/* ===== CARDS ===== */
.card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 25px var(--card-shadow-hover);
  border: 1px solid var(--nav-border);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px var(--card-shadow-hover);
}

/* Decorative right accent bar (matching subscribe-card) */
.card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent-sage), var(--accent-gold));
  opacity: 0.9;
}

/* Card titles with modern typography */
.card-title {
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
}

/* Card content styling */
.card-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Card headings (h3, h4, h5) inherit modern styling */
.card h3,
.card h4,
.card h5 {
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
}

/* Card paragraphs and lists */
.card p,
.card li {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

/* Card links */
.card a {
  color: var(--accent-sage);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.card a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.card a.btn,
.card a.btn-secondary {
  color: black !important;
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--accent-sage);
  color: black;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {

  font-size: 1.25rem;
}

.btn-secondary {
  background: var(--accent-sage);
  color: black;
  border: 2px solid var(--accent-sage);
}


/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
}

/* === HEADING STYLE #2 (Themed) === */
.two h1 {
  position: relative;
  text-transform: capitalize; /* Title case look */
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Decorative rule below the title (centered) */
.two h1:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #000000; /* black line spanning full text width */
  transform: translateY(6px); /* visually offsets below the baseline */
}

/* Tagline line under the title */
.two h1 span {
  display: block;
  font-size: 1.5rem;             /* ~24px, much larger */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1.5em;              /* creates breathing room above rule */
  padding-left: 0.25em;
  padding-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Centered variant */
.alt-two h1 {
  text-align: center;
}
.alt-two h1:before {
  left: 0; /* full width line doesn't need centering */
}

/* Optional: tighten vertical rhythm in hero */
.hero.section .two.alt-two {
  margin-bottom: var(--spacing-sm);
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

/* Make buttons touch each other by removing gaps and adjusting border radius */
.hero-cta .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 1rem; /* Remove gap */
}

.hero-cta .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 1 rem; /* Remove gap */
}


/* ===== SCHEDULE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.schedule-day {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-sage);
  box-shadow: 0 2px 8px var(--card-shadow);
}

.schedule-day h4 {
  color: var(--accent-sage);
  margin-bottom: var(--spacing-sm);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--card-shadow);
}

.faq-question {
  background: var(--accent-sage);
  color: white;
  padding: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 400;
  font-size: larger;
}


.faq-answer {
  padding: var(--spacing-md);
  color: var(--text-secondary);
}


/* ===== CODE OF CONDUCT ===== */
.conduct-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.conduct-item {
  background: var(--card-bg);
  padding: var(--spacing-sm);
  /* margin-bottom: var(--spacing-sm); */
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 2px 8px var(--card-shadow);
  display: flex;
  align-items: center;
}

.conduct-item::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
  margin-right: var(--spacing-sm);
  font-size: 1.2rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--nav-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 3px rgba(107, 162, 146, 0.1);
}

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

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(107, 162, 146, 0.05) 100%);
  border-top: 1px solid rgba(107, 162, 146, 0.2);
  padding: var(--spacing-sm);
  text-align: center;
  color: var(--text-secondary);
  margin-top: auto;
  backdrop-filter: blur(10px);
}

/* ===== MOBILE NAVIGATION ===== */
/* Mobile navigation styles are now handled in responsive.css */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  :root {
    --nav-width: 250px;
  }
  
  .content-wrapper {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  /* Mobile navigation styles are now handled in responsive.css */
  
  .main-content {
    margin-left: 0;
  }
  
  .content-wrapper {
    padding: var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    margin-bottom: var(--spacing-xl);
  }
}

/* ===== SUBSCRIBE CARD (Hero) ===== */
.subscribe-card {
  position: relative;
  max-width: 640px;
  margin: var(--spacing-md) auto 0;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  box-shadow: 0 8px 25px var(--card-shadow-hover);
  overflow: hidden;
}

.subscribe-card__inner {
  position: relative;
  padding: calc(var(--spacing-xl) - 0.25rem) var(--spacing-xl) var(--spacing-xl);
}

/* Decorative right accent bar (echoes the original widget's flair) */
.subscribe-card__inner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  opacity: 0.9;
}

.subscribe-card__title {
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

/* Form row */
.subscribe-card__form {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.subscribe-card__input {
  flex: 1 1 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-bottom: 2px solid var(--nav-border);
  background: transparent;
  font: inherit;
  transition: var(--transition);
  min-width: 0;
}
.subscribe-card__input:focus {
  outline: none;
  border-bottom-color: var(--accent-sage);
  box-shadow: 0 4px 0 -2px rgba(107, 162, 146, 0.15);
}

.subscribe-card__submit {
  flex: 0 0 auto;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transform: translateX(10px);
  background: var(--accent-sage);
  color: #fff;
  box-shadow: -5px 6px 20px 0 rgba(51, 51, 51, 0.15);
  transition: var(--transition);
}

/* Inline feedback */
.subscribe-card__hint {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* SR-only label utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive */
@media (max-width: 480px) {
  .subscribe-card__inner {
    padding: var(--spacing-lg);
  }
  .subscribe-card__submit {
    transform: translateX(6px);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }