/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --border-radius: 12px;
    --box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ===== HEADER ===== */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.5rem;
    width: 200px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.search-box button:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0;
    color: white;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(16, 185, 129, 0.3);
    z-index: -1;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--secondary);
}

.stat p {
    font-size: 1rem;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--primary);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-college {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 4rem 0;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.category-card.active {
    background: var(--primary);
    color: white;
}

.category-card.active i,
.category-card.active h3,
.category-card.active p {
    color: white;
}

/* ===== MAIN DETAILS SECTION ===== */
.details-section {
    padding: 2rem 0 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-options select:hover {
    border-color: var(--primary);
}

.details-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

.panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header span {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.college-item {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 5px;
}

.college-item:hover {
    background: var(--light);
    transform: translateX(5px);
}

.college-item.selected {
    background: #dbeafe;
    border-left: 4px solid var(--primary);
}

.college-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: space-between;
}

.college-category {
    font-size: 0.8rem;
    background: var(--light-gray);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    color: var(--dark);
}

.college-type {
    font-size: 0.8rem;
    color: var(--gray);
}

.course-item {
    padding: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.course-item:hover {
    background: var(--light);
    border-color: var(--primary);
}

.course-item.selected {
    background: #dbeafe;
    border-color: var(--primary);
}

.course-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: space-between;
}

.course-duration {
    font-size: 0.8rem;
    color: var(--gray);
}

.course-entrance {
    font-size: 0.8rem;
    background: var(--warning);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
}

.fee-detail-card {
    padding: 2rem;
    text-align: center;
    background: var(--light);
    border-radius: var(--border-radius);
}

.fee-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.fee-note {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    font-style: italic;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray);
    text-align: center;
    padding: 2rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== COMPARISON SECTION ===== */
.comparison-section {
    padding: 4rem 0;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.compare-college {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.compare-header {
    background: var(--light);
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.compare-header h4 {
    margin-bottom: 0.5rem;
}

.compare-header select {
    width: 100%;
    padding: 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.compare-details {
    padding: 1.5rem;
    min-height: 200px;
}

.compare-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--light-gray);
}

.compare-item strong {
    display: inline-block;
    width: 100px;
    color: var(--primary);
}

.compare-btn-container {
    text-align: center;
    margin-top: 2rem;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info .logo {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-gray);
}

.footer-links h3,
.footer-newsletter h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ===== ANIMATIONS ===== */
.animate-slide-left {
    animation: slideLeft 1s ease;
}

.animate-slide-right {
    animation: slideRight 1s ease;
}

.animate-fade-in {
    animation: fadeIn 1s ease;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .details-container {
        grid-template-columns: 1fr;
    }
    
    .panel {
        height: 400px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
    
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-college {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
}