/* Default  */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
    --color-primary: var(--sg-brand-navy);
    --color-primary-dark: var(--sg-brand-navy-dark);
    --color-primary-mid: var(--sg-brand-navy-mid);
    --color-secondary: var(--sg-brand-orange);
    --color-secondary-dark: var(--sg-brand-orange-dark);
    --color-white: var(--sg-color-white);
    --color-success-bg: var(--sg-color-success-bg);
    --color-success-text: var(--sg-color-success-text);
    --color-success-icon: var(--sg-color-success-icon);
    --color-grey: #797979;
    --color-light-blue: #DAF2FF;

    /* Brand tints */
    --color-tint-bg: #F5FCFF;
    --color-tint-border: var(--color-light-blue);
    --color-tint-mid: #BAD9F5;

    --bg-linear-gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    --bg-linear-gradient-lightblue: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-tint-mid) 100%);
    --bg-linear-gradient-warning: linear-gradient(135deg, #FFB347 0%, #FFCC33 100%);
    --bg-linear-gradient-secondary: linear-gradient(135deg,#FFF1E6,#FFDBBF);color:#BA6827;
    --bg-linear-gradient-success: linear-gradient(135deg,var(--sg-color-success-bg),#a3d9c8);
    --bg-light-blue: var(--color-tint-border);

    --transition-standard: var(--sg-transition);
    --transition-fast: var(--sg-transition-fast);

    --color-yacht-bg: #F5FCFF;
    --subscribe-form: linear-gradient(0deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.80) 100%), #BCBFDB;
    --footer-bg: linear-gradient(257deg, #DEFFE6 1.73%, rgba(201, 192, 255, 0.08) 98.79%);
    --font-primary: "Sunsive";
    --font-secondary: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-three: "Font Awesome 6 Free";
    --font-four: "Roboto", sans-serif;
    --font-size-b1: 16px;
    --font-size-b2: 16px;
    --font-size-b3: 22px;
    --line-height-b1: 26px;
    --line-height-b2: 26px;
    --line-height-b3: 1.7;
    --h1: 60px;
    --h2: 48px;
    --h3: 40px;
    --h4: 32px;
    --h5: 24px;
    --h6: 20px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 10px;
    overflow-y: auto;
    /*scroll-behavior: auto !important;*/
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body {
    font-size: var(--font-size-b1);
    line-height: var(--line-height-b1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*font-family: var(--font-secondary), serif;*/
    /*color: var(--color-body-1);*/
    font-weight: var(--p-regular);
    /*background-color: var(--body-bg);*/
    background-color: var(--color-tint-bg);
    position: relative;
    overflow-x: hidden;
      scroll-behavior: smooth;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    body {
        overflow: hidden;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    body {
        overflow: hidden;
    }
}

@media only screen and (max-width: 767px) {
    body {
        overflow: hidden;
    }
}


h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  word-break: break-word;
  font-family: var(--font-primary);
  line-height: 1.4074;
  color: var(--color-heading-1);
}

h1,
.h1 {
  font-size: var(--h1);
  line-height: 91px;
  font-weight: 700;
}

h2,
.h2 {
  font-size: var(--h2);
  line-height: 1.1;
}

h3,
.h3 {
  font-size: var(--h3);
  line-height: 54px;
}

h4,
.h4 {
  font-size: var(--h4);
  line-height: 1.25;
}

h5,
.h5 {
  font-size: var(--h5);
  line-height: 1.24;
}

h6,
.h6 {
  font-size: var(--h6);
  line-height: 1.25;
}

.font-secondary {
    font-family: var(--font-secondary) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary);
}

.text-gray, .text-grey {
    color: var(--color-grey);
}

.text-below-numbers {
    color: var(--sg-color-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    font-size: 12px;
    margin-top: 4px;
}

.bg-linear-gradient-primary {
    background: var(--bg-linear-gradient-primary);
}

.bg-linear-gradient-secondary {
    background: var(--bg-linear-gradient-secondary);
    color: #BA6827;
}

.bg-linear-gradient-lightblue {
    background: var(--bg-linear-gradient-lightblue);
    color: var(--color-primary);
}

.bg-linear-gradient-success {
    background: var(--bg-linear-gradient-success);
    color: var(--color-success-text);
}

.bg-linear-gradient-warning {
    background: var(--bg-linear-gradient-warning);
    color: #997404;
}

.bg-light-blue {
    background: var(--bg-light-blue);
}

.w-30 {
    width: 30% !important;
}
/*.home-yacht-bg {*/
/*    background: var(--color-background-bg);*/
/*    --color-primary: #003A59;*/
/*    --color-border: #DAF2FF;*/
/*    --color-heading-1: #003A59;*/
/*}*/


/* ==============================
   Reusable Hover Effects
   ============================== */

/* Universal hover lift effect - can be applied to any element */
.hover-lift {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.hover-lift:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hover-lift:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ================================
   Form
   ================================ */
/* Form Inputs */
.form-control,
.form-select {
    height: 50px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-text {
    color: #6c757d;
    font-size: 13px;
    margin-top: 6px;
}

/* Validation */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Checkboxes & Radio */
.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-check-label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    border-radius: 10px;
    padding: 16px 20px;
    border: none;
    font-size: 14px;
}

.alert-success {
    background-color: #d1f2eb;
    color: #0f5132;
}

.alert-danger, .alert-error {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #997404;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    padding: 12px 28px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--sg-radius-md);
    transition: var(--transition-standard);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 13px 25px -8px #00000033;
    /*box-shadow: 0 4px 14px rgba(186, 104, 39, .35);*/
}

.btn-main, .btn-main:disabled {
    background-color: var(--color-primary);
    border: none;
    color: var(--color-white);
}

.btn-main:hover {
    background-color: var(--color-primary-dark);
        color: var(--color-white);
}

.btn-outline-main {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-main:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-alt, .btn-alt:disabled {
    background-color: var(--color-secondary);
    border: none;
    color: var(--color-white);
}

.btn-alt:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
}

.btn-outline-alt {
    background-color: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline-alt:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* File Input */
input[type="file"].form-control {
    height: auto;
    padding: 10px 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 24px;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion-item {
    border: 1px solid var(--color-tint-border);
    border-radius: 10px !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.accordion-button {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    background-color: #ffffff;
    padding: 18px 24px;
    border-radius: 10px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-linear-gradient-lightblue);
    color: var(--color-primary);
    box-shadow: none;
    border-bottom: 1px solid var(--color-tint-border);
    border-radius: 10px 10px 0 0 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    outline: none;
}

.accordion-button::after {
    filter: none;
    background-size: 16px;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: none;
}

.accordion-body {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    padding: 20px 24px;
    background-color: #ffffff;
}


/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
nav[aria-label="breadcrumb"] {
    padding: 10px 20px;
    background: var(--bg-linear-gradient-lightblue);
    border-bottom: 1px solid var(--color-light-blue);
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.breadcrumb-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    opacity: 0.75;
}

.breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-item.active {
    color: var(--color-primary);
    opacity: 1;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 11px;
    color: var(--color-primary);
    opacity: 0.5;
    padding: 0 6px;
}

@media (max-width: 576px) {
    nav[aria-label="breadcrumb"] {
        padding: 8px 16px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    transition: background 0.15s ease, color 0.15s ease;
}

/* ==========================================================================
   Progress Wrap
   ========================================================================== */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  z-index: 8;
  opacity: 1;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: opacity 0.3s var(--ease-in-out-4), -webkit-transform 0.3s var(--ease-in-out-4);
  transition: opacity 0.3s var(--ease-in-out-4), -webkit-transform 0.3s var(--ease-in-out-4);
  transition: transform 0.3s var(--ease-in-out-4), opacity 0.3s var(--ease-in-out-4);
  transition: transform 0.3s var(--ease-in-out-4), opacity 0.3s var(--ease-in-out-4), -webkit-transform 0.3s var(--ease-in-out-4);
  --ease-in-out-4: cubic-bezier(0.7, 0, 0.3, 1);
}

.progress-wrap.active-progress {
  opacity: 1 !important;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: "bootstrap-icons";
  content: "\F148";
  text-align: center;
  line-height: 46px;
  font-size: 18px;
  color: var(--color-primary);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
  border: 2px solid var(--color-primary);
  box-shadow: none;
  border-radius: 50%;
}

.progress-wrap:hover::after {
  opacity: 1;
  border: 2px solid var(--color-primary);
}

.progress-wrap::before {
  display: none;
}

.progress-wrap:hover::before {
  display: none;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg {
  color: var(--color-primary);
  border-radius: 50%;
  background: #fff;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--color-primary);
  stroke-width: 34px;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

/* ==========================================================================
   Modals
   ========================================================================== */

/* Backdrop */
.modal-backdrop.show {
    opacity: 0.35;
}

/* Dialog */
.modal-dialog {
    margin-top: 10vh;
}

/* Container */
.modal-content {
    border: none;
    border-radius: var(--sg-radius-lg, 16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background-color: #ffffff;
}

/* Header */
.modal-header {
    background: var(--bg-linear-gradient-lightblue);
    border-bottom: 1px solid var(--color-light-blue);
    padding: 20px 24px;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

/* Close button */
.modal-header .btn-close {
    opacity: 0.5;
    transition: var(--transition-fast);
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Body */
.modal-body {
    padding: 24px;
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.6;
    border-bottom: 1px solid var(--color-light-blue);
}

.modal-body strong {
    color: var(--color-primary);
}

/* Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: none;
    background-color: #fafafa;
    gap: 8px;
    justify-content: flex-end;
}

/* ── FF Table ────────────────────────────────────────────────── */
/* Reusable branded table. Add class="table ff-table" to any <table>. */

.ff-table thead th {
    background: var(--color-primary);
    color: rgba(255, 255, 255, .85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.ff-table thead th:first-child { border-radius: var(--sg-radius-md) 0 0 0; }
.ff-table thead th:last-child  { border-radius: 0 var(--sg-radius-md) 0 0; }

.ff-table tbody tr {
    border-bottom: 1px solid var(--sg-tint-border);
    transition: background .15s;
}

.ff-table tbody tr:last-child { border-bottom: none; }
.ff-table tbody tr:hover      { background: var(--sg-tint-bg); }

/* Pending row highlight */
.ff-table tbody tr.row-pending       { background: #fffbf0; }
.ff-table tbody tr.row-pending:hover { background: #fff6de; }

.ff-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--sg-color-body);
    border: none;
}

/* ── Status Badges ───────────────────────────────────────────── */
/* Reusable pill badges for enrollment / record statuses.
   Usage: <span class="status-badge status-pending"> */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--sg-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: capitalize;
}

.status-pending    { background: var(--sg-color-warning-bg);  color: var(--sg-color-warning-text); }
.status-enrolled   { background: var(--sg-color-success-bg);  color: var(--sg-color-success-text); }
.status-completed  { background: var(--sg-color-info-bg);     color: var(--sg-color-info-text); }
.status-dropped    { background: var(--sg-color-danger-bg);   color: var(--sg-color-danger-text); }
.status-waitlisted { background: var(--sg-color-light-grey);  color: var(--sg-color-muted); }

.cred-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sg-tint-bg);
    border: 1px solid var(--sg-tint-border);
    border-radius: var(--sg-radius-pill);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

.cred-pill i { color: var(--color-secondary); font-size: 13px; }

/* ── Hero Icon ───────────────────────────────────────────────── */
/* Decorative icon displayed on the right side of any sg-hero.
   Usage: <div class="sg-hero-icon d-none d-md-flex"><i class="bi bi-..."></i></div> */

.sg-hero-icon {
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    border: 2px solid rgba(255, 255, 255, .18);
    font-size: 52px;
    color: rgba(255, 255, 255, .70);
}

.custom-tooltip {
  --bs-tooltip-bg: var(--color-primary);
  --bs-tooltip-color: var(--bs-white);
    padding: 10px;
    font-size: 13px;
    font-weight: bolder;
    opacity: .6;
}

.required-label::after {
    content: " *";
    color: var(--bs-danger);
}

.popular-course-title {
    font-size: 24px;
    letter-spacing: 0.3px;
    word-spacing: 6px;
    line-height: 29px;
    font-weight: 600;
}

/* ── Page: Carousel ───────────────────────────────────────────── */
.btn-search {
    min-height: 50px;
}

  [dir=rtl] .rts-banner-area-six .rts-banner-wrapper .banner-wrapper-inner .banner-title {
    font-size: 36px;
  }
/*==============================
 *  Hero Carousel  (.hc-*)
 *  Scoped styles for _hero_carousel.html include
=================================*/

/* ── Shell ─────────────────────────────────────────────── */
.hc-section {
    position: relative;
    overflow: hidden;
    background: var(--sg-brand-navy);
}

/* ── Each slide ────────────────────────────────────────── */
.hc-slide {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 72px 0 100px;
}

@media (min-width: 768px)  { .hc-slide { min-height: 520px; } }
@media (min-width: 992px)  { .hc-slide { min-height: 580px; padding: 80px 0 110px; } }
@media (max-width: 575px)  { .hc-slide { padding: 56px 0 88px; } }

/* ── Slide counter ─────────────────────────────────────── */
.hc-counter {
    position: absolute;
    top: 28px;
    right: 32px;
    z-index: 10;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255,255,255,.45);
    font-variant-numeric: tabular-nums;
}
.hc-counter .hc-counter-current {
    font-size: 18px;
    font-weight: 900;
    color: rgba(255,255,255,.9);
}
.hc-slide.hc-light .hc-counter,
.hc-slide.hc-light .hc-counter .hc-counter-current { color: rgba(0,58,89,.5); }
.hc-slide.hc-light .hc-counter .hc-counter-current { color: var(--sg-brand-navy); }

/* ── Entrance animations ────────────────────────────────── */
.hc-badge,
.hc-title,
.hc-desc,
.hc-btns,
.hc-stats-card {
    opacity: 0;
    transform: translateY(22px);
}
.carousel-item.active .hc-badge    { animation: hcSlideUp 0.55s 0.05s ease both; }
.carousel-item.active .hc-title    { animation: hcSlideUp 0.60s 0.18s ease both; }
.carousel-item.active .hc-desc     { animation: hcSlideUp 0.60s 0.32s ease both; }
.carousel-item.active .hc-btns     { animation: hcSlideUp 0.60s 0.46s ease both; }
.carousel-item.active .hc-stats-card { animation: hcFadeIn 0.70s 0.35s ease both; }

@keyframes hcSlideUp {
    from { opacity:0; transform: translateY(22px); }
    to   { opacity:1; transform: translateY(0); }
}
@keyframes hcFadeIn {
    from { opacity:0; transform: translateY(16px) scale(.98); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}
@keyframes hcProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ── Badge ─────────────────────────────────────────────── */
.hc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--sg-radius-pill);
    margin-bottom: 18px;
}
.hc-badge.badge-primary  { background: rgba(186,104,39,.2);  border: 1px solid rgba(186,104,39,.4);  color: #f0a862; }
.hc-badge.badge-navy     { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.hc-badge.badge-success  { background: rgba(25,135,84,.18);  border: 1px solid rgba(25,135,84,.35);  color: #5ee0a0; }
.hc-badge.badge-warning  { background: rgba(255,193,7,.15);  border: 1px solid rgba(255,193,7,.3);   color: #ffd350; }
.hc-badge.badge-info     { background: rgba(13,202,240,.12); border: 1px solid rgba(13,202,240,.25); color: #7de8f8; }
.hc-badge.badge-light    { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.hc-slide.hc-light .hc-badge.badge-primary {
    background: rgba(186,104,39,.1);
    border-color: rgba(186,104,39,.3);
    color: var(--sg-brand-orange);
}
.hc-slide.hc-light .hc-badge.badge-navy {
    background: rgba(0,58,89,.08);
    border-color: rgba(0,58,89,.2);
    color: var(--sg-brand-navy);
}

/* ── Title ─────────────────────────────────────────────── */
.hc-title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 16px;
}
.hc-slide.hc-light .hc-title { color: var(--sg-brand-navy); }

/* ── Description ───────────────────────────────────────── */
.hc-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
    margin-bottom: 32px;
    max-width: 520px;
}
@media (min-width: 768px) { .hc-desc { font-size: 17px; } }
.hc-slide.hc-light .hc-desc  { color: rgba(0,58,89,.65); }
.hc-layout-centered .hc-desc { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── CTA buttons ───────────────────────────────────────── */
.hc-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.hc-layout-centered .hc-btns { justify-content: center; }

.hc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #fff;
    color: var(--sg-brand-navy);
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--sg-radius-md);
    text-decoration: none;
    transition: var(--sg-transition);
    border: 2px solid #fff;
}
.hc-btn-primary:hover {
    background: var(--sg-brand-navy);
    color: #fff;
    border-color: rgba(255,255,255,.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.hc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--sg-radius-md);
    border: 2px solid rgba(255,255,255,.35);
    text-decoration: none;
    transition: var(--sg-transition);
}
.hc-btn-secondary:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.7);
    transform: translateY(-2px);
}
.hc-slide.hc-light .hc-btn-primary {
    background: var(--sg-brand-navy);
    color: #fff;
    border-color: var(--sg-brand-navy);
}
.hc-slide.hc-light .hc-btn-primary:hover {
    background: var(--sg-brand-navy-dark);
    border-color: var(--sg-brand-navy-dark);
}
.hc-slide.hc-light .hc-btn-secondary {
    color: var(--sg-brand-navy);
    border-color: rgba(0,58,89,.4);
}
.hc-slide.hc-light .hc-btn-secondary:hover {
    background: rgba(0,58,89,.08);
    border-color: var(--sg-brand-navy);
}

/* ── Stats card (right panel on split layout) ──────────── */
.hc-stats-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--sg-radius-xl);
    padding: 28px 24px;
}
.hc-slide.hc-light .hc-stats-card {
    background: #fff;
    border-color: var(--sg-tint-border);
    box-shadow: 0 8px 32px rgba(0,58,89,.1);
}
.hc-stats-card-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 20px;
}
.hc-slide.hc-light .hc-stats-card-label { color: var(--sg-color-muted); }

.hc-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.hc-stat-item:last-child  { border-bottom: none; padding-bottom: 0; }
.hc-stat-item:first-child { padding-top: 0; }
.hc-slide.hc-light .hc-stat-item { border-bottom-color: var(--sg-tint-bg); }

.hc-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--sg-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: var(--sg-brand-navy);
}
.hc-stat-icon.color-lightblue { background: var(--bg-linear-gradient-lightblue); }
.hc-stat-icon.color-secondary { background: var(--bg-linear-gradient-secondary); color: var(--sg-brand-orange); }
.hc-stat-icon.color-success   { background: var(--bg-linear-gradient-success);   color: var(--sg-color-success-icon); }
.hc-stat-icon.color-warning   { background: var(--bg-linear-gradient-warning);   color: #664d03; }
.hc-stat-icon.color-primary   { background: var(--bg-linear-gradient-primary);   color: #fff; }

.hc-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}
.hc-slide.hc-light .hc-stat-value { color: var(--sg-brand-navy); }

.hc-stat-label {
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    line-height: 1.3;
}
.hc-slide.hc-light .hc-stat-label { color: var(--sg-color-muted); }

/* ── Custom prev/next controls ──────────────────────────── */
.hc-section .carousel-control-prev,
.hc-section .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 50%;
    opacity: 1;
    transition: var(--sg-transition);
    bottom: auto;
}
.hc-section .carousel-control-prev { left: 20px; }
.hc-section .carousel-control-next { right: 20px; }
.hc-section .carousel-control-prev:hover,
.hc-section .carousel-control-next:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.55);
    transform: translateY(-50%) scale(1.08);
}
.hc-section .carousel-control-prev-icon,
.hc-section .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}
@media (max-width: 767px) {
    .hc-section .carousel-control-prev { left: 10px; }
    .hc-section .carousel-control-next { right: 10px; }
}

/* ── Bottom navigation strip ────────────────────────────── */
.hc-nav-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: stretch;
    height: 52px;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.07);
}
.hc-nav-tab {
    flex: 1;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    border-right: 1px solid rgba(255,255,255,.07);
    gap: 8px;
}
.hc-nav-tab:last-child { border-right: none; }
.hc-nav-tab:hover      { background: rgba(255,255,255,.06); }
.hc-nav-tab.active     { background: rgba(255,255,255,.09); }

.hc-nav-tab-title {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    transition: color .2s;
}
.hc-nav-tab.active .hc-nav-tab-title { color: rgba(255,255,255,.9); }

.hc-nav-tab-num {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,.3);
    flex-shrink: 0;
}
.hc-nav-tab.active .hc-nav-tab-num { color: var(--sg-brand-orange); }

.hc-nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--sg-brand-orange);
    width: 0%;
    border-radius: 0;
}

