/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #d90429;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #d90429;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Email link color for dark/light mode */
a[href="mailto:"] {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}
@media (prefers-color-scheme: light) {
  a[href="mailto:"] {
    color: #111;
  }
}
/* Hero Section */
.hero-section {
  width: 100vw;
  background: linear-gradient(120deg, #d9042922 0%, #000 100%);
  padding: 2.5rem 0 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 24px 0 #d9042911;
}
.hero-content {
  max-width: 540px;
  margin: 0 1rem;
  text-align: center;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px #d9042940;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #fff9;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.badge {
  background: linear-gradient(90deg, var(--red-light), var(--red-dark));
  color: #fff;
  border-radius: 16px;
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(217,4,41,0.13);
  display: inline-block;
  letter-spacing: 0.01em;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  color: #fff;
  border-radius: 18px;
  padding: 0.8rem 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(217,4,41,0.18);
  text-decoration: none;
  margin-top: 0.7rem;
  transition: background 0.18s, transform 0.18s;
}
.hero-cta:hover {
  background: linear-gradient(90deg, var(--red-light), var(--red));
  transform: scale(1.07);
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.3rem;
  }
  .hero-section {
    padding: 1.2rem 0 1rem 0;
  }
  .hero-content {
    max-width: 99vw;
    margin: 0 0.2rem;
  }
}
/* Footer */
.site-footer {
  width: 100vw;
  background: linear-gradient(90deg, #18191a 60%, #232526 100%);
  color: #fff;
  padding: 2rem 0 1.2rem 0;
  text-align: center;
  margin-top: 2.5rem;
  box-shadow: 0 -2px 16px 0 #d9042911;
}
.footer-links {
  margin-bottom: 1.1rem;
}
.footer-link {
  color: #fff;
  margin: 0 1.1rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.18s;
}
.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-social {
  margin-bottom: 1.1rem;
}
.footer-social-icon {
  color: #fff;
  margin: 0 0.7rem;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.18s, transform 0.18s;
  text-decoration: none;
}
.footer-social-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}
.footer-copy {
  font-size: 0.98rem;
  color: #fff7;
}
/* Explore Courses Tab */
.explore-tab {
  display: block;
  margin: 0 auto 2rem auto;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
  color: var(--red);
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 0.8rem 2.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  outline: none;
}
.explore-tab:hover {
  background: linear-gradient(to bottom, #f2f2f2 0%, #e6e6e6 100%);
  transform: scale(1.07);
}
@media (max-width: 600px) {
  .explore-tab {
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.2rem;
  }
}
/*
  Candy Metallic Red & Black Theme
  Glossy, 3D Bubble UI
  Responsive Design
*/
:root {
  --red: #d90429;
  --red-light: #ff4e6b;
  --red-dark: #a1001a;
  --black: #232526;
  --black-gloss: #434343;
  --white: #fff;
  --bubble-shadow: 0 4px 16px 0 rgba(217,4,41,0.25), 0 1.5px 0 #fff inset;
}
body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: 
    linear-gradient(135deg, #000 0%, #18191a 100%),
    radial-gradient(circle at 70% 20%, #18191a 0%, #000 80%),
    linear-gradient(120deg, #000 60%, #18191a 100%);
  background-blend-mode: lighten, multiply, normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  /* Performance optimizations */
  will-change: auto;
  contain: layout style paint;
  font-display: swap;
}
header {
  width: 100vw;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.logo-bubble.logo-top-left {
  position: absolute;
  top: 0.7rem;
  left: 2vw;
  margin: 0;
  z-index: 11;
}
/* Search Bar Styles */
.search-bar-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 1.2rem auto;
  display: flex;
  justify-content: center;
}
.course-search {
  width: 100%;
  padding: 0.7rem 1.1rem;
  border-radius: 16px;
  border: 2px solid var(--red-light);
  font-size: 1.1rem;
  background: #18191a;
  color: #fff;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(217,4,41,0.08);
  transition: border 0.18s;
}
.course-search:focus {
  border: 2px solid var(--red);
}
@media (max-width: 600px) {
  .logo-bubble.logo-top-left {
    left: 1vw;
    top: 0.3rem;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .search-bar-container {
    max-width: 98vw;
    margin-bottom: 0.7rem;
  }
  .course-search {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }
}
.student-tab {
  position: absolute;
  right: 3vw;
  top: 0.5rem;
  background: linear-gradient(90deg, var(--red-light), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(217,4,41,0.18);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  z-index: 10;
  outline: none;
}
.student-tab:hover {
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scale(1.07);
}
/* Student Form Modal */
.student-form-content {
  min-width: 340px;
  max-width: 95vw;
}

@media (max-width: 600px) {
  .student-tab {
    right: 1vw;
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
  }
  .student-form-content {
    min-width: 90vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
}
.logo-bubble {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 30% 30%, var(--red-light) 60%, var(--red) 100%);
  box-shadow: 0 8px 32px 0 rgba(217,4,41,0.4), 0 2px 0 #fff inset, 0 0 0 8px #fff1 inset;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--white);
  border: 4px solid var(--black-gloss);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2.5px) saturate(1.2);
  -webkit-backdrop-filter: blur(2.5px) saturate(1.2);
  transition: box-shadow 0.25s;
}
.logo-bubble::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 22px;
  width: 30px;
  height: 18px;
  background: linear-gradient(120deg, #fff8, #fff2 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}
.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  max-height: 70vh;
  overflow-y: auto;
  align-items: center;
}
.course-box {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red-dark) 100%);
  border-radius: 22px;
  box-shadow: var(--bubble-shadow), 0 1.5px 0 #fff2 inset;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 0.5rem;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, filter 0.18s;
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--black-gloss);
  user-select: none;
  width: 90%;
  min-width: 180px;
  max-width: 350px;
  margin: 0 auto;
  backdrop-filter: blur(1.5px) saturate(1.1);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.1);
  will-change: transform, box-shadow, filter;
}
.course-box::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 18px;
  width: 40px;
  height: 18px;
  background: linear-gradient(120deg, #fff7, #fff2 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}
.course-box:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 32px 0 rgba(217,4,41,0.5), 0 2px 0 #fff inset, 0 0 0 4px #fff2;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-light) 100%);
  z-index: 2;
  filter: brightness(1.08) saturate(1.2);
  outline: none;
}
.course-box:active {
  filter: brightness(1.15) saturate(1.3);
}
.course-box:focus-visible {
  outline: 2.5px solid #fff;
  outline-offset: 2px;
}
.courses-grid {
  scrollbar-width: thin;
  scrollbar-color: var(--red-light) #232526;
}
.courses-grid::-webkit-scrollbar {
  width: 7px;
  background: #232526;
}
.courses-grid::-webkit-scrollbar-thumb {
  background: var(--red-light);
  border-radius: 8px;
}
@media (max-width: 600px) {
  .courses-grid {
    max-width: 98vw;
    padding: 0.5rem 0.1rem;
    gap: 0.7rem;
  }
  .logo-bubble {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  .course-box {
    font-size: 0.95rem;
    padding: 0.8rem 0.2rem;
    min-width: 120px;
    max-width: 98vw;
  }
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 0, 20, 0.45);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: linear-gradient(135deg, #232526cc 0%, #18191acc 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(217,4,41,0.4), 0 1.5px 0 #fff2 inset;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  color: var(--white);
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  text-align: center;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1.5px solid #fff2;
  animation: modalPop 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes modalPop {
  0% { transform: scale(0.8) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.close:hover {
  opacity: 1;
}
.coupon-code {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, var(--red-light), var(--red-dark));
  border-radius: 10px;
  padding: 0.2rem 0.7rem;
  margin-left: 0.3rem;
  box-shadow: 0 2px 8px 0 rgba(217,4,41,0.15);
  filter: blur(6px);
  transition: filter 0.3s;
  user-select: none;
}
.coupon-code.revealed {
  filter: none;
  user-select: text;
}
button {
  background: linear-gradient(90deg, var(--red-light), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.7rem 0.5rem 0 0.5rem;
  box-shadow: 0 2px 8px 0 rgba(217,4,41,0.15);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
button:hover {
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scale(1.05);
}
button.disabled-copy,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(90deg, #888, #444);
  color: #eee;
  box-shadow: none;
  transform: none;
}
/* Loader Animation */
.loader {
  border: 6px solid #fff3;
  border-top: 6px solid var(--red-light);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin: 1.2rem auto 0.7rem auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
