/* Modern Course Cards Design System */

:root {
    --card-bg: #ffffff;
    --card-radius: 16px;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --primary-color: #693D94;
    --primary-hover: #5A3480;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-course-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    /*box-shadow: var(--card-shadow);*/
    transition: var(--transition);
    /*height: 100%;*/
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.modern-course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

/* Image Section */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f1f5f9;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-course-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Floating Actions */
.dev-plan-action {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.plus-icon, .minus-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-decoration: none !important;
}

.plus-icon:hover, .minus-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Overlay for development plan confirmation */
.overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    text-align: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 99 !important;
    color: #fff !important;
    transform: scale(1.1);
    box-sizing: border-box !important;
}

.overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

.overlay p {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 24px 25px 24px !important; /* left/right margin */ color: #fff !important;
    line-height: 1.4 !important;
    max-width: 90% !important;
    display: block !important;
}

.overlay .buttons-wrapper {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    width: 100% !important;
}

.overlay_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    background: #fff !important;
    color: var(--primary-color) !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    min-width: 70px !important;
    cursor: pointer !important;
}

.overlay_btn:hover {
    background: var(--text-main) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
}

.overlay_btn:active {
    transform: translateY(0);
}

/* Card Body */

/* Section Card - unified UI */
.section-card {
    background: var(--card-bg) !important;
    border-radius: var(--card-radius) !important;
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    transition: var(--transition) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    overflow: visible; /* allow Pjax button overflow */
}

.section-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

@media (max-width: 768px) {
    .section-card {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
}
.card-body-modern {
    padding: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.session-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    /*padding: 6px 12px !important;*/
    /*background: rgba(92, 82, 212, 0.07) !important;*/
    /*border: 1px solid rgba(92, 82, 212, 0.12) !important;*/
    /*border-radius: 12px !important;*/
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    /*margin-bottom: 8px !important;*/
}
.session-info .label {
    font-size: 11px !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
.session-info .date-display {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}
.session-info .date-display i {
    font-size: 10px !important;
    color: var(--primary-color) !important;
}
.session-info .date-display strong {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.session-info i {
    display: inline-block !important;
    color: #693D94 !important;
    font-size: 12px !important;
}

.session-info span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #693D94;
    font-size: 11px !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    transition: var(--transition);
}

.session-info strong {
    color: #1e293b !important;
    font-weight: 700 !important;
    display: inline !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
}

/* UI Fix: ensure consistent height for session info */
.session-info, .session-info-placeholder {
    /*height: 44px; /* fixed height */*/
}


.course-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* UI Fix: Wrap long titles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0px 12px;
}

.course-title a {
    color: inherit;
    text-decoration: none !important;
}

.course-title a:hover {
    color: var(--primary-color);
}

.rating-bar, .rating-bar-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 2px;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    height: 32px; /* UI Fix: consistent height */
}

.rating-bar:hover {
    background: #f5f3ff;
}

.rating-stars {
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 1px;
}

.average-rating {
    font-weight: 700;
    color: var(--text-main) !important;
    font-size: 15px;
}

.review-count {
    color: var(--text-muted);
    font-size: 13px;
}

.btn-modern-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: #fff !important;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none !important;
    border: none;
}

.btn-modern-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(84, 87, 193, 0.3);
    transform: translateY(-2px);
}

.card-actions-modern {
    margin-top: auto;
    padding: 0px 12px 15px;
}

.view-course-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    color: var(--primary-color);
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.modern-course-card:hover .view-course-btn {
    background: var(--primary-color);
    color: #fff;
}


/* Grid Adjustments for Catalogue */
.group-item {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .course-title {
        font-size: 16px;
        min-height: auto;
    }
}

/* Resource Type Badge (overlay on card image) */
.resource-type--badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: var(--purple-tint-bg);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.resource-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filter Sidebar Styling */
.modern-filter-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f1f5;
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-filter-primary, .btn-filter-secondary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-filter-primary {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(84, 87, 193, 0.2) !important;
    border: none !important;
}

.btn-filter-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(84, 87, 193, 0.3) !important;
}