/* ── Fade transition ────────────────────────────────────── */
.hc-section .carousel-item {
    transition-duration: 0.7s;
    transition-property: opacity;
    opacity: 0;
}
.hc-section .carousel-item.active { opacity: 1; }
.hc-section .carousel-item-next.carousel-item-start,
.hc-section .carousel-item-prev.carousel-item-end { opacity: 1; }
.hc-section .carousel-item-next,
.hc-section .carousel-item-prev,
.hc-section .carousel-item.active.carousel-item-start,
.hc-section .carousel-item.active.carousel-item-end {
    transform: none;
    opacity: 0;
}

/* Sg Card */
.sg-card-info-label {
    /*form-label text-muted small text-uppercase*/
    text-transform: capitalize;
    font-size: 12px;
    letter-spacing: .05em;
    color: var(--sg-color-body);
    font-weight: 200;
}

.sg-card-info-text {
    font-size: 17px;
    font-weight: 400;
}

/* ── FAQ Cards ───────────────────────────────────────────── */
.faq-section { padding: 5% 0; }

.faq-card {
    border-radius: var(--sg-radius-xl);
    border: 1px solid var(--sg-tint-border);
    box-shadow: 0 2px 12px rgba(0,58,89,.07);
    transition: var(--sg-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,58,89,.14);
    border-color: var(--sg-tint-mid);
}

