/* ============================================
   COLLEGES PAGE - COMPLETE INDEPENDENT STYLES
   Groptima – College
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #10b981;
    --primary-dark: #16a34a;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --purple: #8b5cf6;

    /* Neutrals */
    --black: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-800: #2a2a2a;
    --gray-700: #3a3a3a;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-green: 0 20px 40px -12px rgba(16, 185, 129, 0.3);
    --shadow-blue: 0 20px 40px -12px rgba(59, 130, 246, 0.3);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-btn {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-green);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--gray-900);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* ===== HERO ELEMENTS ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--purple), var(--accent));
    bottom: -5%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    top: 30%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--gray-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

/* ===== COLLEGES HERO ===== */
.colleges-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    overflow: hidden;
    margin-top: 80px;
}

.colleges-hero-container {
    text-align: center;
    position: relative;
    z-index: 10;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-3xl) 0;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filters {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

/* Modern Inputs */
.modern-input,
.modern-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--gray-900);
    transition: var(--transition);
    outline: none;
}

.modern-input:focus,
.modern-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modern-input::placeholder {
    color: var(--gray-500);
}

.modern-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

/* ===== COLLEGES SECTION ===== */
.colleges-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

/* ===== COLLEGE CARDS ===== */
.college-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition);
    cursor: pointer;
}

.college-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.college-header {
    margin-bottom: var(--space-md);
}

.college-header h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
    line-height: 1.3;
}

.college-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.college-card>p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* College Info */
.college-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.875rem;
    gap: var(--space-md);
}

.info-label {
    color: var(--gray-600);
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    font-weight: 600;
    color: var(--gray-900);
    text-align: right;
}

/* College Actions */
.college-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-apply {
    flex: 1;
}

.college-actions .btn-outline {
    flex: 0.8;
    font-size: 0.9375rem;
    padding: 0.875rem 1.5rem;
}

/* ===== NO RESULTS ===== */
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-3xl) var(--space-lg);
    min-height: 400px;
}

.no-results-content {
    text-align: center;
    max-width: 500px;
}

.no-results-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.no-results-content .text-gray {
    color: var(--gray-600);
    font-size: 1.0625rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-column h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .colleges-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .colleges-hero {
        min-height: 50vh;
        margin-top: 70px;
    }

    .filters-section {
        top: 70px;
    }

    .filters {
        flex-direction: column;
    }

    .filter-item {
        min-width: 100%;
    }

    .colleges-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .college-actions {
        flex-direction: column;
    }

    .college-actions .btn-outline {
        flex: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-xl);
    }

    /* Mobile menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-2xl);
        gap: var(--space-lg);
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .cta-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .colleges-hero {
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .college-card {
        padding: var(--space-lg);
    }
}