/* ============================================================
   PROPUESTA 3 - MODERN BOLD THEME
   Sports Medicine / Modern Health Tech
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --gradient-hero: linear-gradient(135deg, rgba(15,12,41,0.35) 0%, rgba(48,43,99,0.25) 50%, rgba(36,36,62,0.40) 100%);
  --gradient-accent: linear-gradient(135deg, #4361EE 0%, #764ba2 100%);
  --gradient-coral: linear-gradient(135deg, #FF6B6B 0%, #ee5a24 100%);
  --gradient-mint: linear-gradient(135deg, #06D6A0 0%, #1dd1a1 100%);

  /* Accent colors */
  --electric-blue: #4361EE;
  --coral: #FF6B6B;
  --mint: #06D6A0;
  --purple-deep: #764ba2;
  --purple-light: #667eea;

  /* Neutrals */
  --dark-bg: #0f0c29;
  --dark-mid: #302b63;
  --dark-light: #24243e;
  --text-light: #e0e0e0;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Reset & Typography ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

a {
  text-decoration: none;
  color: var(--electric-blue);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--purple-deep);
}

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

/* ---------- Utility Classes ---------- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: var(--gradient-accent);
  border-radius: 10px;
}

.section-title p {
  font-size: 1.2rem;
  color: #777;
  margin-top: 15px;
  font-weight: 300;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Bold Button Styles ---------- */
.btn-bold {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--white);
  background: var(--gradient-accent);
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(67, 97, 238, 0.4);
}

.btn-bold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-coral);
  transition: var(--transition-fast);
  z-index: -1;
}

.btn-bold:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(67, 97, 238, 0.6);
}

.btn-bold:hover::before {
  left: 0;
}

.btn-bold-outline {
  display: inline-block;
  padding: 12px 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--white);
  border-radius: 50px;
  cursor: pointer;
  color: var(--white);
  background: transparent;
  transition: var(--transition-fast);
}

.btn-bold-outline:hover {
  background: var(--white);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: var(--gradient-dark);
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1100;
  position: relative;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition-fast);
  margin-right: 20px;
}

.top-bar a:hover {
  color: var(--mint);
}

.top-bar i {
  margin-right: 6px;
  color: var(--mint);
}

.top-bar .social-top a {
  margin-right: 12px;
  font-size: 1rem;
}

/* ---------- MAIN NAVBAR ---------- */
.main-navbar {
  background: rgba(15, 12, 41, 0.97);
  transition: var(--transition-med);
  padding: 12px 0;
  z-index: 1050;
}

.main-navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.main-navbar .container {
  flex-wrap: nowrap;
}

.main-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  overflow: hidden;
  flex-shrink: 1;
}

.main-navbar .navbar-brand img {
  height: 55px;
  transition: var(--transition-fast);
}

.main-navbar.scrolled .navbar-brand img {
  height: 45px;
}

.main-navbar .brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.main-navbar .brand-text .doctor-name,
.main-navbar .brand-text .doctor-specialty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-navbar .brand-text .doctor-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
}

.main-navbar .brand-text .doctor-name-second {
  font-weight: 800;
}

.main-navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85) !important;
  padding: 10px 14px !important;
  transition: var(--transition-fast);
  position: relative;
}

.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 14px;
  width: 0;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 10px;
  transition: var(--transition-fast);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  width: calc(100% - 28px);
}

.main-navbar .nav-link:hover {
  color: var(--white) !important;
}

.main-navbar .dropdown-menu {
  background: rgba(15, 12, 41, 0.98);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 10px 0;
  margin-top: 10px;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  min-width: 280px;
}

.main-navbar .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 25px;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.main-navbar .dropdown-item:hover {
  background: rgba(67, 97, 238, 0.15);
  color: var(--mint);
  border-left-color: var(--mint);
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.4) !important;
  padding: 6px 10px;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* ---------- SLIDER PRELOADER ---------- */
.slider-preloader {
  position: absolute;
  inset: 0;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.6s ease;
}

.slider-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 120px;
  animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (max-width: 575.98px) {
  .preloader-logo { width: 80px; }
}

/* ---------- HERO SLIDER (Swiper) ---------- */
.hero-slider {
  position: relative;
  height: 75vh;
  min-height: 450px;
  max-height: 750px;
  overflow: hidden;
}

.hero-slider .swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--dark-bg);
  transform: scale(1.02);
  transition: transform 6s ease;
}