.faq-card .faq-card-top {
    padding: 32px 28px 24px;
    flex: 1;
}

.faq-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.faq-card.student .icon-circle {
    background: var(--bg-linear-gradient-primary);
    color: #fff;
}

.faq-card.instructor .icon-circle {
    background: var(--bg-linear-gradient-secondary);
    color: var(--sg-brand-orange);
}

.faq-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.faq-card p {
    color: var(--color-grey);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
}

.faq-card .faq-card-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--sg-tint-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    background: var(--sg-tint-bg);
}

.faq-card.student .faq-card-footer { color: var(--color-primary); }
.faq-card.instructor .faq-card-footer { color: var(--sg-brand-orange); }

/* ── CTA ─────────────────────────────────────────────────── */
.about-cta { padding: 5% 0; }

.about-cta .cta-inner {
    background: var(--bg-linear-gradient-lightblue);
    border: 1px solid var(--sg-tint-border);
    border-radius: var(--sg-radius-xl);
    padding: 56px 40px;
    text-align: center;
}

@media (max-width: 575px) { .about-cta .cta-inner { padding: 36px 24px; } }

.about-cta .cta-inner h3 {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-cta .cta-inner p {
    color: var(--color-grey);
    margin-bottom: 28px;
    font-size: 15px;
}

/* Instructor public profile */
.ip-sidebar-card-body {
    padding: 12px 22px 22px;
}

.ip-stat-col {
    display: inline-flex;
    align-items: center;
    gap: 14px 14px;
    padding: 10px;
    /*margin-right: 15px;*/
    /*border-bottom: 1px solid var(--sg-tint-bg);*/
}

.ip-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--sg-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.ip-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 2px;
}

