/* ========================================
   COURSE FINDER STYLES
   ======================================== */

/* CSS Variables */
:root {
    --col-text-primary: #000f46;
    --col-link-default: #083973;
    --col-btn-primary-bg: #46c8f0;
    --col-grey-light-50: #e6e6e6;
    --col-bg-secondary-o-80: rgba(0, 11, 52, 0.8);
    --fs-level-6: 1rem;
    --fs-level-5: 1.125rem;
    --fs-level-4: 1.25rem;
}

/* Main Section */
.search-results {
    background-color: #fafbfc;
    padding: 0;
    position: relative;
    font-family: inherit;
    width: 100%;
}

/* Max Width Container */
.search-results .max {
    max-width: 100.875rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    width: 100%;
}

/* Flex Row */
.search-results .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    gap: 1.5rem 0;
}

.search-results .flex-row-reverse {
    flex-direction: column;
}

/* Column Layouts */
.search-results .col-xl-9,
.search-results .col-xl-3 {
    padding: 0 15px;
    width: 100%;
}

/* Keyword Search - Warm Style */
.search-keyword__wrapper {
    margin-bottom: 1.5rem !important;
}

.search-input-group {
    display: flex !important;
    align-items: stretch !important;
    border: 2px solid #d6d3d1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: linear-gradient(165deg, #fffdfb 0%, #faf8f5 100%) !important;
    box-shadow: 0 2px 8px rgba(120, 80, 60, 0.06) !important;
    transition: all 0.3s ease !important;
}

.search-input-group:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 2px 8px rgba(120, 80, 60, 0.08) !important;
}

.search-input-group .search-input,
.search-input {
    flex: 1 !important;
    border: none !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.9375rem !important;
    outline: none !important;
    background: transparent !important;
    color: #44403c !important;
    box-shadow: none !important;
}

.search-input-group .search-input:focus,
.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.search-input::placeholder {
    color: #a8a29e !important;
}

.search-input-group .search-btn,
.search-btn {
    background-color:  #2563eb !important;
    border: none !important;
    padding: 0.875rem 1.5rem !important;
    cursor: pointer !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
}

.search-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: #fff !important;
}

/* Keyword Clear Button */
.keyword-clear-btn {
    background: none !important;
    border: none !important;
    color: #9ca3af !important;
    font-size: 24px !important;
    line-height: 1 !important;
    padding: 0 0.75rem !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

.keyword-clear-btn:hover {
    color: #6b7280 !important;
}

/* Active Filter Chips */
.active-filters {
    display: none;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.active-filters.has-filters {
    display: flex;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #93c5fd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.filter-chip-remove {
    background: rgba(30, 64, 175, 0.1);
    border: none;
    color: #1e40af;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 700;
}

.filter-chip-remove:hover {
    background: rgba(30, 64, 175, 0.2);
    transform: scale(1.1);
}

/* Active Filter Chip (dynamically added) */
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #93c5fd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.active-filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.active-filter-chip .chip-remove {
    background: rgba(30, 64, 175, 0.1);
    border: none;
    color: #1e40af;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.active-filter-chip .chip-remove:hover {
    background: rgba(30, 64, 175, 0.2);
    transform: scale(1.1);
}

.clear-all-filters {
    background: none;
    border: none;
    color: var(--col-link-default);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.clear-all-filters:hover {
    background-color: #f3f4f6;
    color: #062a5a;
}

/* Search Controls (Sort + Count) */
.search-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.search-controls .search-counts {
    flex: 1;
    min-width: 200px;
    margin-right: auto;
}

.search-controls .search-sort__wrapper {
    flex-shrink: 0;
}

/* Desktop: Ensure proper alignment */
@media (min-width: 768px) {
    .search-controls {
        gap: 2rem;
    }
}

/* Mobile Refine Button */
.refine-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--col-btn-primary-bg);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.refine-btn:hover {
    background: #2bb5e0;
}

.refine-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 767px) {
    .refine-btn.mobile-only {
        display: flex;
    }

    .search-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .search-controls .search-counts {
        order: 1;
        text-align: center;
    }

    .search-controls .refine-btn {
        order: 0;
    }

    .search-controls .search-sort__wrapper {
        order: 2;
        justify-content: space-between;
    }
}

/* Sort Dropdown */
.search-sort__wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-sort__wrapper label {
    font-size: var(--fs-level-6);
    color: var(--col-text-primary);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.sort-select {
    background: #fff;
    border: 1px solid var(--col-grey-light-50);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: var(--fs-level-6);
    color: var(--col-text-primary);
    cursor: pointer;
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000f46' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    line-height: 1.5;
    min-width: 150px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--col-btn-primary-bg);
}

