/* ============================================================
   KNOWLEDGE PHARMACY ACADEMY — CUSTOM STYLESHEET
   Colors from Logo: Red #c0392b | Navy #1a237e | Gold #f4b942
   ============================================================ */

:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --primary-light: #e74c3c;
  --secondary: #1a237e;
  --secondary-dark: #0d1358;
  --secondary-light: #3949ab;
  --accent: #f4b942;
  --accent-dark: #d4a017;
  --green: #2e7d32;
  --green-light: #43a047;
  --purple: #6a1b9a;
  --teal: #00695c;
  --orange: #e65100;
  --white: #ffffff;
  --light: #f8fafc;
  --light-warm: #fef5f5;
  --dark: #12163a;
  --text: #2c2c3e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.18);
  --tr: all 0.3s ease;
  --tr-slow: all 0.5s ease;
}

/* ---- GLOBAL ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  transition: var(--tr);
}
img {
  max-width: 100%;
}
section {
  position: relative;
  overflow: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNavbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
  transition: var(--tr);
  z-index: 1030;
}
#mainNavbar.scrolled {
  padding: 0.3rem 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}
.navbar-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--primary);
  padding: 2px;
  transition: var(--tr);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.3px;
}
.brand-tagline {
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 500;
}
.nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text) !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  position: relative;
  transition: var(--tr);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--tr);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.btn-enquire {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
  transition: var(--tr);
}
.btn-enquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
  color: var(--white) !important;
}
.navbar-toggler {
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c0392b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding-top: 0;
}
.carousel-item {
  position: relative;
}
.hero-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Slide Backgrounds */
.hero-slide-1 {
  background: url('../images/banner-1.jpg') center center / cover no-repeat;
}
.hero-slide-2 {
  background: url('../images/banner-2.jpg') center center / cover no-repeat;
}
.hero-slide-3 {
  background: url('../images/banner-3.jpg') center center / cover no-repeat;
}

/* Decorative background pattern per slide */
.hero-medical-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.slide1-bg::before,
.slide1-bg::after,
.slide2-bg::before,
.slide2-bg::after,
.slide3-bg::before,
.slide3-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}
.slide1-bg::before {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #64b5f6, transparent);
}
.slide1-bg::after {
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, #b0bec5, transparent);
}
.slide2-bg::before {
  width: 550px;
  height: 550px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, #ef9a9a, transparent);
}
.slide2-bg::after {
  width: 400px;
  height: 400px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, #ffcc80, transparent);
}
.slide3-bg::before {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #a5d6a7, transparent);
}
.slide3-bg::after {
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, #80cbc4, transparent);
}

/* Cross pattern overlay */
.hero-medical-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 60px;
}

/* Hero Text */
.hero-text {
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.hero-badge-gold {
  background: rgba(244, 185, 66, 0.2);
  border-color: rgba(244, 185, 66, 0.5);
  color: var(--accent);
}
.hero-badge-green {
  background: rgba(67, 160, 71, 0.2);
  border-color: rgba(67, 160, 71, 0.5);
  color: #a5d6a7;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.text-highlight {
  color: var(--accent);
}
.text-highlight-gold {
  color: var(--accent);
}
.text-highlight-green {
  color: #a5d6a7;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(244, 185, 66, 0.4);
  transition: var(--tr);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(244, 185, 66, 0.5);
  color: var(--dark);
}
.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--tr);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-hero-green {
  background: var(--green-light);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
  transition: var(--tr);
}
.btn-hero-green:hover {
  transform: translateY(-3px);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(46, 125, 50, 0.5);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Features List */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-feat {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.hero-feat i {
  color: var(--accent);
}

/* Hero Course Tags */
.hero-courses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.course-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Hero Visual (right side decoration) */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-main-icon {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: pulse-ring 3s ease-in-out infinite;
  z-index: 2;
}
.gold-icon {
  background: rgba(244, 185, 66, 0.15);
  border-color: rgba(244, 185, 66, 0.4);
}

.hero-circle-1,
.hero-circle-2,
.hero-circle-3 {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}
.hero-circle-1 {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
  top: 30px;
  left: 20px;
  animation-delay: 0s;
}
.hero-circle-2 {
  width: 90px;
  height: 90px;
  font-size: 2rem;
  bottom: 40px;
  left: 10px;
  animation-delay: 0.8s;
}
.hero-circle-3 {
  width: 75px;
  height: 75px;
  font-size: 1.6rem;
  top: 60px;
  right: 10px;
  animation-delay: 1.5s;
}

/* Hero floating badges (slide 2) */
.hero-badge-floating {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 3.5s ease-in-out infinite;
}
.badge1 {
  top: 60px;
  left: 0;
  animation-delay: 0s;
}
.badge2 {
  bottom: 80px;
  left: 20px;
  animation-delay: 0.6s;
}
.badge3 {
  top: 100px;
  right: 0;
  animation-delay: 1.2s;
}

/* Admission Card (slide 3) */
.admission-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: float 4s ease-in-out infinite;
}
.admission-card-header {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 700;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.admission-card-body {
  padding: 1.25rem 1.5rem;
}
.admission-course {
  color: var(--white);
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.admission-course:last-child {
  border-bottom: none;
}
.admission-card-footer {
  background: var(--accent);
  color: var(--dark);
  text-align: center;
  font-weight: 700;
  padding: 0.75rem;
  font-size: 0.85rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0 1rem;
  opacity: 1;
  transition: var(--tr);
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 18px;
  height: 18px;
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
  transition: var(--tr);
}
.carousel-indicators .active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--light-warm);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(192, 57, 43, 0.15);
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.text-primary-custom {
  color: var(--primary) !important;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
}
.section-header .section-desc {
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--light);
}

/* About image wrapper */
.about-image-wrapper {
  position: relative;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-img-bg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: url('../images/about-side-img.jpg') center center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.about-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.about-center-logo {
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.4);
  padding: 8px;
}
.about-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.about-img-icons {
  display: flex;
  gap: 1.2rem;
}
.about-icon-bubble {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: var(--tr);
}
.about-icon-bubble:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}
.ib1 i {
  color: var(--accent);
}
.ib2 i {
  color: #ef9a9a;
}
.ib3 i {
  color: #a5d6a7;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
}
.exp-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.exp-text {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

/* About Content */
.about-content {
  padding-left: 1rem;
}
.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--tr);
}
.about-feature-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.1);
  transform: translateX(4px);
}
.feature-icon-sm {
  width: 32px;
  height: 32px;
  background: var(--light-warm);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
  transition: var(--tr);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
  color: var(--white);
}
.btn-outline-primary-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--tr);
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-call {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 0.55rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--tr);
}
.btn-outline-call:hover {
  background: var(--secondary);
  color: var(--white);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--tr);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: translateY(-2px);
}

