/* ==========================================================
   VITMEE 2027 - responsive + design refresh
   Load AFTER assets/css/main.css:
   <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" />
   ========================================================== */

:root {
    --navy: #003366;
    --navy-deep: #0a2240;
    --gold: #ffc000;
    --ink: #1c2733;
    --muted: #5b6b7b;
    --line: #dbe4ee;
    --tint: #eef4fa;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 51, 102, 0.10);
}

html { -webkit-text-size-adjust: 100%; }
body { color: var(--ink); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; }
p { font-weight: 500; line-height: 1.7; }   /* replaces invalid "500px" */

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.header { box-shadow: 0 2px 14px rgba(0, 51, 102, 0.08); padding: 6px 0; }
.header .logo img { max-height: 60px; width: auto; }
.header .container-fluid { padding-inline: clamp(12px, 3vw, 40px); }

@media (min-width: 1200px) {
    .navmenu a, .navmenu a:focus { font-size: 15px; padding: 8px 12px; }
    .navmenu li > a { position: relative; }
    .navmenu li > a::after {
        content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
        height: 2px; background: var(--gold); transform: scaleX(0);
        transform-origin: left; transition: transform .25s ease;
    }
    .navmenu li:hover > a::after, .navmenu a.active::after { transform: scaleX(1); }
    .navmenu .dropdown ul a::after { display: none; }
}
@media (max-width: 1199px) {
    .header .logo img { max-height: 48px; }
    .navmenu a, .navmenu a:focus { white-space: normal; }
}

