@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&amp;display=swap');

:root {
  --primary: #8e0501;
  /* Indigo */
  --primary-hover: #8e0501;
  --secondary: #10b981;
  /* Emerald */
  --accent: #350660;
  /* Amber */
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f3f4f6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--text-dark);
  background-color: var(--bg-light);
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
}

.text-primary {
  color: var(--primary) !important;
}

/* .bg-primary {
  background: var(--primary) !important;
} */

.btn-primary {
  background: var(--primary) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(67, 56, 202, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.6);
}

.btn-success {
  background: linear-gradient(135deg, var(--secondary), #059669);
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 45px !important;
  }

  .navbar-brand span {
    font-size: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand span {
    font-size: 14px !important;
  }

  .navbar-brand img {
    height: 35px !important;
  }

  .navbar-brand {
    font-size: 1rem !important;
    gap: 4px;
    display: flex !important;
    align-items: center !important;
  }

  .navbar-brand .d-flex.flex-column {
    justify-content: center;
  }
}

/* Base Navbar */
.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--primary) !important;
  max-width: 80%;
  overflow: hidden;
}

.nav-link {
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Removed dark overlay from hero section */

/* Cards & Statistics */
.card,
.border.rounded,
.stat-box {
  border: none !important;
  background: var(--white);
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover,
.border.rounded:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Make images look modern */
img.rounded-3,
img.rounded {
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

img.rounded-3:hover,
img.rounded:hover {
  transform: scale(1.02);
}

/* Form Styling */
.form-control,
.form-select {
  border: 2px solid transparent;
  background: #f9fafb;
  border-radius: 12px !important;
  padding: 12px 20px;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus,
.form-select:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.1);
}

/* ── Base Responsive Fixes ─────────────────────────────────── */

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 50px !important;
  }

  .navbar-brand span {
    font-size: 16px !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section h2 br {
    display: none;
  }

  .hero-section h2 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero-section p {
    font-size: 0.95rem !important;
  }

  .section-h {
    font-size: 1.75rem !important;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .card {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand span:last-child {
    font-size: 14px !important;
  }

  .navbar-brand img {
    height: 40px !important;
  }

  .hero-section .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Accordion */
.accordion-item {
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-weight: 600;
  padding: 20px;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(67, 56, 202, 0.05);
}

/* Gallery Section */
.carousel-inner {
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Vertical WhatsApp / Phone */
.vertical-number {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  padding: 15px 10px;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: -5px 0 20px rgba(67, 56, 202, 0.3);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vertical-number:hover {
  background: var(--primary-hover);
  transform: translateY(-50%) scale(1.1);
  width: 50px;
  color: white;
}

.vertical-number i {
  transform: rotate(90deg);
  margin-bottom: 20px;
}

/* Mobile Fix for Sticky Side Number */
@media (max-width: 768px) {
  .vertical-number {
    padding: 10px 4px !important;
    font-size: 9px !important;
    letter-spacing: 0.5px;
    border-radius: 8px 0 0 8px !important;
    right: 0 !important;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999999 !important;
    /* Ensure it stays on top */
  }

  .vertical-number i {
    margin-bottom: 10px !important;
    font-size: 14px !important;
  }

  .vertical-number span {
    white-space: nowrap;
    display: inline-block;
  }

  .vertical-number:hover {
    transform: translateY(-50%) scale(1);
    width: auto;
  }
}

/* Custom Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.stu-sa {
  height: auto;
  min-height: 280px;
  padding: 30px !important;
  border-bottom: 4px solid var(--primary);
}

.stu-sa:hover {
  animation: float 3s ease-in-out infinite;
}

/* Why Choose Us Animated Cards - Bubble Fill */
.why-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(67, 56, 202, 0.05);
  height: 100%;
}

.why-card::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  z-index: -1;
  transition: transform 0.6s ease-in-out;
  opacity: 0.1;
}

.why-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(67, 56, 202, 0.15);
}

.why-card:hover::before {
  transform: scale(25);
  opacity: 1;
}

.why-card h5,
.why-card p,
.why-card .why-icon-box {
  transition: all 0.4s ease;
}

.why-card:hover h5,
.why-card:hover p {
  color: #ffffff !important;
}

.why-icon-box {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 56, 202, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 30px;
  margin-bottom: 25px;
  transform: rotate(-5deg);
}

.why-card:hover .why-icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: rotate(0deg);
}

/* Mobile Sidebar Fix */
@media only screen and (max-width: 992px) {
  .st-collapse {
    position: absolute;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    width: 100%;
    top: 100%;
    left: 0;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }
}

/* Logo Slider Aesthetics */
.institution-slider {
  background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
  padding: 70px 0;
}

.institute-heading {
  color: #0f3d8a;
  font-size: 2.2rem;
  font-weight: 700;
}

.institute-divider {
  height: 3px;
  width: 60px;
  background-color: var(--primary);
  margin: 15px auto 20px auto;
}

.logo-slider .item {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-slider .item:hover {
  transform: translateY(-5px);
}

/* Institution Logo Wrap - Image 1 Style */
.inst-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 18px 24px; */
  /* height: 120px; */
  background: rgba(255, 255, 255, 0.75);
  /* border-radius: 16px; */
  /* border: 1px solid rgba(255, 255, 255, 0.9); */
  /* box-shadow: 0 4px 20px rgba(14, 45, 110, 0.06); */
  margin: 8px 6px;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
}

.inst-logo-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(14, 45, 110, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.inst-logo-wrap img {
  max-height: 75px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.inst-logo-wrap:hover img {
  transform: scale(1.05);
}


/* Modern Bento Gallery */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 61, 138, 0.85), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text p {
  color: white;
  font-weight: 600;
  margin: 0;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-text p {
  transform: translateY(0);
}

/* Bento Grid Asymmetry - 12 Blocks total */
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(3) {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item:nth-child(6) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:nth-child(7) {
  grid-column: span 1;
  grid-row: span 1;
}

@media (max-width: 992px) {
  .modern-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .modern-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

.client-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.college-card {
  background: #ffffff;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin: 15px 5px;
  height: 100% !important;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.college-card .img-container {
  position: relative;
  height: 280px !important;
  overflow: hidden;
  background-color: #f8fafc;
  flex-shrink: 0;
}

.college-card .card-body {
  padding: 24px !important;
  text-align: center;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.college-card h6 {
  font-size: 1.1rem;
  color: #1f2937 !important;
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.5;
  min-height: auto;
}

.badge-ranked {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #2563eb;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.college-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.college-card:hover .client-logo {
  transform: scale(1.08);
}

.trust-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(67, 56, 202, 0.08) !important;
}

/* Premium Footer Styles */
.footer-link {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--bs-primary) !important;
  transform: translateX(4px);
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-social-btn:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary) !important;
  color: white !important;
  transform: translateY(-3px);
}

.logo-slider .owl-dots {
  margin-top: 40px !important;
}

.logo-slider .owl-dots .owl-dot span {
  background: #cbd5e1 !important;
}

.logo-slider .owl-dots .owl-dot.active span {
  background: #3b82f6 !important;
}

/* Custom Accordion FAQ */
.custom-accordion .accordion-item {
  border: none;
  border-radius: 16px !important;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  background-color: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.custom-accordion .accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.custom-accordion .accordion-button {
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
  font-size: 1.05rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: #ffffff;
  color: #1f2937;
  box-shadow: none;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border: 1px solid rgba(254, 226, 226, 0.5);
}

.custom-accordion .accordion-button::after {
  display: none;
  /* Hide default chevron */
}

.custom-accordion .accordion-button .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) .icon-box {
  background-color: #fee2e2;
  color: #ef4444;
}

.custom-accordion .accordion-button .icon-box .bi-x {
  display: none;
}

.custom-accordion .accordion-button:not(.collapsed) .icon-box .bi-plus {
  display: none;
}

.custom-accordion .accordion-button:not(.collapsed) .icon-box .bi-x {
  display: block;
}

.custom-accordion .accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  background-color: #ffffff;
  border-top: none;
}


/* new css st */
.bg-primary{
  background-color: #8e0501 !important;
}