/* carrousel settings */
.TrainingItem{
height: 350px;

}

.TrainingImg{
height: 100%;
object-fit: cover;
}
/* Text Settings */

.OpnTxtOnly{
  color: rgba(17, 0, 255, 0.747);
}
.GroupTextOnly{
  color: crimson;
}

.Carouseltxt{
  background-color: rgb(53, 72, 89);
}

/* ==========================================================
   MCS Training page — color polish
   Brand palette: navy #002e57, amber #b97309, success #198754
   ========================================================== */

/* ---- Hero section ---- */
#TrainingClass {
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%, #fff7e6 100%);
  border: 1px solid #e0eaf5;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
#TrainingClass .badge {
  padding: 0.55rem 0.85rem;
  border-radius: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ---- Main tab pills ---- */
#trainingTabs {
  background: #f8faff;
  padding: 0.5rem !important;
  border-radius: 0.75rem;
  border: 1px solid #e0eaf5 !important;
  box-shadow: inset 0 2px 4px rgba(0, 46, 87, 0.04);
}
#trainingTabs .nav-link {
  color: #002e57;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  padding: 0.65rem 0.85rem;
}
#trainingTabs .nav-link:hover {
  background-color: #e0eaf5;
  color: #002e57;
}
#trainingTabs .nav-link.active {
  background: linear-gradient(135deg, #002e57 0%, #004a8f 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 46, 87, 0.35);
  border-color: #b97309;
}

/* ---- Tab panes: give each section a very light tinted background ---- */
.tab-pane {
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
}
#tab-overview {
  background: #f6faff;
  border-left: 5px solid #002e57;
}
#tab-schedule {
  background: #f4fbf6;
  border-left: 5px solid #198754;
}
#tab-prep {
  background: #fafcf4;
  border-left: 5px solid #b97309;
}
#tab-travel {
  background: #f7f5fd;
  border-left: 5px solid #6f42c1;
}

/* ---- Benefit tiles (Install / Operate / Maintain) ---- */
#tab-overview .card.border-success {
  background: linear-gradient(180deg, #ffffff 0%, #e8f5ee 100%);
  border-width: 2px !important;
  border-top: 5px solid #198754 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#tab-overview .card.border-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e6f0fb 100%);
  border-width: 2px !important;
  border-top: 5px solid #002e57 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#tab-overview .card.border-warning {
  background: linear-gradient(180deg, #ffffff 0%, #fdf3e0 100%);
  border-width: 2px !important;
  border-top: 5px solid #b97309 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#tab-overview .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 46, 87, 0.15);
}

/* ---- Year sub-tabs inside Schedule ---- */
#yearTabs {
  border-bottom: 3px solid #198754;
}
#yearTabs .nav-link {
  color: #198754;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  margin: 0 0.35rem;
}
#yearTabs .nav-link:hover:not(.active) {
  background-color: #e8f5ee;
}
#yearTabs .nav-link.active {
  background: #198754;
  color: #ffffff;
  border-color: #198754;
}

/* 2027 tab in blue to distinguish from 2026 */
#yearTabs #year-2027-btn {
  color: #0d6efd;
}
#yearTabs #year-2027-btn:hover:not(.active) {
  background-color: #e7f0ff;
}
#yearTabs #year-2027-btn.active {
  background: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
}

/* 2026 schedule table — green frame to match the 2026 tab */
#year-2026 .schedule-table {
  border-color: #198754;
}
#year-2026 .schedule-table > :not(caption) > * > * {
  border-color: #198754;
}

/* 2027 schedule table — blue frame + header to match the 2027 tab */
#year-2027 .schedule-table {
  border-color: #0d6efd;
}
#year-2027 .schedule-table > :not(caption) > * > * {
  border-color: #0d6efd;
}
#year-2027 .schedule-table thead.table-success {
  --bs-table-bg: #cfe2ff;
  --bs-table-color: #052c65;
  --bs-table-border-color: #0d6efd;
  background-color: #cfe2ff;
  color: #052c65;
}

/* 2027 month cells, seat badges, and application buttons — blue instead of green */
#year-2027 .schedule-table td.text-bg-success {
  background-color: #0d6efd !important;
  color: #ffffff !important;
}
#year-2027 .schedule-table .badge.bg-success {
  background-color: #0d6efd !important;
}
#year-2027 .schedule-table .btn-success {
  --bs-btn-bg: #0d6efd;
  --bs-btn-border-color: #0d6efd;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-active-bg: #0a58ca;
  --bs-btn-active-border-color: #0a53be;
  --bs-btn-disabled-bg: #0d6efd;
  --bs-btn-disabled-border-color: #0d6efd;
}

