/* ==========================================================================
   1. CORE RESET, TYPE ARCHITECTURE, & MATRIX PRE-SETS
   ========================================================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: "Inter", "Poppins", sans-serif; 
}

html, body { 
  height: 100%; 
  
}
body{
  background-color: #000;
  color: #fff;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HIGH-PERFORMANCE RADIAL BACKGROUND OPTICAL ENHANCEMENT */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 95% 5%, rgba(255, 59, 59, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(255, 20, 20, 0.35) 0%, transparent 40%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   2. CORE WORKSPACE CONTAINMENT MATRIX & HERO COMPONENT LAYOUTS
   ========================================================================== */
main { 
  position: relative; 
  z-index: 5; 
  display: block; 
  width: 100%; 
  max-width: 1300px;
  margin: 0 auto; 
  padding: 0 40px 0px; 
}

.hero { 
  min-height: 45vh; 
  padding-top: 140px; 
  padding-bottom: 40px; 
  display: flex; 
  align-items: flex-start; 
  justify-content: flex-start; 
}

.hero-inner { 
  max-width: 640px; 
  margin-left: 0; 
  padding-left: 12px; 
  text-align: left; 
  transform: translateX(-10px); 
}

.hero-text { 
  font-size: 2.6rem; 
  font-weight: 800; 
  line-height: 1.15; 
  text-transform: uppercase; 
  font-family: 'Space Grotesk', sans-serif; 
  letter-spacing: -0.5px; 
}

.animated-text { 
  display: block; 
  margin-top: 6px; 
  font-size: 2.2rem; 
  font-weight: 900; 
  color: #ff2a2a; 
  text-shadow: 0 0 14px rgba(255, 42, 42, 0.45); 
  font-family: 'Space Grotesk', sans-serif; 
}

.sub-line { 
  margin-top: 14px; 
  font-size: 1rem; 
  color: #cfcfcf; 
  font-family: 'Space Grotesk', sans-serif; 
}

.hero-spacer {
  height: 1px;
}

/* ==========================================================================
   3. CURRICULUM ARCHITECTURE MULTI-COLUMN DESIGN MATRIX
   ========================================================================== */
.courses { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; 
  padding: 20px 12px; 
}

.course-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 80px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 42, 0.25);
}

.course-image { 
  width: 100%; 
  aspect-ratio: 16 / 9; 
  overflow: hidden; 
  border-radius: 12px; 
  margin-bottom: 14px; 
  background-color: #111; 
}

.course-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.course-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
  color: #fff;
}

.course-card p {
  font-size: 14px;
  color: #a0a0a5;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.action-btn-wrapper {
  width: 100%;
}

.course-card button {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff2a2a, #d10000);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  width: calc(100% - 50px);
  max-width: 280px;
  transition: all 0.2s ease;
}

.course-card button:hover { 
  background: #fff; 
  color: #000; 
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.4);
}

.course-card button.disabled-btn {
  background: #222 !important;
  color: #555 !important;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.syllabus { display: none; list-style: none; text-align: left; margin-top: 15px; color: #ddd; line-height: 1.8; animation: fadeIn 0.3s ease; }
.hidden { display: none !important; }

/* ==========================================================================
   4. ADAPTIVE RESPONSIVENESS MEDIA QUERIES (ACCORDING TO SITE HEADER)
   ========================================================================== */

/* Match Site Header Desktop Collapse Matrix */
@media (max-width: 1100px) {
  .courses { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px;
  }
}

/* Match Site Header Breakpoint Limits Boundary Conditions */
@media (max-width: 920px) {
  main {
    padding: 0 24px 60px;
  }
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 24px;
  }
  .hero-inner {
    transform: none;
    max-width: 100%;
    padding-left: 0;
  }
  .hero-text {
    font-size: 2.2rem;
  }
  .animated-text {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .courses { 
    grid-template-columns: 1fr; 
    gap: 20px;
    padding: 10px 0;
  }
  .course-card { 
    min-height: auto; 
    padding-bottom: 24px; 
  }
  .course-card button { 
    position: static; 
    transform: none; 
    margin-top: 16px; 
    width: 100%; 
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 16px 40px;
  }
  .hero {
    padding-top: 110px;
  }
  .hero-text {
    font-size: 1.7rem;
  }
  .animated-text {
    font-size: 1.4rem;
  }
  .course-card {
    padding: 20px;
  }
}