/* =========================
   GLOBAL
========================= */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* =========================
   HEADER
========================= */
.courses-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid #222;
}

.courses-header h1 {
    font-size: 26px;
    font-weight: 700;
}

.nav-btn {
    background: #ff9900;
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.primary-btn {
  background: #ff9800;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn:hover {
  background: #fb8c00;
}

/* =========================
   COURSES GRID
========================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 30px;
}

.course-card {
    background: #fff8e6;            /* light cream */
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1e0b8;
}

.course-card img {
    width: 100%;
    aspect-ratio: 3 / 4;      /* 🔑 MAGIC */
    object-fit: contain;      /* crop nahi karega */
    background: #fff3d6;      /* cream background */
}

.course-card-content {
    padding: 16px;
}


.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.course-card h3 {
    color: #3e2723;
}

.course-card p {
    color: #5d4037;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;      /* 🔑 sab cards equal */
    background: #000;          /* YouTube style */
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper > div {
    width: 100% !important;
    height: 100% !important;
}

/* =========================
   COURSE DETAIL (Netflix)
========================= */
.hidden {
    display: none;
}

.course-detail {
    animation: fadeIn 0.4s ease;
}

.course-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.course-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.course-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color: #fff;
}

.course-overlay h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.course-overlay p {
    font-size: 16px;
    opacity: 0.9;
}

.primary-btn {
    margin-top: 15px;
    background: #ff9900;
    color: #000;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================
   SHLOKAS
========================= */
.shloka-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.shloka-item-card {
    background: #fffdf6;                 /* light cream */
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0e0b6;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}


/* =========================
   QUIZ & CERTIFICATE
========================= */
.quiz-box,
.certificate-box {
    margin: 40px auto;
    max-width: 600px;
    background: #181818;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

/* =========================
   QUIZ RADIO FIX
========================= */

#quiz-questions {
    color: #4E342E;   /* same as site text */
    text-align: left;
}

#quiz-questions label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

#quiz-questions input[type="radio"] {
    accent-color: #ff9800;   /* 🔥 makes bullet visible */
    transform: scale(1.2);
    margin-right: 8px;
}

#quiz-questions label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    cursor: pointer;
}

#quiz-questions input[type="radio"] {
    margin-top: 3px;
    accent-color: #ff9800;
    transform: scale(1.15);
    flex-shrink: 0;
}


#quiz-questions label {
    padding: 10px 14px;
    border: 1px solid #444;
    border-radius: 8px;
}

#quiz-questions label:hover {
    background: #ff9800;
    border-color: #ff9800;
}

.quiz-radio {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.quiz-radio input {
    accent-color: #ff9800;
    transform: scale(1.2);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
