/**
 * College List Page Styles (Modern & User-Friendly)
 * Brand: medicalcounseling.in
 */

/* ===================================
   Hero Section
   =================================== */
.college-list-hero {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.college-list-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content-wrapper {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 16px;
}

.hero-title span {
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-search-form {
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--pure-white);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input-group i {
    color: var(--medical-green);
    font-size: 20px;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 16px;
    background: transparent;
}

.hero-search-btn {
    padding: 14px 32px;
    background: var(--medical-green);
    color: var(--pure-white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    background: var(--medical-green-dark);
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--pure-white);
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 20px;
    color: var(--pure-white);
}

/* ===================================
   Content Section
   =================================== */
.college-list-content {
    padding: 60px 0;
    background: #F8F9FA;
}

/* ===================================
   Filters Sidebar
   =================================== */
.filters-sidebar {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.filters-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--medical-navy);
    margin: 0;
}

.filters-header h3 i {
    color: var(--medical-green);
    margin-right: 8px;
}

.clear-filters {
    color: var(--medical-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: var(--medical-green-dark);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 12px;
}

.search-filter-input {
    position: relative;
}

.search-filter-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-filter-input input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-filter-input input:focus {
    outline: none;
    border-color: var(--medical-green);
}

.filter-options {
    max-height: 250px;
    overflow-y: auto;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input:checked~.checkmark {
    background: var(--medical-green);
    border-color: var(--medical-green);
}

.filter-checkbox input:checked~.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--pure-white);
    font-size: 12px;
}

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

.label-text small {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ===================================
   Colleges Grid
   =================================== */
.colleges-header {
    margin-bottom: 32px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--medical-navy);
}

.results-count {
    color: var(--medical-green);
}

.colleges-grid {
    display: grid;
    gap: 24px;
}

.college-card-modern {
    background: var(--pure-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.college-card-modern:hover {
    border-color: var(--medical-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(46, 139, 87, 0.15);
}

.college-card-header {
    margin-bottom: 16px;
}

.college-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.college-name a {
    color: var(--medical-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.college-name a:hover {
    color: var(--medical-green);
}

.college-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.college-location i {
    color: var(--medical-green);
}

.college-card-body {
    margin-bottom: 20px;
}

.college-courses {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.course-badge {
    padding: 6px 14px;
    background: rgba(46, 139, 87, 0.1);
    color: var(--medical-green);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.course-badge.more {
    background: rgba(15, 61, 100, 0.1);
    color: var(--medical-navy);
}

.college-card-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-college-action {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-college-action.btn-primary {
    background: var(--medical-green);
    color: var(--pure-white);
}

.btn-college-action.btn-primary:hover {
    background: var(--medical-green-dark);
    transform: translateY(-2px);
}

.btn-college-action.btn-secondary {
    background: var(--medical-navy);
    color: var(--pure-white);
}

.btn-college-action.btn-secondary:hover {
    background: #0a2540;
    transform: translateY(-2px);
}

.btn-college-action.btn-outline {
    background: transparent;
    color: var(--medical-green);
    border-color: var(--medical-green);
}

.btn-college-action.btn-outline:hover {
    background: var(--medical-green);
    color: var(--pure-white);
}

/* ===================================
   Pagination
   =================================== */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-item {
    display: inline-block;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 16px;
    background: var(--pure-white);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    color: var(--medical-navy);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: var(--medical-green);
    border-color: var(--medical-green);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--medical-green);
    border-color: var(--medical-green);
    color: var(--pure-white);
}

.pagination-wrapper .page-item.disabled .page-link {
    background: #F8F9FA;
    border-color: var(--border-light);
    color: #CCC;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-wrapper .page-item.disabled .page-link:hover {
    transform: none;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

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

@media (max-width: 767px) {
    .college-list-hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-input-group {
        flex-direction: column;
        padding: 16px;
        border-radius: 16px;
    }

    .hero-search-input {
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-search-btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .college-card-footer {
        flex-direction: column;
    }

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

/* ===================================
   Scrollbar Styling
   =================================== */
.filters-sidebar::-webkit-scrollbar,
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track,
.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb,
.filter-options::-webkit-scrollbar-thumb {
    background: var(--medical-green);
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover,
.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--medical-green-dark);
}