/* ============================================
   GCES Portal - Main Stylesheet
   Global Career Education Services
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --primary: #1a56db;
    --primary-dark: #1342a0;
    --primary-light: #e8f0fe;
    --secondary: #ff6b35;
    --secondary-light: #fff3ed;
    --dark: #1e293b;
    --dark-secondary: #334155;
    --text: #334155;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-xl: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#navbar .logo-container img,
.navbar .logo-container img,
.navbar img.logo,
img.logo {
    height: 34px;
    width: 34px;
    object-fit: contain;
    display: block;
}

#navbar .logo-container,
.navbar .logo-container {
    min-height: 34px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
}

.logo-placeholder.light {
    background: rgba(255,255,255,0.15);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    color: var(--dark-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    border: 1px solid var(--border);
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text) !important;
    border-radius: 0;
    font-size: 0.85rem;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.btn-nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.btn-nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 8px;
}

/* ----- Hero Section ----- */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.4) 50%, rgba(15,23,42,0.2) 100%);
    z-index: 2;
}

.hero-slides-container {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 640px;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26,86,219,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,0.4);
}

.btn-hero-cta {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.btn-hero-cta:hover {
    background: #e55a2b;
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.hero-nav-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* ----- Sections ----- */
.section-container {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 20px;
}

.section-alt {
    padding: 80px 20px;
    max-width: 100%;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}

.center-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 480px;
    margin-top: 8px;
}

.center-desc {
    max-width: 600px;
    text-align: center;
}

/* ----- Filter Tabs ----- */
.matrix-filters {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.filter-tab {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-secondary);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ----- University Cards ----- */
/* ----- University Cards (College Vidya Style) ----- */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.uni-cv-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.uni-cv-card:hover {
    box-shadow: 0 6px 24px rgba(26,86,219,0.13);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.uni-cv-logo-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.uni-cv-logo-img {
    max-height: 58px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
}

.uni-cv-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.uni-cv-courses {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.uni-cv-name {
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uni-cv-location {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 2px 0 0;
}

.uni-cv-location i {
    color: var(--primary);
    font-size: 0.7rem;
}

.uni-cv-badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* "View All Universities" link */
.uni-view-all {
    text-align: center;
    margin-top: 28px;
}

.uni-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--primary);
    padding: 10px 28px;
    border-radius: 999px;
    transition: var(--transition);
}

.uni-view-all a:hover {
    background: var(--primary);
    color: white;
}


/* ----- Steps/Process (Single Row) ----- */
.steps-row {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.steps-row::-webkit-scrollbar {
    height: 6px;
}

.steps-row::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.step-card {
    flex: 1 1 0;
    min-width: 200px;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    scroll-snap-align: start;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----- Achievements ----- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.achievement-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
}

.achievement-card:hover {
    box-shadow: var(--shadow-md);
}

.ach-year {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.achievement-media {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
}

/* ----- Reviews / Testimonials ----- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars {
    color: #f59e0b;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    font-size: 0.88rem;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.review-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.review-author-stream {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-submit-panel {
    margin-top: 36px;
    display: grid;
    gap: 24px;
}

.review-submit-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.review-submit-header {
    margin-bottom: 24px;
}

.review-submit-header .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.review-form {
    display: grid;
    gap: 16px;
}

.review-form-row {
    display: grid;
    gap: 8px;
}

.review-form-row label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.review-form-row input,
.review-form-row select,
.review-form-row textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--bg);
}

.review-form-row textarea {
    min-height: 140px;
    resize: vertical;
}

.review-form-full {
    grid-column: 1 / -1;
}

.btn-review-submit {
    width: fit-content;
    padding: 12px 28px;
}

/* CTA on main page for add-review */
.review-cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.review-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: var(--radius);
    color: var(--dark);
    transition: var(--transition);
}

.review-cta-link:hover { transform: translateY(-2px); }

.review-cta-plus {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-cta-text { font-weight: 700; }

/* ----- FAQ ----- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----- Contact ----- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-item i {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-detail-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

/* ----- Enhanced Footer ----- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 5% 24px;
    font-size: 0.85rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.footer-brand-sub {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-brand .brand-desc {
    margin-top: 4px;
    line-height: 1.7;
    font-size: 0.85rem;
    color: #94a3b8;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #94a3b8;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    margin-right: 4px;
}

.footer-links ul li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact-col p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-contact-col p i {
    margin-top: 3px;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 0.78rem;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom a {
    color: var(--primary);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* ===== MODAL / POPUP ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes stepOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--dark);
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: stepIn 0.35s ease forwards;
}

.modal-icon {
    text-align: center;
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.success-icon {
    color: var(--success);
}

.modal-card h3 {
    font-size: 1.4rem;
    text-align: center;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-desc {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-uni-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26,86,219,0.07);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s ease;
    background: var(--bg);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
    background: var(--white);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-error {
    display: none;
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 4px;
}

.form-error.show {
    display: block;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.otp-input-wrapper {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.otp-input-wrapper input {
    width: 200px;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 10px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: monospace;
    transition: all 0.25s ease;
}

.otp-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.otp-input-wrapper input::placeholder {
    letter-spacing: normal;
    font-size: 0.85rem;
    font-family: inherit;
}

.btn-text {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-text:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.otp-timer {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-info { background: var(--primary); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100px); }
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    z-index: 100;
    transition: var(--transition);
    cursor: pointer;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Admin Login Page ===== */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-header .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.admin-login-header h1 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
}

.admin-login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.admin-login-form .form-group {
    margin-bottom: 20px;
}

.admin-login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg);
}

.admin-login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

/* ===== Admin Dashboard ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-header img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.admin-sidebar-header .admin-brand {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.admin-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.admin-nav-item.active {
    background: rgba(26,86,219,0.15);
    color: var(--white);
    border-right: 3px solid var(--primary);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 6px;
    margin-left: auto;
}

.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-content {
    flex: 1;
    background: var(--bg);
    overflow-y: auto;
}

.admin-topbar {
    background: var(--white);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.admin-section {
    padding: 30px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.admin-stat-card .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    opacity: 0.1;
    color: var(--primary);
}

.admin-stat-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.admin-stat-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-table {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.admin-table-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-badge-success { background: #dcfce7; color: #166534; }
.admin-badge-warning { background: #fef3c7; color: #92400e; }
.admin-badge-danger { background: #fce4ec; color: #c62828; }
.admin-badge-info { background: #e0f2fe; color: #075985; }
.admin-badge-default { background: #f1f5f9; color: #475569; }

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-sm-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-sm-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-sm-success:hover {
    opacity: 0.9;
    color: var(--white);
}

.btn-sm-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.btn-sm-danger:hover {
    opacity: 0.9;
    color: var(--white);
}

/* Card form */
.admin-form-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-form-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.admin-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-form-card .form-group {
    margin-bottom: 0;
}

.admin-form-card label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.admin-form-card input,
.admin-form-card select,
.admin-form-card textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.admin-form-card input:focus,
.admin-form-card select:focus,
.admin-form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.admin-form-card textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Search bar */
.admin-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-search input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    width: 260px;
    transition: var(--transition);
}

.admin-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-search select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--white);
}