/* Counters */
.counter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.counter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.counter-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.counter-icon {
  width: 50px;
  height: 50px;
  background: var(--light-warm);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.75rem;
}
.counter-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: inline;
}
.counter-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: inline;
}
.counter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ============================================================
   COURSES SECTION
   ============================================================ */
.courses-section {
  background: var(--white);
}

.course-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--tr-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Course Image Area */
.course-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-img-pharma {
  background: linear-gradient(135deg, #1a237e, #283593, #1565c0);
}
.course-img-bpharma {
  background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
}
.course-img-nursing {
  background: linear-gradient(135deg, #880e4f, #ad1457, #e91e63);
}
.course-img-physio {
  background: linear-gradient(135deg, #bf360c, #d84315, #e64a19);
}

.course-img-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.25);
  z-index: 1;
  transition: var(--tr-slow);
}
.course-card:hover .course-img-icon {
  color: rgba(255, 255, 255, 0.45);
  transform: scale(1.1) rotate(5deg);
}
.course-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
.course-img-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Course Body */
.course-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.course-badge {
  display: inline-block;
  background: var(--light-warm);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.course-badge-navy {
  background: #e8eaf6;
  color: var(--secondary);
}
.course-badge-green {
  background: #e8f5e9;
  color: var(--green);
}
.course-badge-orange {
  background: #fbe9e7;
  color: var(--orange);
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}
.course-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.9rem;
}
.course-features {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.course-features span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.course-features i {
  color: var(--green);
}
.course-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-call-sm {
  flex: 1;
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  padding: 0.45rem 0.5rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--tr);
  text-align: center;
}
.btn-call-sm:hover {
  background: var(--secondary);
  color: var(--white);
}
.btn-enquire-sm {
  flex: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  padding: 0.45rem 0.5rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--tr);
  text-align: center;
}
.btn-enquire-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
  color: var(--white);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  background: linear-gradient(135deg, #f8fafc 0%, #fef5f5 100%);
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--tr-slow);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--tr);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.why-card:hover::after {
  transform: scaleX(1);
}
.why-icon {
  width: 70px;
  height: 70px;
  background: var(--light-warm);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1.25rem;
  transition: var(--tr);
}
.why-card:hover .why-icon {
  transform: scale(1.1) rotate(-5deg);
}
.why-icon-navy {
  background: #e8eaf6;
  color: var(--secondary);
}
.why-icon-green {
  background: #e8f5e9;
  color: var(--green);
}
.why-icon-gold {
  background: #fff8e1;
  color: var(--accent-dark);
}
.why-icon-purple {
  background: #f3e5f5;
  color: var(--purple);
}
.why-icon-teal {
  background: #e0f2f1;
  color: var(--teal);
}
.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.65rem;
}
.why-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   BRANCHES
   ============================================================ */
.branches-section {
  background: var(--secondary);
}
.branches-section .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
}
.branches-section .section-title {
  color: var(--white);
}
.branches-section .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.branch-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--tr-slow);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.branch-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}
.branch-card-featured {
  background: rgba(192, 57, 43, 0.2);
  border-color: rgba(192, 57, 43, 0.4);
}
.branch-card-featured:hover {
  background: rgba(192, 57, 43, 0.3);
}

