/* ===================================================
   VJP Group of Institutions — Main Stylesheet
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:       #1a3a6e;
  --primary-dark:  #0f2347;
  --primary-light: #2a5298;
  --gold:          #e8a010;
  --gold-light:    #f5c842;
  --white:         #ffffff;
  --light:         #f8fafc;
  --text:          #1a202c;
  --muted:         #6b7280;
  --border:        #e2e8f0;
  --shadow:        0 4px 24px rgba(26,58,110,.10);
  --shadow-lg:     0 12px 40px rgba(26,58,110,.15);
  --radius:        12px;
  --transition:    all .3s ease;
  --font:          'Poppins', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul   { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ---------- Typography helpers ---------- */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg,var(--gold),var(--gold-light));
  color: var(--white); font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem,3vw,2.3rem); font-weight: 700;
  color: var(--primary); margin-bottom: 12px; line-height: 1.25;
}
.section-title .hl { color: var(--gold); }
.section-title::after {
  content: ''; display: block; width: 54px; height: 4px;
  background: linear-gradient(90deg,var(--gold),var(--gold-light));
  border-radius: 2px; margin-top: 10px;
}
.section-title.center::after { margin: 10px auto 0; }
.section-lead { color: var(--muted); font-size: .97rem; max-width: 620px; }
.py-section { padding: 80px 0; }

/* ---------- Buttons ---------- */
.btn-vjp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 30px; border-radius: 50px; font-weight: 600;
  font-size: .88rem; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-vjp-primary {
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  color: var(--white); box-shadow: 0 4px 14px rgba(26,58,110,.30);
}
.btn-vjp-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,58,110,.4); }
.btn-vjp-gold {
  background: linear-gradient(135deg,var(--gold),var(--gold-light));
  color: var(--white); box-shadow: 0 4px 14px rgba(232,160,16,.30);
}
.btn-vjp-gold:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232,160,16,.4); }
.btn-vjp-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-vjp-outline:hover { background: var(--white); color: var(--primary); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: linear-gradient(135deg,var(--primary-dark),var(--primary));
  color: rgba(255,255,255,.85); font-size: .8rem; padding: 7px 0;
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--gold); }
.top-bar .apply-btn {
  background: var(--gold); color: var(--white);
  padding: 3px 14px; border-radius: 50px; font-weight: 600; font-size: .78rem;
  animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,160,16,.5); }
  50%      { box-shadow: 0 0 0 7px rgba(232,160,16,0); }
}