.hero-slide-bg--top {
  background-position: center 10% !important;
}

.hero-slide--intro {
  align-items: flex-end !important;
}

.hero-slide--intro .hero-slide-content {
  padding-bottom: 60px;
}

.hero-slide--intro .hero-slide-content h1 {
  text-transform: none;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .hero-slide-bg {
    background-size: 100% auto;
    background-position: center center;
    transform: none;
  }
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-slide-content .hero-tag {
  display: inline-block;
  padding: 6px 24px;
  background: rgba(67, 97, 238, 0.3);
  border: 1px solid rgba(67, 97, 238, 0.5);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--mint);
  margin-bottom: 20px;
}

.hero-slide-content h1 {
  color: var(--white);
  font-weight: 900;
  margin-bottom: 30px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-slide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-slide-links a {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
}

.hero-slide-links a:hover {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

/* Hero bottom edge - clean transition */

/* Swiper Navigation */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--white);
  background: rgba(67, 97, 238, 0.3);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: var(--electric-blue);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 900;
}

.hero-slider .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: var(--transition-fast);
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--mint);
  width: 40px;
  border-radius: 10px;
}

/* ---------- STATS COUNTER SECTION ---------- */
.stats-section {
  background: var(--gradient-dark);
  padding: 60px 0;
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 30px 15px;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

.stat-card:last-child::after {
  display: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- BIENVENIDOS SECTION ---------- */
.welcome-section {
  padding: 100px 0 80px;
  background: #f8f9fa;
  position: relative;
}

.welcome-section .welcome-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.welcome-section .welcome-text p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 900;
  float: left;
  margin-right: 10px;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.doctor-photo-wrapper {
  position: relative;
  display: inline-block;
}

.doctor-photo-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 20px;
  z-index: 0;
}

.doctor-photo-wrapper img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
}

/* Geometric decoration */
.geo-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 4px solid rgba(67, 97, 238, 0.15);
  border-radius: 30px;
  transform: rotate(45deg);
  z-index: 0;
}

.geo-decoration.geo-1 {
  top: 10%;
  right: -50px;
}

.geo-decoration.geo-2 {
  bottom: 10%;
  left: -80px;
  border-color: rgba(255, 107, 107, 0.15);
}

/* ---------- VIDEO GALLERY ---------- */
.video-gallery-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.video-gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.video-card {
  perspective: 1000px;
  margin-bottom: 30px;
}

.video-card-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: var(--transition-med);
  transform-style: preserve-3d;
  cursor: pointer;
}

.video-card-inner:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 25px 60px rgba(67, 97, 238, 0.2);
}

.video-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-med);
}

.video-card-inner:hover .video-card-thumb img {
  transform: scale(1.1);
}

.video-card-thumb .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 12, 41, 0.4);
  opacity: 0;
  transition: var(--transition-fast);
}

.video-card-inner:hover .play-overlay {
  opacity: 1;
}

.play-overlay .play-btn {
  width: 65px;
  height: 65px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 8px 30px rgba(67, 97, 238, 0.5);
  transition: var(--transition-fast);
  transform: scale(0.8);
}

.video-card-inner:hover .play-btn {
  transform: scale(1);
}

.video-card-title {
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-bg);
  border-top: 3px solid transparent;
  background-image: linear-gradient(white, white), var(--gradient-accent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ---------- CIOT SECTION ---------- */
.cimot-section {
  padding: 100px 0;
  background: var(--gradient-dark);
  position: relative;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.cimot-section .section-title h2 {
  color: var(--white);
}

.cimot-section .section-title h2::after {
  background: var(--gradient-mint);
}

.cimot-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-med);
  border: 2px solid transparent;
  background-image: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.02)), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.cimot-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.3);
}

.cimot-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
}

.cimot-card h4 {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.cimot-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

.cimot-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.cimot-card ul li {
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  position: relative;
  padding-left: 25px;
}

.cimot-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--mint);
  font-size: 0.85rem;
}

/* ---------- FOOTER ---------- */
.main-footer {
  background: var(--gradient-dark);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.7);
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 10px;
}

.footer-col p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-col .footer-address {
  font-style: normal;
  line-height: 2;
}

.footer-col .footer-address i {
  color: var(--mint);
  width: 20px;
  margin-right: 8px;
}

.footer-logo {
  height: 45px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-right: 10px;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gradient-accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
}