.btn-filter-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-filter-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.filter-group-section {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-list li {
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-list li:hover {
    background: #f1f5f9;
}

.modern-checkbox {
    padding-left: 2rem !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    position: relative;
}

.modern-checkbox .custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
    width: 18px;
    height: 18px;
}

.modern-checkbox .custom-control-label {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    text-decoration: none !important;
    border: none !important;
    line-height: 1.2;
    padding-top: 2px;
}

.modern-checkbox .custom-control-label::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    background-color: #fff;
    left: -2rem !important;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.modern-checkbox .custom-control-label::after {
    content: "";
    position: absolute;
    left: -2rem !important;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: no-repeat 50% / 50% 50%;
}

.modern-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.modern-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.modern-checkbox .custom-control-input:checked ~ .custom-control-label {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 991px) {
    .modern-filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    .filter-actions {
        flex-direction: row !important;
    }
    .btn-filter-primary, .btn-filter-secondary {
        flex: 1 !important;
    }
}

/* UI Fixes: Dashboard Banner */
#demo-carousel .carousel-item {
    position: relative;
}
#demo-carousel .carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(105, 61, 148), rgb(105, 61, 148));
    opacity: 0.82;
    z-index: 1;
}
#demo-carousel .carousel-caption {
    z-index: 2;
    max-width: 600px; /* Constrain quote width */
}

/* UI Fix: Progress Circle Colors & High Contrast Status (UI_23) */
.progress-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    padding: 2px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.progress-p-circle {
    transform: rotate(-90deg) !important;
    transform-origin: 50% 50% !important;
}
.progress-p-circle-back {
    fill: none !important;
    stroke: #e2e8f0 !important;
    stroke-width: 8 !important;
}
.progress-p-circle-prog {
    fill: none !important;
    stroke: #693D94 !important; /* High contrast primary brand color */
    stroke-width: 8 !important;
    stroke-linecap: round !important;
    transition: stroke-dasharray 0.8s ease !important;
}

/* UI Fix: Carousel arrows overlapping (UI_06) */
.rs-carousel.owl-carousel {
    padding: 0 12px !important;
}
.rs-carousel.owl-carousel .owl-nav .owl-prev,
.rs-carousel.nav-style2 .owl-nav .owl-prev {
    left: -28px !important;
}
.rs-carousel.owl-carousel .owl-nav .owl-next,
.rs-carousel.nav-style2 .owl-nav .owl-next {
    right: -28px !important;
}

/* UI Fix: Resource Cards Image Dimensions (UI_09 Resources) */
.resources-block .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px !important;
    padding-top: 0 !important;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 12px 12px 0 0;
}
.resources-block .card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* UI Fix: Mobile Avatar Consistency (UI_18) */
.navbar-header .avatar.avatar-sm img,
.navbar-header .avatar.avatar-sm .avatar-initial,
.navbar-header .avatar.avatar-sm span.rounded-circle {
    border: none !important;
    box-shadow: none !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 36px !important;
}

/* UI Fix: Footer alignment and styling (UI_08, UI_09) */
#footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 40px !important;
    /*max-width: 1400px !important;*/
    margin: 0 auto !important;
    width: 100% !important;
}
#footer .footer-menu {
    flex-grow: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#footer .footer-menu ul {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}
#footer .footer-menu ul li {
    list-style: none !important;
    margin: 0 !important;
}
#footer .footer-menu ul li a {
    color: var(--text-secondary, #6b7280) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}
#footer .footer-menu ul li a:hover {
    color: var(--primary-first, #693D94) !important;
    text-decoration: none !important;
}
#footer .social-link {
    margin: 0 !important;
    padding: 0 !important;
}
#footer .social-link ul {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}
#footer .social-link ul li {
    list-style: none !important;
    margin: 0 !important;
}
#footer .social-link ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: var(--border-light, #f3f4f6) !important;
    color: var(--text-secondary, #6b7280) !important;
    transition: all 0.2s ease !important;
}
#footer .social-link ul li a:hover {
    background-color: var(--border-light, #f3f4f6) !important;
    color: var(--text-secondary, #6b7280) !important;
}

/* ========== Margin ========== */

/* All */
.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }

/* Top */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

/* Bottom */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

/* Left (Bootstrap 4) */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-auto { margin-left: auto !important; }

/* Right (Bootstrap 4) */
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-auto { margin-right: auto !important; }