.ip-stat-lbl {
    font-size: 11.5px;
    color: var(--sg-color-muted);
    font-weight: 500;
}

.ip-stat-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.ip-stat-col {
  flex: 1 1 0;          /* equal width, like col-4 */
  max-width: 33.333%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ip-stat-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Popular Courses Grid */
.pc-section {
    padding: 90px 0 100px;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

/* Background texture — subtle dot grid */
.pc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255,255,255,.045) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    pointer-events: none;
}

/* Warm glow bottom-right */
.pc-section::after {
    content: '';
    position: absolute;
    bottom: -160px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186,104,39,.18) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Section header ────────────────────────────────────────────── */
.pc-header {
    margin-bottom: 44px;
    position: relative;
    z-index: 1;
}

.pc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.pc-eyebrow i { font-size: 13px; }

.pc-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0;
}

.pc-title span {
    color: var(--color-secondary);
}

.pc-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.5);
    margin-top: 12px;
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Header right — view all link */
.pc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    padding: 8px 18px;
    border-radius: var(--sg-radius-pill);
    transition: var(--sg-transition);
    white-space: nowrap;
}

.pc-view-all:hover {
    color: #fff;
    border-color: var(--color-secondary);
    background: rgba(186,104,39,.1);
}

.pc-view-all i { transition: transform .2s; }
.pc-view-all:hover i { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════
   LAYOUT — asymmetric hero + ranked list
   Left col: hero card (spans full height)
   Right col: up to 4 horizontal mini-cards stacked
══════════════════════════════════════════════════════ */
.pc-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .pc-layout { grid-template-columns: 1fr; }
}

