
/* ==========================================================================
   CSA Training Cards Component
   ========================================================================== */

.csa-training-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 1px solid #e5e7eb;
}

.csa-training-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 38px -10px rgba(79,70,229,0.18),
              0 10px 15px -3px rgba(6,182,212,0.12);
  border-color: #c7d2fe;
}

.csa-training-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.06));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.csa-training-card:hover::before {
  opacity: 0.7;
}

.csa-training-card-content {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}

.csa-training-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.csa-training-icon-wrapper {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(79,70,229,0.3);
  transition: all 0.4s ease;
}

.csa-training-card:hover .csa-training-icon-wrapper {
  transform: scale(1.15) rotate(-4deg);
  box-shadow: 0 10px 20px rgba(6,182,212,0.35);
}

.csa-training-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.csa-training-description {
  font-size: 0.9rem;
  line-height: 1.68;
  color: #4b5563;
  margin: 0;
}

.csa-training-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to left, #06b6d4, #c084fc);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.csa-training-card:hover::after {
  transform: scaleX(1);
}




/* =========================
   Category Items
========================= */

.csa-category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.csa-category-item {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.csa-category-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.csa-category-item h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #2c3e50;
}

.csa-category-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* =========================
   Tabs Base
========================= */

.csa-tabs {
    margin-top: 32px;
}

.csa-tabs-nav {
    display: flex;
    gap: 10px;
}

.csa-tab-btn {
    background: #f1f3f6;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .2s ease;
    color: #444;
	width: 150px;
	height: 40px;

}

.csa-tab-btn:hover {
    background: rgba(79,70,229,.12);
}

.csa-tab-btn.active {
    background: #4f46e5;
    color: #fff;
}

/* Panels */
.csa-tab-panel {
    display: none;
    animation: csaFade .25s ease;
}

.csa-tab-panel.active {
    display: block;
}
/*

@keyframes csaFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* =========================
   Vertical Layout
========================= */

.csa-tabs-vertical {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}

.csa-tabs-vertical .csa-tabs-nav {
    flex-direction: column;
}

.csa-tabs-vertical .csa-tab-btn {
    width: 100%;
    text-align: right;
}

/* =========================
   Horizontal Layout
========================= */

.csa-tabs-horizontal .csa-tabs-nav {
    flex-direction: row;
    margin-bottom: 20px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .csa-tabs-vertical {
        grid-template-columns: 1fr;
    }

    .csa-tabs-vertical .csa-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .csa-tabs-vertical .csa-tab-btn {
        white-space: nowrap;
        text-align: center;
    }

    .csa-category-items {
        grid-template-columns: 1fr;
    }
}

/* active state */
.csa-tabs-vertical .csa-tab-btn.active::after {
    height: 60%;
}

/* active background subtle */
.csa-tabs-vertical .csa-tab-btn.active {
    background: #303E9D;
    color: #ffffff;
}


/* Tabs panels (base) */
.csa-tab-panel {
    display: none;
    opacity: 0;
    transform: translateX(12px);
}

/* Active panel with slide animation */
.csa-tab-panel.active {
    display: block;
    animation: csaSlideIn .3s ease forwards;
}

@keyframes csaSlideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}