/* ========================================
   GLOBAL STYLES - AffCobra
   ======================================== */

/* === CSS VARIABLES === */
:root {
    --primary-color: #0047BB;
    --primary-dark: #003488;
    --secondary-color: #4A90E2;
    --success-color: #2e7d32;
    --danger-color: #c62828;
    --text-dark: #333;
    --text-muted: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* === BASE STYLES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

* {
    transition: var(--transition);
}

/* === TOP BAR === */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0066FF 100%);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-link:hover {
    color: white;
    transform: translateY(-1px);
}

.top-text {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.btn-signup {
    background: white;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.btn-signup:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* === MAIN HEADER === */
.main-header {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom {
    padding: 15px 0;
}

/* Brand/Logo */
.navbar-brand {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.brand-text {
    letter-spacing: -0.5px;
}

/* Navigation Links */
.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 71, 187, 0.05);
}

.nav-link i {
    font-size: 16px;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 8px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(0, 71, 187, 0.05);
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
}

/* Search Box */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
}

.search-box {
    border-radius: 25px;
    padding: 10px 20px 10px 40px;
    border: 2px solid var(--border-color);
    width: 280px;
    font-size: 14px;
}

.search-box:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 71, 187, 0.1);
    outline: none;
    width: 320px;
}


        /* Compare Page Header */
        .compare-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 50px 0 40px;
            margin-bottom: 0;
        }

        .compare-header h1 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .compare-header p {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 0;
        }


        .stats-row {
            display: flex;
            gap: 30px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.15);
            padding: 12px 20px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        .stat-item i {
            font-size: 24px;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 700;
        }

        .stat-label {
            font-size: 13px;
            opacity: 0.9;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin: 40px 0;
        }

        .empty-state-icon {
            font-size: 80px;
            color: var(--border-color);
            margin-bottom: 20px;
        }

        .empty-state h3 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text-dark);
        }

        .empty-state p {
            color: var(--text-muted);
            font-size: 16px;
            margin-bottom: 30px;
        }

        /* Compare Cards */
        .compare-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        .compare-card {
            background: white;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            border: 2px solid var(--border-color);
            position: relative;
            transition: all 0.3s ease;
        }

        .compare-card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            transform: translateY(-4px);
        }

        .remove-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #ffebee;
            color: #c62828;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 18px;
        }

        .remove-btn:hover {
            background: #c62828;
            color: white;
            transform: rotate(90deg);
        }

        .company-logo {
            width: 80px;
            height: 80px;
            background: var(--bg-light);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .company-logo img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }

        .company-name {
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 8px;
            color: var(--text-dark);
        }

        .company-product {
            font-size: 13px;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 20px;
            min-height: 40px;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-label {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .info-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            text-align: right;
        }

        .view-details-btn {
            width: 100%;
            margin-top: 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .view-details-btn:hover {
            background: var(--primary-dark);
            color: white;
            transform: translateY(-2px);
        }

        /* Comparison Table */
        .comparison-table-wrapper {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            overflow-x: auto;
            margin-bottom: 40px;
        }

        .table-section-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .comparison-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 14px;
        }

        .comparison-table thead th {
            background: var(--bg-light);
            padding: 20px 16px;
            font-weight: 700;
            color: var(--text-dark);
            border-bottom: 2px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 10;
            text-align: center;
            vertical-align: top;
        }

        .comparison-table thead th:first-child {
            text-align: left;
            width: 220px;
            min-width: 220px;
        }

        .comparison-table tbody td {
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: middle;
        }

        .comparison-table tbody tr:last-child td {
            border-bottom: none;
        }

        .comparison-table tbody tr:hover {
            background: rgba(0, 71, 187, 0.02);
        }

        .metric-label {
            font-weight: 600;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .metric-label i {
            color: var(--primary-color);
            font-size: 16px;
        }

        .table-cell-center {
            text-align: center;
        }

        .highlight-best {
            background: #e8f5e9;
            color: var(--success-color);
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 600;
            display: inline-block;
        }

        .badge-custom {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-success {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .badge-warning {
            background: #fff3e0;
            color: #f57c00;
        }

        .badge-info {
            background: #e3f2fd;
            color: #1976d2;
        }

        .program-header-cell {
            font-size: 16px;
            margin-bottom: 5px;
            font-weight: 700;
        }

        .program-subtext {
            font-size: 12px;
            font-weight: normal;
            color: var(--text-muted);
            display: block;
            margin-top: 5px;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 15px;
            margin: 40px 0;
            flex-wrap: wrap;
        }

        .btn-action {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-decoration: none;
        }

        .btn-clear {
            background: #ffebee;
            color: #c62828;
            border: 2px solid #c62828;
        }

        .btn-clear:hover {
            background: #c62828;
            color: white;
        }

        .btn-export {
            background: var(--bg-light);
            color: var(--text-dark);
            border: 2px solid var(--border-color);
        }

        .btn-export:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .btn-browse {
            background: var(--primary-color);
            color: white;
        }

        .btn-browse:hover {
            background: var(--primary-dark);
            color: white;
        }

        /* Loading State */
        .loading-spinner {
            text-align: center;
            padding: 80px 20px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin: 40px 0;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--border-color);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .compare-header h1 {
                font-size: 28px;
            }

            .compare-header p {
                font-size: 16px;
            }

            .stats-row {
                gap: 15px;
            }

            .stat-item {
                flex: 1 1 calc(50% - 15px);
                min-width: 140px;
            }

            .compare-cards {
                grid-template-columns: 1fr;
            }

            .action-buttons {
                flex-direction: column;
            }

            .btn-action {
                width: 100%;
                justify-content: center;
            }

            .comparison-table-wrapper {
                padding: 15px;
            }

            .comparison-table {
                font-size: 13px;
            }

            .comparison-table thead th {
                padding: 12px 8px;
                font-size: 13px;
            }

            .comparison-table tbody td {
                padding: 12px 8px;
            }
        }   
/* Compare Link */
.compare-link {
    background: var(--bg-light);
    padding: 10px 16px !important;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--text-dark) !important;
    text-decoration: none;
}

.compare-link:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 187, 0.15);
}

