/* ==========================================================================
   LEEC Course List Styling
   Brand Colors:
   - Primary Navy: #102037
   - Accent Gold:  #B4853E
   - Pure White:   #ffffff
   ========================================================================== */

:root {
    --leec-navy: #102037;
    --leec-navy-light: #182c49;
    --leec-navy-dark: #0b1626;
    --leec-gold: #B4853E;
    --leec-gold-hover: #9c7130;
    --leec-gold-light: rgba(180, 133, 62, 0.1);
    --leec-gold-subtle: rgba(180, 133, 62, 0.05);
    --leec-gold-border: rgba(180, 133, 62, 0.28);
    --leec-white: #ffffff;
    --leec-bg-light: #f8fafc;
    --leec-text-dark: #102037;
    --leec-text-body: #374151;
    --leec-text-muted: #64748b;
    --leec-border: #e2e8f0;
    --leec-shadow-sm: 0 2px 5px rgba(16, 32, 55, 0.04);
    --leec-shadow-md: 0 4px 16px rgba(16, 32, 55, 0.06);
    --leec-shadow-lg: 0 12px 28px rgba(16, 32, 55, 0.1);
}

/* Base Container */
.leec-course-container,
.siaan-course-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--leec-text-body);
}

/* --- Search Wrapper --- */
.leec-search-wrapper,
.siaan-search-wrapper {
    position: relative;
    margin-bottom: 28px;
}

.leec-search-wrapper input,
.siaan-search-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 46px;
    font-size: 15px;
    font-family: inherit;
    color: var(--leec-text-dark);
    border: 1.5px solid var(--leec-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: var(--leec-shadow-sm);
    background: var(--leec-white);
    box-sizing: border-box;
}

.leec-search-wrapper input::placeholder,
.siaan-search-wrapper input::placeholder {
    color: #94a3b8;
}

.leec-search-wrapper input:focus,
.siaan-search-wrapper input:focus {
    border-color: var(--leec-gold);
    box-shadow: 0 0 0 4px rgba(180, 133, 62, 0.15);
}

.leec-search-wrapper .search-icon,
.siaan-search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--leec-gold);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* --- Table View Styles --- */
.leec-courses-list,
.siaan-courses-list {
    background: var(--leec-white);
    border: 1px solid var(--leec-border);
    border-radius: 12px;
    box-shadow: var(--leec-shadow-sm);
    overflow: hidden;
}

.leec-course-table,
.siaan-course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.leec-course-table th,
.siaan-course-table th {
    background: var(--leec-navy);
    padding: 16px 22px;
    text-align: left;
    font-weight: 700;
    color: var(--leec-white);
    border-bottom: 3px solid var(--leec-gold);
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leec-course-table td,
.siaan-course-table td {
    padding: 16px 22px;
    border-bottom: 1px solid #edf2f7;
    color: var(--leec-text-body);
    font-size: 14.5px;
}

.leec-course-table tbody tr:last-child td,
.siaan-course-table tbody tr:last-child td {
    border-bottom: none;
}

.leec-course-table tbody tr {
    transition: background 0.15s ease;
}

.leec-course-table tbody tr:hover td,
.siaan-course-table tbody tr:hover td {
    background: #fbf8f4;
}

.course-name {
    font-weight: 600;
    color: var(--leec-navy);
}

.course-details {
    color: var(--leec-text-muted);
}

.meta-item.intake {
    display: inline-flex;
    align-items: center;
    background: var(--leec-gold-light);
    border: 1px solid var(--leec-gold-border);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--leec-gold-hover);
    font-weight: 600;
    font-size: 13px;
}

.meta-item.intake svg {
    color: var(--leec-gold);
    stroke: var(--leec-gold);
}

/* --- Cards Layout Specific Styles --- */
.leec-cards-container,
.siaan-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--leec-text-body);
}

.leec-sidebar,
.siaan-sidebar {
    width: 270px;
    flex-shrink: 0;
}

.leec-main-content,
.siaan-main-content {
    flex: 1;
    min-width: 0;
}

/* Filter Groups */
.leec-filter-group,
.siaan-filter-group {
    background: var(--leec-white);
    border: 1px solid var(--leec-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--leec-shadow-sm);
    transition: box-shadow 0.2s ease;
}

.leec-filter-group:hover,
.siaan-filter-group:hover {
    box-shadow: var(--leec-shadow-md);
}

.leec-filter-group h4,
.siaan-filter-group h4 {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--leec-navy);
    border-bottom: 2px solid var(--leec-gold-border);
    padding-bottom: 8px;
    letter-spacing: 0.3px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar */
.filter-options::-webkit-scrollbar {
    width: 5px;
}
.filter-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.filter-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--leec-gold);
}

.leec-filter-label,
.siaan-filter-label {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    color: var(--leec-text-body);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.leec-filter-label:hover,
.siaan-filter-label:hover {
    background: var(--leec-gold-light);
    color: var(--leec-navy);
}

.leec-filter-label input,
.siaan-filter-label input {
    margin-right: 10px;
    accent-color: var(--leec-gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Course Cards Grid */
.leec-cards-grid,
.siaan-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}

.leec-card,
.siaan-card {
    background: var(--leec-white);
    border: 1px solid var(--leec-border);
    border-top: 3px solid transparent;
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--leec-shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.leec-card:hover,
.siaan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--leec-shadow-lg);
    border-color: rgba(180, 133, 62, 0.4);
}

.leec-card-programme,
.siaan-card-programme {
    display: inline-block;
    align-self: flex-start;
    background: var(--leec-gold-light);
    color: var(--leec-gold-hover);
    border: 1px solid var(--leec-gold-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leec-card-title,
.siaan-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
    color: var(--leec-navy);
    flex: 1;
}

.leec-card-dest,
.siaan-card-dest {
    display: flex;
    align-items: center;
    color: var(--leec-text-muted);
    font-size: 13px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.leec-card-dest svg,
.siaan-card-dest svg {
    color: var(--leec-gold);
    stroke: var(--leec-gold);
    flex-shrink: 0;
    margin-right: 6px;
}

/* Visibility Control: Study Destinations */
.no-destinations #group-filter-destinations,
.no-destinations #filter-group-destinations,
.no-destinations .leec-card-dest,
.no-destinations .siaan-card-dest {
    display: none !important;
}

/* Pagination */
.leec-pagination,
.siaan-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.leec-page-btn,
.siaan-page-btn {
    background: var(--leec-white);
    border: 1.5px solid var(--leec-border);
    color: var(--leec-navy);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    box-sizing: border-box;
}

.leec-page-btn:hover,
.siaan-page-btn:hover {
    background: var(--leec-gold-light);
    border-color: var(--leec-gold);
    color: var(--leec-gold-hover);
}

.leec-page-btn.active,
.siaan-page-btn.active {
    background: var(--leec-navy);
    color: var(--leec-white);
    border-color: var(--leec-navy);
    box-shadow: 0 4px 12px rgba(16, 32, 55, 0.25);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .leec-cards-container,
    .siaan-cards-container {
        flex-direction: column;
        gap: 20px;
    }
    .leec-sidebar,
    .siaan-sidebar {
        width: 100%;
    }
    .leec-course-table th,
    .leec-course-table td,
    .siaan-course-table th,
    .siaan-course-table td {
        padding: 12px 14px;
        font-size: 13.5px;
    }
}