/* ---- Preparation cards ---- */
#tab-prep .card.border-danger {
  background: linear-gradient(180deg, #ffffff 0%, #fdf5f5 100%);
}
#tab-prep .card.border-success {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9f4 100%);
}

/* ---- Travel address cards ---- */
#tab-travel .card {
  border-top: 4px solid #002e57;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#tab-travel .col-md-4:nth-child(2) .card { border-top-color: #198754; }
#tab-travel .col-md-4:nth-child(3) .card { border-top-color: #b97309; }
#tab-travel .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 46, 87, 0.15);
}

/* ---- Schedule reminder banner ---- */
#tab-schedule .alert-danger {
  background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* ---- Overview notice ---- */
#ApplicationReceivedByDateTimeStamp {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
  border-color: #b97309 !important;
}

/* ---- Responsive: on small screens, tone padding for tinted panes ---- */
@media (max-width: 767.98px) {
  .tab-pane {
    padding: 0.75rem;
  }
  #TrainingClass {
    padding: 0.75rem;
  }
}

/* ==========================================================
   Responsive schedule tables
   - Desktop / tablet: normal Bootstrap table look
   - Phones (<768px): each <tr> becomes a labeled card so we
     never rely on horizontal scroll, and text scales down.
   ========================================================== */

/* ==========================================================
   Responsive schedule tables
   - Desktop / tablet: normal Bootstrap table look
   - Phones (<768px): each <tr> becomes a labeled card so we
     never rely on horizontal scroll, and text scales down.
   ========================================================== */
.schedule-table thead th {
  vertical-align: middle;
}

/* Tablet: slightly smaller table text so 5 columns fit without scroll */
@media (max-width: 991.98px) {
  .schedule-table tbody.h4 {
    font-size: 1rem;
    line-height: 1.35;
  }
  .schedule-table tbody td {
    padding: 0.5rem 0.4rem;
  }
}

/* Phones: stack each row as a card */
@media (max-width: 767.98px) {
  .schedule-table {
    border: 0;
  }
  .schedule-table thead {
    display: none;
  }
  .schedule-table tbody,
  .schedule-table tbody tr,
  .schedule-table tbody td {
    display: block;
    width: 100%;
  }
  .schedule-table tbody tr {
    margin-bottom: 0.9rem;
    border: 2px solid #198754;
    border-radius: 0.5rem;
    background: #fff !important;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }
  .schedule-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: none;
    padding: 0.55rem 0.35rem;
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.3;
    border-bottom: 1px dashed #e9ecef;
    border-radius: 0.35rem;
  }
  /* Month cell has a colored background — make its label white so it's readable */
  .schedule-table tbody td.text-bg-success::before {
    color: #ffffff;
  }
  /* Keep the Day range on a single line on mobile */
  .schedule-table tbody td[data-label="Day"] {
    white-space: nowrap;
  }
  .schedule-table tbody td:last-child {
    border-bottom: 0;
    padding-top: 0.65rem;
  }
  .schedule-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
    text-align: left;
  }
  .schedule-table tbody td .badge {
    font-size: 0.95rem;
  }

  /* The "Class Form" cell is special — stack label above the button so
     the CTA becomes a full-width, prominent tap target that never
     overflows the card edge. Higher-specificity selectors override
     Bootstrap's .badge shrink. */
  .schedule-table tbody td[data-label="Class Form"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-top: 0.6rem;
    text-align: left;
  }
  .schedule-table tbody td[data-label="Class Form"]::before {
    flex: initial;
    width: auto;
  }
  .schedule-table tbody td[data-label="Class Form"] button.btn,
  .schedule-table tbody td[data-label="Class Form"] button.badge {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    border-radius: 0.6rem;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 8px rgba(25, 135, 84, 0.25);
  }

  /* Kill the striping so cards read cleanly */
  .schedule-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent;
  }
}

/* Extra small phones: tighten a touch more */
@media (max-width: 380px) {
  .schedule-table tbody td::before {
    flex-basis: 45%;
    font-size: 0.7rem;
  }
  .schedule-table tbody td {
    font-size: 0.9rem;
  }
}
