/* ==========================================================================
   CampusRoute - Courses Page (courses.aspx) Premium Redesign
   Palette matches the CampusRoute MasterPage / homepage theme.
   ========================================================================== */

:root {
    --crc-navy: #0B3B60;
    --crc-navy2: #145A8D;
    --crc-blue: #1E88E5;
    --crc-light-blue: #EAF5FF;
    --crc-verylight-blue: #F4F9FD;
    --crc-bg: #F7FAFC;
    --crc-text: #172033;
    --crc-muted: #64748B;
    --crc-border: #E2E8F0;
    --crc-white: #FFFFFF;

    --crc-radius-sm: 10px;
    --crc-radius: 16px;
    --crc-radius-lg: 18px;

    --crc-shadow-sm: 0 6px 20px rgba(11, 59, 96, 0.06);
    --crc-shadow: 0 15px 35px rgba(11, 59, 96, 0.12);
}
.crc-search-info {
    margin-top: 5px;
    color: #64748b;
    font-size: 14px;
}

.crc-search-info i {
    color: #2388e8;
    margin-right: 5px;
}

.crc-search-info strong {
    color: #123f67;
}

.empty-state h5 {
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
}
.courses-wrapper,
.crc-hero,
.crc-filter-section,
.crc-courses-section {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--crc-text);
}

/* ==========================================================================
   1. PREMIUM PAGE HERO
   ========================================================================== */

.crc-hero {
    background: linear-gradient(135deg, #F7FAFC 0%, #EAF5FF 100%);
    padding: 56px 0 40px;
    text-align: center;
}

.crc-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.crc-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--crc-blue);
    background: rgba(30, 136, 229, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.crc-hero-heading {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--crc-navy);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.crc-highlight {
    color: var(--crc-blue);
}

.crc-hero-sub {
    font-size: 1.02rem;
    color: var(--crc-muted);
    max-width: 560px;
    margin: 0 auto 28px;
}

.crc-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 50px;
    padding: 14px 30px;
    box-shadow: var(--crc-shadow-sm);
}

.crc-stat {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.crc-stat strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--crc-navy);
}

.crc-stat span {
    font-size: 0.76rem;
    color: var(--crc-muted);
    font-weight: 500;
}

.crc-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--crc-border);
}

/* ==========================================================================
   2. COURSE SEARCH / FILTER BAR
   ========================================================================== */

.crc-filter-section {
    padding: 26px 0 6px;
}

.crc-filter-card {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius);
    box-shadow: var(--crc-shadow-sm);
    padding: 22px 24px;
}

.crc-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--crc-navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    display: block;
}

.crc-search-box {
    position: relative;
}

.crc-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crc-muted);
    font-size: 0.9rem;
}

.crc-search-box .form-control {
    padding-left: 38px !important;
}

.crc-filter-card .form-control,
.crc-filter-card .form-select {
    border: 1.5px solid var(--crc-border);
    border-radius: var(--crc-radius-sm);
    padding: 10px 14px;
    font-size: 0.92rem;
    color: var(--crc-text);
}

.crc-filter-card .form-control:focus,
.crc-filter-card .form-select:focus {
    border-color: var(--crc-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

/* ==========================================================================
   3. MAIN COURSES AREA
   ========================================================================== */

.crc-courses-section {
    background: var(--crc-bg);
    padding: 40px 0 70px;
}

/* ---- Category Sidebar ---- */

.category-sidebar-card {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius-lg);
    box-shadow: 0 8px 30px rgba(11, 59, 96, 0.06);
    padding: 20px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    min-height:450px;
    z-index: 10;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--crc-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px 0;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--crc-muted);
    padding: 0 10px;
    margin-bottom: 14px;
}

.category-tab-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: left;
    transition: all 0.25s ease;
    text-decoration: none;
}

.category-tab-btn img.cat-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 6px;
    flex-shrink: 0;
}