/* ---------- Navbar ---------- */
#mainNav {
  background: var(--white); box-shadow: var(--shadow);
  transition: var(--transition); padding: 6px 0;
}
#mainNav.scrolled { box-shadow: var(--shadow-lg); padding: 2px 0; }
.navbar-brand { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.navbar-brand:hover { text-decoration: none; }
.navbar-brand img { height: 68px; width: auto; transition: var(--transition); }
#mainNav.scrolled .navbar-brand img { height: 50px; }
.brand-text { line-height: 1.3; }
#mainNav.scrolled .brand-text { font-size: .92em; }

.nav-link {
  font-size: .875rem; font-weight: 600; color: var(--text) !important;
  padding: 26px 14px !important; position: relative; letter-spacing: .3px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 3px; background: var(--gold); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* Mega Menu */
.mega-menu-wrapper { position: static; }
.mega-menu {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--white); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold); display: none;
  padding: 30px 0; z-index: 999; border-radius: 0 0 var(--radius) var(--radius);
}
.mega-menu-wrapper:hover .mega-menu { display: block; }
.mega-menu-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border-radius: 10px; transition: var(--transition);
}
.mega-menu-card:hover { background: var(--light); transform: translateX(4px); }
.mega-menu-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}
.mega-menu-card h6 { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.mega-menu-card p  { font-size: .75rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* Dropdown for AICTE */
.dropdown-menu {
  border: none; box-shadow: var(--shadow-lg); border-radius: var(--radius);
  border-top: 3px solid var(--gold); padding: 8px 0; min-width: 220px;
}
.dropdown-item { font-size: .875rem; font-weight: 500; padding: 9px 20px; color: var(--text); }
.dropdown-item:hover { background: var(--light); color: var(--primary); padding-left: 26px; }

/* ---------- Hero Slider ---------- */
.hero-swiper { width: 100%; height: 88vh; min-height: 560px; position: relative; }
.hero-swiper .swiper-slide {
  position: relative; overflow: hidden; display: flex;
  align-items: center;
}
.hero-slide-bg {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; transform: scale(1.04);
  transition: transform 6s ease;
}
.swiper-slide-active .hero-slide-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg,rgba(15,35,71,.45) 30%,rgba(15,35,71,.18));
}
.hero-content { position: relative; z-index: 2; padding-top: 60px; }
.hero-badge {
  display: inline-block; background: var(--gold);
  color: var(--white); font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px; margin-bottom: 18px;
}
.hero-title { font-size: clamp(2rem,5vw,3.4rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 18px; }
.hero-title .hl { color: var(--gold-light); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 540px; }
.swiper-button-next,.swiper-button-prev {
  color: var(--white); background: rgba(255,255,255,.15);
  width: 48px; height: 48px; border-radius: 50%; backdrop-filter: blur(6px);
}
.swiper-button-next::after,.swiper-button-prev::after { font-size: 18px; font-weight: 700; }
.swiper-pagination-bullet { background: rgba(255,255,255,.5); width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ---------- Stats ---------- */
.stats-bar { background: linear-gradient(135deg,var(--primary-dark),var(--primary)); padding: 40px 0; }
.stat-item { text-align: center; padding: 10px 0; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat-plus { font-size: 1.6rem; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.78); font-weight: 500; margin-top: 4px; letter-spacing: .5px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,.15); margin: auto; }

/* ---------- Institution Cards ---------- */
.inst-card {
  border: none; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  height: 100%;
}
.inst-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.inst-card-img { height: 200px; object-fit: cover; width: 100%; transition: var(--transition); }
.inst-card:hover .inst-card-img { transform: scale(1.04); }
.inst-card-img-wrap { overflow: hidden; position: relative; }
.inst-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--white);
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
}
.inst-card-body { padding: 22px; }
.inst-card-body h5 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.inst-card-body p  { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.inst-card-footer { padding: 0 22px 20px; }

/* ---------- About Section ---------- */
.about-img-wrap { position: relative; }
.about-img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-badge-box {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg,var(--gold),var(--gold-light));
  color: var(--white); border-radius: var(--radius);
  padding: 20px 26px; text-align: center;
  box-shadow: 0 8px 28px rgba(232,160,16,.4);
}
.about-badge-box .num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge-box .lbl { font-size: .75rem; font-weight: 600; opacity: .9; letter-spacing: .5px; }
.about-feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.about-feature-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
}
.about-feature h6 { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.about-feature p  { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Message Cards ---------- */
.msg-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.msg-card:hover { box-shadow: var(--shadow-lg); }
.msg-card-header {
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  padding: 20px; color: var(--white); display: flex; align-items: center; gap: 16px;
}
.msg-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--gold); object-fit: cover; flex-shrink: 0;
}
.msg-card-body { padding: 22px; background: var(--white); }
.msg-card-body p { font-size: .88rem; color: var(--muted); font-style: italic; line-height: 1.8; }

/* ---------- Facilities ---------- */
.facility-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 22px; text-align: center;
  transition: var(--transition); border-bottom: 4px solid transparent;
}
.facility-card:hover { transform: translateY(-6px); border-bottom-color: var(--gold); box-shadow: var(--shadow-lg); }
.facility-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.6rem; transition: var(--transition);
}
.facility-card:hover .facility-icon { background: linear-gradient(135deg,var(--gold),var(--gold-light)); }
.facility-card h5 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.facility-card p  { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,transparent 40%,rgba(26,58,110,.85));
  opacity: 0; transition: var(--transition); display: flex;
  align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 2rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.stars { color: var(--gold); font-size: .9rem; margin-bottom: 12px; }