/* ── Hero card (first course) ─────────────────────────────────── */
.pc-hero-card {
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.09);
    border-radius: var(--sg-radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--sg-transition);
    position: relative;
}

.pc-hero-card:hover {
    border-color: rgba(186,104,39,.5);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transform: translateY(-3px);
}

/* Rank badge */
.pc-rank-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 4px 12px rgba(186,104,39,.45);
    line-height: 1;
}

.pc-rank-badge.rank-1 { background: var(--color-secondary); }
.pc-rank-badge.rank-2 { background: var(--sg-brand-navy-mid); }
.pc-rank-badge.rank-3 { background: #5a6a70; }
.pc-rank-badge.rank-other { background: rgba(255,255,255,.12); font-size: 12px; }

/* Hero image */
.pc-hero-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.pc-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.pc-hero-card:hover .pc-hero-img img {
    transform: scale(1.04);
}

/* Full-image gradient overlay — darker since it's a hero */
.pc-hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,20,35,.1) 0%,
        rgba(0,20,35,.75) 100%
    );
    pointer-events: none;
}

/* Floating badges on hero image */
.pc-hero-img-badges {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 3;
}

.pc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--sg-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    backdrop-filter: blur(8px);
}

.pc-pill-glass {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
}

.pc-pill-orange {
    background: var(--color-secondary);
    color: #fff;
}