/* Results Count */
.search-counts {
    margin: 0;
    display: flex;
    align-items: center;
}

.search-counts p {
    margin: 0;
    font-size: var(--fs-level-6);
    color: #6c757d;
    line-height: 1.5;
}

/* Course Results List */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Course Results Grid */
#course-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    #course-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    #course-results {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   ELEGANT & WARM COURSE CARDS
   Welcoming University Design
   =========================================== */

/* Card Container */
.search-result {
    margin-bottom: 0;
}

/* Base Card - Warm & Inviting */
.search-result__card {
    --bs-card-spacer-y: 0;
    --bs-card-spacer-x: 0;
    --bs-card-border-width: 0;
    --bs-card-border-color: transparent;
    --bs-card-border-radius: 20px;
    --bs-card-bg: #fffcf9;

    /* Warm color variables by level */
    --card-accent: #2563eb;
    --card-accent-light: rgba(124, 58, 237, 0.08);
    --card-accent-glow: rgba(124, 58, 237, 0.12);

    background: linear-gradient(165deg, #fffdfb 0%, #faf8f5 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 2px 8px rgba(120, 80, 60, 0.04),
        0 8px 24px rgba(120, 80, 60, 0.06);
}

/* Warm side accent */
.search-result__card::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, var(--card-accent) 0%, rgba(124, 58, 237, 0.3) 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Subtle warm glow overlay */
.search-result__card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 200, 150, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Hover - Enhanced lift with dynamic shadow */
.search-result__card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 8px 24px rgba(120, 80, 60, 0.1),
        0 20px 56px var(--card-accent-glow),
        0 0 0 1px var(--card-accent-light);
    border-color: var(--card-accent) !important;
    background: #ffffff !important;
}

.search-result__card:hover::before {
    height: 4.5rem;
}

.search-result__card:hover::after {
    opacity: 1;
}

/* ===========================================
   STUDY LEVEL WARM COLOR THEMES
   =========================================== */

/* Undergraduate - Ocean Blue */
.search-result__card[data-level="undergraduate"] {
    --card-accent: #0ea5e9;
    --card-accent-light: rgba(14, 165, 233, 0.08);
    --card-accent-glow: rgba(14, 165, 233, 0.15);
}

/* Postgraduate - Royal Purple */
.search-result__card[data-level="postgraduate"] {
    --card-accent: #8b5cf6;
    --card-accent-light: rgba(139, 92, 246, 0.08);
    --card-accent-glow: rgba(139, 92, 246, 0.15);
}

/* PhD - Emerald Green */
.search-result__card[data-level="phd-research"] {
    --card-accent: #10b981;
    --card-accent-light: rgba(16, 185, 129, 0.08);
    --card-accent-glow: rgba(16, 185, 129, 0.15);
}

/* Pre-University - Warm Amber */
.search-result__card[data-level="pre-university"] {
    --card-accent: #f59e0b;
    --card-accent-light: rgba(245, 158, 11, 0.08);
    --card-accent-glow: rgba(245, 158, 11, 0.15);
}

/* Override Bootstrap .card-header */
.search-result__card .card-header.card-header--content {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

/* Card Body - Compact padding */
.search-result__card .card-body {
    padding: 1.25rem !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    position: relative;
    color: inherit !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Decorative title accent */
.search-result__card .card-body::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    bottom: auto;
    width: 3px;
    height: 2rem;
    background: linear-gradient(180deg, var(--card-accent) 0%, transparent 100%);
    border-radius: 3px;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.search-result__card:hover .card-body::before {
    height: 2.75rem;
    opacity: 1;
}

/* ===========================================
   WARM CARD CONTENT STYLING
   =========================================== */

/* Degree Type Row */
.tag-name--course {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

/* EQF Badge - Soft & Elegant with Level Colors */
.tag-name--course .eqf-badge,
.eqf-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--card-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 3px 8px var(--card-accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* EQF Badge Colors - Unique color per level */

/* EQF Level 4 - Amber Orange */
.eqf-badge[data-eqf="4"],
.search-result__card[data-eqf="4"] .eqf-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
}

/* EQF Level 5 - Warm Coral */
.eqf-badge[data-eqf="5"],
.search-result__card[data-eqf="5"] .eqf-badge {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.35);
}

/* EQF Level 6 - Teal Green */
.eqf-badge[data-eqf="6"],
.search-result__card[data-eqf="6"] .eqf-badge {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.35);
}

/* EQF Level 7 - Deep Purple */
.eqf-badge[data-eqf="7"],
.search-result__card[data-eqf="7"] .eqf-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35);
}

