/* ---------- Filter tabs ---------- */
.cc-tabs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.cc-tab {
    appearance: none;
    border: none;
    cursor: pointer;
    width: 250px;
    padding: 15px 28px;
    border-radius: 99px;
    background: #ECECEC;
    color: #111827;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
    transition: background .18s, color .18s, box-shadow .18s, transform .05s;
}

.cc-tab:not(.active):hover {
    background: #CFCFD3;
}

.cc-tab.active {
    background: #2F66D6;
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 102, 214, .28);
}

.cc-tab:focus-visible {
    outline: 2px solid #2F66D6;
    outline-offset: 2px;
}

/* Gradient overlay for text readability */
.cc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .15) 0%,
            rgba(0, 0, 0, .45) 55%,
            rgba(0, 0, 0, .85) 100%);
}

/* Content areas */
.cc-type {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
    font-weight: 700;
}

.cc-date { opacity: .9; font-weight: 600; }

.cc-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
}

.cc-venue { opacity: .95; font-weight: 600; margin-top: 10px; font-size: 12px; }

.cc-card { background-image: var(--cc-bg); }

/* ---------- Empty state ---------- */
.cc-empty-msg {
    width: 100%;
    height: 380px;
    align-content: center;
    text-align: center;
    padding: 60px 12px;
    font-weight: 700;
    color: #111;
    background: #f5f5f5;
    border-radius: 18px;
    display: none; /* JS toggles this */
}

/* ---------- Optional helpers ---------- */
.cc-card:focus-visible {
    outline: 3px solid rgba(47, 102, 214, .9);
    outline-offset: 3px;
    border-radius: var(--r);
}

/*-------------------------------------------------------------------- */
/* Root container (shared across all instances) */
.cc-root {
    --card-w: 280px;
    --card-h: 380px;
    --brand: rgb(8, 42, 123);
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 80px;
    perspective: 1000px;
}

.cc-root .cc-viewport {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: visible;    
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-root .cc-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform .8s cubic-bezier(.25, .46, .45, .94), opacity .25s ease;
    z-index: 20;
}

.cc-root .cc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .8s cubic-bezier(.25, .46, .45, .94);
}

/* Positioning classes (3D stepped look) */
.cc-root .center { z-index: 10; transform: scale(1.4) translateZ(0); pointer-events: all !important; }
.cc-root .left-2  { z-index: 1; transform: translateX(-550px) scale(1.2) translateZ(-300px); opacity: .8; }
.cc-root .left-1  { z-index: 5; transform: translateX(-350px) scale(1.3) translateZ(-100px); opacity: .95; }
.cc-root .right-1 { z-index: 5; transform: translateX(350px)  scale(1.3) translateZ(-100px); opacity: .95; }
.cc-root .right-2 { z-index: 1; transform: translateX(550px)  scale(1.2) translateZ(-300px); opacity: .8; }
.cc-root .hidden  { opacity: 0; pointer-events: none; }

/* Arrows */
.cc-root .cc-arrow {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #185194;
    border-radius: 50%;
    z-index: 20;
    transition: all .3s ease;
    border: none;
    outline: none;
    transform: translateY(-50%) scale(4);
    padding: 0 7px 1px;
    font-size: 10px; 
}
.cc-root .cc-arrow:hover { transform: translateY(-50%) scale(4.2); }
.cc-root .cc-arrow.left  { margin-right: 380px; }
.cc-root .cc-arrow.right { margin-left: 380px; }

.elementor-594 .elementor-element.elementor-element-6db3ec59 .elementor-button:hover { transform: scale(1.05); }

/* Dots (kept for future use) */
.cc-root .cc-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(8, 42, 123, .2); cursor: pointer; transition: all .3s ease; border: 0; padding: 0; }
.cc-root .cc-dot.active { background: var(--brand); transform: scale(1.2); }

/* === Overlay card design === */
.cc-root .cc-card {
    position: absolute;
    width: var(--card-w);
    height: var(--card-h);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .8s cubic-bezier(.25, .46, .45, .94);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #fff;
    pointer-events: none;
    background: #000; /* fallback */
    flex-direction: column;
}

.cc-course {
    z-index: 3;
    margin: 30px 20px 0;
    padding: 5px 60px;
    border-radius: 55px;
    background: #666767;
}

.cc-coursetype {
    color: #fff;
}

/* Background image via CSS variable */
.cc-root .cc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cc-bg);
    background-size: cover;
    background-position: center;
    filter: none;
}

/* Subtle dark gradient to improve text contrast */
.cc-root .cc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.05) 100%);
}

/* Text container */
.cc-root .cc-content { position: relative; z-index: 2; padding: 8px 22px 26px 22px; width: 100%; }
.cc-root .cc-type    { width: 220px; display: inline-block; font-size: 12px; line-height: 1; font-weight: 400; background: rgba(92,92,91,0.8); padding: 8px 0; border-radius: 100px; backdrop-filter: blur(4px); text-align: center; }
.cc-root .cc-date    { margin-top: 8px; font-size: 10px;  font-weight: 600; }
.cc-root .cc-title   { margin-top: 8px; font-size: 20px; line-height: 1.15; font-weight: 400; }
.cc-root .cc-delivery{ margin-top: 10px; font-size: 12px; font-weight: 600; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .cc-root .cc-title { font-size: 14px; }
    .cc-root .cc-delivery { font-size: 8px; }
    .cc-root .cc-date { font-size: 6px; }
    .cc-root .cc-type { font-size: 8px; padding: 7px 5px; width: 150px; }
    .cc-root { --card-w: 200px; --card-h: 280px; }
    .cc-root .center { transform: scale(1.5) translateZ(0); }
    .cc-root .left-2  { transform: translateX(-300px) scale(1.3) translateZ(-350px); }
    .cc-root .left-1  { transform: translateX(-170px) scale(1.4) translateZ(-150px); }
    .cc-root .right-1 { transform: translateX(170px)  scale(1.4) translateZ(-150px); }
    .cc-root .right-2 { transform: translateX(300px)  scale(1.3) translateZ(-350px); }
    .cc-root .cc-arrow.left  { margin-right: 280px; }
    .cc-root .cc-arrow.right { margin-left: 280px; }
}

