/* ===================================================================
   مركز ديفور لطب وجراحة الفم وتجميل الأسنان - Devoor Dental Center
   Modern Luxury Medical CSS - Fully Optimized for Mobile & Desktop
   =================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --primary-light: #e0f2fe;
  --primary-50: #f0f9ff;
  
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-light: #ccfbf1;
  --teal-50: #f0fdfa;

  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;

  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-cyan: 0 10px 25px -5px rgba(13, 148, 136, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--white);
  color: var(--dark-800);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-en);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Helpers */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-light);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.3;
  margin-bottom: 14px;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Header & Top Bar */
.top-bar {
  background: var(--dark-900);
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-200);
}

.top-info-item svg {
  color: var(--teal);
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all var(--transition-fast);
}

.top-socials a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.lang-switch-btn:hover {
  background: var(--teal);
}

/* Sticky Main Navigation */
.main-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title-ar {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.2;
}

.brand-title-sub {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-700);
  position: relative;
  padding: 6px 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

[dir="ltr"] .nav-link::after {
  transform-origin: left;
}

.nav-link:hover, .nav-link.active {
  color: var(--teal);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-book {
  background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transition: all var(--transition-fast);
}

.nav-btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark-900);
  padding: 6px;
  cursor: pointer;
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 65px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(204, 251, 241, 0.45) 0%, rgba(255, 255, 255, 1) 55%, rgba(224, 242, 254, 0.4) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 45px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--teal-light);
  margin-bottom: 18px;
}

.hero-doctor-badge .doc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.hero-doctor-badge span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-hover);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--dark-900);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, #0284c7 100%);
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-cyan);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(13, 148, 136, 0.4);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
  transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}

.btn-social-hub {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #ea580c 100%);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.3);
  transition: all var(--transition-fast);
}

.btn-social-hub:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(219, 39, 119, 0.45);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--dark-800);
  border: 1.5px solid var(--gray-200);
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark-900);
  line-height: 1.1;
}

.stat-number span {
  color: var(--teal);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 600;
}

/* Hero Visual & Badges */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  border: 5px solid var(--white);
  background: var(--white);
}

.hero-main-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-main-img {
  transform: scale(1.02);
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.badge-top-left {
  top: 35px;
  right: -20px;
}

[dir="ltr"] .badge-top-left {
  right: auto;
  left: -20px;
}

.badge-bottom-right {
  bottom: 25px;
  left: -20px;
  animation-delay: 2s;
}

[dir="ltr"] .badge-bottom-right {
  left: auto;
  right: -20px;
}

.floating-badge .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-badge .badge-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dark-900);
}

.floating-badge .badge-text p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Quick Info Strip */
.quick-info-strip {
  background: var(--white);
  padding: 22px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
}

.strip-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.strip-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 2px;
}

.strip-details p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Doctor Profile Section */
.section-doctor {
  padding: 85px 0;
  background: var(--white);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 50px;
}

.doctor-image-card {
  position: relative;
  text-align: center;
}

.doctor-img-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  border: 6px solid var(--white);
  outline: 3px solid var(--teal);
  background: var(--gray-100);
}

.doctor-img-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.doctor-img-frame:hover img {
  transform: scale(1.03);
}

.doctor-badge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  padding: 30px 16px 14px;
  color: var(--white);
  text-align: center;
}

.doctor-badge-overlay span {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
}

.doctor-badge-overlay small {
  display: block;
  font-size: 0.82rem;
  color: var(--teal-light);
}

.doctor-exp-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-cyan);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.doctor-details {
  padding-left: 20px;
}

[dir="rtl"] .doctor-details {
  padding-left: 0;
  padding-right: 20px;
}

.doctor-title-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--teal-50);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.doctor-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-900);
  margin-bottom: 16px;
}

.doctor-bio {
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 26px;
}

.doctor-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.doc-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.doc-highlight-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

.doc-highlight-item span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-800);
}

/* Services Section */
.section-services {
  padding: 85px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 14px 28px -8px rgba(13, 148, 136, 0.15);
  transform: translateY(-4px);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  background: var(--teal);
  color: var(--white);
}

.service-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
}

