/* ===== UIBS Custom Styles — Bootstrap 4.6.2 Overrides ===== */

/* ---------- Root Variables ---------- */
:root {
  --purple-dark: #441240;
  --purple-mid: #4E1374;
  --red: #CB2D3E;
  --orange: #F26A42;
  --teal: #263844;
  --cream: #F2E6D8;
  --blue: #32A3FF;
  --yellow: #FFE955;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-mid: #6b7280;
  --gray-dark: #1f2937;
  --grad-red-orange: linear-gradient(135deg, #CB2D3E, #F26A42);
  --grad-purple: linear-gradient(135deg, #441240, #4E1374);
}

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  margin: 0;
}
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--purple-dark); }
p { color: var(--gray-mid); line-height: 1.7; }
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 10px; font-size: 2rem; font-weight: 800; }
.section-subtitle { text-align: center; color: var(--gray-mid); margin-bottom: 40px; }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--grad-red-orange);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: default;
}

/* ---------- Images ---------- */
.logo-img { height: 56px; width: auto; display: block; max-width: 320px; object-fit: contain; }
.section-image {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  display: block;
}
.section-image.small { height: 150px; object-fit: cover; object-position: center; }
.section-image.face-top { object-position: center 0%; }
.hero-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: block;
}
.pedagogy-hero-img { width: 100%; max-width: 700px; height: 320px; object-fit: cover; object-position: center; }
.institution-logo {
  width: 50px; height: 50px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.footer-logo { height: 60px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 8px; }
.group-logos-row {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px;
  margin-top: 20px;
  text-align: center;
}
.group-logos-label {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.group-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.group-logos img {
  height: 60px;
  width: auto;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  object-fit: contain;
}

/* ---------- Header ---------- */
.navbar-uibs {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  padding: 10px 0;
  transition: box-shadow .3s;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
.navbar-uibs.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.navbar-uibs .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--purple-dark) !important;
}
.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  color: var(--gray-dark);
  margin-left: 10px;
}

/* ---------- Hero ---------- */
.hero-section {
  background: var(--purple-dark);
  padding: 120px 0 70px;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Hero photo — fully visible, anchored to top so building/sky stay in frame */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/uibs7.jpg') center top / cover no-repeat;
  z-index: -2;
}
/* Subtle dark gradient at bottom for text legibility only */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-section h1 {
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1.3;
  font-weight: 800;
}
.hero-section h1 .text-orange { color: var(--orange); }
.hero-section .lead { font-size: 1.1rem; color: rgba(255,255,255,.8); }
.hero-tagline { color: var(--orange); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--gray-dark);
  font-size: .85rem;
  padding: 6px 16px;
  margin: 4px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---------- Form Card (Meritto Placeholder) ---------- */
.form-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  padding: 30px;
  border-top: 4px solid var(--orange);
}
.form-card h3 { color: var(--red); font-size: 1.4rem; text-align: center; margin-bottom: 8px; }

/* ---------- Trust Banner ---------- */
.trust-banner {
  background: var(--grad-purple);
  color: var(--white);
  padding: 20px 0;
}
.trust-item { text-align: center; padding: 10px; }
.trust-item h4 { font-size: .95rem; color: var(--white); font-weight: 500; margin-top: 4px; }
.trust-item .icon { font-size: 1.6rem; }

/* ---------- Vision & Mission ---------- */
.vision-section { background: var(--cream); }
.vision-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.mission-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--grad-red-orange);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.mission-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.mission-item p { margin: 0; font-size: .9rem; }

/* ---------- Stats ---------- */
.stats-section { background: var(--white); padding: 50px 0; }
.stat-box {
  text-align: center;
  padding: 30px 15px;
  background: var(--gray-light);
  border-radius: 14px;
}
.stat-box .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--purple-dark);
}
.stat-box .stat-label {
  font-size: .9rem;
  color: var(--gray-mid);
  margin-top: 5px;
}

/* ---------- Why Choose UIBS ---------- */
.why-section { background: var(--teal); padding: 70px 0; }
.why-section .section-title,
.why-section .section-subtitle { color: var(--white); }
.why-section .section-subtitle { opacity: .7; }
.feature-card {
  background: var(--white);
  border-radius: 14px;
  padding: 25px 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
  border-top: 4px solid var(--orange);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.feature-card .icon-circle {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--purple-dark);
}
.feature-card h5 { color: var(--purple-dark); font-size: 1rem; }
.feature-card p { font-size: .9rem; }

