/* General Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
}

body {
  background-color: #000;
  color: #fff;
  overflow-y: auto;
}

/* 🔥 Red glow background (same as landing page) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 95% 5%, rgba(255, 59, 59, 0.85) 0%, transparent 30%),
    radial-gradient(circle at 5% 95%, rgba(255, 20, 20, 0.6) 0%, transparent 30%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}



/* ================= HERO ================= */

main {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

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


.hero-inner {
  max-width: 640px;          /* slightly narrower */
  margin-left: 0;            /* stick to left edge */
  padding-left: 12px;        /* small breathing space */
  text-align: left;
  
  transform: translateX(-10px);
}




.hero-text {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}


.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);
}

.hero-text,
.animated-text {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}




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


/* Space before course cards */
.hero-spacer {
  height: 12vh;
  min-height: 80px;
}



.course-image {
  width: 100%;
  aspect-ratio: 16 / 9;      /* 🔥 modern & clean */
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
  background-color: #111;   /* fallback if image loads late */
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop, don’t stretch */
  display: block;
}

.course-card button {
  background: linear-gradient(90deg, #ff2a2a, #d10000);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}



header h1 {
 font-size: 2.5rem;
 margin: 10px 0;    
}

header p {
 font-size: 1.1rem;
 color: #f9f9f9;
}

/* Course Section */
.courses {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 padding: 50px;
}

.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, box-shadow 0.25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
}
.course-card {
  display: flex;
  flex-direction: column;
}
.course-card .content {
  flex: 1;
}


.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.75);
}


.course-card h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-top: 10px;
}


.course-card p {
 color: #ddd;
 font-size: 0.95rem;
 margin-bottom: 20px;
}

.courses-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
}
.course-image {
  aspect-ratio: 16 / 9;
  max-height: 140px; 
  margin-bottom: 12px;
}


/* Buttons */
button {
 background: #ff26009d;
 border: none;
 color: #fff;
 padding: 10px 25px;
 border-radius: 25px;
 cursor: pointer;
 transition: 0.3s;

}
.course-card {
  position: relative;
  min-height: 420px; /* ensures all cards same height */
}

.course-card button {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}




/* .course-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,42,42,0.45);
} */


button:hover {
 background: #f3f5f2;
 color: #080707;
}

/* Syllabus Styling */
.syllabus {
 display: none;
 list-style: none;
 text-align: left;
margin-top: 15px;
 padding-left: 0;
 color: #ddd;
 line-height: 1.8;
 animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
 from { opacity: 0; transform: translateY(-5px); }
 to { opacity: 1; transform: translateY(0); }
}

/* Enroll Popup */
#enroll-message {
 position: fixed;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 background: #121212;
 border-radius: 15px;
 padding: 30px;
 text-align: center;
 box-shadow: 0px 0px 20px rgba(247, 248, 247, 0.6);
}

.hidden {
 display: none;
}

/* ================= FOOTER ================= */