.service-features-list li {
  font-size: 0.82rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.service-features-list li i {
  color: var(--teal);
  font-weight: 900;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Before and After Section */
.section-before-after {
  padding: 85px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.ba-wrapper {
  max-width: 800px;
  margin: 45px auto 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.ba-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: pan-y;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-img-before {
  z-index: 1;
}

.ba-img-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--white);
}

.ba-tag {
  position: absolute;
  bottom: 16px;
  padding: 5px 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: 4;
}

.ba-tag-after {
  left: 16px;
}

.ba-tag-before {
  right: 16px;
}

.ba-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.ba-info-text {
  font-size: 0.92rem;
  color: var(--gray-600);
}

/* Video Tour & Gallery Section */
.section-tour {
  padding: 85px 0;
  background: var(--dark-900);
  color: var(--white);
}

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

.section-tour .section-subtitle {
  color: var(--gray-400);
}

.tour-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  margin-top: 45px;
  align-items: center;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.video-card video {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 148, 136, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-content {
  position: relative;
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lightbox-prev {
  left: -20px;
}

.lightbox-next {
  right: -20px;
}

/* Smart Appointment Booking Section */
.section-booking {
  padding: 85px 0;
  background: radial-gradient(circle at 80% 20%, rgba(204, 251, 241, 0.35) 0%, rgba(248, 250, 252, 1) 100%);
}

.booking-card {
  max-width: 960px;
  margin: 45px auto 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
}

.booking-sidebar {
  background: linear-gradient(145deg, var(--dark-900) 0%, #132e3b 100%);
  color: var(--white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-sidebar h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.booking-sidebar p {
  color: var(--gray-400);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.booking-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.booking-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-200);
}

.booking-perk-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

.booking-direct-call {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
}

.booking-direct-call h5 {
  font-size: 0.82rem;
  color: var(--teal-light);
  margin-bottom: 4px;
}

.booking-direct-call a {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.booking-form-wrap {
  padding: 40px 34px;
}

.booking-form-wrap h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-800);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-900);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.booking-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .booking-type-toggle {
    grid-template-columns: 1fr;
  }
}
.booking-type-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.booking-type-option:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}
.booking-type-option.active {
  border-color: var(--teal);
  background: #f0fdfa;
  box-shadow: 0 0 0 1px var(--teal);
}
.booking-type-option input[type="radio"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}
.booking-type-option .option-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark-900);
}
.booking-type-option .option-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 3px;
  line-height: 1.4;
}

.slots-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 4px;
}

.slot-chip {
  padding: 8px 14px;
  background: var(--gray-100);
  color: var(--dark-800);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slot-chip:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}

.slot-chip.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-submit-booking {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  font-size: 1.02rem;
  justify-content: center;
}

/* Reviews & Testimonials */
.section-reviews {
  padding: 85px 0;
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.review-card {
  background: var(--gray-50);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-rating {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
}

.review-quote {
  font-size: 0.95rem;
  color: var(--dark-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.reviewer-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark-900);
}

.reviewer-info span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* FAQ Accordion Section */
.section-faq {
  padding: 85px 0;
  background: var(--gray-50);
}

.faq-container {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--dark-900);
  font-size: 0.98rem;
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--teal);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Location & Contact Section */
.section-location {
  padding: 85px 0;
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  margin-top: 45px;
}

.location-details-card {
  background: var(--gray-50);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.location-item .loc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.loc-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 4px;
}

.loc-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  height: 100%;
  min-height: 360px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.main-footer {
  background: var(--dark-900);
  color: var(--gray-400);
  padding: 65px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 36px;
  margin-bottom: 45px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 2px solid var(--teal);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--teal);
}

[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[dir="ltr"] .floating-actions {
  right: auto;
  left: 24px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 1.4rem;
  transition: all var(--transition-fast);
  position: relative;
}

.floating-btn.whatsapp {
  background: #25d366;
}

.floating-btn.whatsapp::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-ring 2s infinite;
}

.floating-btn.scroll-top {
  background: var(--dark-800);
  opacity: 0;
  pointer-events: none;
}

