/* =============================================
   CLASSROOM COURSES PAGE — classroom-courses.css
   Matches the online-courses.css design system
   ============================================= */

/* ---- Hero ---- */
.cc-hero {
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.cc-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cc-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.cc-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.cc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cc-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
    text-transform: none;
}

.cc-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.cc-hero-stats {
    display: inline-flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.cc-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.cc-hero-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.cc-hero-stat span {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ---- Breadcrumb ---- */
.cc-breadcrumb {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.cc-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cc-breadcrumb li {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-breadcrumb li::after {
    content: '›';
    color: #bbb;
}

.cc-breadcrumb li:last-child::after {
    display: none;
}

.cc-breadcrumb a {
    color: #29ab9f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cc-breadcrumb a:hover {
    color: #1a8f85;
}

/* ---- Course Type Tabs ---- */
.cc-filter-bar {
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cc-filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-filter-label i {
    color: #29ab9f;
}

.cc-filter-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.cc-filter-btn:hover,
.cc-filter-btn.active {
    background: #29ab9f;
    border-color: #29ab9f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(41, 171, 159, 0.3);
}

.cc-filter-count {
    margin-left: auto;
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* ---- Card Grid ---- */
.cc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* ---- Card ---- */
.cc-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #eef0f2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cc-card:not(.cc-card-soldout):hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 78, 109, 0.14);
    border-color: #29ab9f;
}

.cc-card-soldout {
    opacity: 0.82;
}

/* Card Image */
.cc-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}

.cc-card-img a {
    display: block;
    height: 100%;
}

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

.cc-card:not(.cc-card-soldout):hover .cc-card-img img {
    transform: scale(1.05);
}

.cc-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #004e6d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.cc-seats-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    animation: cc-pulse 2s infinite;
}

@keyframes cc-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* Sold-out overlay */
.cc-sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 3;
}

.cc-sold-out-badge {
    background: #dc3545;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 10px 26px;
    border-radius: 30px;
    transform: rotate(-4deg);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    letter-spacing: 0.5px;
}

.cc-webinar-alt-img {
    color: #fff;
    background: rgba(41, 171, 159, 0.9);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.cc-webinar-alt-img:hover {
    background: #29ab9f;
    color: #fff;
    text-decoration: none;
}

/* Card Body */
.cc-card-body {
    padding: 20px 22px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stars */
.cc-card-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.cc-card-stars i {
    color: #f6b400;
    font-size: 12px;
}

.cc-card-stars span {
    font-size: 12px;
    color: #777;
    font-weight: 700;
    margin-left: 5px;
}

/* Title */
.cc-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d1f30;
    line-height: 1.38;
    margin: 0;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-card-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(#29ab9f, #29ab9f);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: color 0.22s ease, background-size 0.22s ease;
    padding-bottom: 2px;
}

.cc-card-title a:hover {
    color: #1a8f85;
    background-size: 100% 2px;
}

/* Location */
.cc-card-location {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.cc-card-location i {
    color: #29ab9f;
    margin-right: 4px;
}

/* Schedule */
.cc-schedule {
    background: #f5fffe;
    border: 1px solid #d4f0ed;
    border-left: 3px solid #29ab9f;
    border-radius: 8px;
    padding: 12px 14px;
}

.cc-schedule-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #29ab9f;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cc-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-schedule-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddf0ee;
}

.cc-schedule-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.cc-sched-date {
    font-size: 14px;
    font-weight: 700;
    color: #004e6d;
}

.cc-sched-day {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.cc-sched-time {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.cc-sched-time i {
    margin-right: 3px;
}

/* Price Row */
.cc-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.cc-card-price-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.cc-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #004e6d;
    line-height: 1;
}

/* Card Footer */
.cc-card-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid #f0f0f0;
}

.cc-btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #004e6d 0%, #29ab9f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.22s ease;
}

.cc-btn-details i {
    transition: transform 0.22s ease;
    font-size: 13px;
}

.cc-btn-details:hover {
    background: linear-gradient(135deg, #003d55 0%, #1a8f85 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(41, 171, 159, 0.35);
}

.cc-btn-details:hover i {
    transform: translateX(4px);
}

.cc-btn-webinar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #5a6268;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.22s ease;
}

.cc-btn-webinar:hover {
    background: #4a5258;
    color: #fff;
    text-decoration: none;
}

/* ---- Empty State ---- */
.cc-empty-state {
    text-align: center;
    padding: 64px 32px;
    color: #aaa;
    margin-bottom: 48px;
}

.cc-empty-state i {
    font-size: 3.5rem;
    color: #c8e8e6;
    display: block;
    margin-bottom: 20px;
}

.cc-empty-state h3 {
    color: #555;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cc-empty-state p {
    font-size: 1rem;
    color: #888;
}

.cc-empty-state a {
    color: #29ab9f;
    font-weight: 600;
    text-decoration: none;
}

.cc-empty-state a:hover {
    text-decoration: underline;
}

/* ---- Content Overview ---- */
.cc-overview {
    background: #f8fffe;
    border: 1.5px solid #d4f0ed;
    border-radius: 16px;
    padding: 36px 40px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.cc-overview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004e6d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-overview-title i {
    color: #29ab9f;
}

/* Normalize DB-editor content inside overview */
.cc-overview p,
.cc-overview li {
    background: transparent !important;
    line-height: 1.75 !important;
    margin-bottom: 10px;
}

.cc-overview h2,
.cc-overview h3 {
    color: #004e6d;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    background: transparent !important;
}

.cc-overview ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.cc-overview a {
    color: #29ab9f;
    text-decoration: underline;
}

.cc-overview span {
    background: transparent !important;
}

/* ---- FAQ ---- */
.cc-faq-section {
    margin-top: 48px;
}

.cc-faq-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.cc-faq-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #004e6d, #29ab9f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cc-faq-icon i {
    color: #fff;
    font-size: 1.3rem;
}

.cc-faq-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0d1f30;
    margin: 0;
}

.cc-faq-section .card {
    border: 1px solid #e9ecef;
    border-radius: 10px !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: none;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .cc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cc-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .cc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cc-hero {
        padding: 44px 0 36px;
    }

    .cc-hero h1 {
        font-size: 1.6rem;
    }

    .cc-hero-stats {
        gap: 20px;
    }

    .cc-filter-bar {
        padding: 16px;
        gap: 8px;
    }

    .cc-filter-count {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .cc-overview {
        padding: 24px 20px;
    }

    .cc-card-body {
        padding: 16px 16px 12px;
    }

    .cc-card-footer {
        padding: 12px 16px 16px;
    }
}