/* EQF Level 8 - Royal Blue */
.eqf-badge[data-eqf="8"],
.search-result__card[data-eqf="8"] .eqf-badge {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 3px 8px rgba(30, 64, 175, 0.35);
}

.search-result__card:hover .eqf-badge {
    box-shadow: 0 4px 12px var(--card-accent-glow);
}

/* Course Title - Warm & Inviting */
.search-result__card .card-header--title {
    text-decoration: none;
    color: #1c1917;
    display: block !important;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
    transition: all 0.4s ease;
}

.search-result__card .card-header--title h4 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 0;
    color: #1c1917 !important;
    line-height: 1.35;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.search-result__card:hover .card-header--title h4 {
    color: var(--card-accent) !important;
}

/* Course Description - Readable & Warm */
.search-result__card .card-text {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #78716c;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   COURSE META - Elegant Info Display
   =========================================== */

.course-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem;
    margin-bottom: 0;
    flex: 1;
    padding-left: 0;
    margin-top: 0.25rem;
    align-content: flex-start;
}

/* Meta Item - Clean Line Style */
.course-meta-item {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #57534e;
    line-height: 1.4;
    padding: 0.375rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(120, 113, 108, 0.08);
    position: relative;
}

.course-meta-item:last-child {
    border-bottom: none;
}

.course-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--card-accent);
    opacity: 0.75;
}

.course-meta-item strong {
    font-weight: 600;
    color: #44403c;
    margin-right: 0.25rem;
}

.course-meta-item strong::after {
    content: ':';
}

/* Info icon for popups */
.course-meta-item .info-icon {
    width: 14px;
    height: 14px;
    background: var(--card-accent-light);
    color: var(--card-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    flex-shrink: 0;
}

.course-meta-item .info-icon:hover {
    background: var(--card-accent);
    color: #fff;
    transform: scale(1.1);
}

/* ===========================================
   COURSE CARD FOOTER - Compact Link Style
   =========================================== */

.course-card-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(120, 113, 108, 0.08);
    transition: all 0.3s ease;
}

/* View Course Link - Text Link Style */
.view-course-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--card-accent) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-course-link:hover {
    color: var(--card-accent) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.view-course-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.view-course-link:hover svg {
    transform: translateX(3px);
}

/* Apply Now Link - Text Link Style with accent */
.apply-now-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #059669 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.apply-now-link:hover {
    color: #047857 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    gap: 0.75rem;
}

/* ===========================================
   RESPONSIVE STYLES - WARM CARDS
   =========================================== */

@media (max-width: 992px) {
    .search-result__card {
        min-height: 340px;
    }

    .search-result__card .card-body {
        padding: 1.5rem !important;
    }

    .course-card-footer {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-result__card {
        min-height: auto;
        border-radius: 16px !important;
    }

    .search-result__card:hover {
        transform: translateY(-4px);
    }

    .search-result__card::before {
        display: none;
    }

    .view-course-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }

    .tag-name--course {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-result__card .card-header--title h4 {
        font-size: 1rem;
    }
}

/* ===========================================
   SPECIAL BADGES - Warm Style
   =========================================== */

/* Featured Badge */
.course-badge-featured {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    z-index: 10;
}

/* Scholarship Badge */
.course-badge-scholarship {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #064e3b;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    z-index: 10;
}

.course-badge-scholarship svg {
    width: 10px;
    height: 10px;
}

/* New Badge */
.course-badge-new {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
    z-index: 10;
}

/* ===========================================
   CARD INTERACTION STATES
   =========================================== */

/* Focus state for accessibility */
.search-result__card:focus-within {
    outline: 2px solid var(--card-accent);
    outline-offset: 2px;
}

/* Active/pressed state */
.view-course-link:active {
    transform: scale(0.98);
}

/* Course Info Items - Vertical List Layout (fallback for static HTML) */
.course-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.625rem;
    margin-bottom: 0;
    flex: 1;
    padding-left: 0;
    margin-top: 0.25rem;
}

.course-info-item {
    display: flex !important;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

.course-info-item svg,
.course-info-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6b7280;
    stroke-width: 1.5;
}

/* Mode and Pace labels - inline format "Mode: Value" */
.course-info-item .info-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.course-info-item .info-label > span:first-child {
    font-weight: 600;
    color: #111827;
}

.course-info-item .info-label > span:first-child::after {
    content: ':';
}