.category-tab-btn i {
    font-size: 1.02rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    color: var(--crc-muted);
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.category-tab-btn span {
    flex: 1;
}

.category-tab-btn:hover {
    background-color: var(--crc-light-blue);
    color: var(--crc-blue);
}

.category-tab-btn:hover i {
    color: var(--crc-blue);
}

.category-tab-btn.active-tab {
    background: linear-gradient(135deg, var(--crc-navy), var(--crc-blue));
    color: var(--crc-white) !important;
    box-shadow: 0 8px 18px rgba(30, 136, 229, 0.25);
}

.category-tab-btn.active-tab i {
    color: var(--crc-white) !important;
}

.category-tab-btn .active-arrow {
    margin-right: 0;
    margin-left: 8px;
    width: auto;
    font-size: 0.8rem;
    color: var(--crc-white) !important;
}

/* ---- Result count row ---- */

.crc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.crc-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--crc-navy);
    margin: 0;
}

.crc-result-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--crc-blue);
    background: var(--crc-light-blue);
    padding: 6px 14px;
    border-radius: 50px;
}

/* ---- Course Card ---- */

.course-card {
    background: var(--crc-white);
    border-radius: var(--crc-radius-lg);
    border: 1px solid var(--crc-border);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(11, 59, 96, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--crc-shadow);
    border-color: #BBDCF5;
}

.card-img-container {
    position: relative;
    height: 185px;
    overflow: hidden;
    background-color: var(--crc-verylight-blue);
}

.card-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 59, 96, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .card-img-container::after {
    opacity: 1;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.course-card:hover .card-img-container img {
    transform: scale(1.06);
}

.crc-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--crc-navy), var(--crc-blue));
    color: var(--crc-white);
}

.crc-img-placeholder i {
    font-size: 1.9rem;
    opacity: 0.9;
}

.crc-img-placeholder span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--crc-navy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    border: 1px solid var(--crc-border);
    white-space: nowrap;
    z-index: 2;
}

.card-body-content {
    padding: 18px 18px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-overline {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--crc-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.course-title {
    font-size: 18px;
    font-weight: 750;
    color: var(--crc-text);
    margin-bottom: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.course-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--crc-muted);
    font-weight: 500;
    border-top: 1px dashed var(--crc-border);
    padding-top: 10px;
    margin-bottom: 14px;
}

.course-meta-row i {
    color: var(--crc-blue);
    margin-right: 4px;
}

.btn-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--crc-light-blue);
    color: var(--crc-navy);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    width: 100%;
    border: none;
}

.btn-read-more:hover {
    background: linear-gradient(135deg, var(--crc-navy), var(--crc-blue));
    color: var(--crc-white);
}

/* ---- Empty State ---- */

.empty-state {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius-lg);
    padding: 60px 24px;
    text-align: center;
    box-shadow: var(--crc-shadow-sm);
}

.empty-icon-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--crc-light-blue);
    color: var(--crc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.empty-state h5 {
    font-weight: 700;
    color: var(--crc-navy);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--crc-muted);
    margin-bottom: 22px;
}

.btn-explore-all {
    display: inline-block;
    background: linear-gradient(135deg, var(--crc-navy), var(--crc-blue));
    color: var(--crc-white) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-explore-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--crc-shadow);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .crc-hero-heading {
        font-size: 2.1rem;
    }

    .category-sidebar-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .crc-hero {
        padding: 42px 0 30px;
        text-align: center;
    }

    .crc-hero-heading {
        font-size: 1.85rem;
    }

    .crc-hero-stats {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 18px;
        border-radius: var(--crc-radius);
    }

    .crc-stat-divider {
        display: none;
    }

    .crc-filter-card {
        padding: 18px;
    }

    .category-sidebar-card {
        margin-bottom: 4px;
    }

    .sidebar-title, .sidebar-subtitle {
        padding-left: 4px;
        padding-right: 4px;
    }

    .crc-result-row {
        margin-bottom: 14px;
    }
}

@media (max-width: 575.98px) {
    .crc-hero-heading {
        font-size: 1.6rem;
    }

    .crc-hero-sub {
        font-size: 0.92rem;
    }

    .crc-result-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .card-img-container {
        height: 170px;
    }
}
