/* =========================================================
   Prateek Singh Institute of Nursing & Paramedical Sciences
   Public site stylesheet
   ========================================================= */

:root {
  --navy: #101c4d;
  --navy-dark: #0a1333;
  --navy-light: #1c2c6b;
  --red: #d42a2a;
  --red-dark: #a81f1f;
  --gold: #e0a83c;
  --ink: #1e2433;
  --muted: #626b82;
  --bg-soft: #f5f7fb;
  --border-soft: #e6e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 28, 77, 0.08);
  --shadow-hover: 0 16px 40px rgba(16, 28, 77, 0.14);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .brand-text strong {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.section-pad { padding: 70px 0; }
@media (max-width: 767px) { .section-pad { padding: 45px 0; } }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; }

.btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 22px;
}
.btn-primary-brand {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-primary-brand:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline-brand {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-brand:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }

/* ---------------- Topbar ---------------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd6ee;
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a { color: #cfd6ee; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact i { color: var(--gold); margin-right: 4px; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { color: #cfd6ee; font-size: 1rem; }
.topbar-social a:hover { color: var(--gold); }
.admission-badge {
  background: var(--red);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ---------------- Main nav ---------------- */
.main-nav { background: #fff; box-shadow: 0 2px 18px rgba(16,28,77,0.08); z-index: 1030; }
.navbar { padding: 8px 0; }
.main-nav .container { padding-left: 0; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 68px; width: 68px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.18; }
.brand-text strong {
  display: block;
  white-space: normal;
  max-width: 300px;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--navy);
}
.navbar-nav .nav-link { color: var(--ink); font-weight: 600; padding: 10px 11px !important; position: relative; white-space: nowrap; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--red); }
.btn-apply { background: var(--navy); color: #fff; border-radius: 50px; padding: 9px 18px; font-weight: 600; white-space: nowrap; display: inline-block; }
.btn-apply:hover { background: var(--red); color: #fff; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav .nav-link { padding: 10px 8px !important; font-size: 0.92rem; }
  .brand-text strong { max-width: 170px; font-size: 0.85rem; }
  .navbar-brand img { height: 52px; width: 52px; }
}

/* ---------------- Hero slider ---------------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .carousel-item {
  min-height: 560px;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
/* Match Bootstrap's own visible-state selectors so this doesn't override
   its display:none on inactive slides (specificity trap: a compound
   selector here would beat Bootstrap's plain .carousel-item otherwise). */
.hero-slider .carousel-item.active,
.hero-slider .carousel-item-next,
.hero-slider .carousel-item-prev {
  display: flex;
  align-items: center;
}
.hero-slider .carousel-item::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(224,168,60,0.18), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(212,42,42,0.25), transparent 40%);
}
.hero-slider .carousel-item.has-image .slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,19,51,0.92) 0%, rgba(10,19,51,0.78) 45%, rgba(10,19,51,0.4) 100%);
}
.hero-slider .container { position: relative; z-index: 2; }
.slide-content { max-width: 640px; padding: 60px 0; }
.slide-content h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.2; margin-bottom: 18px; }
.slide-content p.lead { color: #d7dcf2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-badge i { color: var(--gold); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-slider .carousel-indicators { margin-bottom: 1.5rem; z-index: 3; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(255,255,255,0.5); border: none; opacity: 1;
}
.hero-slider .carousel-indicators .active { background-color: var(--gold); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 56px; z-index: 3; opacity: 0.8; }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon {
  background-color: rgba(255,255,255,0.15);
  border-radius: 50%;
  padding: 20px;
  background-size: 40%;
}
@media (max-width: 767px) {
  .hero-slider .carousel-item { min-height: 440px; }
  .slide-content { padding: 34px 0; }
}