/* ---------- Campus & Institutions ---------- */
.campus-section { background: var(--cream); }
.campus-placeholder {
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}
.campus-placeholder.large { height: 220px; background: var(--grad-purple); }
.campus-placeholder.small { height: 130px; border-radius: 12px; }
.campus-placeholder.small-teal { background: linear-gradient(135deg, var(--teal), var(--purple-dark)); }
.campus-placeholder.small-orange { background: linear-gradient(135deg, var(--orange), var(--red)); }
.institution-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-left: 4px solid var(--blue);
  margin-bottom: 12px;
}
.institution-card h5 { font-size: .95rem; color: var(--purple-dark); margin-bottom: 4px; }
.institution-card p { font-size: .85rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--teal); padding: 70px 0; }
.testimonials-section .section-title { color: var(--white); }
.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.testimonial-stars { color: var(--yellow); font-size: 1.5rem; margin-bottom: 12px; }
.testimonial-text { font-style: italic; font-size: 1.05rem; color: var(--gray-mid); line-height: 1.8; }
.testimonial-name { font-weight: 700; color: var(--purple-dark); margin-top: 16px; }
.testimonial-program { font-size: .85rem; color: var(--gray-mid); }
.testimonial-dots { text-align: center; margin-top: 18px; }
.testimonial-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  margin: 0 5px;
  cursor: pointer;
  border: none;
  transition: background .3s;
}
.testimonial-dot.active { background: var(--orange); }
.testimonial-arrows {
  display: flex;
  justify-content: space-between;
  max-width: 650px;
  margin: 10px auto 0;
}
.testimonial-arrow {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .3s;
}
.testimonial-arrow:hover { color: var(--orange); }

/* ---------- Programs ---------- */
.programs-section { background: var(--white); }
.program-level-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 8px;
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  margin-right: 8px;
}
.program-level-badge.ug { background: var(--grad-red-orange); }
.program-level-badge.pg { background: var(--grad-purple); }
.program-item {
  background: var(--gray-light);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: border-color .3s;
  height: 100%;
}
.program-item:hover { border-color: var(--blue); }
.program-item h5 { color: var(--purple-dark); margin-bottom: 5px; font-size: 1rem; }
.program-item .dur-badge {
  background: rgba(255,233,85,.8);
  color: var(--gray-dark);
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.program-item .dur-badge.pg-badge {
  background: rgba(50,163,255,.15);
  color: var(--blue);
}
.program-item p { font-size: .85rem; }

/* ---------- Teaching Pedagogy ---------- */
.pedagogy-section { background: var(--cream); }
.pedagogy-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 4px solid var(--orange);
  height: 100%;
  transition: box-shadow .3s;
}
.pedagogy-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.pedagogy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--grad-red-orange);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: .75rem;
  flex-shrink: 0;
}
.pedagogy-card h5 { font-size: .9rem; color: var(--purple-dark); margin-bottom: 2px; }
.pedagogy-card p { font-size: .8rem; margin: 0; }

/* ---------- Clubs ---------- */
.clubs-section { background: var(--white); }
.club-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(68,18,64,.08), rgba(242,106,66,.08));
  color: var(--purple-dark);
  padding: 10px 20px;
  border-radius: 25px;
  margin: 6px;
  font-weight: 500;
  font-size: .9rem;
  border: 1px solid rgba(68,18,64,.15);
  transition: all .3s;
}
.club-badge:hover { background: var(--purple-dark); color: var(--white); }

/* ---------- Admission Process ---------- */
.admission-section {
  background: var(--grad-purple);
  color: var(--white);
  padding: 70px 0;
}
.admission-section .section-title { color: var(--white); }
.step-circle {
  width: 60px; height: 60px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 12px;
}
.step-title { color: var(--white); font-weight: 700; font-size: .95rem; }
.step-desc { color: rgba(255,255,255,.7); font-size: .8rem; }
.admission-note {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 20px;
  max-width: 650px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--white);
  font-size: .9rem;
}