.pc-pill-diff-beginner     { background: var(--sg-color-success-bg); color: var(--sg-color-success-text); }
.pc-pill-diff-intermediate { background: var(--sg-color-warning-bg); color: var(--sg-color-warning-text); }
.pc-pill-diff-advanced     { background: var(--sg-color-danger-bg);  color: var(--sg-color-danger-text); }

/* Hero body */
.pc-hero-body {
    padding: 22px 24px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-hero-promo {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.pc-hero-title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-hero-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.65;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Enrollment progress bar */
.pc-enroll-bar-wrap {
    padding: 14px 24px 0;
}

.pc-enroll-label {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    margin-bottom: 6px;
}

.pc-enroll-label strong { color: rgba(255,255,255,.8); }

.pc-enroll-track {
    height: 4px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    overflow: hidden;
}

.pc-enroll-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), #e8945a);
    border-radius: 4px;
    transition: width 1.2s ease;
}

/* Hero footer */
.pc-hero-footer {
    padding: 14px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Stars */
.pc-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--color-secondary);
}

.pc-stars span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    margin-left: 4px;
}

/* Hero CTA */
.pc-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--sg-radius-md);
    text-decoration: none;
    transition: var(--sg-transition);
    flex-shrink: 0;
}

.pc-hero-cta i { font-size: 11px; transition: transform .2s; }
.pc-hero-cta:hover {
    background: var(--sg-brand-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(186,104,39,.4);
}
.pc-hero-cta:hover i { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════
   RANKED LIST — right column, horizontal cards
══════════════════════════════════════════════════════ */
.pc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-list-card {
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.07);
    border-radius: var(--sg-radius-lg);
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    transition: var(--sg-transition);
    cursor: pointer;
    text-decoration: none;
}

.pc-list-card:hover {
    border-color: rgba(186,104,39,.4);
    background: rgba(255,255,255,.07);
    transform: translateX(4px);
}

/* Rank number — left accent strip */
.pc-list-rank {
    width: 44px;
    flex-shrink: 0;
    background: rgba(255,255,255,.04);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: rgba(255,255,255,.18);
    font-variant-numeric: tabular-nums;
    transition: var(--sg-transition);
}

.pc-list-card:hover .pc-list-rank {
    color: var(--color-secondary);
}

.pc-list-rank.rank-1 { color: var(--color-secondary); }
.pc-list-rank.rank-2 { color: rgba(255,255,255,.4); }
.pc-list-rank.rank-3 { color: rgba(255,255,255,.3); }

/* Thumbnail */
.pc-list-thumb {
    width: 90px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.pc-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.pc-list-card:hover .pc-list-thumb img {
    transform: scale(1.08);
}

/* List card body */
.pc-list-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pc-list-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pc-list-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.38);
}

.pc-list-meta-item i { font-size: 11px; }

/* Extra text / promo on list card */
.pc-list-promo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 3px;
}

/* Right arrow on list card */
.pc-list-arrow {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.15);
    font-size: 14px;
    transition: var(--sg-transition);
}

.pc-list-card:hover .pc-list-arrow {
    color: var(--color-secondary);
    transform: translateX(0); /* reset — parent handles it */
}

/* ── Empty state ─────────────────────────────────────────────────── */
.pc-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,.3);
    position: relative;
    z-index: 1;
}

.pc-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: .4;
}

/* ── Bottom CTA ───────────────────────────────────────────────────── */
.pc-bottom-cta {
    margin-top: 52px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pc-bottom-cta .btn-outline-light {
    border: 2px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--sg-radius-pill);
    transition: var(--sg-transition);
}

.pc-bottom-cta .btn-outline-light:hover {
    border-color: var(--color-secondary);
    color: #fff;
    background: rgba(186,104,39,.12);
}

/* ==========================================================================
   Global Form System

/* ── Form section dividers ────────────────────────────────────────────────
   Usage:
     <div class="sg-form-section">
       <p class="sg-form-section-title"><i class="bi bi-pencil-square"></i> Content</p>
       ... fields ...
     </div>
   ──────────────────────────────────────────────────────────────────────── */
.sg-section-heading {
    padding-bottom: 0;
    margin-bottom: 15px;
    line-height: 65px !important;
}

.sg-component-block {
    padding: 15px 30px;
}

.sg-form-section {
    padding: 26px 10px;
    border-bottom: 1px solid var(--color-tint-bg);
}

.sg-form-section:last-child {
    border-bottom: none;
}

.sg-form-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--color-secondary);    /* orange */
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.sg-form-section-title i { font-size: 13px; }