/* Responsive */
@media (max-width: 768px) {
    .course-info {
        gap: 0.5rem;
    }

    .course-tag-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
}

.course-info-item strong {
    font-weight: 600;
    color: #111827;
}

/* Info Label with Popup */
.info-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    visibility: visible !important;
}

.info-icon {
    width: 16px;
    height: 16px;
    background: #6c63ff;
    color: #fff;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    visibility: visible !important;
    position: relative;
}

.info-icon svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    fill: none;
    pointer-events: none;
}

/* Info Popup */
.info-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 1rem;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.info-popup.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.info-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-popup-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.info-popup-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.info-popup-close:hover {
    color: #000;
}

.info-popup-content {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

/* Force visibility for debugging */
.search-result__card .course-tag,
.search-result__card .info-label,
.search-result__card .info-icon {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure SVG icons are visible */
.course-tag svg,
.course-info-item svg,
.info-icon svg {
    display: inline-block !important;
    visibility: visible !important;
}

/* Course Footer with View Course link */
.course-actions {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 1rem 0;
    border-top: 1px solid #d1d5db;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: transparent;
}

/* Enhanced Button Styling */
.btn-apply,
.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Apply Now Button - Prominent with Program Color */
.btn-apply {
    background: var(--card-accent);
    color: #fff;
    border: 2px solid var(--card-accent);
    box-shadow: 0 2px 8px var(--card-accent-glow);
}

.btn-apply:hover {
    background: var(--card-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--card-accent-glow);
    filter: brightness(1.1);
}

.btn-apply::before {
    content: '✓';
    margin-right: 0.25rem;
    font-weight: 700;
}

/* View Course Link - Secondary Action */
.btn-details {
    background: transparent;
    color: #2563eb;
    border: 2px solid #e5e7eb;
    padding: 0.625rem 1rem;
}

.btn-details:hover {
    color: #1d4ed8;
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-details::after {
    content: '→';
    margin-left: 0.25rem;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.btn-details:hover::after {
    transform: translateX(4px);
}

/* Pagination - Override Elementor styles and match letter-filter design */
.search-results .pagination-nav {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-results .pagination {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    min-width: auto !important;
}

.search-results .pagination li {
    display: inline-block !important;
    margin: 0 !important;
}

.search-results .pagination a,
.search-results .pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: 2px solid #e8eced !important;
    background: #fff !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    background-image: none !important;
}

.search-results .pagination a:hover,
.search-results .pagination span:hover {
    border-color: var(--col-btn-primary-bg) !important;
    color: var(--col-btn-primary-bg) !important;
    background: rgba(59, 130, 246, 0.05) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.search-results .pagination a.active,
.search-results .pagination span.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.search-results .pagination .next-btn,
.search-results .pagination .prev-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
    margin: 0 !important;
    min-width: auto !important;
}

.search-results .pagination .next-btn:hover,
.search-results .pagination .prev-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #2563eb !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.search-results .pagination .disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.search-results .pagination .disabled:hover {
    transform: none !important;
}

/* Filter Sidebar */
.search-facets__wrapper {
    position: relative;
}

.search-facets__wrapper.hidden {
    display: none;
}

.search-facets__close {
    display: none;
    background: var(--col-btn-primary-bg);
    color: #fff;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: var(--fs-level-6);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.search-facets__close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-facets {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Refine Header Card */
.card.search-refine {
    background: linear-gradient(135deg, var(--col-text-primary) 0%, #1e293b 100%);
    border: none;
    border-radius: 12px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card.search-refine .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
}

.card.search-refine h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Filter Cards - Card Style Design */
.card.search-facet {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card.search-facet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--col-btn-primary-bg), #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.search-facet:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.card.search-facet:hover::before {
    opacity: 1;
}

.card.search-facet:last-child {
    margin-bottom: 0;
}

/* Filter Header (Collapsible) */
.card.search-facet .card-header.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    border: none;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.card.search-facet .card-header.filter-header:hover {
    background: linear-gradient(to bottom, #f5f5f5, #fafafa);
}

.card.search-facet .card-header.filter-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--col-text-primary);
    margin: 0;
    text-transform: none;
    letter-spacing: -0.01em;
}

.card.search-facet .card-header.filter-header .toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6b7280;
    transition: all 0.2s ease;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.card.search-facet .card-body {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
}

/* Collapse Animation */
.card.search-facet .card-body.collapse {
    display: block;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 5000px;
    opacity: 1;
}

.card.search-facet .card-body.collapse:not(.show) {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.card.search-facet .card-title h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--col-text-primary);
    margin: 0 0 0.75rem 0;
    text-transform: none;
}

.card.search-facet ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card.search-facet ul li {
    margin-bottom: 0.625rem;
}

.card.search-facet ul li:last-child {
    margin-bottom: 0;
}

.card.search-facet ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--col-text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.card.search-facet ul li a:hover {
    background-color: #f9fafb;
}

.card.search-facet ul li a::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.card.search-facet ul li a[aria-checked="true"]::before {
    background: var(--col-btn-primary-bg);
    border-color: var(--col-btn-primary-bg);
}

.card.search-facet ul li a[aria-checked="true"]::after {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.search-facet ul li a[aria-checked="true"] {
    background-color: #eff6ff;
    color: var(--col-link-default);
    font-weight: 500;
}

.card.search-facet ul li a .card-list-text {
    flex: 1;
    font-size: 1.05rem;
    padding-left: 2rem;
}

.card.search-facet ul li a .badge {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.card.search-facet ul li a[aria-checked="true"] .badge {
    background-color: #dbeafe;
    color: var(--col-link-default);
    font-weight: 700;
}

/* Subject Search */
.subject-search-wrapper {
    margin-bottom: 1rem;
}

.subject-search-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.subject-search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
    background: transparent;
}

.subject-search-input:focus {
    outline: none;
}

.subject-search-input::placeholder {
    color: #9ca3af;
}

.subject-search-input-group:focus-within {
    border-color: var(--col-btn-primary-bg);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subject-clear-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    padding: 0 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.subject-clear-btn:hover {
    color: #6b7280;
}

/* Subject List */
.subject-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
    padding-right: 0.5rem;
}

.subject-list::-webkit-scrollbar {
    width: 8px;
}

.subject-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
    margin: 4px 0;
}

.subject-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d1d5db, #9ca3af);
    border-radius: 10px;
    border: 2px solid #f3f4f6;
    transition: background 0.2s ease;
}

.subject-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9ca3af, #6b7280);
}