.testimonial-text { font-size: .9rem; color: var(--muted); font-style: italic; line-height: 1.8; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.testi-info h6 { font-size: .88rem; font-weight: 700; color: var(--primary); margin-bottom: 0; }
.testi-info small { color: var(--muted); font-size: .76rem; }

/* ---------- News / Events ---------- */
.news-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 180px; object-fit: cover; width: 100%; transition: transform .4s; }
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card-img-wrap { overflow: hidden; }
.news-card-body { padding: 18px; }
.news-type-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 50px; }
.badge-notice { background: rgba(232,160,16,.12); color: var(--gold); }
.badge-event  { background: rgba(26,58,110,.1); color: var(--primary); }
.badge-news   { background: rgba(39,174,96,.1); color: #27ae60; }
.news-title   { font-size: .92rem; font-weight: 700; color: var(--text); margin: 8px 0 6px; line-height: 1.4; }
.news-date    { font-size: .76rem; color: var(--muted); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg,var(--primary-dark),var(--primary-light));
  position: relative; overflow: hidden; padding: 70px 0;
}
.cta-band::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.04); top: -150px; right: -100px;
}
.cta-band h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: var(--white); }
.cta-band p  { color: rgba(255,255,255,.8); font-size: .97rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dark); color: rgba(255,255,255,.78); font-size: .87rem;
}
.footer-main { padding: 60px 0 30px; }
.footer-brand h4 { color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.footer-brand p { font-size: .8rem; color: var(--gold); margin-bottom: 14px; }
.footer-about { font-size: .83rem; line-height: 1.8; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.footer-heading { color: var(--white); font-size: .92rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .83rem; display: flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,.65); font-size: .83rem; }
.footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  margin-right: 8px; transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; font-size: .8rem; color: rgba(255,255,255,.5);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg,var(--primary-dark),var(--primary));
  padding: 80px 0 50px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: var(--gold); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---------- Form Styles ---------- */
.vjp-form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 8px; border: 1.5px solid var(--border);
  font-size: .88rem; padding: 10px 14px; font-family: var(--font);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,110,.1);
}
.alert-flash { border-radius: 10px; font-size: .88rem; }

/* ---------- Back to Top ---------- */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 1050;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  color: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 14px rgba(26,58,110,.35);
  opacity: 0; transform: translateY(20px); transition: var(--transition);
}
#backToTop.show { opacity: 1; transform: translateY(0); }
#backToTop:hover { transform: translateY(-3px); }

/* ---------- Animations ---------- */
[data-aos] { transition-property: opacity,transform; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
.animate-fiu { animation: fadeInUp .7s ease forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ---------- Responsive ---------- */
@media (max-width:991.98px) {
  .hero-swiper { height: 70vh; min-height: 480px; }
  .nav-link { padding: 10px 14px !important; }
  .nav-link::after { display: none; }
  .mega-menu { position: static; box-shadow: none; border-top: none; padding: 0 0 0 16px; display: none; }
  .mega-menu-wrapper.open .mega-menu { display: block; }
  .stat-divider { display: none; }
  .about-badge-box { position: static; margin-top: 20px; display: inline-flex; gap: 12px; align-items: center; }
  .about-badge-box .num { font-size: 1.8rem; }
}
@media (max-width:767.98px) {
  .py-section { padding: 55px 0; }
  .hero-swiper { height: 85vh; }
  .stats-bar .row > div { margin-bottom: 20px; }
  .top-bar .d-flex { flex-wrap: wrap; gap: 6px; }
  .navbar-brand { gap: 8px !important; }
  .navbar-brand img { height: 44px !important; }
  .brand-text > div:first-child { font-size: .85rem !important; white-space: normal; line-height: 1.2; }
  .brand-text > div:nth-child(2),
  .brand-text > div:nth-child(3) { display: none; }
}
