/* ============================================
   HighEdu.in — Main Stylesheet
   Navy/Orange/Teal Design System
   ============================================ */

:root {
    --primary: #0F4C81;
    --primary-dark: #0A3A63;
    --primary-light: #E8F1F8;
    --secondary: #F7941D;
    --secondary-light: #FFF4E5;
    --accent: #00B894;
    --accent-light: #E6F9F4;
    --dark: #1A1A2E;
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-500: #8A94A6;
    --gray-300: #DEE2E6;
    --gray-100: #F8F9FA;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(15,76,129,0.06);
    --shadow-md: 0 4px 20px rgba(15,76,129,0.10);
    --shadow-lg: 0 8px 40px rgba(15,76,129,0.14);
    --shadow-xl: 0 16px 60px rgba(15,76,129,0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--gray-700); background: var(--white); line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--dark); font-weight: 600; line-height: 1.3; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ============================================
   UTILITIES
   ============================================ */
.section-padding { padding: 50px 0; }
.section-padding-sm { padding: 60px 0; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-label i { font-size: 0.55rem; }

.section-title { font-size: 2.4rem; margin-bottom: 16px; }
.section-title span { color: var(--secondary); }

.section-subtitle {
    font-size: 1.05rem; color: var(--gray-500);
    max-width: 600px; margin: 0 auto 40px; line-height: 1.8;
}

.body-text { font-size: .95rem; line-height: 2; color: var(--gray-700); }
.body-text p { margin-bottom: 16px; }
.body-text strong { color: var(--dark); }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--primary); color: var(--white); border: none;
    padding: 13px 32px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary-custom {
    background: var(--secondary); color: var(--white); border: none;
    padding: 13px 32px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary-custom:hover { background: #e08518; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-custom {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    padding: 11px 30px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-custom:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ============================================
   TOP BAR & NAVBAR
   ============================================ */
.top-bar { background: var(--primary); color: rgba(255,255,255,.85); font-size: 0.82rem; padding: 8px 0; }
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--white); }
.top-bar i { color: var(--secondary); margin-right: 5px; }

.navbar-main {
    background: var(--white); padding: 0px 0; box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 1050; transition: var(--transition);
}
.navbar-main.scrolled { box-shadow: var(--shadow-md); padding: 8px 0; }
.navbar-main .navbar-brand img { height: 55px; }
.navbar-main .nav-link { color: var(--dark); font-weight: 500; font-size: .92rem; padding: 8px 16px !important; border-radius: var(--radius-sm); transition: var(--transition); }
.navbar-main .nav-link:hover, .navbar-main .nav-link.active { color: var(--primary); background: var(--primary-light); }
.navbar-main .dropdown-menu { border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius-md); padding: 12px; min-width: 240px; }
.navbar-main .dropdown-item { border-radius: var(--radius-sm); padding: 0px 16px; font-size: .9rem; font-weight: 500; transition: var(--transition); }
.navbar-main .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta-btn { background: var(--secondary) !important; color: var(--white) !important; border-radius: 50px !important; padding: 10px 24px !important; font-weight: 600 !important; }
.nav-cta-btn:hover { background: #e08518 !important; color: var(--white) !important; }

/* ============================================
   HERO SECTION (programme pages)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0F4C81 0%, #0A3A63 40%, #072D4F 100%);
    position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; padding: 60px 0;
}
.hero-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.025) 1px, transparent 0);
    background-size: 40px 40px;
}
.hero-content h1 { font-size: 2.8rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.hero-stat-badge {
    background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
    padding: 14px 20px; display: flex; align-items: center; gap: 12px;
    color: #fff; min-width: 140px;
}
.hero-stat-badge i { color: var(--secondary); font-size: 1rem; }
.hero-stat-badge .val { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.hero-stat-badge .lbl { font-size: .68rem; color: rgba(255,255,255,.5); }

/* ============================================
   UNIVERSITY HERO
   ============================================ */
.university-hero {
    background: linear-gradient(135deg, #0F4C81 0%, #072D4F 60%, #0A3A63 100%);
    padding: 50px 0 60px; position: relative; overflow: hidden;
}
.university-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.025) 1px, transparent 0);
    background-size: 36px 36px;
}
.uni-badge { padding: 4px 12px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-green { background: rgba(0,184,148,.2); color: #00B894; border: 1px solid rgba(0,184,148,.3); }
.badge-blue { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.badge-orange { background: rgba(247,148,29,.2); color: var(--secondary); border: 1px solid rgba(247,148,29,.3); }
.uni-stat-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm); padding: 12px 18px;
    display: flex; align-items: center; gap: 10px; color: #fff;
}
.uni-stat-card .v { font-weight: 700; font-size: .9rem; }
.uni-stat-card .l { font-size: .68rem; color: rgba(255,255,255,.5); }

/* ============================================
   COUNSELLING FORM CARD
   ============================================ */
.counselling-form-card { background: var(--white); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-xl); }
.form-card-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; text-align: center; margin-bottom: 4px; color: var(--dark); }
.form-card-sub { text-align: center; font-size: .82rem; color: var(--gray-500); margin-bottom: 20px; }
.counselling-form-card .form-control,
.counselling-form-card .form-select { border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 11px 14px; font-size: .88rem; transition: var(--transition); }
.counselling-form-card .form-control:focus,
.counselling-form-card .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,.1); }

/* ============================================
   STICKY TABS NAV
   ============================================ */