/* Firefox scrollbar */
.subject-list {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

/* View All Subjects Link */
.view-all-subjects {
    text-align: center;
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.view-all-subjects a {
    color: var(--col-link-default);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-all-subjects a:hover {
    background-color: #eff6ff;
    text-decoration: none;
}

/* Show Results Button (Mobile) */
.show-results-btn--mobile {
    display: none;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid var(--col-grey-light-50);
    margin-top: 1rem;
}

.show-results-btn {
    width: 100%;
    background: var(--col-btn-primary-bg);
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: var(--fs-level-6);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.show-results-btn .chevron-right {
    width: 12px;
    height: 12px;
}

/* Blanket Overlay */
.blanket {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--col-bg-secondary-o-80);
    z-index: 999;
}

.blanket.hidden {
    display: none;
}

/* Utility Classes */
.mobile-hide {
    display: none;
}

.desktop-hide {
    display: block;
}

/* ========================================
   RESPONSIVE STYLES - TABLET & DESKTOP
   ======================================== */

/* Tablet and Up (768px+) */
@media (min-width: 768px) {
    .search-results .flex-row-reverse {
        flex-direction: row;
    }

    .mobile-hide {
        display: block;
    }

    .desktop-hide {
        display: none;
    }

    .search-facets__wrapper.hidden {
        display: block;
    }

    .show-results-btn--mobile {
        display: none !important;
    }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
    .search-results .flex-row-reverse {
        flex-direction: row-reverse;
    }

    .search-results .col-xl-9 {
        width: 75%;
        flex: 0 0 75%;
    }

    .search-results .col-xl-3 {
        width: 25%;
        flex: 0 0 25%;
    }

    .search-results .max {
        max-width: 100.875rem;
    }
}

/* Mobile Specific (< 768px) */
@media (max-width: 767px) {
    .search-facets__wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        padding: 1rem;
    }

    .search-facets__wrapper.hidden {
        display: none !important;
    }

    .search-facets__close {
        display: block;
    }

    .show-results-btn--mobile {
        display: block;
    }

    .blanket:not(.hidden) {
        display: block;
    }
}

/* Tag Name with EQF Badge */
.tag-name--course {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tag-name--course .eqf-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    visibility: visible !important;
}

/* Course Meta Items with Info Icons - List Style */
.course-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.course-meta-item {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 0.5rem !important;
    font-size: 0.875rem;
}

.course-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #555;
    display: inline-block !important;
    visibility: visible !important;
}

/* Course Card Footer with View Course Link */
.course-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #e8eced;
}