/* Admin media preview */
.admin-media-preview {
    max-width: 120px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.4rem; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; align-items: center; }
    .admin-sidebar-header { display: none; }
    .admin-nav { display: flex; padding: 0; }
    .admin-nav-item { padding: 14px 16px; white-space: nowrap; border-bottom: 2px solid transparent; }
    .admin-nav-item.active { border-right: none; border-bottom: 2px solid var(--primary); }
    .admin-sidebar-footer { display: block; min-width: auto; }
    .admin-sidebar-footer button { white-space: nowrap; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open { display: flex; }

    .nav-links a { width: 100%; padding: 12px 16px; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 20px; }
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu { display: block; }

    .hero-section { height: 65vh; min-height: 400px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-nav-dots { bottom: 24px; }

    .section-header { flex-direction: column; align-items: flex-start; }
    .section-header h2 { font-size: 1.5rem; }
    .matrix-filters { width: 100%; }
    .filter-tab { flex: 1; text-align: center; padding: 10px 12px; font-size: 0.78rem; }

    .universities-grid,
    .achievements-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .steps-row {
        gap: 16px;
    }

    .step-card {
        min-width: 220px;
        padding: 28px 16px;
    }

    .footer-container { grid-template-columns: 1fr; gap: 30px; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .admin-section { padding: 20px 16px; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-search input { width: 160px; }
    .admin-form-card .form-row { grid-template-columns: 1fr; }
    .admin-table { overflow-x: auto; }
}

@media (max-width: 480px) {
    .navbar { padding: 12px 4%; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content { max-width: 100%; }
    .modal-card { padding: 28px 20px; }
    .contact-form-wrapper { padding: 20px; }
    .admin-stats-grid { grid-template-columns: 1fr; }
}

/* University detail page */
/* ============================================
   UNIVERSITY DETAIL PAGE — College Vidya Style
   ============================================ */

.unidet-page {
  padding-bottom: 80px;
}

/* --- Banner Slider --- */
.unidet-slider-section {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: var(--dark);
}

.unidet-slides {
  width: 100%;
  height: 100%;
}

.unidet-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.unidet-slide.active {
  opacity: 1;
}

.unidet-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.unidet-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.unidet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  padding: 0;
}

.unidet-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* --- Info Bar (name + buttons) --- */
.unidet-info-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.unidet-info-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.unidet-logo-bar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  object-fit: contain;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
  margin-top: -32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.unidet-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.unidet-info-text {
  min-width: 0;
}

.unidet-info-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unidet-accred-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.unidet-accred-tag {
  background: #f1f5f9;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unidet-info-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.unidet-info-location i {
  color: var(--primary);
  font-size: 0.72rem;
}

.unidet-info-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 0;
}

.unidet-btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 220px;
  text-decoration: none;
}

.unidet-btn-apply:hover {
  background: var(--primary-dark);
}

.unidet-btn-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  color: var(--dark);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 220px;
}