.footer-newsletter .input-group {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.footer-newsletter input {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  padding: 14px 20px;
  font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-newsletter input:focus {
  background: rgba(255,255,255,0.15);
  box-shadow: none;
  color: var(--white);
}

.footer-newsletter .btn {
  background: var(--gradient-accent);
  border: none;
  color: var(--white);
  padding: 14px 25px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-newsletter .btn:hover {
  opacity: 0.9;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- VIDEO MODAL ---------- */
.video-modal .modal-content {
  background: rgba(15, 12, 41, 0.98);
  border: 1px solid rgba(67, 97, 238, 0.3);
  border-radius: 16px;
  overflow: hidden;
}

.video-modal .modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 15px 25px;
}

.video-modal .modal-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.video-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.video-modal .modal-body {
  padding: 0;
}

.video-modal video {
  width: 100%;
  display: block;
  border-radius: 0 0 16px 16px;
}

/* ============================================================
   INTERIOR PAGE STYLES
   ============================================================ */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  padding: 200px 0 120px;
  background: var(--gradient-dark);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.page-hero .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.page-hero .breadcrumb-item.active {
  color: var(--mint);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.3);
}

/* Geometric shapes in hero */
.page-hero .geo-shape {
  position: absolute;
  border: 3px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
}

.page-hero .geo-shape-1 {
  width: 150px;
  height: 150px;
  top: 15%;
  right: 10%;
  transform: rotate(45deg);
}

.page-hero .geo-shape-2 {
  width: 80px;
  height: 80px;
  bottom: 25%;
  right: 25%;
  transform: rotate(30deg);
  animation-delay: 2s;
}

.page-hero .geo-shape-3 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 5%;
  transform: rotate(60deg);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-20px); }
}

/* ---------- Article Content ---------- */
.article-content {
  padding: 80px 0;
}

.article-content .article-section {
  margin-bottom: 60px;
}

.article-content h2 {
  font-weight: 900;
  color: var(--dark-bg);
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
}

.article-content h3 {
  font-weight: 800;
  color: var(--dark-mid);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.article-content .lead-quote {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--electric-blue);
  border-left: 4px solid var(--electric-blue);
  padding: 20px 30px;
  margin: 40px 0;
  background: rgba(67, 97, 238, 0.05);
  border-radius: 0 12px 12px 0;
}

.article-content .article-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.article-content .article-image img {
  width: 100%;
  display: block;
}

.article-content .article-video {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  margin: 20px auto;
  background: #000;
  max-width: 384px;
}

.article-content .article-video video {
  width: 100%;
  display: block;
}

/* Technique cards */
.technique-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  transition: var(--transition-med);
  border-top: 4px solid transparent;
  border-image: var(--gradient-accent) 1;
  margin-bottom: 25px;
  height: 100%;
}

.technique-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.15);
}

.technique-card .technique-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.technique-card h4 {
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.technique-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Radiograph cards */
.rx-cards-row {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.rx-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
  transition: var(--transition-med);
  background: var(--white);
}

.rx-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.2);
}

.rx-card img {
  width: 100%;
  display: block;
}

.rx-card .rx-label {
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-bg);
  text-align: center;
  border-top: 3px solid;
  border-image: var(--gradient-accent) 1;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--gradient-dark);
  text-align: center;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 30px;
}

/* ============================================================
   ANIMATIONS & EFFECTS
   ============================================================ */

/* Gradient border animation */
@keyframes gradient-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(67, 97, 238, 0.3); }
  50% { box-shadow: 0 0 40px rgba(67, 97, 238, 0.6); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
}

.scroll-indicator .mouse {
  width: 28px;
  height: 45px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--white);
  border-radius: 4px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 25px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .hero-slide-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .main-navbar.nav-open .brand-text {
    display: none;
  }

  .main-navbar .navbar-collapse {
    background: rgba(15, 12, 41, 0.98);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    max-height: 70vh;
    overflow-y: auto;
  }

  .main-navbar .dropdown-menu {
    background: rgba(255,255,255,0.05);
    border: none;
    box-shadow: none;
    min-width: auto;
  }

  .hero-slide {
    padding-top: 0;
  }

  .hero-slide-content h1 {
    font-size: 2.5rem;
  }

  .hero-slide-content .hero-tag {
    font-size: 0.75rem;
    padding: 5px 18px;
    letter-spacing: 2px;
  }

  .stats-section {
    padding: 50px 0;
  }

  .stat-card::after {
    display: none;
  }

  .cimot-section {
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  }

  .page-hero {
    padding: 150px 0 100px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .cta-section {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  }

  .main-navbar .navbar-brand {
    gap: 10px;
  }

  .main-navbar .navbar-brand img {
    height: 45px;
  }

  .brand-text .doctor-name {
    font-size: 0.78rem;
  }

  .brand-text .doctor-name-second {
    font-size: 0.78rem;
  }
}

