/* Modern Homepage CSS for Dr Academy India */

:root {
  --primary-color: #11b19f;
  --secondary-color: #f79430;
  --dark-color: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero Slider Overlays & Captions */
.hmslide .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hmslide .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(5, 10, 25, 0.8) 0%, rgba(5, 10, 25, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next,
.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  width: 50px;
  height: 50px;
  text-align: center;
}

.swiper-button-prev:after,
.swiper-container-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-container-rtl .swiper-button-prev:after {
  font-size: 18px;
}

.slider-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 10;
  color: #fff;
  max-width: 650px;
}

.slider-caption .slider-pre-title {
  font-size: 20px;
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease backwards;
}

.slider-caption .slider-title {
  color: #fff;
  font-size: 56px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.2s backwards;
}

.slider-caption .slider-text {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1.2s ease 0.4s backwards;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

/* Make sure text animates when slide is active */
.swiper-slide-active .slider-pre-title,
.swiper-slide-active .slider-title,
.swiper-slide-active .slider-text {
  animation-play-state: running;
}

.swiper-slide:not(.swiper-slide-active) .slider-caption * {
  animation: none;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .slider-caption .slider-title {
    font-size: 40px;
  }

  .slider-caption .slider-text {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .slider-caption {
    left: 5%;
    right: 5%;
    text-align: center;
  }

  .hmslide .swiper-slide::after {
    background: rgba(5, 10, 25, 0.7);
  }

  .slider-caption .slider-title {
    font-size: 32px;
  }

  .slider-caption .slider-title br {
    display: none;
  }

  .slider-caption .slider-text {
    border-left: none;
    padding-left: 0;
    margin-top: 15px;
  }
}

/* Ticker Section - Glassmorphism */
.ticker-section-wrapper {
  background: var(--primary-color);
  background: linear-gradient(90deg, var(--primary-color) 0%, rgba(17, 177, 159, 0.8) 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  /* pull up over slider */
  /* border-radius: 0 0 12px 12px; */
}

.ticker-heading {
  background: var(--secondary-color);
  border-radius: 0 20px 20px 0;
  box-shadow: 2px 0 10px rgba(247, 148, 48, 0.4);
  position: absolute;
  display: flex;
  align-items: center;
  left: 0;
  top: 0;
  height: 3.5rem;
  padding: 0 30px;
  z-index: 12;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}

.ticker-heading::after {
  display: none;
}

/* hide old triangle */

.ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 3.5rem;
  box-sizing: border-box;
}

.ticker {
  display: inline-flex;
  height: 3.5rem;
  align-items: center;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  padding-left: 100%;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  position: relative;
}

.ticker__item::before {
  content: "•";
  margin-right: 8px;
  color: var(--secondary-color);
  font-size: 1.5rem;
  vertical-align: middle;
  top: -3px;
  position: relative;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}


/* Section Titles */
.section-title .title {
  font-weight: 800;
  font-size: 36px;
  color: var(--dark-color);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title .title span {
  color: var(--primary-color);
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: -30px auto 40px auto;
  border-radius: 2px;
}

/* About / Specialities Modern Styling */
.modern-about {
  padding: 80px 0;
}

.modern-feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
  height: calc(100% - 30px);
}

.modern-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--secondary-color);
}

.modern-feature-card h4 {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.modern-feature-card h4 i {
  color: var(--primary-color);
  font-size: 24px;
  margin-right: 15px;
  background: rgba(17, 177, 159, 0.1);
  padding: 10px;
  border-radius: 50%;
}

.modern-feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

/* Image Grids */
.image-grid-premium {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.image-grid-premium img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.image-grid-premium img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.img-span-2 {
  grid-row: span 2;
}

/* Premium Specialities Bento Grid */
.premium-specialities-section {
  position: relative;
  padding: 100px 0;
  background-image: url('../images/bg/our_specialities_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.specialities-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* deep dark blue overlay */
  backdrop-filter: blur(8px);
  z-index: 0;
}

.specialities-main-title {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.specialities-main-title span {
  color: var(--primary-color);
}

.title-underline-glow {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  margin: 0 auto 20px;
  border-radius: 2px;
  box-shadow: 0 0 15px var(--primary-color);
}

.specialities-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.premium-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  gap: 24px;
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  width: 100%;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s;
  background: #111;
  /* fallback */
  text-align: left;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(28, 176, 152, 0.2);
  border-color: rgba(28, 176, 152, 0.4);
}

.tall-card {
  grid-row: span 2;
}

.wide-card {
  grid-column: span 2;
}

.square-card {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s;
}

.bento-card:hover .bento-bg {
  transform: scale(1.08);
  opacity: 0.7;
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 10, 20, 0.95) 0%, rgba(5, 10, 20, 0.6) 50%, rgba(5, 10, 20, 0.1) 100%);
  transition: background 0.4s;
}

.bento-card:hover .bento-overlay {
  background: linear-gradient(to top, rgba(5, 10, 20, 0.98) 0%, rgba(5, 10, 20, 0.7) 60%, rgba(5, 10, 20, 0.2) 100%);
}

.bento-content {
  position: relative;
  z-index: 10;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover .bento-content {
  transform: translateY(0);
}

.bento-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.4s, background 0.4s, color 0.4s, box-shadow 0.4s;
}

.bento-card:hover .bento-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(28, 176, 152, 0.5);
}

.bento-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.bento-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s;
}

.bento-card:hover .bento-desc {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1199px) {
  .premium-bento-grid {
    grid-auto-rows: 220px;
  }
}

@media (max-width: 991px) {
  .premium-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }

  .wide-card {
    grid-column: span 2;
  }

  .tall-card {
    grid-row: span 1;
  }

  /* Reset tall cards on tablet so they don't break flow */
}

@media (max-width: 767px) {
  .premium-specialities-section {
    padding: 60px 0;
  }

  .specialities-main-title {
    font-size: 36px;
  }

  .premium-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .tall-card,
  .wide-card,
  .square-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    min-height: 280px;
  }
}