/* ----------------------- Loading transition: card + states ------------------------*/
/* When loading, fade out existing track and disable clicks */
.cc-root.is-loading .cc-track { opacity: 0; pointer-events: none; }

/* The loading card (uses same size/3D “center” position) */
/* Card look */
.cc-loading-card {
  position: absolute;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  text-decoration: none;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  background: linear-gradient(180deg, #2F66D6 0%, #27C7C9 100%);
  isolation: isolate;                 /* allow negative z-index pseudos */
  color: #fff;
  font-weight: 600;
}

/* “Loading…” label (top-left) */
.cc-loading-caption {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 20px;
  letter-spacing: .3px;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
  opacity: .95;
}

/* gifs icon */
.cc-loading-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: auto;                /* centers inside card */
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

/* second layer 'ghost' loading card */
.cc-loading-card::before,
.cc-loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  z-index: -1;                 /* place behind the main card */
  background: linear-gradient(180deg, #2F66D6 0%, #27C7C9 100%);
  opacity: .7;
}

/* left/second ghost */
.cc-loading-card::before {
  transform: translate(0) rotate(-5.2deg) scale(.95);
}

/* right/second ghost */
.cc-loading-card::after {
  transform: translate(0) rotate(5.2deg) scale(.95);
}

/* keep the loader “as a slide” */
.cc-loading-card.center { transform: scale(1.4) translateZ(0); }

/* when visible */
.cc-root.show-loader .cc-loading-card { display: flex; opacity: 1; }

/* hide track while loading (you already have this) */
.cc-root.is-loading .cc-track { opacity: 0; pointer-events: none; }

/* optionally dim the backdrop a touch while loading */
.cc-root.show-loader .cc-viewport { filter: none; }  /* change to brightness(.98) if you want */

/* Base style for third layer ghost elements */
.cc-loading-card .cc-loading-ghost {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  z-index: -2; /* further behind ::before/::after */
  background: linear-gradient(180deg, #2F66D6 0%, #27C7C9 100%);
  opacity: .4;
  pointer-events: none;
}

/* Farther-left ghost */
.cc-loading-card .cc-loading-ghost.g1 {
  transform: translate(0) rotate(-11deg) scale(.9);
}

/* Farther-right ghost */
.cc-loading-card .cc-loading-ghost.g2 {
    transform: translate(0) rotate(11deg) scale(.9);
}


/* ___________________________________________________no-message___________________________________________________________ */
.cc-empty-msg {
  position: absolute;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 20px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  text-decoration: none;
  pointer-events: none;
  z-index: 30;
  opacity: 1;
  transition: opacity .22s ease, transform .22s ease;
  background: linear-gradient(#c7d5fa 0%, #a9c7f7 38%, #9fe3e3 100%);
  isolation: isolate;                 /* allow negative z-index pseudos */
  color: #fff;
  font-weight: 600;
}

.cc-root.show-loader .cc-empty-msg {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cc-empty-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* gifs icon */
.cc-empty-img {
  height: 100px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

.cc-empty-title {
  font-size: 24px;
  font-weight: 600;
  color: #2D69CD;
}
.cc-empty-subtitle {
  font-size: 10px;
  font-weight: 400;
  color: #2D69CD;
  margin-bottom: 10px; /* adjust the vertical position content of empty message */
}

/* second layer 'ghost' loading card */
.cc-empty-msg::before,
.cc-empty-msg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  z-index: -1;                 /* place behind the main card */
  background: linear-gradient(#c7d5fa 0%, #a9c7f7 38%, #9fe3e3 100%);
  opacity: .8;
}

/* left/second ghost */
.cc-empty-msg::before {
  transform: translate(0) rotate(-5.2deg) scale(.95);
}

/* right/second ghost */
.cc-empty-msg::after {
  transform: translate(0) rotate(5.2deg) scale(.95);
}

/* keep the loader “as a slide” */
.cc-empty-msg { transform: scale(1.4) translateZ(0); }

/* Base style for third layer ghost elements */
.cc-empty-msg .cc-empty-ghost {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  z-index: -2; /* further behind ::before/::after */
  background: linear-gradient(#c7d5fa 0%, #a9c7f7 38%, #9fe3e3 100%);
  opacity: .5;
  pointer-events: none;
}

/* Farther-left ghost */
.cc-empty-msg .cc-empty-ghost.eg1 {
  transform: translate(0) rotate(-11deg) scale(.9);
}

/* Farther-right ghost */
.cc-empty-msg .cc-empty-ghost.eg2 {
    transform: translate(0) rotate(11deg) scale(.9);
}