.view-course-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-course-link:hover {
    color: #2563eb !important;
    gap: 0.75rem;
}

.view-course-link svg {
    width: 18px;
    height: 18px;
    stroke: #3b82f6;
    transition: all 0.3s ease;
    display: inline-block !important;
    visibility: visible !important;
}

.view-course-link:hover svg {
    stroke: #2563eb;
    transform: translateX(4px);
}

.course-meta-item .info-icon {
    width: 16px;
    height: 16px;
    background: #6c63ff;
    color: #fff;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
    visibility: visible !important;
    margin-left: 0.25rem;
    position: relative;
}

.course-meta-item .info-icon svg {
    display: inline-block !important;
    visibility: visible !important;
    stroke: #fff;
    pointer-events: none;
}

.course-meta-item .info-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 1rem;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.course-meta-item .info-popup.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.course-meta-item .info-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.course-meta-item .info-popup-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.course-meta-item .info-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.course-meta-item .info-popup-close:hover {
    color: #000;
}

.course-meta-item .info-popup-content {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

/* Multi-Select Dropdowns */
.multiselect-dropdowns {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.multiselect-wrapper {
    position: relative !important;
    width: 100% !important;
}

.multiselect-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.875rem 1rem !important;
    background: #fff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.multiselect-header:hover {
    border-color: #2563eb !important;
    background: rgba(124, 58, 237, 0.02) !important;
}

.multiselect-header.active {
    border-color: #2563eb !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background: #eff6ff !important;
}

.multiselect-label {
    flex: 1 !important;
    color: #374151 !important;
}

.multiselect-arrow {
    transition: transform 0.3s ease !important;
    color: #6b7280 !important;
}

.multiselect-header.active .multiselect-arrow {
    transform: rotate(180deg) !important;
    color: #2563eb !important;
}

.multiselect-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: 2px solid #2563eb !important;
    border-top: none !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    display: none !important;
}

.multiselect-dropdown.active {
    display: block !important;
}

.multiselect-options {
    padding: 0.5rem 0 !important;
}

.multiselect-option {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
}

.multiselect-option:hover {
    background-color: #eff6ff !important;
}

.multiselect-option input[type="checkbox"] {
    margin: 0 !important;
    margin-right: 0.75rem !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #2563eb !important;
}

.multiselect-option span {
    flex: 1 !important;
    line-height: 1.4 !important;
}

/* Scrollbar for dropdown */
.multiselect-dropdown::-webkit-scrollbar {
    width: 8px !important;
}

.multiselect-dropdown::-webkit-scrollbar-track {
    background: #f5f3ff !important;
    border-bottom-right-radius: 6px !important;
}

.multiselect-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb 0%, #6d28d9 100%) !important;
    border-radius: 4px !important;
}

.multiselect-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%) !important;
}

/* Print Styles */
@media print {
    .search-facets__wrapper,
    .search-sort__wrapper,
    .pagination-nav,
    .blanket {
        display: none !important;
    }

    .search-result__card {
        page-break-inside: avoid;
    }
}

/* ========================================
   Study Modes Section Styles
   ======================================== */

.study-modes-wrapper {
    max-width: 100.87rem;
    margin: 0 auto;
    padding: 80px 20px;
    /* background: #f5f5f5; */
}

/* Top Container - Left/Right Split */
.study-modes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
}

/* Left Content */
.study-modes-left {
    padding-right: 20px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

.section-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.explore-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Right Illustration */
.study-modes-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 40px 30px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    stroke: #1a1a1a;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 5px;
}
.feature-description-italic {
    font-size: 0.865rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
    font-style: italic;
}
.feature-link {
    display: inline-block;
    padding: 10px 24px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background: #333;
}

/* Responsive Design */
@media (max-width: 992px) {
    .study-modes-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .study-modes-left {
        padding-right: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .study-modes-wrapper {
        padding: 60px 20px;
    }

    .section-heading {
        font-size: 2rem;
    }

    .study-modes-container {
        margin-bottom: 60px;
        padding-bottom: 40px;
    }
}

/* ========================================
   Study Pace Section Styles (Blog Layout)
   Note: Scoped to .study-pace-wrapper to avoid
   conflict with study-options.html inline styles
   ======================================== */

.study-pace-wrapper {
    max-width: 100.87rem;
    margin: 0 auto;
    padding: 80px 20px;
    background: #fff;
}

/* Top Container - 9:3 Grid Split (scoped to blog layout) */
.study-pace-wrapper .study-pace-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* Left Content (col-9) */
.study-pace-left {
    padding-right: 20px;
}

.pace-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 20px;
}