/* ---------- Comparison Table ---------- */
.comparison-section { background: var(--white); }
.comparison-table { border-radius: 12px; overflow: hidden; }
.comparison-table thead th {
  background: var(--grad-purple); background: var(--purple-dark);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 14px;
}
.comparison-table thead th:first-child { border-radius: 12px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 12px 0 0; }
.comparison-table td { padding: 12px 14px; vertical-align: middle; font-size: .9rem; }
.comparison-table tbody tr:nth-child(even) { background: var(--gray-light); }
.check-icon { color: #16a34a; font-size: 1.1rem; }
.cross-icon { color: var(--red); font-size: 1.1rem; }
/* Mobile comparison cards */
.comparison-card {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}
.comparison-card h6 { color: var(--purple-dark); font-size: .9rem; margin-bottom: 6px; }

/* ---------- Our Values ---------- */
.values-section { background: var(--purple-dark); padding: 70px 0; }
.values-section .section-title { color: var(--white); }
.value-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  transition: background .3s;
}
.value-card:hover { background: rgba(255,255,255,.15); }
.value-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--grad-red-orange);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 10px;
  margin-right: 10px;
  flex-shrink: 0;
}
.value-card h5 { color: var(--white); font-size: 1rem; margin: 0; }
.value-card p { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: 8px; margin-bottom: 0; }

/* ---------- Quick Facts Strip ---------- */
.quick-facts-strip {
  background: var(--grad-red-orange);
  padding: 18px 0;
}
.quick-fact-pill {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 25px;
  margin: 4px;
  font-size: .85rem;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--cream); }
.faq-section .card { border: 1px solid #e5e7eb; border-radius: 10px !important; margin-bottom: 10px; overflow: hidden; }
.faq-section .card-header {
  background: var(--white);
  border-bottom: none;
  padding: 0;
}
.faq-section .card-header .btn {
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: var(--purple-dark);
  padding: 15px 20px;
  font-size: .95rem;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-section .card-header .btn:hover { color: var(--orange); }
.faq-section .card-header .btn.collapsed { color: var(--gray-dark); }
.faq-section .card-body { padding: 0 20px 20px; color: var(--gray-mid); font-size: .9rem; }
.faq-toggle { font-size: 1.2rem; flex-shrink: 0; margin-left: 10px; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--grad-purple);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); font-weight: 800; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.1rem; }

/* ---------- Need Help / Contact ---------- */
.contact-section { background: var(--cream); }
.contact-card {
  background: var(--white);
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
  height: 100%;
  transition: box-shadow .3s;
}
.contact-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.contact-card .contact-icon { font-size: 2.5rem; color: var(--purple-dark); margin-bottom: 10px; }
.contact-card h5 { color: var(--purple-dark); }
.contact-card p { font-size: .9rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,.75);
  padding: 40px 0 20px;
}
.footer h5 { color: var(--white); font-size: 1rem; margin-bottom: 15px; }
.footer p { color: rgba(255,255,255,.7); font-size: .85rem; line-height: 1.8; }
.footer-social-icon {
  font-size: 1.3rem;
  margin-right: 12px;
  color: rgba(255,255,255,.7);
  transition: color .3s;
  cursor: default;
}
.footer-social-icon:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-section { padding: 80px 0 30px; min-height: 0; }
  .hero-section::after { background-position: center center; background-size: cover; }
  .hero-section h1 { font-size: 1.5rem; }
  section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .stat-box .stat-number { font-size: 2rem; }
  .form-card { margin-top: 30px; }
  .navbar-uibs .navbar-brand { font-size: 1.2rem; }
  .header-pill { display: none; }
  .campus-placeholder.large { height: 160px; }
  .campus-placeholder.small { height: 100px; }
  .section-image { height: 220px; }
  .section-image.small { height: 110px; }
  .hero-image { height: 200px; }
  .pedagogy-hero-img { height: 220px; }
  .logo-img { height: 44px; max-width: 240px; }
  .institution-logo { width: 42px; height: 42px; }
  .footer-logo { height: 48px; }
  .group-logos img { height: 44px; }
  .comparison-desktop { display: none !important; }
  .comparison-mobile { display: block !important; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .section-image { height: 280px; }
  .hero-image { height: 240px; }
}
@media (min-width: 769px) {
  .comparison-mobile { display: none !important; }
}
