/* ========== Variables ========== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f97316;
    --dark: #1e293b;
    --text: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f8fafc;
}

/* ========== Global ========== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); }
img { max-width: 100%; }
a { transition: color .15s; }

/* ========== Logo ========== */
.logo-text {
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.5px;
}

/* ========== Top Bar ========== */
.top-bar { font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.1); }

/* ========== Navbar ========== */
.navbar { padding: 12px 0; }
.navbar-brand .logo-text { font-size: 1.4rem; }
.nav-link { color: var(--text); font-size: .93rem; }
.nav-link:hover { color: var(--primary) !important; }

/* ========== Hero ========== */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
    min-height: 540px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .container { position: relative; z-index: 1; }

/* ========== Search Box ========== */
.search-box { background: white; border-radius: 14px; padding: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.18); }
.search-box .form-control, .search-box .form-select {
    border: none; font-size: .95rem; padding: 10px 16px;
}
.search-box .form-control:focus, .search-box .form-select:focus { box-shadow: none; }
.search-box .btn { border-radius: 10px; padding: 10px 28px; font-weight: 600; }

/* ========== Stats Strip ========== */
.stats-strip { border-top: 3px solid var(--primary); }
.stat-item { padding: 22px 0; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ========== Section Headers ========== */
.section-badge { display: inline-block; background: rgba(37,99,235,.1); color: var(--primary); padding: 4px 16px; border-radius: 30px; font-size: .8rem; font-weight: 600; letter-spacing: .5px; }
.section-title { font-size: 1.9rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-divider { width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin: 10px auto 16px; }

/* ========== Course Cards ========== */
.course-card {
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
    background: #fff;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(37,99,235,.12); border-color: var(--primary); }
.course-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }

/* ========== College Cards ========== */
.college-card {
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    background: #fff;
}
.college-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.college-placeholder {
    height: 170px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; color: var(--primary);
}
.college-banner-img { height: 170px; object-fit: cover; width: 100%; }
.college-type-badge { font-size: .7rem; padding: 2px 8px; }

/* ========== How It Works ========== */
.hiw-section { background: var(--bg-light); }
.hiw-step { position: relative; }
.hiw-icon-wrap {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.hiw-step-num {
    position: absolute; top: -4px; right: calc(50% - 44px);
    width: 22px; height: 22px; background: var(--accent); color: #fff;
    border-radius: 50%; font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.hiw-connector { border-top: 2px dashed var(--border); position: absolute; top: 36px; left: 50%; width: 100%; z-index: 0; }

/* ========== Why Cards ========== */
.why-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 28px 22px; text-align: center; transition: .2s; }
.why-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(37,99,235,.1); }
.why-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 14px; }

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, #f97316, #ea580c);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: 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='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }

/* ========== College Detail ========== */
.college-hero { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.college-logo-box { width: 88px; height: 88px; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.college-meta-badge { background: rgba(255,255,255,.15); border-radius: 8px; padding: 4px 12px; font-size: .82rem; }
.detail-tab-nav .nav-link { color: var(--text); font-weight: 500; border-radius: 0; border-bottom: 3px solid transparent; }
.detail-tab-nav .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-sidebar-card { border: 1.5px solid var(--border); border-radius: 14px; }
.quick-info-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.quick-info-item:last-child { border-bottom: none; }
.gallery-thumb { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: .2s; }
.gallery-thumb:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* Courses Table */
.courses-table { border-collapse: separate; border-spacing: 0; }
.courses-table th { background: #f1f5f9; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; padding: 12px 16px; }
.courses-table td { padding: 14px 16px; vertical-align: middle; border-top: 1px solid var(--border); }
.courses-table tr:hover td { background: #f8fafc; }
.fee-badge { background: rgba(37,99,235,.08); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: .82rem; font-weight: 600; white-space: nowrap; }

/* ========== Course Detail ========== */
.course-hero { background: linear-gradient(135deg, #064e3b, #065f46); }
.highlight-pill { background: rgba(255,255,255,.15); border-radius: 10px; padding: 12px 20px; text-align: center; }
.highlight-pill .value { font-size: 1.2rem; font-weight: 700; }
.highlight-pill .label { font-size: .75rem; opacity: .8; }

/* ========== Contact ========== */
.contact-form .form-control, .contact-form .form-select {
    border-radius: 10px; padding: 12px 16px;
    border: 1.5px solid var(--border); font-size: .93rem;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ========== Page Content ========== */
.page-content h2 { color: var(--primary); margin-top: 1.5rem; font-size: 1.4rem; }
.page-content h3 { margin-top: 1.2rem; font-size: 1.2rem; }
.page-content p { line-height: 1.8; }

/* ========== Footer ========== */
.footer-link { color: #9ca3af; text-decoration: none; transition: color .15s; }
.footer-link:hover { color: #fff; }
.social-icon { color: #9ca3af; font-size: 1rem; transition: color .15s; }
.social-icon:hover { color: #fff; }

/* ========== Admin ========== */
.admin-sidebar { width: 255px; min-height: 100vh; background: #0f172a; flex-shrink: 0; }
.admin-sidebar .nav-link { color: #94a3b8; padding: 9px 18px; border-radius: 8px; margin: 2px 8px; transition: .15s; font-size: .9rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar .nav-link i { width: 18px; }
.admin-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-content { flex: 1; background: #f1f5f9; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; }
.stat-card { border: none; border-radius: 14px; background: #fff; }
.stat-card .icon-box { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* ========== Utilities ========== */
.rounded-14 { border-radius: 14px !important; }
.fw-800 { font-weight: 800 !important; }
.text-primary { color: var(--primary) !important; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.badge-govt { background: #dcfce7; color: #16a34a; }
.badge-private { background: #dbeafe; color: #1d4ed8; }

/* ========== Lightbox ========== */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; }

@media (max-width: 767px) {
    .hero-section { min-height: 420px; }
    .stat-number { font-size: 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .admin-sidebar { width: 100%; min-height: auto; position: fixed; z-index: 1000; display: none !important; }
    .admin-sidebar.show { display: flex !important; }
}