.floating-btn.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-btn:hover {
  transform: scale(1.08);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===================================================================
   MOBILE BOTTOM BAR (App-like navigation for smartphones)
   =================================================================== */
.mobile-bottom-bar {
  display: none;
}

/* ===================================================================
   MEDIA QUERIES - RESPONSIVE PERFECTION
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .doctor-grid, .location-grid, .tour-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .info-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SMARTPHONE & MOBILE DEVICE PERFECTION (< 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for Mobile App Bottom Bar */
  }

  .container {
    padding: 0 16px;
  }

  /* Compact Navbar */
  .top-bar {
    display: none;
  }

  .nav-container {
    padding: 8px 16px;
  }

  .brand-logo img {
    width: 40px;
    height: 40px;
  }

  .brand-title-ar {
    font-size: 0.98rem;
  }

  .brand-title-sub {
    font-size: 0.72rem;
  }

  .nav-btn-book {
    display: none; /* Accessible in the bottom bar & mobile menu */
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-100);
  }

  /* Slide-Down Mobile Drawer Menu */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    gap: 16px;
    border-bottom: 2px solid var(--teal);
    transform: translateY(-130%);
    transition: transform var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border-radius: var(--radius-sm);
  }

  .nav-link:active {
    background: var(--teal-50);
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 28px 0 40px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
  }

  .hero-cta-group a {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 18px;
    text-align: center;
  }

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

  .stat-label {
    font-size: 0.72rem;
  }

  /* Hide hero visual (image & badges) on mobile as requested by user */
  .hero-visual {
    display: none !important;
  }

  /* Quick Info Strip on Mobile */
  .info-strip-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .strip-item {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--gray-200);
  }

  /* Doctor Section on Mobile */
  .section-doctor {
    padding: 50px 0;
  }

  .doctor-img-frame {
    max-width: 290px;
    border-radius: var(--radius-lg);
    border-width: 4px;
  }

  .doctor-img-frame img {
    height: 360px;
  }

  .doctor-exp-badge {
    font-size: 0.82rem;
    padding: 8px 18px;
  }

  .doctor-details {
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: center;
    margin-top: 14px;
  }

  .doctor-name {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .doctor-bio {
    font-size: 0.92rem;
    margin-bottom: 20px;
    text-align: justify;
  }

  .doctor-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: right;
  }

  [dir="ltr"] .doctor-highlights {
    text-align: left;
  }

  /* Services on Mobile */
  .section-services {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
  }

  .service-card {
    padding: 20px 18px;
  }

  /* Before and After on Mobile */
  .section-before-after {
    padding: 50px 0;
  }

  .ba-wrapper {
    padding: 14px;
    margin-top: 24px;
    border-radius: var(--radius-lg);
  }

  .ba-container {
    height: 260px;
    border-radius: var(--radius-md);
  }

  .ba-slider-button {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .ba-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    bottom: 10px;
  }

  .ba-controls {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .ba-controls a {
    width: 100%;
    justify-content: center;
  }

  /* Clinic Tour on Mobile */
  .section-tour {
    padding: 50px 0;
  }

  .tour-grid {
    gap: 20px;
    margin-top: 28px;
  }

  .video-card video {
    height: 220px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-item {
    height: 110px;
  }

  /* Booking on Mobile */
  .section-booking {
    padding: 50px 0;
  }

  .booking-card {
    margin-top: 25px;
    border-radius: var(--radius-lg);
  }

  .booking-sidebar {
    padding: 26px 20px;
  }

  .booking-sidebar h3 {
    font-size: 1.3rem;
  }

  .booking-form-wrap {
    padding: 26px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .slot-chip {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
  }

  /* Reviews on Mobile */
  .section-reviews {
    padding: 50px 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .review-card {
    padding: 20px;
  }

  /* FAQ on Mobile */
  .section-faq {
    padding: 50px 0;
  }

  .faq-container {
    margin-top: 24px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 16px 14px;
    font-size: 0.88rem;
  }

  /* Location on Mobile */
  .section-location {
    padding: 50px 0;
  }

  .location-grid {
    margin-top: 24px;
    gap: 20px;
  }

  .location-details-card {
    padding: 20px 16px;
  }

  .map-wrapper {
    min-height: 260px;
  }

  /* Footer on Mobile */
  .main-footer {
    padding: 45px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Hide floating actions on mobile since the sticky bottom bar provides all quick actions */
  .floating-actions {
    display: none !important;
  }

  /* =========================================================
     STICKY MOBILE BOTTOM APP BAR
     ========================================================= */
  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 995;
    padding: 0 6px;
  }

  .mob-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--dark-700);
    font-size: 0.74rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    transition: all var(--transition-fast);
  }

  .mob-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }

  .mob-bar-item.whatsapp-item {
    color: #128c7e;
  }

  .mob-bar-item.whatsapp-item .mob-bar-icon {
    background: #e8f8f0;
    color: #25d366;
  }

  .mob-bar-item.book-item {
    color: var(--teal-hover);
  }

  .mob-bar-item.book-item .mob-bar-icon {
    background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
  }

  .mob-bar-item:active {
    transform: scale(0.92);
  }
}

/* =========================================================
   COMPETITIONS & GIVEAWAYS SYSTEM STYLES
   ========================================================= */
.nav-contest-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  color: #b45309 !important;
  font-weight: 700 !important;
  border-radius: 30px;
  padding: 6px 14px !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: all var(--transition-fast);
}