.unidet-btn-enquire:hover {
  background: var(--border);
}

.unidet-btn-brochure {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 220px;
  text-decoration: none;
}

.unidet-btn-brochure:hover {
  background: var(--primary-light);
}

/* --- Stats Bar --- */
.unidet-stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.unidet-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
}

.unidet-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
  min-width: 130px;
  text-align: center;
  flex: 1;
}

.unidet-stat:last-child {
  border-right: none;
}

.unidet-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 4px;
}

.unidet-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

/* --- Content Grid --- */
.unidet-content-wrap {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.unidet-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.unidet-block h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.unidet-block p {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Sidebar */
.unidet-sidebar-col {
  position: sticky;
  top: 160px;
}

.unidet-quick-facts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.unidet-quick-facts h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.unidet-fact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}

.unidet-fact-row:last-child {
  border-bottom: none;
}

.unidet-fact-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.unidet-fact-label i {
  color: var(--primary);
  width: 14px;
}

.unidet-fact-value {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
  line-height: 1.4;
}

.unidet-cta-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: white;
}

.unidet-cta-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  opacity: 0.9;
  font-weight: 500;
}

.unidet-cta-card .btn-cta-white {
  display: block;
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 10px;
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.unidet-cta-card .btn-cta-white:hover {
  background: #e8f0fe;
}

.unidet-cta-card .btn-cta-outline {
  display: block;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.unidet-cta-card .btn-cta-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .universities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .unidet-content-wrap {
    grid-template-columns: 1fr;
  }
  .unidet-sidebar-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .universities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .unidet-info-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
  }
  .unidet-info-right {
    width: 100%;
  }
  .unidet-btn-apply,
  .unidet-btn-enquire,
  .unidet-btn-brochure {
    min-width: 0;
    width: 100%;
  }
  .unidet-stats-inner {
    flex-wrap: wrap;
  }
  .unidet-stat {
    min-width: calc(50% - 1px);
    flex: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .unidet-slider-section {
    height: 220px;
  }
  .unidet-info-bar {
    position: static;
  }
  .unidet-info-text h1 {
    font-size: 1.1rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .universities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}




@media (min-width: 1100px) {
  .uni-card.uni-card-banner {
    min-height: 300px;
    aspect-ratio: 16 / 10;
  }
  .universities-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .uni-card.uni-card-banner {
    min-height: 300px;
    aspect-ratio: 1 / 1;
    background-position: center top;
  }
  .university-detail-hero {
    min-height: 360px;
    margin-top: 72px;
    padding: 32px 18px;
    background-position: center top;
  }
  .uni-detail-meta span {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .uni-card.uni-card-banner {
    min-height: 280px;
  }
}