/* ---------- HERO SLIDER: Landscape Mode ---------- */
.hero-slider--landscape {
  height: 55vh;
  min-height: 280px;
  max-height: 420px;
}


.hero-slider--landscape .hero-slide-bg {
  background-size: cover;
  background-position: center center;
}

.hero-slider--landscape .hero-slide-content h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero-slider--landscape .hero-slide-content .hero-tag {
  font-size: 0.7rem;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.hero-slider--landscape .hero-slide-links a {
  padding: 6px 14px;
  font-size: 0.72rem;
  border-width: 1.5px;
}

.hero-slider--landscape .swiper-button-next,
.hero-slider--landscape .swiper-button-prev {
  width: 40px;
  height: 40px;
}

.hero-slider--landscape .swiper-button-next::after,
.hero-slider--landscape .swiper-button-prev::after {
  font-size: 0.9rem;
}


.hero-slider--landscape .scroll-indicator {
  display: none;
}

/* ---------- HERO SLIDER: Portrait Mode ---------- */
.hero-slider--portrait {
  height: 70vh;
  min-height: 400px;
  max-height: 550px;
}


.hero-slider--portrait .hero-slide-bg {
  background-size: cover;
  background-position: center center;
}

.hero-slider--portrait .hero-slide-content h1 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.hero-slider--portrait .hero-slide-content .hero-tag {
  font-size: 0.7rem;
  padding: 4px 14px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.hero-slider--portrait .hero-slide-links {
  gap: 8px;
}

.hero-slider--portrait .hero-slide-links a {
  padding: 7px 16px;
  font-size: 0.75rem;
  border-width: 1.5px;
  white-space: normal;
  text-align: center;
}

.hero-slider--portrait .swiper-button-next,
.hero-slider--portrait .swiper-button-prev {
  display: none;
}

.hero-slider--portrait .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
}

.hero-slider--portrait .swiper-pagination-bullet-active {
  width: 22px;
}


.hero-slider--portrait .scroll-indicator {
  display: none;
}

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

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .stats-section {
    padding: 40px 0;
  }

  .stat-card {
    padding: 20px 10px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .welcome-section {
    padding: 60px 0 50px;
  }

  .doctor-photo-wrapper::before {
    top: -10px;
    right: -10px;
  }

  .doctor-photo-wrapper img {
    max-width: 280px;
  }

  .video-gallery-section {
    padding: 60px 0;
  }

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

  .cimot-section {
    clip-path: none;
    padding: 60px 0;
  }

  .page-hero {
    padding: 130px 0 70px;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero .geo-shape {
    opacity: 0.4;
  }

  .article-content {
    padding: 50px 0;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }

  .article-content .lead-quote {
    font-size: 1.1rem;
    padding: 15px 20px;
    margin: 25px 0;
  }

  .technique-card {
    padding: 25px 20px;
  }

  .cta-section {
    clip-path: none;
    padding: 50px 0;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .geo-decoration {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .top-bar a {
    margin-right: 8px;
    font-size: 0.65rem;
  }

  .top-bar .social-top a {
    font-size: 0.85rem;
    margin-right: 8px;
  }

  .top-bar i {
    margin-right: 3px;
  }

  .top-bar .d-flex.justify-content-between {
    flex-wrap: nowrap !important;
  }

  .main-navbar .navbar-brand {
    gap: 6px;
    max-width: calc(100% - 50px);
  }

  .main-navbar .navbar-brand img {
    display: none;
  }

  .main-navbar .brand-text {
    overflow: visible;
  }

  .main-navbar .brand-text .doctor-name {
    font-size: 0.72rem;
    white-space: nowrap;
    line-height: 1.3;
  }

  .main-navbar .brand-text .doctor-name-second {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .stats-section {
    padding: 30px 0;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0;
  }

  .video-card-title {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .play-overlay .play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .btn-bold {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .main-footer {
    padding: 50px 0 0;
  }

  .footer-col h5 {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--electric-blue);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--electric-blue);
  color: var(--white);
}