.pace-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.pace-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

.pace-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.pace-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pace-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Right Featured Card (col-3) */
.study-pace-right {
    display: flex;
    align-items: flex-start;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: #3b5bfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar svg {
    stroke: #fff;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-label {
    font-size: 0.75rem;
    color: #666;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
}

.featured-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.875rem;
    color: #666;
}

.featured-date,
.featured-read {
    font-weight: 500;
}

.featured-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 5px;
    flex-grow: 1;
}

.featured-tags {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.featured-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e8eced;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Featured Card - Top Right */
.pace-featured-card {
    background: #925F8D14;
    padding: 40px 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pace-featured-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Bottom Blog Cards Grid - 4 Columns */
.pace-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pace-blog-card {
    background: #925F8D14;
    padding: 40px 35px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pace-blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: #666;
}

.blog-date,
.blog-read {
    font-weight: 500;
}

.blog-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 5px;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.blog-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: #e8eced;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Responsive Design (scoped to blog layout) */
@media (max-width: 992px) {
    .study-pace-wrapper .study-pace-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .study-pace-wrapper .study-pace-left {
        padding-right: 0;
    }

    .study-pace-wrapper .pace-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .study-pace-wrapper {
        padding: 60px 20px;
    }

    .pace-heading {
        font-size: 2rem;
    }

    .pace-featured-card,
    .pace-blog-card {
        padding: 30px 25px;
    }

    .pace-blog-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   STUDY LOCATION SECTION STYLES (TAB SYSTEM)
   ============================================ */

.study-location-section {
    /* background-color: #f5f5f5; */
    padding: 80px 0;
}

/* Row 1: Header (col-12) - Centered */
.study-location-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.study-location-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 20px;
}

.study-location-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.study-location-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.study-location-subtitle .highlight-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.study-location-subtitle strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Row 2: Tab Container (25:75 ratio) */
.study-location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    padding: 0 20px;
}

/* Left Side: Tab Navigation (25%) */
.study-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tab-link {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-link:hover {
    color: #1a1a1a;
}

.tab-link.active {
    color: #1a1a1a;
    font-weight: 600;
}

.tab-link.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #007bff;
    border-radius: 2px;
}

/* Right Side: Tab Content (75%) */
.study-tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Tab Visual (Left side of tab content) */
.tab-visual {
    text-align: center;
}

.tab-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-icon {
    background: #007bff;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-visual-caption {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Tab Steps (Right side of tab content) */
.tab-steps {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.tab-steps-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.step-link {
    color: #007bff;
    text-decoration: underline;
}

.step-link:hover {
    color: #0056b3;
}

.highlight-text {
    color: #007bff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .study-location-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .study-location-title {
        font-size: 2.5rem;
    }

    .tab-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tab-steps {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .study-location-section {
        padding: 60px 0;
    }

    .study-location-title {
        font-size: 2rem;
    }

    .study-location-subtitle {
        font-size: 0.95rem;
    }

    .tab-link {
        font-size: 0.95rem;
        padding: 15px 0;
    }

    .tab-steps-title {
        font-size: 1.25rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .tab-steps {
        padding: 20px;
    }
}

/* ========================================
   STUDY TYPES SECTION - MODERN DESIGN
   ======================================== */

.study-types-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.study-types-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header - Centered */
.study-types-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 70px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.study-types-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.study-types-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.study-types-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 0;
}

.study-types-subtitle .highlight-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #c7d2fe;
    transition: all 0.3s ease;
}

.study-types-subtitle .highlight-link:hover {
    color: #4f46e5;
    border-bottom-color: #6366f1;
}

.study-types-subtitle strong {
    font-weight: 700;
    color: #1e293b;
}

/* Reversed Tab Container (75:25 ratio - Content Left, Tabs Right) */
.study-types-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Left Side: Tab Content (75%) */
.study-types-content {
    position: relative;
}

.type-pane {
    display: none;
    animation: slideInLeft 0.4s ease;
}

.type-pane.active {
    display: block;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Right Side: Tab Navigation (25%) - Modern Pills */
.study-types-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.type-tab-link {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.type-tab-link:hover {
    color: #6366f1;
    border-color: #c7d2fe;
    background: #f8f9ff;
    transform: translateX(-8px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.type-tab-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    transform: translateX(-8px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.type-tab-link.active::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    /* background: #6366f1; */
    border-radius: 4px;
}

/* Features Card Style (Single Card with List) - Modern Glass Effect */
.type-features-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.type-features-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.features-card-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 36px;
    position: relative;
    padding-bottom: 16px;
}

.features-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-list-item:hover {
    background: #f8f9ff;
    transform: translateX(8px);
}

.feature-icon-circle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.feature-icon-circle svg {
    stroke: #6366f1;
    stroke-width: 2.5;
}

.feature-text {
    flex: 1;
    padding-top: 4px;
}

.feature-main-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    font-weight: 500;
}

/* Cards Grid Style (Multiple Cards) - Modern Card Design */
.type-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.type-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.type-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.type-feature-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 0 1px rgba(99, 102, 241, 0.1);
    transform: translateY(-8px);
}

.type-feature-card:hover::before {
    opacity: 1;
}

.type-card-icon {
    margin-bottom: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.type-feature-card:hover .type-card-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: scale(1.1) rotate(5deg);
}

.type-card-icon svg {
    transition: all 0.4s ease;
}

.type-feature-card:hover .type-card-icon svg {
    stroke: #ffffff;
}

.type-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #6366f1;
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.type-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.type-feature-card:hover .type-card-title {
    color: #1e293b;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .study-types-section::before {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .study-types-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .study-types-nav {
        order: -1;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        position: static;
        padding-bottom: 10px;
    }

    .type-tab-link {
        white-space: nowrap;
        min-width: fit-content;
    }

    .type-tab-link:hover,
    .type-tab-link.active {
        transform: translateX(0);
        transform: translateY(-4px);
    }

    .study-types-title {
        font-size: 2.75rem;
    }

    .type-cards-grid {
        grid-template-columns: 1fr;
    }

    .type-features-card {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .study-types-section {
        padding: 70px 0;
    }

    .study-types-section::before {
        display: none;
    }

    .study-types-header {
        margin-bottom: 50px;
    }

    .study-types-title {
        font-size: 2.25rem;
    }

    .study-types-subtitle {
        font-size: 1rem;
    }

    .type-tab-link {
        font-size: 0.9375rem;
        padding: 14px 20px;
    }

    .type-features-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .features-card-title {
        font-size: 1.75rem;
        margin-bottom: 28px;
    }

    .type-feature-card {
        padding: 28px 24px;
    }

    .type-card-icon {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 576px) {
    .study-types-section {
        padding: 60px 0;
    }

    .study-types-header {
        margin-bottom: 40px;
    }

    .study-types-tag {
        font-size: 11px;
        padding: 6px 16px;
    }

    .study-types-title {
        font-size: 1.875rem;
    }

    .study-types-subtitle {
        font-size: 0.9375rem;
    }

    .type-tab-link {
        padding: 12px 18px;
        font-size: 0.875rem;
    }

    .type-features-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .features-card-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .feature-list-item {
        gap: 14px;
        padding: 12px;
    }

    .feature-icon-circle {
        width: 44px;
        height: 44px;
    }

    .feature-main-text {
        font-size: 0.9375rem;
    }

    .type-feature-card {
        padding: 24px 20px;
    }

    .type-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }

    .type-card-title {
        font-size: 1.125rem;
    }
}

/* ===========================================
   ACTIVE FILTER CHIPS
   =========================================== */

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    min-height: 0;
    transition: all 0.3s ease;
}

.active-filters:empty {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.filter-chip:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

.filter-chip:hover .filter-chip-remove {
    background: rgba(255, 255, 255, 0.5);
}

.filter-chip-clear-all {
    padding: 0.5rem 0.875rem;
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip-clear-all:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===========================================
   COMPARISON CHECKBOX & SAVE FAVORITE
   =========================================== */

.card-actions-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.compare-checkbox,
.save-favorite {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.compare-checkbox:hover,
.save-favorite:hover {
    background: #fff;
    border-color: var(--card-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compare-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--card-accent);
}

.save-favorite svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.save-favorite:hover svg {
    stroke: var(--card-accent);
}

.save-favorite.active svg {
    fill: var(--card-accent);
    stroke: var(--card-accent);
}

/* Update card body for relative positioning */
.search-result__card .card-body {
    position: relative;
}

/* ===========================================
   COMPARISON BAR (Fixed Bottom)
   =========================================== */

.comparison-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 1.25rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: bottom 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.comparison-bar.active {
    bottom: 0;
}

.comparison-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.comparison-count {
    font-size: 1.125rem;
    font-weight: 700;
}

.comparison-text {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
}

.btn-compare,
.btn-clear-compare {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-compare {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-clear-compare {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-clear-compare:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