/* Start (Bootstrap 5) */
.ms-0 { margin-inline-start: 0 !important; }
.ms-1 { margin-inline-start: .25rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.ms-4 { margin-inline-start: 1.5rem !important; }
.ms-5 { margin-inline-start: 3rem !important; }
.ms-auto { margin-inline-start: auto !important; }

/* End (Bootstrap 5) */
.me-0 { margin-inline-end: 0 !important; }
.me-1 { margin-inline-end: .25rem !important; }
.me-2 { margin-inline-end: .5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.me-5 { margin-inline-end: 3rem !important; }
.me-auto { margin-inline-end: auto !important; }

/* Horizontal */
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Vertical */
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* ========== Padding ========== */

/* All */
.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Top */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

/* Bottom */
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Left (Bootstrap 4) */
.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

/* Right (Bootstrap 4) */
.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: .25rem !important; }
.pr-2 { padding-right: .5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

/* Start (Bootstrap 5) */
.ps-0 { padding-inline-start: 0 !important; }
.ps-1 { padding-inline-start: .25rem !important; }
.ps-2 { padding-inline-start: .5rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }
.ps-4 { padding-inline-start: 1.5rem !important; }
.ps-5 { padding-inline-start: 3rem !important; }

/* End (Bootstrap 5) */
.pe-0 { padding-inline-end: 0 !important; }
.pe-1 { padding-inline-end: .25rem !important; }
.pe-2 { padding-inline-end: .5rem !important; }
.pe-3 { padding-inline-end: 1rem !important; }
.pe-4 { padding-inline-end: 1.5rem !important; }
.pe-5 { padding-inline-end: 3rem !important; }

/* Horizontal */
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

/* Vertical */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ========================================
   TEXT SIZE
   ======================================== */

.text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.text-3xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

.text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

.text-5xl {
    font-size: 3rem !important;
    line-height: 1 !important;
}

.text-6xl {
    font-size: 3.75rem !important;
    line-height: 1 !important;
}


/* ========================================
   FONT WEIGHT
   ======================================== */

.font-thin {
    font-weight: 100 !important;
}

.font-extralight {
    font-weight: 200 !important;
}

.font-light {
    font-weight: 300 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.font-black {
    font-weight: 900 !important;
}


/* ========================================
   TEXT COLORS - GRAY
   ======================================== */

.text-gray-50 {
    color: #f9fafb !important;
}

.text-gray-100 {
    color: #f3f4f6 !important;
}

.text-gray-200 {
    color: #e5e7eb !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

.text-gray-400 {
    color: #9ca3af !important;
}

.text-gray-500 {
    color: #6b7280 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-800 {
    color: #1f2937 !important;
}

.text-gray-900 {
    color: #111827 !important;
}

.text-gray-950 {
    color: #030712 !important;
}


/* ========================================
   TEXT COLORS - RED
   ======================================== */

.text-red-50 {
    color: #fef2f2 !important;
}

.text-red-100 {
    color: #fee2e2 !important;
}

.text-red-200 {
    color: #fecaca !important;
}

.text-red-300 {
    color: #fca5a5 !important;
}

.text-red-400 {
    color: #f87171 !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.text-red-700 {
    color: #b91c1c !important;
}

.text-red-800 {
    color: #991b1b !important;
}

.text-red-900 {
    color: #7f1d1d !important;
}


/* ========================================
   TEXT COLORS - BLUE
   ======================================== */

.text-blue-50 {
    color: #eff6ff !important;
}

.text-blue-100 {
    color: #dbeafe !important;
}

.text-blue-200 {
    color: #bfdbfe !important;
}

.text-blue-300 {
    color: #93c5fd !important;
}

.text-blue-400 {
    color: #60a5fa !important;
}

.text-blue-500 {
    color: #3b82f6 !important;
}

.text-blue-600 {
    color: #2563eb !important;
}

.text-blue-700 {
    color: #1d4ed8 !important;
}

.text-blue-800 {
    color: #1e40af !important;
}

.text-blue-900 {
    color: #1e3a8a !important;
}


/* ========================================
   TEXT COLORS - GREEN
   ======================================== */

.text-green-50 {
    color: #f0fdf4 !important;
}

.text-green-100 {
    color: #dcfce7 !important;
}

.text-green-200 {
    color: #bbf7d0 !important;
}

.text-green-300 {
    color: #86efac !important;
}

.text-green-400 {
    color: #4ade80 !important;
}

.text-green-500 {
    color: #22c55e !important;
}

.text-green-600 {
    color: #16a34a !important;
}

.text-green-700 {
    color: #15803d !important;
}

.text-green-800 {
    color: #166534 !important;
}

.text-green-900 {
    color: #14532d !important;
}


/* ========================================
   TEXT COLORS - YELLOW
   ======================================== */

.text-yellow-50 {
    color: #fefce8 !important;
}

.text-yellow-100 {
    color: #fef9c3 !important;
}

.text-yellow-200 {
    color: #fef08a !important;
}

.text-yellow-300 {
    color: #fde047 !important;
}

.text-yellow-400 {
    color: #facc15 !important;
}

.text-yellow-500 {
    color: #eab308 !important;
}

.text-yellow-600 {
    color: #ca8a04 !important;
}

.text-yellow-700 {
    color: #a16207 !important;
}

.text-yellow-800 {
    color: #854d0e !important;
}

.text-yellow-900 {
    color: #713f12 !important;
}


/* ========================================
   TEXT COLORS - PURPLE
   ======================================== */

.text-purple-50 {
    color: #faf5ff !important;
}

.text-purple-100 {
    color: #f3e8ff !important;
}

.text-purple-200 {
    color: #e9d5ff !important;
}

.text-purple-300 {
    color: #d8b4fe !important;
}

.text-purple-400 {
    color: #c084fc !important;
}

.text-purple-500 {
    color: #a855f7 !important;
}

.text-purple-600 {
    color: #9333ea !important;
}

.text-purple-700 {
    color: #7e22ce !important;
}

.text-purple-800 {
    color: #6b21a8 !important;
}

.text-purple-900 {
    color: #581c87 !important;
}


/* ========================================
   TEXT COLORS - PINK
   ======================================== */

.text-pink-50 {
    color: #fdf2f8 !important;
}

.text-pink-100 {
    color: #fce7f3 !important;
}

.text-pink-200 {
    color: #fbcfe8 !important;
}

.text-pink-300 {
    color: #f9a8d4 !important;
}

.text-pink-400 {
    color: #f472b6 !important;
}

.text-pink-500 {
    color: #ec4899 !important;
}

.text-pink-600 {
    color: #db2777 !important;
}

.text-pink-700 {
    color: #be185d !important;
}

.text-pink-800 {
    color: #9d174d !important;
}

.text-pink-900 {
    color: #831843 !important;
}


/* ========================================
   TEXT ALIGNMENT
   ======================================== */

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}


/* ========================================
   TEXT TRANSFORM
   ======================================== */

.uppercase {
    text-transform: uppercase !important;
}

.lowercase {
    text-transform: lowercase !important;
}

.capitalize {
    text-transform: capitalize !important;
}

.normal-case {
    text-transform: none !important;
}


/* ========================================
   TEXT DECORATION
   ======================================== */

.underline {
    text-decoration-line: underline !important;
}

.line-through {
    text-decoration-line: line-through !important;
}

.no-underline {
    text-decoration-line: none !important;
}


/* ========================================
   TEXT WRAPPING
   ======================================== */

.whitespace-normal {
    white-space: normal !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

.whitespace-pre {
    white-space: pre !important;
}

.whitespace-pre-line {
    white-space: pre-line !important;
}

.whitespace-pre-wrap {
    white-space: pre-wrap !important;
}

.break-words {
    overflow-wrap: break-word !important;
}

.break-all {
    word-break: break-all !important;
}


/* ========================================
   LINE HEIGHT
   ======================================== */

.leading-none {
    line-height: 1 !important;
}

.leading-tight {
    line-height: 1.25 !important;
}

.leading-snug {
    line-height: 1.375 !important;
}

.leading-normal {
    line-height: 1.5 !important;
}

.leading-relaxed {
    line-height: 1.625 !important;
}

.leading-loose {
    line-height: 2 !important;
}


/* ========================================
   LETTER SPACING
   ======================================== */

.tracking-tighter {
    letter-spacing: -0.05em !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.tracking-normal {
    letter-spacing: 0 !important;
}

.tracking-wide {
    letter-spacing: 0.025em !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

/* Equal-height legacy course cards (.team-item grids), so the purple
   footer stays bottom-aligned across a row even when a card has extra
   "next session" content that its siblings don't. */
.group-item {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.group-item .team-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.group-item .team-item .bottom-content {
    margin-top: auto;
}