.compare-text {
    font-weight: 600;
    font-size: 14px;
}

#compare-count {
    font-size: 10px;
    padding: 3px 6px;
    min-width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.navbar-toggler {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(0, 71, 187, 0.1);
}

.navbar-toggler-icon {
    width: 22px;
    height: 22px;
}

/* === BREADCRUMBS === */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-custom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: white;
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #0066FF);
    color: white;
    padding: 50px 0 40px;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* === BUTTONS === */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-custom.in-compare {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === FILTERS SIDEBAR === */
.filters-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-search {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 12px;
    width: 100%;
}

.filter-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
    outline: none;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
}

/* .filter-item:hover {
    padding-left: 5px;
} */

.filter-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-item label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    color: var(--text-muted);
}

.filter-item input[type="checkbox"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-count {
    color: var(--text-light);
    font-size: 12px;
    margin-left: auto;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 0;
    cursor: pointer;
    margin-top: 8px;
}

.show-more-btn:hover {
    text-decoration: underline;
}

.clear-filters-btn {
    width: 100%;
    padding: 10px;
    background: #ffebee;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
}

.clear-filters-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* === ACTIVE FILTERS === */
.active-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.active-filters-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e3f2fd;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.filter-badge .remove {
    cursor: pointer;
    opacity: 0.7;
}

.filter-badge .remove:hover {
    opacity: 1;
}

.clear-all-filters {
    color: var(--danger-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.clear-all-filters:hover {
    text-decoration: underline;
    color: var(--danger-color);
}

/* === CONTENT HEADER === */
.content-header {
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 20px 25px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    font-size: 15px;
    color: var(--text-muted);
}

.results-info strong {
    color: var(--text-dark);
    font-weight: 700;
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-dropdown {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.sort-dropdown:focus {
    border-color: var(--primary-color);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--bg-light);
    padding: 5px;
    border-radius: 8px;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.view-toggle-btn:hover {
    background: white;
}

.view-toggle-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* === PROGRAMS LIST === */
.programs-list {
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.program-card {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.program-card:last-child {
    border-bottom: none;
}

.program-card:hover {
    background: var(--bg-light);
}

.program-logo {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.program-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.program-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-decoration: none;
}

.program-title:hover {
    color: var(--primary-color);
}

.program-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.program-tag {
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.program-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.program-actions {
    display: flex;
    gap: 10px;
}

/* === PROGRAM PROFILE PAGE === */
.brand-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.brand-logo-large {
    font-size: 46px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

.social-links a:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.info-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.info-section:hover {
    box-shadow: var(--shadow-sm);
}

.info-section h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.partnership-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.partnership-card:hover {
    box-shadow: var(--shadow-md);
}

.partnership-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* === LOAD MORE === */
.load-more-section {
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 30px;
    text-align: center;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.load-more-info {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 15px;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* === MOBILE FILTER TOGGLE === */
.mobile-filter-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
    cursor: pointer;
}

/* === ANIMATIONS === */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .top-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-custom {
        padding: 12px 0;
    }

    .navbar-brand {
        font-size: 22px;
    }

    .navbar-collapse {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .navbar-nav {
        margin-bottom: 15px;
    }

    .nav-link {
        padding: 12px 16px !important;
        width: 100%;
    }

    .navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box:focus {
        width: 100%;
    }

    .compare-link {
        width: 100%;
        justify-content: center;
    }

    .filters-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        z-index: 1050;
        transition: left 0.3s;
        border-radius: 0;
    }

    .filters-sidebar.show {
        left: 0;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .top-bar-left .top-text,
    .separator {
        display: none;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .brand-text {
        display: none;
    }

    .content-header {
        padding: 15px;
    }

    .program-card {
        padding: 15px;
    }

    .program-logo {
        width: 50px;
        height: 50px;
    }

    .program-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .active-filters {
        padding: 15px;
    }

    .brand-header {
        padding: 24px;
    }

    .brand-logo-large {
        font-size: 32px;
    }

    .social-links {
        justify-content: center;
    }
}


.table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    border: none;
}

/* Table Buttons */
.table .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.table .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.table .btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    background: white;
}

/* Responsive */
@media (max-width: 991px) {
    .table thead th {
        padding: 14px 12px;
        font-size: 12px;
    }
    
    .table .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    color: #0047BB;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #0047BB;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}



/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background: #0047BB;
    color: white;
    transform: translateY(-3px);
}

/* Newsletter Section */
.newsletter-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.newsletter-section h5 {
    font-weight: 700;
    color: #333;
}

.newsletter-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    padding: 12px 20px;
    font-size: 14px;
}

.newsletter-form .form-control:focus {
    border-color: #0047BB;
    box-shadow: none;
}

.newsletter-form .btn {
    background: #0047BB;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 24px;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: #003488;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding: 25px 0;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    color: #666;
}

.payment-methods i {
    transition: color 0.3s ease;
}

.payment-methods i:hover {
    color: #0047BB;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-section {
        margin-top: 40px;
    }

    .footer-brand {
        font-size: 20px;
    }

    .newsletter-section {
        padding: 20px;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 8px;
        width: 100%;
    }

    .newsletter-form .btn {
        margin-top: 10px;
    }

    .payment-methods {
        justify-content: center;
        margin-top: 15px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-section .row > div {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}



/* Reviews Section Styles */
.reviews-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #0047BB;
    border-radius: 10px;
}

.review-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0047BB, #0066FF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.review-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #FFA500;
    font-size: 16px;
}

.review-rating .rating-number {
    margin-left: 8px;
    color: #333;
    font-weight: 700;
    font-size: 16px;
}

.review-body {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

.review-footer {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.review-action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.review-action-btn:hover {
    background: #e0e0e0;
    color: #0047BB;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    gap: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.rating-summary-left {
    text-align: center;
    min-width: 150px;
}

.average-rating {
    font-size: 48px;
    font-weight: 700;
    color: #0047BB;
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    color: #FFA500;
    font-size: 20px;
    margin-bottom: 8px;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.rating-summary-right {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-bar-label {
    font-size: 13px;
    color: #666;
    min-width: 35px;
    font-weight: 600;
}

.rating-bar-label i {
    color: #FFA500;
    font-size: 12px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0047BB, #0066FF);
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 13px;
    color: #666;
    min-width: 30px;
    text-align: right;
    font-weight: 600;
}

/* Write Review Form */
.write-review-section {
    margin-top: 25px;
}

.review-form {
    margin-top: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.review-form h6 {
    font-weight: 700;
    color: #333;
}

.form-label {
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0047BB;
    box-shadow: 0 0 0 4px rgba(0, 71, 187, 0.1);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 32px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #FFA500;
}

.form-check-input:checked {
    background-color: #0047BB;
    border-color: #0047BB;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .rating-summary-left {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
        gap: 15px;
    }

    .review-rating {
        justify-content: flex-start;
    }

    .review-footer {
        flex-direction: column;
        gap: 10px;
    }

    .review-action-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Scroll behavior */
.main-header {
    transition: transform 0.3s ease;
}

.main-header.scroll-down {
    transform: translateY(-100%);
}

.main-header.scroll-up {
    transform: translateY(0);
}