.nav-contest-pill:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.section-competitions {
  padding: 85px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.badge-contest {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.contest-main-container {
  max-width: 820px;
  margin: 40px auto 0;
}

.contest-loading-box {
  background: var(--white);
  padding: 50px 20px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  color: var(--dark-500);
}

.contest-loading-box .spinner-border {
  width: 42px;
  height: 42px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contest-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Header bar with countdown */
.contest-header-bar {
  background: #0f172a;
  color: #fff;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.contest-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.contest-timer-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.timer-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-width: 44px;
  padding: 4px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.timer-num {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #facc15;
  line-height: 1.1;
}

.timer-unit {
  font-size: 0.65rem;
  color: #cbd5e1;
}

.timer-sep {
  color: #facc15;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Prize banner */
.contest-prize-banner {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #1e3a8a 100%);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.contest-prize-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.prize-icon-wrap {
  background: rgba(255, 255, 255, 0.18);
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.prize-content {
  flex: 1;
}

.prize-small-label {
  font-size: 0.82rem;
  color: #a7f3d0;
  font-weight: 600;
  margin-bottom: 4px;
}

.prize-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.contest-entries-badge {
  display: none !important;
}

/* Contest Body */
.contest-body {
  padding: 30px 28px 24px;
}

.contest-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 6px;
}

.contest-desc {
  color: var(--dark-600);
  font-size: 0.96rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Challenge Wrap (Questions / Task / Guess) */
.challenge-wrap {
  background: #f8fafc;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.challenge-question-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quiz-option-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-800);
}

.quiz-option-pill:hover {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.04);
}

.quiz-option-pill input[type="radio"] {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.quiz-option-pill.selected {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal);
}

/* Task Challenge */
.task-box {
  text-align: center;
  padding: 10px 0;
}

.task-desc {
  font-size: 1rem;
  color: var(--dark-700);
  margin-bottom: 16px;
  font-weight: 600;
}

.btn-task-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
  transition: transform 0.2s ease;
  margin-bottom: 16px;
}

.btn-task-action:hover {
  transform: translateY(-2px);
  color: #fff;
}

.task-checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--dark-800);
  cursor: pointer;
  margin-top: 10px;
}

.task-checkbox-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

/* Number Guess Challenge */
.guess-box {
  text-align: center;
  padding: 8px 0;
}

.guess-prompt {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 12px;
}

.guess-input-wrap {
  max-width: 200px;
  margin: 0 auto;
}

.guess-input-wrap input {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
}

/* Patient Contact Inputs */
.patient-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

.contest-rules-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--dark-600);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.contest-rules-note svg,
.contest-rules-note i {
  flex-shrink: 0;
  margin-top: 3px;
}

.btn-submit-contest {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--teal) 0%, #0f766e 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-contest:hover {
  background: linear-gradient(135deg, var(--teal-hover) 0%, #115e59 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.45);
}

.btn-submit-contest:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Feedback alert */
.contest-feedback-box {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.contest-feedback-box.feedback-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contest-feedback-box.feedback-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contest-feedback-box.feedback-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Share Bar */
.contest-share-bar {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.share-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-700);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-share-wa {
  background: #e8f8f0;
  color: #128c7e;
  border-color: #bbf7d0;
}

.btn-share-wa:hover {
  background: #25d366;
  color: #fff;
}

.btn-share-fb {
  background: #eff6ff;
  color: #1877f2;
  border-color: #bfdbfe;
}

.btn-share-fb:hover {
  background: #1877f2;
  color: #fff;
}

.btn-share-copy {
  background: var(--gray-100);
  color: var(--dark-700);
  border-color: var(--gray-300);
}

.btn-share-copy:hover {
  background: var(--dark-800);
  color: #fff;
}

/* No Contest Box */
.no-contest-box {
  background: var(--white);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.no-contest-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.no-contest-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.no-contest-box p {
  color: var(--dark-600);
  max-width: 520px;
  margin: 0 auto;
}

/* Past Winners Section */
.past-winners-wrap {
  margin-top: 45px;
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.past-winners-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b45309;
  margin-bottom: 20px;
}

.past-winners-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-900);
  margin: 0;
}

.past-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.past-winner-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  transition: transform 0.2s;
}

.past-winner-card:hover {
  transform: translateY(-2px);
}

.winner-crown {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 1.4rem;
}

.winner-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 3px;
}

.winner-phone {
  font-size: 0.8rem;
  color: #78350f;
  margin-bottom: 8px;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
}

.winner-prize {
  font-size: 0.86rem;
  color: #92400e;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.winner-date {
  font-size: 0.75rem;
  color: #a1a1aa;
}

/* Mobile responsive for competitions */
@media (max-width: 768px) {
  .contest-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .contest-prize-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .contest-entries-badge {
    align-self: flex-start;
  }
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
  .patient-inputs-grid {
    grid-template-columns: 1fr;
  }
  .contest-share-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .share-buttons {
    justify-content: space-between;
  }
  .btn-share-social {
    flex: 1;
    justify-content: center;
  }
}

