/* Modern CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #bb4848;
  --primary-dark: #7c2424;
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-gray: #e2e8f0;
  --bg-body: #fff;
  --border-color: #cbd5e0;
  --max-width: 1200px;
  --spacing: 1rem;
  --border-radius: 0.5rem;
}

[data-theme="dark"] {
  --primary-color: #ff6b6b;
  --primary-dark: #ff5252;
  --text-dark: #e2e8f0;
  --text-medium: #cbd5e0;
  --text-light: #a0aec0;
  --bg-light: #2d3748;
  --bg-gray: #1a202c;
  --bg-body: #1a202c;
  --border-color: #4a5568;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
  background-color: var(--bg-gray);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--text-dark);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  cursor: pointer;
  gap: 4px;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

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

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

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

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: transparent;
  border: 1px solid var(--text-dark);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.dark-mode-toggle:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-color);
}

.dark-mode-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

[data-theme="dark"] .dark-mode-toggle {
  border-color: var(--text-dark);
}

[data-theme="dark"] .dark-mode-toggle:hover {
  background-color: var(--bg-light);
}

/* Hero Section */
.hero {
  background-color: var(--bg-gray);
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.hero h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h2 {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  color: var(--text-light);
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -2rem;
  object-fit: cover;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Upcoming Dates Section */
.upcoming-dates {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3rem 2rem;
  margin: 2rem auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: var(--max-width);
  animation: fadeInUp 0.6s ease-out;
}

[data-theme="dark"] .upcoming-dates {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.upcoming-dates-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dates-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.date-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 2rem 3rem;
  min-width: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
}

.date-day {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}

.date-month {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.date-year {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.dates-cta {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
  line-height: 1.6;
}

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

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

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.center {
  display: block;
  margin: 2rem auto;
  text-align: center;
}

.cardimage {
  max-width: 550px;
  width: 100%;
  margin: 1rem auto;
}

/* Course Cards */
.deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

[data-theme="dark"] .card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-top: 1rem;
  color: var(--text-dark);
}

.card p {
  margin-bottom: 1rem;
}

.card ul {
  margin-top: 1rem;
}

/* Section Styling */
hr {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 3rem 0;
}

.text-center {
  text-align: center;
}

/* Contact Section */
#contact {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

#contact h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

#contact p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: var(--bg-gray);
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-copyright {
  font-size: 0.75rem;
  display: block;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .navbar-menu.active {
    display: flex;
  }

  .dark-mode-toggle {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .deck {
    gap: 1.5rem;
  }

  .upcoming-dates {
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
  }

  .upcoming-dates-title {
    font-size: 1.5rem;
  }

  .dates-grid {
    gap: 1.5rem;
  }

  .date-card {
    padding: 1.5rem 2rem;
    min-width: 120px;
  }

  .date-day {
    font-size: 2.5rem;
  }

  .dates-cta {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smooth scrolling and focus styles */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
}