/* ── Sticky sidebar ───────────────────────────────────────────────────────
   Usage:
     <div class="col-lg-4">
       <div class="sg-sticky-sidebar">
         <div class="sg-sidebar-card"> ... </div>
       </div>
     </div>
   ──────────────────────────────────────────────────────────────────────── */
.sg-sticky-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ── Sidebar card ─────────────────────────────────────────────────────────
   Like sg-card but without the hover lift — sidebar cards don't move.
   ──────────────────────────────────────────────────────────────────────── */
.sg-sidebar-card {
    background: var(--sg-color-white);
    border: 1.5px solid var(--sg-tint-border);
    border-radius: var(--sg-radius-xl);
    box-shadow: 0 2px 12px rgba(0, 58, 89, .06);
    overflow: hidden;
}

.sg-sidebar-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-tint-bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sg-color-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sg-sidebar-card-body {
    padding: 18px 20px;
}


/* ── Inline field error ───────────────────────────────────────────────────
   Replaces the ad-hoc <div class="text-danger mt-1"><small>…</small></div>
   pattern with a consistent icon + message row.

   Usage:
     {% if form.field.errors %}
       {% for error in form.field.errors %}
         <div class="sg-field-error">
           <i class="bi bi-exclamation-circle"></i> {{ error }}
         </div>
       {% endfor %}
     {% endif %}
   ──────────────────────────────────────────────────────────────────────── */
.sg-field-error {
    font-size: 12px;
    color: darkred;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.sg-field-error i { flex-shrink: 0; }


/* ── Non-field error banner ───────────────────────────────────────────────
   For form.non_field_errors at the top of a page.
   ──────────────────────────────────────────────────────────────────────── */
.sg-form-error-banner {
    background: var(--sg-color-danger-bg);
    border: 1px solid rgba(220, 53, 69, .25);
    border-radius: var(--sg-radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--sg-color-danger-text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sg-form-error-banner i { flex-shrink: 0; margin-top: 2px; }


/* ── Status key rows (publish sidebar) ────────────────────────────────────
   Usage:
     <div class="sg-status-row">
       <span class="sg-status-row-label">Draft</span>
       <span class="sg-status-row-hint">Hidden from students</span>
     </div>
   ──────────────────────────────────────────────────────────────────────── */
.sg-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-tint-bg);
    font-size: 13px;
}

.sg-status-row:last-of-type { border-bottom: none; }

.sg-status-row-label {
    font-weight: 600;
    color: var(--sg-color-body);
}

.sg-status-row-hint {
    font-size: 12px;
    color: var(--sg-color-muted);
}


/* ── Back / breadcrumb link ───────────────────────────────────────────────
   Usage:  <a href="…" class="sg-back-link">← Back to Dashboard</a>
   ──────────────────────────────────────────────────────────────────────── */
.sg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sg-color-muted);
    text-decoration: none;
    margin-bottom: 6px;
    transition: var(--sg-transition-fast);
}

.sg-back-link:hover { color: var(--color-primary); }


/* ── Responsive ───────────────────────────────────────────────────────────
   On tablet and below: unstick the sidebar and tighten section padding.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .sg-sticky-sidebar { position: static; }
    .sg-form-section   { padding: 20px 20px; }
}


/* ==========================================================================
   OPTIONAL — Label & input visual polish
   These rules tighten form-label weight/colour and change the focus ring to
   match the brand navy. Remove this block to leave your base input styles
   completely unchanged.
   ========================================================================== */
.sg-form-section .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.sg-form-section .form-control:focus,
.sg-form-section .form-select:focus {
    border-color: var(--color-primary-mid);
    box-shadow: 0 0 0 3px rgba(0, 95, 138, .1);
}
/* END OPTIONAL */


/* ==========================================================================
   COURSE HOME / CATALOG PAGE  (prefix: ch-)
   ========================================================================== */

/* ── Compact Search Hero ───────────────────────────────────────────────── */
.ch-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    padding: 40px 0 15px;
    position: relative;
    overflow: hidden;
}

.ch-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: var(--color-tint-bg, #f5fbff);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.ch-hero__inner {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.ch-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ch-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.ch-hero__subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

.ch-hero__badge {
    flex-shrink: 0;
    text-align: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 18px;
    line-height: 1;
}

.ch-hero__badge-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.ch-hero__badge-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}

/* ── Integrated search bar ─────────────────────────────────────────────── */
.ch-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 30, 60, 0.22);
    overflow: hidden;
    height: 52px;
}

.ch-search-bar__field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 16px;
    gap: 10px;
    height: 100%;
}

.ch-search-bar__field--select {
    flex: 0 0 180px;
    border-left: 1px solid #e4edf5;
}

.ch-search-bar__icon {
    font-size: 15px;
    color: #8faabb;
    flex-shrink: 0;
}

.ch-search-bar__input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--color-primary);
    background: transparent;
}

.ch-search-bar__input::placeholder {
    color: #a0b5c4;
}

.ch-search-bar__select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--color-primary);
    background: transparent;
    appearance: none;
    cursor: pointer;
}