/* ---------------- Stats strip ---------------- */
.stats-strip { background: var(--navy-dark); padding: 34px 0; position: relative; z-index: 1; }
.stats-strip .stat-num { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 800; color: #fff; }
.stats-strip .stat-label { color: #b9c1e0; font-size: 0.82rem; }

/* Quick enquiry card overlapping hero */
.quick-enquiry {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 26px;
  position: relative;
  z-index: 3;
  margin-top: -70px;
}
.quick-enquiry h5 { display: flex; align-items: center; gap: 8px; }
.quick-enquiry h5 i { color: var(--red); }

/* ---------------- Feature / why-choose cards ---------------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: all .25s ease;
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.feature-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature-card:nth-child(3n+2) .feature-icon { background: linear-gradient(135deg, var(--red), #e85a5a); }
.feature-card:nth-child(3n) .feature-icon { background: linear-gradient(135deg, var(--gold), #f0c874); }
.feature-card h5 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------------- About snippet ---------------- */
.about-media { position: relative; }
.about-media .ring-decor {
  position: absolute; inset: 0;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  transform: translate(16px, 16px);
  z-index: -1;
}
.about-media img, .about-media .logo-frame {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.logo-frame {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.logo-frame img { width: 70%; }
.about-points { list-style: none; padding: 0; margin: 22px 0; }
.about-points li { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.about-points i { color: var(--red); font-size: 1.2rem; margin-top: 2px; }

/* ---------------- Course cards ---------------- */
.course-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all .25s ease;
  display: flex; flex-direction: column;
}
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.course-card-head {
  padding: 22px 22px 0;
}
.course-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.course-badge.nursing { background: rgba(16,28,77,0.1); color: var(--navy); }
.course-badge.paramedical { background: rgba(212,42,42,0.1); color: var(--red); }
.course-card h5 { font-size: 1.08rem; margin-bottom: 10px; min-height: 48px; }
.course-card-body { padding: 0 22px; flex-grow: 1; }
.course-card p { color: var(--muted); font-size: 0.9rem; }
.course-meta { list-style: none; padding: 0; margin: 16px 0; font-size: 0.85rem; }
.course-meta li { display: flex; gap: 8px; margin-bottom: 8px; color: var(--ink); }
.course-meta i { color: var(--red); width: 18px; }
.course-card-foot { padding: 18px 22px; border-top: 1px solid var(--border-soft); margin-top: auto; }

.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-tabs button {
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: all .2s ease;
}
.filter-tabs button.active, .filter-tabs button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------- Notice board ---------------- */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.notice-item:last-child { border-bottom: none; }
.notice-date {
  background: var(--bg-soft);
  border-radius: 10px;
  min-width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--navy); font-family: 'Poppins', sans-serif;
}
.notice-date .d { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.notice-date .m { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--red); }
.notice-item h6 { margin-bottom: 4px; }
.notice-item p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0; }
.badge-important { background: var(--red); color: #fff; font-size: 0.65rem; padding: 3px 9px; border-radius: 50px; margin-left: 8px; vertical-align: middle; }

/* ---------------- Recognition strip ---------------- */
.recognition-strip { background: var(--bg-soft); }
.recognition-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  height: 100%;
}
.recognition-item i { font-size: 1.8rem; color: var(--red); margin-bottom: 10px; }
.recognition-item h6 { font-size: 0.9rem; margin-bottom: 4px; }
.recognition-item small { color: var(--muted); }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  height: 100%;
}
.testimonial-card i.quote { color: var(--gold); font-size: 1.8rem; }
.testimonial-card p { color: var(--ink); font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Poppins', sans-serif;
}
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.78rem; color: var(--muted); }

/* ---------------- Gallery ---------------- */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(16,28,77,0.85), transparent);
  color: #fff; padding: 30px 14px 12px; font-size: 0.85rem; font-weight: 600;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff;
  padding: 42px 0;
}
.cta-band h3 { color: #fff; margin-bottom: 4px; }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-dark); color: #b9c1e0; padding: 60px 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; }
.footer-brand img { height: 50px; width: 50px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer p { font-size: 0.88rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: #b9c1e0; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.88rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 3px; }
.footer-contact a { color: #b9c1e0; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--red); }
.site-footer hr { border-color: rgba(255,255,255,0.1); margin: 36px 0 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }

/* ---------------- Floating buttons ---------------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 24px rgba(37,211,102,0.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.back-to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.back-to-top.show { display: flex; }

/* ---------------- Inner page hero ---------------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 58px 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(224,168,60,0.18), transparent 45%);
}
.page-hero h1 { color: #fff; position: relative; z-index: 1; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero .breadcrumb { position: relative; z-index: 1; margin-bottom: 10px; }
.page-hero .breadcrumb a { color: #cfd6ee; }
.page-hero .breadcrumb .active { color: var(--gold); }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 11px 14px;
  font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,28,77,0.12);
}
label { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card i { color: var(--red); }

/* ---------------- Generic content blocks ---------------- */
.content-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 30px; }
.list-check { list-style: none; padding: 0; }
.list-check li { display: flex; gap: 10px; margin-bottom: 12px; }
.list-check i { color: #1fa971; margin-top: 3px; }

.table-compliance th { background: var(--bg-soft); color: var(--navy); font-size: 0.85rem; }
.table-compliance td, .table-compliance th { padding: 14px; vertical-align: middle; }

.faculty-card { text-align: center; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 20px; height: 100%; }
.faculty-photo {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-family: 'Poppins', sans-serif; font-weight: 700;
  overflow: hidden;
}
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h6 { margin-bottom: 2px; }
.faculty-card .role { color: var(--red); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.faculty-card .meta { color: var(--muted); font-size: 0.82rem; }

.alert-flash { border-radius: 12px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--border-soft); margin-bottom: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: all .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