.sticky-tabs-nav {
    background: var(--white); border-bottom: 1px solid var(--gray-300);
    position: sticky; top: 72px; z-index: 1040; box-shadow: var(--shadow-sm);
}
.sticky-tabs-nav .nav-tabs { border: none; gap: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sticky-tabs-nav .nav-tabs::-webkit-scrollbar { display: none; }
.sticky-tabs-nav .nav-link { border: none; border-bottom: 3px solid transparent; border-radius: 0; color: var(--gray-500); font-weight: 600; font-size: .84rem; padding: 14px 20px; white-space: nowrap; transition: var(--transition); }
.sticky-tabs-nav .nav-link:hover { color: var(--primary); border-bottom-color: var(--primary-light); }
.sticky-tabs-nav .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }

/* ============================================
   KEY HIGHLIGHT CARDS
   ============================================ */
.key-highlight-card { background: var(--gray-100); border-radius: var(--radius-sm); padding: 22px 16px; text-align: center; border: 1.5px solid transparent; transition: var(--transition); }
.key-highlight-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-3px); }
.kh-icon { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kh-val { font-weight: 700; font-size: .95rem; color: var(--dark); margin-bottom: 2px; }
.kh-lbl { font-size: .75rem; color: var(--gray-500); }

/* ============================================
   SPECIALIZATION GRID
   ============================================ */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec-card {
    background: var(--white); border-radius: var(--radius-md); padding: 28px 18px;
    text-align: center; transition: var(--transition); border: 1.5px solid transparent; cursor: pointer;
}
.spec-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.spec-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.spec-card h6 { font-family: var(--font-body); font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.spec-card p { font-size: .76rem; color: var(--gray-500); margin: 0; }
.spec-tag { display: inline-block; margin-top: 8px; background: var(--accent-light); color: var(--accent); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
@media(max-width:991px) { .spec-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:575px) { .spec-grid { grid-template-columns: repeat(2,1fr); } }

/* ============================================
   UNIVERSITY TABLE
   ============================================ */
.uni-table-wrapper { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-300); box-shadow: var(--shadow-sm); overflow-x: auto; }
.uni-table { width: 100%; margin: 0; }
.uni-table thead th { background: var(--primary); color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 14px 18px; border: none; white-space: nowrap; }
.uni-table tbody td { padding: 15px 18px; font-size: .9rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.uni-table tbody tr { transition: var(--transition); }
.uni-table tbody tr:hover { background: var(--primary-light); }
.uni-name a { font-weight: 700; color: var(--primary); }
.uni-name a:hover { color: var(--secondary); }
.fee-col { font-weight: 700; color: var(--dark); }
.apply-btn { background: var(--secondary); color: #fff; border: none; padding: 7px 20px; border-radius: 50px; font-size: .78rem; font-weight: 600; transition: var(--transition); display: inline-block; }
.apply-btn:hover { background: #e08518; color: #fff; transform: scale(1.05); }

/* ============================================
   ELIGIBILITY SECTION
   ============================================ */
.elig-card { border-radius: var(--radius-md); padding: 28px; border-left: 5px solid; }
.elig-card h5 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.elig-card ul { padding-left: 20px; margin: 0; font-size: .9rem; color: var(--gray-700); }
.elig-card ul li { margin-bottom: 6px; line-height: 1.6; }

.admission-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; text-align: center; }
.step-item { position: relative; }
.step-item::after { content: '→'; position: absolute; right: -12px; top: 22px; color: var(--gray-300); font-size: 1.2rem; }
.step-item:last-child::after { display: none; }
.step-num {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; color: #fff;
    background: var(--primary); box-shadow: 0 4px 14px rgba(15,76,129,.25);
}
.step-item h6 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.step-item p { font-size: .74rem; color: var(--gray-500); margin: 0; }
@media(max-width:767px) {
    .admission-steps { grid-template-columns: 1fr; text-align: left; }
    .step-item { display: flex; align-items: center; gap: 14px; }
    .step-item::after { display: none; }
    .step-num { min-width: 44px; width: 44px; height: 44px; font-size: .9rem; margin: 0; }
}

/* ============================================
   UNIVERSITY INFO SIDEBAR
   ============================================ */
.uni-info-sidebar { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; }
.uni-info-sidebar h5 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.uni-info-sidebar ul li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .88rem; }

.uni-highlights-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.uni-highlight-item { display: flex; align-items: flex-start; gap: 12px; background: var(--gray-100); border-radius: 10px; padding: 16px; }
.hl-icon { width: 32px; height: 32px; min-width: 32px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: .85rem; margin-top: 2px; }
.hl-val { font-weight: 700; font-size: .9rem; color: var(--dark); }
.hl-lbl { font-size: .75rem; color: var(--gray-500); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding-top: 70px; }
.footer h5 { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-logo img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer p { font-size: .88rem; line-height: 1.8; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: rgba(255,255,255,.6); font-size: .88rem; transition: var(--transition); }
.footer-list a:hover { color: var(--secondary); padding-left: 4px; }
.footer-list a i { margin-right: 6px; font-size: .72rem; color: var(--secondary); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .88rem; }
.footer-contact i { color: var(--secondary); margin-top: 4px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; margin-top: 50px; }
.footer-bottom p { font-size: .82rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-bottom a:hover { color: var(--secondary); }

/* ============================================
   WHATSAPP & BACK TO TOP
   ============================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px;
    border-radius: 50%; background: #25D366; color: #fff; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 9999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.back-to-top {
    position: fixed; bottom: 24px; right: 96px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--primary); color: #fff; display: none;
    align-items: center; justify-content: center; font-size: 1rem; z-index: 9999;
    box-shadow: var(--shadow-md); transition: var(--transition); cursor: pointer; border: none;
}
.back-to-top.show { display: flex; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:991px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
}
@media(max-width:767px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .uni-highlights-grid { grid-template-columns: 1fr; }
}
