
/* Reset & Base */
:root {
  --rc-pink: #e60f66;
  --rc-green: #7c3aed;          /* changed: VidyaNex purple instead of green */
  --rc-cyan: #07d3db;
  --rc-yellow: #f5b000;
  --rc-red: #ff0000;
  --rc-dark: #000000;
  --rc-bg: #f5f7f9;
  --rc-text: #333333;
  --rc-text-gray: #666666;
  --rc-white: #ffffff;
  --rc-border: #e2e8f0;

  /* Course accent color – overridden per course via JS body[data-course] */
  --course-accent: #7c3aed;
}

body {
  background-color: var(--rc-bg);
  color: var(--rc-text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* Base styles for VidyaNex Navbar to sit seamlessly */
.navbar {
  z-index: 1000;
}

/* ---------------- HERO SECTION ---------------- */
.course-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
}

.course-hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.course-hero-content {
  flex: 1 1 60%;
  text-align: left;
}

.course-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-ratings-row {
  margin-bottom: 20px;
}

.hero-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.hero-red-bar {
  background-color: #ff0000;
  color: #fff;
  padding: 6px 15px;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
  animation: alert-blink 1.2s infinite alternate;
}

@keyframes alert-blink {
  0% {
    opacity: 1;
    box-shadow: 0 0 5px rgba(255,0,0,0.5);
  }
  100% {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(255,0,0,1);
  }
}

.hero-live-text {
  color: #ff0000;
  font-weight: 800;
  font-style: italic;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 500;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 35px;
}

.btn-hero-action-small {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  font-style: italic;
  border-radius: 6px;
  transition: transform 0.2s;
  text-align: center;
}

.btn-hero-action-small:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.orange-btn {
  background-color: #f59e0b;
  color: #fff;
}

.blue-btn {
  background-color: #0ea5e9;
  color: #fff;
}

.hero-whatsapp-inline a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.hero-whatsapp-inline i {
  font-size: 2.8rem;
  color: #25d366;
}

.whatsapp-details-small {
  text-align: left;
}

.whatsapp-num-small {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  line-height: 1.1;
}

.whatsapp-subtext-small {
  font-size: 0.8rem;
  font-style: italic;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Enquiry Form Box */
.hero-enquiry {
  flex: 0 0 350px;
  background-color: #fff;
  border-radius: 8px;
  padding: 30px 25px;
  color: var(--rc-text);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@media(max-width: 991px) {
  .course-hero .container { flex-direction: column; }
  .course-hero-content { flex: 1 1 100%; width: 100%; }
  .hero-enquiry { flex: 1 1 100%; width: 100%; max-width: 450px; margin: 0 auto; }
}

@media(max-width: 600px) {
  .course-hero h1 { font-size: 2rem; }
  .btn-hero-action-small { width: 100%; }
  .hero-whatsapp-inline { width: 100%; justify-content: flex-start; }
}

.hero-enquiry h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 5px;
  color: var(--rc-dark);
}

.hero-enquiry p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--rc-text-gray);
  margin-bottom: 20px;
}

