/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 18 2026 | 17:34:49 */
/* Color Variables & Base Setup */
:root {
    --primary-red: #C21B31; 
    --light-red: #ffebee;
    --dark-red: #b71c1c;
    --header-bg: #111827; /* Dark Navy from your screenshot */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
    --row-bg: #f9fafb;
}

.custom-course-table-wrapper { 
    font-family: 'Inter', sans-serif; 
    width: 100%; 
    margin: 20px 0;
}

/* --- TABS (Top Filters) --- */
.cct-filters { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; flex-wrap: wrap; gap: 15px; 
}
.cct-left-tabs, .cct-right-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

.cct-tab, .cct-tab-outline {
    padding: 10px 20px; border-radius: 6px; cursor: pointer; 
    font-weight: 600; font-size: 15px; transition: 0.3s; border: none;
}
.cct-tab { background: transparent; color: var(--text-dark); }
.cct-tab.active { background: var(--primary-red); color: #fff; }

.cct-tab-outline { background: transparent; color: var(--primary-red); }
.cct-tab-outline.active { background: transparent; color: var(--primary-red); text-decoration: underline; text-underline-offset: 5px; }

/* --- DESKTOP TABLE STYLE --- */
.cct-table-container { 
    width: 100%; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden;
}
.cct-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--row-bg); }
.cct-table thead { background: var(--header-bg); color: #fff; }
.cct-table th { padding: 18px 20px; font-weight: 500; font-size: 15px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.1); }
.cct-table th:last-child { border-right: none; }

.cct-table td { 
    padding: 20px; border-bottom: 1px solid var(--border-color); 
    border-right: 1px solid var(--border-color); vertical-align: middle; 
    font-size: 15px; color: var(--text-dark);
}
.cct-table td:last-child { border-right: none; }
.cct-table tbody tr { background: #fff; transition: 0.2s; }
.cct-table tbody tr:hover { background-color: var(--row-bg); }

/* Icons & Course Data */
.course-info { display: flex; align-items: center; gap: 15px; }
.icon-box { 
    background: var(--light-red); width: 48px; height: 48px; 
    display: flex; justify-content: center; align-items: center; 
    border-radius: 8px; overflow: hidden;
}
.icon-box img { max-width: 100%; height: auto; object-fit: contain; }
.course-title { font-weight: 700; color: var(--header-bg); text-decoration: none; display: block; font-size: 16px; margin-bottom: 4px; }
.course-title:hover { color: var(--primary-red); }
.course-subtitle, .loc-type { font-size: 13px; color: var(--text-gray); }
.loc-name { font-weight: 600; color: var(--text-dark); }

/* Price, Stock & Buttons */
.price-col { font-weight: 700; color: var(--header-bg); }
.stock-col.in-stock { color: var(--primary-red); font-weight: 600; }
.cct-btn-book { 
    background: var(--primary-red); color: #fff !important; padding: 12px 24px; 
    border-radius: 6px; text-decoration: none; font-weight: 600; 
    display: inline-block; transition: 0.3s; text-align: center; border: none; width: 100%; box-sizing: border-box;
}
.cct-btn-book:hover { background: var(--dark-red); color: #fff; }
/* ========================================= */
/* --- RESPONSIVE CSS (TABLET & MOBILE) --- */
/* ========================================= */

/* Tablet Optimization */
@media (max-width: 1024px) {
    .cct-table th, .cct-table td { padding: 12px; font-size: 14px; }
    .cct-btn-book { padding: 10px 15px; font-size: 14px; }
}

/* Mobile: Modern Card Layout */
@media (max-width: 768px) {
    /* --- Fix Filters / Tabs for Mobile --- */
    .cct-filters { 
        flex-direction: column; 
        gap: 15px; 
        background: #fff; 
        padding: 15px; 
        border-radius: 10px; 
        border: 1px solid var(--border-color);
    }
    .cct-left-tabs, .cct-right-tabs { 
        width: 100%; 
        display: grid; 
        grid-template-columns: 1fr 1fr; /* 2 buttons side-by-side */
        gap: 10px; 
    }
    .cct-tab, .cct-tab-outline { 
        width: 100%; 
        text-align: center; 
        font-size: 13px; 
        padding: 10px 5px; 
        border: 1px solid var(--border-color); /* Add border for button look */
        justify-content: center;
    }
    .cct-tab-outline.active {
        background: var(--light-red);
        text-decoration: none;
    }
    
    /* --- Fix Table Layout for Mobile --- */
    .cct-table-container { border: none; background: transparent; }
    .cct-table thead { display: none; /* Hide Table Headers */ }
    
    .cct-table, .cct-table tbody, .cct-table tr, .cct-table td { display: block; width: 100%; box-sizing: border-box; }
    
    /* Individual Card Style */
    .cct-table tr { 
        margin-bottom: 20px; 
        border: 1px solid var(--border-color); 
        border-radius: 12px; /* Smoother corners */
        background: #fff; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Beautiful soft shadow */
        overflow: hidden; /* Keeps borders neat */
    }
    
    /* 1. Card Header (Course Title & Icon) */
    .cct-table td.course-col {
        background: #f8fafc; /* Light gray background for header */
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
    }
    .cct-table td.course-col::before { display: none; /* Remove "COURSE" text */ }
    
    .course-info { justify-content: flex-start; text-align: left; flex-direction: row; gap: 12px;}
    .course-info .icon-box { 
        display: flex; /* Show icon on mobile */
        width: 45px; height: 45px; 
        border-radius: 8px;
        flex-shrink: 0;
    }
    .course-title { font-size: 16px; margin-bottom: 2px; }
    
    /* 2. Card Body (Data Rows) */
    .cct-table td:not(.course-col):not(:last-child) { 
        display: flex; justify-content: space-between; align-items: center; 
        border: none; border-bottom: 1px solid #f3f4f6; 
        padding: 12px 15px; text-align: right;
    }
    
    /* Data Labels */
    .cct-table td::before { 
        content: attr(data-label); font-weight: 600; color: var(--text-gray); 
        text-align: left; flex-basis: 40%; font-size: 12px; text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* 3. Card Footer (Button Area) */
    .cct-table td:last-child { 
        border-bottom: none; 
        padding: 15px; 
        display: block; 
    }
    .cct-table td:last-child::before { display: none; /* REMOVE "ACTION" text entirely */ }
    
    .cct-btn-book, .cct-btn-sold {
        width: 100%;
        display: block;
        padding: 14px; /* Larger button for easier tapping */
        font-size: 16px;
        border-radius: 8px;
    }
}