/* ================= GLOBAL VARIABLES & FONTS ================= */
:root {
    --primary-color: #0F62FE;
    --primary-dark: #0A43B6;
    --text-dark: #1e1b4b;
    --text-light: #64748b;
    --bg-light: #f9fafb;
    --card-shadow: 0 10px 30px rgba(15, 98, 254, 0.05);
    --hover-shadow: 0 20px 40px rgba(15, 98, 254, 0.12);
    --border-radius: 12px;
}

body {
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ================= ANIMATIONS ================= */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cfModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= HERO SECTION ================= */
.college-hero-section {
    position: relative;
    padding: 120px 0 160px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    background-size: 400% 400%;
    /* clean premium static background */
    color: white;
    margin-bottom: -80px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    animation: fadeInUp 1s ease-out;
}

/* ================= FLOATING SEARCH BAR ================= */
.search-floating-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.search-filter-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-input-group {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.custom-input-group .input-group-text {
    background: white;
    border: 1px solid #dee2e6;
    border-right: none;
    color: var(--primary-color);
    padding: 10px 15px;
}

.custom-input-group .form-control {
    border-left: none;
    padding-left: 0;
}

.custom-input-group .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.filter-group {
    position: relative;
}

.filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 5;
    pointer-events: none;
}

.filter-group .form-select {
    padding-left: 35px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group .form-select:hover {
    border-color: var(--primary-color);
    background-color: #f9fafb;
}

/* ================= COLLEGE CARDS ================= */
.college-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Professional Border */
    border: 1px solid #dee2e6;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.college-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: #c7d2fe;
}

.card-body {
    padding: 25px;
}

/* Icon */
.college-icon {
    width: 45px;
    height: 45px;
    background: #f5f3ff;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd6fe;
}

/* Type Badge */
.badge-type {
    background: white;
    color: var(--text-light);
    border: 1px solid #e5e7eb;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.college-name {
    margin-bottom: 12px;
    line-height: 1.35;
    min-height: 3.5rem;
    /* Ensure consistency */
}

.college-name a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.college-name a:hover {
    color: var(--primary-color);
}

/* Rating/Review Badges */
.badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-custom {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-rating {
    background: #fff8e1;
    color: #b45309;
    border: 1px solid #fef3c7;
}

.badge-reviews {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Description */
.college-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Fees Box */
.fees-box {
    background: #fff5f5;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #fed7d7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fees-box .label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.fees-box .value {
    font-size: 1.1rem;
    color: #e53e3e;
    font-weight: 800;
}

/* Buttons (Stacked) */
.btn-view-details {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view-details:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
    color: white;
}

.btn-compare {
    background: white;
    color: #4b5563;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-compare:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f5f3ff;
}

.btn-compare.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ================= MODAL CSS (STRICTLY PRESERVED) ================= */
/* Overlay */
#comparisonModal.cf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

/* Modal container */
#comparisonModal .cf-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    height: auto !important;
    max-height: 90vh;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cfModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
#comparisonModal .modal-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

#comparisonModal .cf-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Close button */
#comparisonModal .cf-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

#comparisonModal .cf-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Body */
#comparisonModal .modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 0 0 auto !important;
}

/* Comparison items wrapper */
#comparisonItems.cf-comparison-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 auto !important;
}

/* Individual item card */
#comparisonItems .cf-compare-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* College name inside modal */
#comparisonItems .cf-compare-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-right: 1rem;
}

/* Remove button */
#comparisonItems .cf-remove {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

#comparisonItems .cf-remove:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Footer */
#comparisonModal .cf-modal-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f9fafb;
    flex: 0 0 auto !important;
}

/* Modal Buttons */
#comparisonModal .cf-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

#comparisonModal .cf-btn-outline {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#comparisonModal .cf-btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

#comparisonModal .cf-btn-indigo {
    background: var(--primary-color);
    border: none;
    color: #ffffff;
}

#comparisonModal .cf-btn-indigo:hover {
    background: var(--primary-dark);
}

/* Toast */
#toastContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 20000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#toastContainer .cf-toast {
    background: #fff;
    color: #0f172a;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.18);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    min-width: 240px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: cf-toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

#toastContainer .cf-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

/* Toast Variants */
#toastContainer .cf-toast-success {
    border-color: #10b981;
}

#toastContainer .cf-toast-success::before {
    background: #10b981;
}

#toastContainer .cf-toast-info {
    border-color: #0F62FE;
}

#toastContainer .cf-toast-info::before {
    background: #0F62FE;
}

#toastContainer .cf-toast-warning {
    border-color: #FF832B;
}

#toastContainer .cf-toast-warning::before {
    background: #FF832B;
}

#toastContainer .cf-toast-error {
    border-color: #ef4444;
}

#toastContainer .cf-toast-error::before {
    background: #ef4444;
}

@keyframes cf-toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .college-hero-section {
        padding: 80px 0 120px;
    }

    .search-filter-card {
        padding: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .badge-container {
        margin-bottom: 15px;
    }
}

/* =========================================================
   CTA BANNER (SAME AS BLOG PAGE)
========================================================= */
.cta-banner {
    background: linear-gradient(90deg, #000000 0%, #0F62FE 100%);
    color: white;
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    margin-top: 3rem;
}

.cta-banner:hover {
    transform: scale(1.01);
}

.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 30px;
        text-align: center;
    }
}

/* Mobile Side Margins */
@media (max-width: 768px) {

    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}