.hero-enquiry .form-control {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.hero-enquiry .terms {
  font-size: 0.75rem;
  color: var(--rc-text-gray);
  text-align: center;
  margin-bottom: 15px;
}
.hero-enquiry .terms a { color: #6366f1; }

.btn-enquire {
  width: 100%;
  padding: 14px;
  background-color: var(--brand-purple);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

/* ---------------- MAIN CONTENT ---------------- */
.course-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-left {
  flex: 1 1 65%;
  max-width: 100%;
}

.content-right {
  flex: 1 1 30%;
  min-width: 320px;
  max-width: 100%;
}

/* Content Blocks */
.content-box {
  background: #fff;
  border-radius: 8px;
  padding: 35px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.content-box h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rc-dark);
  margin-bottom: 20px;
}

h3.pink-header {
  color: var(--rc-pink);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 25px 0 15px;
}

/* Lists styling */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--rc-text-gray);
  line-height: 1.5;
}
.icon-list li i {
  color: var(--course-accent);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* ── Per-course accent colors for dot-circle icons ─── */
body[data-course="data-science"]          { --course-accent: #e60f66; }   /* pink */
body[data-course="machine-learning"]      { --course-accent: #f97316; }   /* orange */
body[data-course="sql-mastery"]           { --course-accent: #3b82f6; }   /* blue */
body[data-course="full-stack"]            { --course-accent: #8b5cf6; }   /* violet */
body[data-course="java-fullstack"]        { --course-accent: #dc2626; }   /* red */
body[data-course="generative-ai"]         { --course-accent: #06b6d4; }   /* cyan */
body[data-course="data-analyst"]          { --course-accent: #10b981; }   /* emerald */
body[data-course="interview-preparation"] { --course-accent: #f59e0b; }   /* amber */
body[data-course="python-programming"]    { --course-accent: #3b82f6; }   /* blue */
body[data-course="ai"]                    { --course-accent: #7c3aed; }   /* deep purple */
body[data-course="cybersecurity"]         { --course-accent: #ef4444; }   /* red */

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Table styling */
.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.job-table th, .job-table td {
  border: 1px solid var(--rc-pink);
  padding: 12px 15px;
  text-align: left;
  font-size: 0.95rem;
}
.job-table th {
  color: #000;
  font-weight: 800;
  background-color: transparent;
}
.job-table tr:nth-child(even) {
  background-color: rgba(230, 15, 102, 0.1);
}

/* Curriculum Section */
.curriculum-header {
  border-bottom: 2px solid var(--rc-yellow);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.curriculum-stage-title {
  color: #16a34a;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.curriculum-stage-goal {
  color: var(--rc-text-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.curriculum-node-title {
  color: #92400e;
  font-weight: 700;
  margin: 15px 0 10px;
}
.curriculum-node-list {
  padding-left: 20px;
  color: var(--rc-text-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.curriculum-node-list li { margin-bottom: 6px; }

.btn-full-syllabus {
  width: 100%;
  background-color: var(--rc-green);
  color: white;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  text-align: center;
  display: block;
  text-decoration: none;
  margin-top: 20px;
}

/* Bottom Price Box */
.price-box-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.price-box-red {
  flex: 1;
  background: linear-gradient(135deg, #e60f66 0%, #7e22ce 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.price-box-red .old-price {
  text-decoration: line-through;
  font-size: 1.5rem;
  opacity: 0.8;
  display: block;
  margin: 10px 0;
}
.price-box-red .new-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #facc15;
}
.group-discount {
  flex: 1;
  border: 2px solid var(--rc-pink);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.group-discount h3 {
  color: var(--rc-dark);
  font-size: 1.2rem;
  font-weight: 900;
  margin-top: 0;
}
.group-discount p {
  font-size: 0.9rem;
  color: var(--rc-pink);
  font-style: italic;
}

/* ---------------- STICKY SIDEBAR ---------------- */
.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  text-align: center;
}

.box-title-small {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.box-subtitle {
  font-size: 0.8rem;
  color: var(--rc-text-gray);
  margin-bottom: 15px;
}

.btn-google {
  background: #4285F4;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}
.btn-google span.g-logo {
  background: white;
  color: #4285F4;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: bold;
}

.weekend-batch {
  color: var(--rc-red);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.sidebar-box h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #000;
  line-height: 1.3;
  margin-bottom: 15px;
}
.fees-text {
  color: #7c3aed;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.fees-text s { color: #94a3b8; font-size: 0.9rem; font-weight: normal; }

.status-btn {
  background: var(--rc-red);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 4px 15px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin: 15px 0;
  animation: alert-blink 1.2s infinite alternate;
}
.timing {
  font-size: 0.85rem;
  color: var(--rc-text-gray);
  margin-bottom: 15px;
}

.btn-pay {
  background: var(--brand-purple);
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(124,58,237,0.35);
  transition: background 0.2s, transform 0.15s;
}
.btn-pay:hover {
  background: #5b21b6;
  transform: translateY(-1px);
}

.secure-payment {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--rc-text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media(max-width: 900px) {
  .course-hero .container { flex-direction: column; }
  .course-main { flex-direction: column; }
  .cols-2 { grid-template-columns: 1fr; }
  .price-box-wrapper { flex-direction: column; }
}

/* ── Job Chips Sections ────────────────────────────────────────────── */
.job-chips-section {
  margin-top: 28px;
}

.chip-section-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--rc-dark);
  margin: 0 0 14px 0;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Blue chips — "You can work as" */
.job-chip--blue {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
  transition: background 0.2s, transform 0.15s;
}
.job-chip--blue:hover {
  background-color: #bae6fd;
  transform: translateY(-1px);
}

/* Yellow chips — "Upcoming In-Demand Jobs" */
.job-chip--yellow {
  background-color: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
  transition: background 0.2s, transform 0.15s;
}
.job-chip--yellow:hover {
  background-color: #fde68a;
  transform: translateY(-1px);
}

/* ── Curriculum Show More / Show Less ──────────────────────────────── */
.curriculum-hidden {
  display: none;
}

.btn-toggle-curriculum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: 2px solid var(--rc-green);
  background: transparent;
  color: var(--rc-green);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-toggle-curriculum:hover {
  background: var(--rc-green);
  color: #fff;
}

.btn-toggle-less {
  border-color: #ef4444;
  color: #ef4444;
}
.btn-toggle-less:hover {
  background: #ef4444;
  color: #fff;
}

.hidden-btn {
  display: none !important;
}

/* ── Certificate Badges ─── */
.cert-badge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
  border-top: 1px dashed var(--rc-border);
  padding-top: 25px;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f6;
  text-align: left;
}
.cert-badge i {
  font-size: 2rem;
  color: #7c3aed;
}
.cert-badge strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}
.cert-badge span {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
  display: block;
}
.cert-badge--linkedin i {
  color: #0077b5;
}

@media(max-width: 600px) {
  .cert-badge-row { grid-template-columns: 1fr; }
}

/* =========================================
   Dark Mode Support for Course Details
   ========================================= */
body.dark-mode {
  --rc-bg: #0f172a;
  --rc-card: #1e293b;
  --rc-border: rgba(255,255,255,0.1);
  --rc-text: #f1f5f9;
  --rc-text-muted: #94a3b8;
}

body.dark-mode .course-hero {
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)), url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
}

body.dark-mode .hero-red-bar {
  background-color: #ef4444; 
}

body.dark-mode .hero-live-text {
  color: #f87171;
}

body.dark-mode .hero-tags span {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

body.dark-mode .hero-enquiry {
  background-color: #1e293b;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .hero-enquiry h3 {
  color: #fff;
}

body.dark-mode .hero-enquiry p {
  color: #94a3b8;
}

body.dark-mode .cd-tech-item {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
}

body.dark-mode .cd-tech-item span {
  color: #cbd5e1;
}

body.dark-mode .cd-tech-item:hover {
  background: #334155;
  border-color: #7c3aed;
}

body.dark-mode .course-sidebar-box {
  background-color: #1e293b;
  border-color: rgba(255,255,255,0.1);
}

body.dark-mode .sidebar-title {
  color: #fff;
}

body.dark-mode .price-row .new-price {
  color: #f472b6;
}

body.dark-mode .highlight-badge {
  background-color: rgba(232, 67, 147, 0.15);
  color: #f472b6;
}

body.dark-mode .curriculum-item {
  border-color: rgba(255,255,255,0.1);
}

body.dark-mode .curriculum-item h4 {
  color: #fff;
}

body.dark-mode .module-content {
  background-color: rgba(255,255,255,0.02);
}

body.dark-mode .lesson-item {
  border-bottom-color: rgba(255,255,255,0.05);
}

body.dark-mode .cert-badge {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
}

body.dark-mode .cert-badge strong {
  color: #fff;
}

body.dark-mode .cert-badge span {
  color: #94a3b8;
}

body.dark-mode .btn-toggle-curriculum {
  border-color: #10b981;
  color: #10b981;
}

body.dark-mode .btn-toggle-curriculum:hover {
  background: #10b981;
  color: #fff;
}

/* Dark Mode Enhancements for Course Cards */
body.dark-mode .course-detail-card,
body.dark-mode .course-content-new,
body.dark-mode [class*="course-content"],
body.dark-mode .course-card {
    background-color: #1a202c !important;
    border-color: #2d3748 !important;
}

body.dark-mode .course-content-new h2,
body.dark-mode .course-content-new h3 {
    color: #f7fafc !important;
}

body.dark-mode .course-content-new span {
    color: #cbd5e1 !important;
}

body.dark-mode .course-content-new .fa-star,
body.dark-mode .course-content-new .fa-star-half-alt {
    color: #fbbf24 !important;
}

body.dark-mode .course-card-image {
    border-bottom: 1px solid #2d3748 !important;
}

/* Dark Mode fixes for course-details components */
body.dark-mode .content-box,
body.dark-mode .sidebar-box,
body.dark-mode .mentor-endorsement-card {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .content-box h2,
body.dark-mode .sidebar-box h2 {
    color: #fff !important;
}

body.dark-mode .job-table th,
body.dark-mode .job-table td {
    border-color: #4b5563 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .job-table th {
    color: #f8fafc !important;
}

body.dark-mode .job-chip--blue {
    background-color: #1e3a8a !important;
    color: #bfdbfe !important;
    border-color: #1e40af !important;
}

body.dark-mode .job-chip--yellow {
    background-color: #854d0e !important;
    color: #fef08a !important;
    border-color: #a16207 !important;
}

body.dark-mode .cert-badge {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .cert-badge strong,
body.dark-mode .cert-badge span {
    color: #f1f5f9 !important;
}

body.dark-mode .tech-name-tag {
    background: #4c1d95 !important;
    color: #ede9fe !important;
    border-color: #5b21b6 !important;
}