.ch-search-bar__btn {
    flex-shrink: 0;
    height: 100%;
    padding: 0 24px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: var(--sg-brand-orange, #e07b2a);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
}

.ch-search-bar__btn:hover {
    background: var(--sg-brand-orange-dark, #c05a10);
}

/* ── Active filter pills (inside hero) ────────────────────────────────── */
.ch-hero__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.ch-hero__filters-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ch-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 999px;
}

.ch-pill--clear {
    background: rgba(224, 123, 42, 0.3);
    border-color: rgba(224, 123, 42, 0.5);
    color: #ffd4a8;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}

.ch-pill--clear:hover {
    background: rgba(224, 123, 42, 0.5);
    color: #fff;
}

/* ── Page body ─────────────────────────────────────────────────────────── */
.ch-page-body {
    padding-top: 36px;
    padding-bottom: 64px;
}

/* ── Results bar ───────────────────────────────────────────────────────── */
.ch-results-bar {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 95, 138, 0.09);
}

.ch-results-bar__text {
    margin: 0;
    font-size: 13px;
    color: var(--sg-color-muted, #6b7c93);
}

.ch-results-bar__text strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.ch-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.ch-pagination .page-link {
    border: 1.5px solid #d5e3ee;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    border-radius: 8px !important;
    margin: 0 3px;
    transition: all .18s;
}

.ch-pagination .page-link:hover {
    background: var(--sg-tint-bg, #f0f8ff);
    border-color: var(--color-primary-mid);
}

.ch-pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.ch-pagination .page-item.disabled .page-link {
    color: #bdd3e3;
    border-color: #e8f0f6;
    background: transparent;
}

/* ── Empty / No-results state ──────────────────────────────────────────── */
.ch-empty-state {
    text-align: center;
    padding: 64px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 40, 65, 0.07);
    margin-bottom: 48px;
}

.ch-empty-state__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sg-tint-bg, #f0f8ff);
    margin-bottom: 20px;
}

.ch-empty-state__icon {
    font-size: 30px;
    color: var(--color-primary-mid);
}

.ch-empty-state__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.ch-empty-state__text {
    font-size: 14px;
    color: var(--sg-color-muted, #6b7c93);
    max-width: 400px;
    margin: 0 auto 4px;
    line-height: 1.6;
}

/* ── Suggestions section ───────────────────────────────────────────────── */
.ch-suggestions { margin-top: 16px; }

.ch-section-header { margin-bottom: 28px; }

.ch-section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sg-brand-orange, #e07b2a);
    margin-bottom: 4px;
}

.ch-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    border-bottom: 2px solid var(--sg-tint-border, #b8daf5);
    padding-bottom: 10px;
    margin: 0;
}

.ch-suggest-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 40, 65, 0.07);
    border: 1px solid rgba(0, 95, 138, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.ch-suggest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 40, 65, 0.13);
}

.ch-suggest-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--sg-brand-orange, #e07b2a), var(--sg-brand-orange-dark, #c05a10));
}

.ch-suggest-card__body {
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ch-suggest-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.ch-suggest-card__instructor {
    font-size: 12px;
    color: var(--sg-color-muted, #6b7c93);
    margin-bottom: 8px;
}

.ch-suggest-card__desc {
    font-size: 13px;
    color: #4a5568;
    flex: 1;
    line-height: 1.55;
    margin-bottom: 0;
}

.ch-suggest-card__footer {
    border-top: 1px solid rgba(0, 95, 138, 0.08);
    padding-top: 12px;
    margin-top: 14px;
}

/* ── Recently added section ────────────────────────────────────────────── */
.ch-recently-section {
    background: #fff;
    border-top: 1px solid rgba(0, 95, 138, 0.07);
    padding: 56px 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ch-hero { padding: 28px 0 0; }
    .ch-hero__top { flex-direction: column; gap: 10px; }
    .ch-hero__badge { align-self: flex-start; }
    .ch-search-bar { flex-wrap: wrap; height: auto; border-radius: 12px; }
    .ch-search-bar__field { height: 48px; }
    .ch-search-bar__field--select { flex: 1; border-left: none; border-top: 1px solid #e4edf5; }
    .ch-search-bar__btn { width: 100%; border-radius: 0 0 12px 12px !important; height: 46px; }
    .ch-page-body { padding-top: 24px; padding-bottom: 40px; }
    .ch-empty-state { padding: 40px 20px; }
    .ch-recently-section { padding: 36px 0; }
}

/* END COURSE HOME / CATALOG PAGE */

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 780px;
  background: #fff;
  border: 1px solid #e4edf5;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
  z-index: 99999;
  padding: 20px 24px;
  animation: cookieFadeUp 0.4s ease both;
}

.cookie-banner--hide {
  animation: cookieFadeDown 0.35s ease both;
}

@keyframes cookieFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes cookieFadeDown {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.cookie-banner__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-primary, #BA6827);
  margin-top: 1px;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.cookie-banner__link {
  color: var(--color-primary, #BA6827);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  color: var(--color-primary, #BA6827);
  opacity: 0.8;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cookie-banner__btn--primary {
  background: var(--color-primary, #BA6827);
  color: #fff;
  border-color: var(--color-primary, #BA6827);
}

.cookie-banner__btn--primary:hover {
  background: transparent;
  color: var(--color-primary, #BA6827);
}

.cookie-banner__btn--outline {
  background: transparent;
  color: #777;
  border-color: #ccc;
}

.cookie-banner__btn--outline:hover {
  border-color: #999;
  color: #444;
}

@media (max-width: 576px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px;
  }
  @keyframes cookieFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes cookieFadeDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(20px); }
  }
  .cookie-banner__inner { flex-direction: column; gap: 14px; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}