:root {
  --primary-blue: #263489;
  --accent-red: #ec1d25;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f4f6f9;
}

/* =========================
   GLOBAL
========================= */
body {
  background: var(--bg-light);
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);
}

/* =========================
   MAIN CARD (SECTIONS)
========================= */
.course-main-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* =========================
   MAIN TITLE
========================= */
.main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 25px;
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 25px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 20px;
  background: var(--accent-red);
  border-radius: 3px;
}

/* =========================
   COURSE HEADER
========================= */
.dfsdfsdf {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align:center;
}

.dfsdfsdf span {
  display: block;
  font-size: 16px;
  color: var(--accent-red);
  margin-top: 5px;
  font-weight: 500;
}

/* =========================
   COURSE GRID
========================= */
.course-grid {
  margin-top: 20px;
}

.course-grid .col-md-4 {
  display: flex;
}

/* =========================
   COURSE CARD
========================= */
.course-card {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  width: 100%;
  height: 100%;
  border-left: 4px solid var(--accent-red);

  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* TITLE */
.course-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

/* =========================
   LIST STYLE
========================= */
.course_lists {
  list-style: none;
  padding-left: 0;
}

.course_lists li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.course_lists li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-red);
  font-size: 12px;
}


.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background: var(--primary-blue); /* subtle hover background */

}

/* TITLE COLOR CHANGE */
.course-card:hover h3 {
  color: var(--accent-red);
}
.course-card:hover li {
   color:#ffffff;
}
/* LIST ICON COLOR CHANGE */
.course-card:hover .course_lists li::before {
  color: var(--accent-red);
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 25px 0;
  justify-content: center; /* 🔥 center items */
}

.course-grid .col-md-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  display: flex;
}


@media (max-width: 992px) {
  .course-grid .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* MOBILE */
@media (max-width: 576px) {
  .course-grid .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* =========================
   TABLE WRAPPER (OPTIONAL)
========================= */
.table1 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 25px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* =========================
   HEADER
========================= */
.table1 thead {
  background: linear-gradient(135deg, var(--primary-blue), #1c2670);
  color: #fff;
}

.table1 th {
  padding: 14px 12px;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: none;
}

/* =========================
   BODY CELLS
========================= */
.table1 td {
  padding: 12px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}

/* =========================
   COLUMN COLORS (NEW)
========================= */

/* SI NO */
.table1 td:nth-child(1) {
  background: #f3f6ff;
  font-weight: 600;
  text-align: center;
  width: 60px;
}

/* SUBJECT */
.table1 td:nth-child(2) {
  background: #fafbff;
  font-weight: 500;
}

/* SEATS / DETAILS */
.table1 td:nth-child(3) {
  background: #ffffff;
}

/* =========================
   ROW STRIPES
========================= */
.table1 tbody tr:nth-child(even) td {
  background-color: #f9fafc;
}

/* =========================
   HOVER EFFECT (IMPROVED)
========================= */
.table1 tbody tr:hover td {
  background: #eef3ff !important;
  transform: scale(1.01);
  transition: 0.25s ease;
}

/* =========================
   BORDER RADIUS FIX
========================= */
.table1 thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.table1 thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

/* =========================
   TEXT IMPROVEMENT
========================= */
.table1 td br {
  line-height: 1.8;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 992px) {
  .table1 th,
  .table1 td {
    font-size: 13px;
    padding: 10px;
  }
}

/* Mobile */
@media (max-width: 576px) {

  .table1 {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table1 th,
  .table1 td {
    font-size: 12px;
    padding: 8px;
  }
}


/* =========================
   PHASE TABLE BASE
========================= */
.phase-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* =========================
   HEADER ROW 1
========================= */
.phase-table th {
  background: linear-gradient(135deg, #263489, #1c2670);
  color: #fff;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}

/* HEADER ROW 2 (lighter) */
.phase-table tr:nth-child(2) th {
  background: #3949ab;
  font-size: 13px;
}

/* =========================
   BODY CELLS
========================= */
.phase-table td {
  padding: 12px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #eee;
  color: #333;
  transition: 0.3s;
}

/* =========================
   COLUMN STYLING
========================= */

/* Phase column */
.phase-table td:first-child {
  font-weight: 700;
  background: #f3f6ff;
  color: #263489;
}

/* Term numbers */
.phase-table td:nth-child(2),
.phase-table td:nth-child(3),
.phase-table td:nth-child(4) {
  background: #fafbff;
  font-weight: 500;
}

/* Description column */
.phase-table td:last-child {
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  background: #ffffff;
}

/* =========================
   ROW STRIPES
========================= */
.phase-table tbody tr:nth-child(even) td {
  background-color: #f9fafc;
}

/* =========================
   HOVER EFFECT
========================= */
.phase-table tbody tr:hover td {
  background: #eef3ff !important;
  transform: scale(1.01);
}

/* =========================
   BORDER RADIUS
========================= */
.phase-table tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.phase-table tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 992px) {
  .phase-table th,
  .phase-table td {
    font-size: 13px;
    padding: 10px;
  }
}

/* Mobile */
@media (max-width: 576px) {

  .phase-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .phase-table th,
  .phase-table td {
    font-size: 12px;
    padding: 8px;
  }
}