.branch-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  position: absolute;
  top: 10px;
  right: 15px;
}
.branch-icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition: var(--tr);
}
.branch-card:hover .branch-icon-wrapper {
  transform: scale(1.1);
}
.branch-icon-1 {
  background: rgba(244, 185, 66, 0.2);
  color: var(--accent);
  border: 1px solid rgba(244, 185, 66, 0.4);
}
.branch-icon-2 {
  background: rgba(192, 57, 43, 0.2);
  color: #ef9a9a;
  border: 1px solid rgba(192, 57, 43, 0.4);
}
.branch-icon-3 {
  background: rgba(67, 160, 71, 0.2);
  color: #a5d6a7;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.branch-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.branch-addr {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.branch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.branch-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-branch-call {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--tr);
}
.btn-branch-call:hover {
  background: var(--accent-dark);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--light);
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--tr);
}
.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.1);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--light-warm);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-icon-navy {
  background: #e8eaf6;
  color: var(--secondary);
}
.contact-info-icon-green {
  background: #e8f5e9;
  color: var(--green);
}
.contact-info-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.contact-info-val {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
a.contact-info-val:hover {
  color: var(--primary);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--light-warm);
}
.custom-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  transition: var(--tr);
  background: var(--light);
}
.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
  background: var(--white);
}
.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* ============================================================
   ENQUIRY MODAL
   ============================================================ */
.enquiry-modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.enquiry-modal-header {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  padding: 1.25rem 1.5rem;
  border-bottom: none;
}
.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.modal-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  object-fit: contain;
  background: white;
  padding: 2px;
}
.modal-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.modal-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}
.enquiry-modal-body {
  padding: 1.5rem;
  background: var(--white);
}
.enquiry-modal-body .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.enquiry-modal-body .form-control,
.enquiry-modal-body .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  transition: var(--tr);
}
.enquiry-modal-body .form-control:focus,
.enquiry-modal-body .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* ============================================================
   COPYRIGHT BAR (simplified footer)
   ============================================================ */
.copyright-bar {
  background: var(--dark);
  padding: 1rem 0;
  text-align: center;
}
.copyright-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Large map wrapper for contact section */
.map-wrapper-lg {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 370px;
}
.map-wrapper-lg iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 370px;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */

/* Floating Call Now Button */
.float-call-btn {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(192, 57, 43, 0.4);
  z-index: 998;
  text-decoration: none;
  transition: var(--tr);
}
.float-call-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(192, 57, 43, 0.5);
  color: var(--white);
}
.float-call-tooltip {
  position: absolute;
  right: 52px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--tr);
}
.float-call-btn:hover .float-call-tooltip {
  opacity: 1;
}

/* Enquire Now Side Tab */
.enquire-tab {
  position: fixed;
  right: -72px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  z-index: 998;
  box-shadow: -4px 0 20px rgba(192, 57, 43, 0.4);
  transition: var(--tr);
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: slide-tab 1s ease forwards 0.5s;
  border: none;
  outline: none;
}
.enquire-tab:hover {
  background: linear-gradient(135deg, var(--primary-dark), #7b1f14);
  right: -62px;
}
@keyframes slide-tab {
  to {
    right: -52px;
  }
}

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 998;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--tr);
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes pulse-ring {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.15),
      0 8px 32px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 15px rgba(255, 255, 255, 0.04),
      0 8px 32px rgba(0, 0, 0, 0.2);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Active slide animation */
.carousel-item.active .hero-text {
  animation: fadeInUp 0.7s ease forwards;
}

/* Success Toast */
.toast-success {
  position: fixed;
  top: 90px;
  right: 20px;
  background: var(--green);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast-success.show {
  transform: translateX(0);
}

/* ============================================================
   CTA BANNER (inside Why Choose Us)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  top: -150px;
  right: -100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.cta-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .about-image-wrapper {
    height: 360px;
    margin-bottom: 3rem;
  }
  .experience-badge {
    bottom: -15px;
    right: 10px;
  }
  .about-content {
    padding-left: 0;
    margin-top: 2.5rem;
  }
  /* .enquire-tab { display: none; } */
}
@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  .hero-content {
    padding: 100px 16px 50px;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-desc {
    font-size: 0.92rem;
  }
  .hero-btns .btn-hero-primary,
  .hero-btns .btn-hero-outline,
  .hero-btns .btn-hero-green {
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .about-img-icons {
    flex-wrap: wrap;
  }
  .hero-stats {
    gap: 1rem;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
  }
}
@media (max-width: 575.98px) {
  .hero-content {
    padding: 95px 20px 45px;
  }
  .brand-name {
    font-size: 0.82rem;
  }
  .brand-tagline {
    font-size: 0.62rem;
  }
  .navbar-logo {
    height: 44px;
    width: 44px;
  }
  .hero-stats {
    display: none;
  }
  .stat-divider {
    display: none;
  }
  .course-actions {
    flex-direction: column;
  }
}