/* ---------- Hero ---------- */
.hero {
    min-height: auto;                       /* was 120vh */
    padding: 120px 0 72px;
}
.hero .container > .row { align-items: center; row-gap: 2.5rem; }
.hero h1 {
    font-size: clamp(26px, 4.2vw, 44px) !important;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 1rem !important;
    letter-spacing: -0.01em;
}
.hero h3 { font-size: clamp(15px, 2vw, 20px); letter-spacing: .06em; margin-bottom: 1rem !important; }
.hero h3 span { color: var(--gold) !important; }
.hero h3:last-of-type span { color: #fff !important; font-weight: 600; }

.hero .d-flex.flex-column { flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero .btn-get-started {
    margin: 0 !important;
    padding: 12px 22px;
    font-size: 14px;
    letter-spacing: .3px;
    border-radius: 999px;
    white-space: nowrap;
}
.hero .btn-get-started:nth-child(n+2) {
    background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55);
}
.hero .btn-get-started:nth-child(n+2):hover { background: var(--gold); color: #000; border-color: var(--gold); }
@media (max-width: 767px) {
    .hero { padding: 96px 0 48px; }
    .hero .btn-get-started { width: 100%; }
}

/* ---------- Login / signup card ---------- */
.hero-img { display: flex; justify-content: center; }
.wrapper {
    width: 100%; max-width: 480px; margin: 0 auto;
    padding: clamp(14px, 3vw, 24px);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    border-top: 4px solid var(--gold);
}
.wrapper .title { font-size: clamp(22px, 5vw, 28px); color: var(--navy); }
.wrapper .slide-controls { margin: 18px 0 8px; height: 46px; }
.slide-controls .slide { line-height: 44px; font-size: 16px; }
.slider-tab { background: var(--navy) !important; }
.wrapper .form-control, .wrapper .form-select {
    border-radius: 10px; border: 1px solid var(--line);
    padding: .6rem .8rem; font-size: 15px; min-height: 44px;
}
.wrapper .form-control:focus, .wrapper .form-select:focus {
    border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 51, 102, .15);
}
.wrapper .col-form-label, .wrapper .form-label, .wrapper .label { font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.wrapper .btn-primary {
    background: var(--navy); border-color: var(--navy); border-radius: 10px;
    font-weight: 600; min-height: 46px;
}
.wrapper .btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.wrapper input[type="checkbox"] { margin-right: 6px; accent-color: var(--navy); }
.wrapper .signup-link, .wrapper .pass-link { font-size: 14px; }
.wrapper .signup-link { margin-top: 16px !important; }
.form-container .form-inner form { padding: 2px; }

/* ---------- Section rhythm + titles ---------- */
section, .section { padding: clamp(44px, 7vw, 84px) 0; }
.section-title { padding-bottom: clamp(28px, 5vw, 48px); }
.section-title h2 {
    font-size: clamp(22px, 3.4vw, 32px);
    color: var(--navy);
}
.section-title h2::before, .section-title h2::after { width: clamp(20px, 5vw, 50px); }
.section-title h3 { font-size: clamp(15px, 2vw, 18px); color: var(--muted); font-weight: 500; margin-top: .5rem; }

/* ---------- About ---------- */
#about .content { padding: 0; }
#about h2 { font-size: clamp(22px, 3vw, 30px); color: var(--navy); margin-bottom: 1rem; }
#about p { text-align: left; font-size: 16px; max-width: 70ch; }
#about img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100% !important; }
@media (max-width: 767px) { #about .row { row-gap: 1.5rem; } }

/* ---------- Application steps ---------- */
.step-container, .step2-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.step-container .card, .step2-container .card {
    margin: 0; border-radius: var(--radius); border: 0;
    box-shadow: var(--shadow); transition: transform .2s ease;
}
.step-container .card:hover, .step2-container .card:hover { transform: translateY(-3px); }
.step-container .card .title, .step2-container .card .title { font-size: 14px; letter-spacing: .08em; padding: 14px 14px 52px; }
.step-container .card .content, .step2-container .card .content { padding-bottom: 18px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; }
.step-container .card h5, .step2-container .card h5 { font-size: 16px; line-height: 1.35; margin: 0; }
.step-container .card .content p, .step2-container .card .content p { display: none; }
.step-container .card .icon, .step2-container .card .icon { display: none; }
@media (max-width: 991px) {
    .step-container, .step2-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .step-container, .step2-container { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Admission guidelines (tabs) ---------- */
.departments { background: var(--tint); }
.departments .nav-tabs { gap: 8px; }
.departments .nav-link {
    border-radius: 10px; background: #fff; border: 1px solid var(--line);
    padding: 14px 16px; font-size: 15px;
}
.departments .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.departments .tab-content {
    background: #fff; border-radius: var(--radius); padding: clamp(18px, 4vw, 32px);
    box-shadow: var(--shadow); height: 100%;
}
.departments .details h3 { color: var(--navy); font-size: clamp(20px, 2.6vw, 26px); }
.departments .details p { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; margin-bottom: 14px; }
.departments .details p i { color: var(--gold); flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 991px) {
    .departments .nav-tabs { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .departments .nav-tabs .nav-item { flex: 0 0 auto; }
    .departments .nav-link { white-space: nowrap; }
    .departments .nav-link.active { background: var(--navy); color: #fff; }
}

/* ---------- Programmes offered ---------- */
.bs-tabs-1 .nav-pills { flex-wrap: wrap; gap: 8px; }
.tab-btn-1 {
    width: auto; min-width: 140px; height: 44px; padding: 0 22px;
    border-radius: 999px; margin: 0 !important; font-size: 15px;
    border: 1px solid var(--line); background: #fff; box-shadow: none;
}
.tab-btn-1::before { display: none; }
.tab-btn-1.active { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
.prg-tab { padding: 18px 0; font-size: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prg-tab .table { min-width: 460px; border-radius: var(--radius); overflow: hidden; margin: 0 auto; max-width: 960px; }
.table th, .table td { font-size: 15px; padding: 12px 16px; vertical-align: middle; border-color: var(--line); }
.table th { text-align: left; }
.table tbody tr:nth-child(even) { background-color: var(--tint); }
.table td[rowspan] { font-weight: 700; color: var(--navy); background: #fff; }
@media (max-width: 575px) {
    .tab-btn-1 { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 0 12px; font-size: 14px; }
    .table th, .table td { font-size: 14px; padding: 10px 12px; }
    .table td::before { display: none; }
    .table, .table tbody, .table tr, .table td { width: auto; }
}

/* ---------- Scholarship ---------- */
.scholar .content {
    background: var(--tint); border-left: 5px solid var(--gold);
    border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); height: 100%;
}
.scholar .content h3 { font-size: clamp(18px, 2.4vw, 24px); color: var(--navy); text-transform: none; }
.scholar img { border-radius: var(--radius); width: 100%; object-fit: cover; }
@media (max-width: 991px) { .scholar .row > div + div { margin-top: 18px; } }

/* ---------- Fees + placement images ---------- */
.pricing .pricing-tem { width: 100%; padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); }
.pricing .pricing-tem img, #placement .pricing-tem img { border-radius: 10px; }
@media (max-width: 767px) {
    .pricing .pricing-tem { overflow-x: auto; }
    .pricing .pricing-tem img { min-width: 640px; }   /* keeps fee table readable; scroll sideways */
}

/* ---------- FAQ ---------- */
.faq-2 .faq-container { margin-top: 0; }
.faq-2 .faq-container .faq-item {
    border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 18px 18px;
    margin-bottom: 14px; box-shadow: none; transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-2 .faq-container .faq-item:hover, .faq-2 .faq-container .faq-active { border-color: var(--navy); box-shadow: var(--shadow); }
.faq-2 .faq-container .faq-item h3 { font-size: 16px; line-height: 1.45; margin: 0 28px 0 32px; }
.faq-2 .faq-container .faq-item .faq-icon { top: 19px; left: 18px; }
.faq-2 .faq-container .faq-item .faq-toggle { top: 18px; right: 16px; }
.faq-2 .faq-container .faq-item .faq-content p { font-size: 15px; line-height: 1.7; padding-left: 32px; }
.faq-2 .col-lg-6 + .col-lg-6 .faq-container { margin-top: 0; }
@media (max-width: 991px) { .faq-2 .col-lg-6:first-child .faq-container { margin-bottom: 14px; } }

/* ---------- Contact ---------- */
.contact .info-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    height: 100%; padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.contact .info-item i { color: var(--navy); }
.contact .info-item h3 { font-size: 18px; color: var(--navy); }
.contact .info-item p { font-size: 15px; word-break: break-word; }
.contact .info-item br { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); }
.footer .footer-top { padding-top: 44px; }
.footer .footer-links { margin-bottom: 10px; }
.footer .social-links { gap: 2px; }
.footer .copyright { border-top-color: rgba(255, 255, 255, .25); }
@media (max-width: 767px) {
    .footer .footer-about, .footer .col-lg-4, .footer .footer-links { text-align: left; }
    .footer .social-links { flex-wrap: wrap; }
}

/* ---------- Scroll-to-top ---------- */
.scroll-top { border-radius: 50%; width: 44px; height: 44px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
