/*
Theme Name: Селфи Смайл
Theme URI: https://stomatologiya-smile.ru/
Version: 1.0.0
Text Domain: selfiesmile
*/

:root {
  --bg: #f4f8f4;
  --white: #ffffff;
  --text: #0c140d;
  --text-dark: #0c140d;
  --midnight: #0c140d;
  --muted: #546b57;
  --accent: #02A005;
  --accent-2: #02A005;
  --shadow: 0 20px 50px rgba(12, 20, 13, 0.12);
  --radius: 24px;
  --radius-md: 14px;
  --radius-sm: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden !important;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  position: relative;
  padding-top: 115px;
}


img {
  max-width: 100%;
  display: block;
  border-radius: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .25s;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(12, 20, 13, 0.18);
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e6f6e6;
  color: #026b04;
  font-weight: 600;
  font-size: 13px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(244, 248, 244, .8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav .left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--muted);
}

.nav ul li {
  position: relative;
  padding: 10px 0;
}

.nav ul li a:hover {
  color: var(--accent-2);
}

/* Dropdowns */
.nav ul li ul {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 12px 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, .04);
}

.nav ul li ul li {
  padding: 0;
}

.nav ul li ul li a {
  padding: 10px 24px;
  display: block;
  font-size: 14px;
  white-space: nowrap;
}

.nav ul li ul li a:hover {
  background: #f2faf2;
  color: var(--accent);
}

.nav ul li:hover>ul {
  display: flex;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--accent-2);
  border-radius: 3px;
  transition: .3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  padding: 100px 40px;
  transition: .4s cubic-bezier(.16, 1, .3, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.nav-mobile.active {
  right: 0;
}

.nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile ul li a {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-mobile ul li ul {
  display: none;
  padding-left: 20px;
  margin-top: 10px;
  flex-direction: column;
  gap: 10px;
}

.nav-mobile ul li.menu-item-has-children>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile ul li.menu-item-has-children>a::after {
  content: '+';
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  font-weight: 400;
  transition: .3s;
}

.nav-mobile ul li.menu-item-has-children.active>a::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.nav-mobile ul li.active>ul {
  display: flex;
}

.nav-mobile-contacts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-mobile-contacts .contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.nav-mobile-contacts .contact-line strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
}

.nav-mobile-contacts .contact-line span,
.nav-mobile-contacts .contact-line a {
  font-weight: 600;
  color: var(--text);
}

.round-call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(2, 160, 5, 0.25);
  flex-shrink: 0;
  margin-right: 5px;
}

.responsive-h2 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
}

@media (max-width: 768px) {
  .responsive-h2 {
    font-size: 38px !important;
    letter-spacing: -1px !important;
  }
}

.contact-form-title {
  text-align: left;
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .contact-form-title {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }
}

@media (max-width: 480px) {
  .responsive-h2 {

    font-size: 26px !important;
    letter-spacing: -0.5px !important;
    word-break: break-word;
  }
}



.round-call-btn svg {
  width: 20px;
  height: 20px;
}


/* Top info bar */
.top-info-bar {
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

/* Hero */
.hero {
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.hero h1 {
  font-size: 52px;
  margin: 10px 0 6px;
  color: var(--accent-2);
  line-height: 1.1;
}

.hero h3 {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 18px;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

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

.hero-img:hover img {
  transform: scale(1.05);
}

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

.stat {
  background: #f0f7f0;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  animation: floaty 6s ease-in-out infinite;
}

.stat:nth-child(2) {
  animation-delay: 1s;
}

.stat:nth-child(3) {
  animation-delay: 2s;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section h1,
.section h2 {
  font-size: 44px;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.section-flex-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.all-link {
  color: var(--accent-2);
  font-weight: 700;
}

@media (max-width: 640px) {
  .section-flex-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}


.section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

/* Cards & Services */
.service {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}

.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(12, 20, 13, .18);
}

.service img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service img.icon {
  filter: brightness(0) saturate(100%) invert(38%);
  /* filter: brightness(0) saturate(100%) invert(30%) sepia(99%) saturate(1600%) hue-rotate(85deg) brightness(95%) contrast(105%);
  opacity: 0.6; */
}

.service:hover img {
  transform: scale(1.04);
}

.service .service-body {
  padding: 20px;
}

.service .service-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.badge {
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  margin-bottom: 12px;
}

/* Promo */
.promo {
  background: linear-gradient(120deg, #e9fbe9, #f2faf2);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
}

.promo img {
  height: 320px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Doctors Slider */
.doctor-slider {
  position: relative;
  padding: 0 50px;
}

.doctor-track {
  display: flex;
  gap: 20px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.doctor-track::-webkit-scrollbar {
  display: none;
}

.doc {
  min-width: 320px;
  flex: 0 0 auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  scroll-snap-align: center;
  transition: .35s;
}

.doc img {
  height: 340px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.doc .name {
  font-weight: 800;
  font-size: 18px;
}

.doc .role {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 2;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-btn.left {
  left: 0;
}

.slide-btn.right {
  right: 0;
}

/* Before/After */
.before-after {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ba {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
  transition: .35s;
}

.ba .frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 300px;
  cursor: ew-resize;
}

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

.ba .after {
  clip-path: inset(0 50% 0 0);
}

.ba .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.ba .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-2);
}

.ba .label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 600;
}

/* Contact Forms */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form {
  display: grid;
  gap: 16px;
}

.input {
  width: 100%;
  background: #f4f8f4;
  border: 1px solid #e0e8e0;
  border-radius: 14px;
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: .2s;
}

.input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(2, 160, 5, 0.1);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: #0c140d;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer :not(.socials) > a:hover {
  color: var(--accent);
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col p {
  line-height: 1.7;
}

/* Card Grid & Doctor Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.med-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: .4s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, .03);
}

.med-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(12, 20, 13, 0.15);
}

.doctor-organic {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  height: 320px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-organic img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  transition: .5s;
}

.med-card:hover .doctor-organic img {
  transform: scale(1.05);
}

.med-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 800;
}

.doctor-experience {
  font-size: 13px;
  color: var(--muted);
  background: #f0f7f0;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  transition: .3s;
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(2, 160, 5, 0.2);
}

.med-card {
  transition: all 0.3s ease;
}

.med-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* Gallery & Licenses */
.gallery-grid,
.license-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
  transition: .3s;
}

.license-item,
.results-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .3s;
}

.gallery-item:hover,
.license-item:hover {
  transform: scale(1.02);
}

.gallery-item img,
.license-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-license {
  text-align: center;
  margin-top: 30px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: .8s cubic-bezier(.2, .6, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes floaty {
  0% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }

  100% {
    transform: translateY(0)
  }
}

/* Mobile Adaptability */
@media (max-width: 1024px) {

  .hero-grid,
  .promo,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .before-after {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 70px;
  }

  .grid-3,
  .grid-4,
  .before-after {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .license-item,
  .results-item,
  .ba,
  .frame,
  .service,
  .doc,
  .card,
  .med-card {
    border-radius: 14px !important;
  }

  .hero h1 {
    font-size: 32px;
  }


  .d-desktop-inline {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    height: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid,
  .license-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item {
    height: 220px;
  }
}


/* WP Admin Bar Fix */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* Utils */
.d-desktop {
  display: block;
}

.d-mobile {
  display: none;
}

@media (max-width: 900px) {
  .d-desktop {
    display: none !important;
  }

  .d-mobile {
    display: flex !important;
  }

  body {
    padding-top: 80px;
  }
}

/* Fix line-clamp warning */
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  /* Standard */
}

/* Map Section & Contacts Card */
.section-full-map {
  position: relative;
}

.map-contacts-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

.map-contacts-overlay .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.contacts-card {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 30px 100px rgba(12, 20, 13, 0.15);
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.contacts-card-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #f0f7f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-info p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 600;
}

.contact-info a {
  color: var(--text);
  transition: .2s;
}

.contact-info a:hover {
  color: var(--accent);
}

@media (min-width: 640.1px) and (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .map-contacts-overlay {
    position: static;
    margin-top: -60px;
    padding: 0;
  }

  .map-contacts-overlay .container {
    padding: 0;
  }

  .contacts-card {
    width: 100%;
    max-width: 100%;
    padding: 32px;
    border-radius: 24px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .map-full {
    height: 400px !important;
  }

  .map-full iframe {
    height: 400px !important;
  }
}

.service-body .service-title+div {
  display: none
}

/* Medflex Modal */
.medflex-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.medflex-modal.active {
  opacity: 1;
  pointer-events: all;
}

.medflex-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 13, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.medflex-modal-content {
  position: relative;
  width: 95%;
  max-width: 600px;
  height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.medflex-modal.active .medflex-modal-content {
  transform: translateY(0) scale(1);
}

.medflex-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(12, 20, 13, 0.05);
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--text);
}

.medflex-modal-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.medflex-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .medflex-modal-content {
    height: 100vh;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .medflex-modal-close {
    top: 15px;
    right: 15px;
  }

  .hide-mobile {
    display: none;
  }
}

/* Doctor Booking Card */
.doctor-booking-card {
  position: sticky;
  top: 120px;
  background: var(--midnight);
  color: white;
  padding: 32px 24px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(12, 20, 13, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: .3s;
  z-index: 10;
}

.booking-card-header {
  margin-bottom: 24px;
}

.booking-card-header h3 {
  color: white !important;
  margin: 0 0 8px !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  border: none !important;
  padding: 0 !important;
}

.booking-card-header p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.booking-main-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: var(--text) !important;
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
  transition: .3s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.booking-main-btn:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: white !important;
  box-shadow: 0 20px 40px rgba(2, 160, 5, 0.3);
}

.booking-main-btn .btn-icon {
  width: 40px;
  height: 40px;
  background: #f4f8f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: .3s;
}

.booking-main-btn:hover .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.booking-main-btn .btn-icon svg,
.booking-main-btn .btn-icon img {
  width: 22px;
  height: 22px;
}

.booking-main-btn .arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  opacity: 0.3;
  transition: .3s;
}

.booking-main-btn:hover .arrow {
  opacity: 1;
  transform: translateX(5px);
}

.booking-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 14px;
  color: white !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: .3s;
}

.booking-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.booking-secondary-btn img {
  width: 16px;
  height: 16px;
  filter: grayscale(1) brightness(2);
}

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

.booking-card-footer .phone-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.booking-card-footer .phone-number {
  font-size: 18px;
  font-weight: 800;
  color: white !important;
  text-decoration: none;
  display: block;
}

.booking-card-footer .phone-number:hover {
  color: var(--accent) !important;
}

@media (max-width: 992px) {
  .doctor-booking-card {
    position: static !important;
    margin: 40px -20px 0 !important;
    width: calc(100% + 40px) !important;
    border-radius: 0 !important;
  }
}

/* News Grid & Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.news-card-v {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.news-card-v:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(12, 20, 13, 0.15);
}

.news-card-image {
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card-v:hover .news-card-image img {
  transform: scale(1.08);
}

.news-card-accent {
  height: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.news-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.news-card-v h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}

.news-card-v p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-card-link {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.news-card-v.promo-card {
  border: 2px solid rgba(2, 160, 5, 0.1);
}

.news-card-v.promo-card .news-card-accent {
  background: var(--accent);
}

/* Pagination */
.med-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.med-pagination .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.med-pagination .page-numbers {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: .25s;
  text-decoration: none;
}

.med-pagination .page-numbers:hover,
.med-pagination .page-numbers.current {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 160, 5, 0.2);
}

.med-pagination .page-numbers.prev,
.med-pagination .page-numbers.next {
  font-size: 18px;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-card-body {
    padding: 24px;
  }
  
  .news-card-v h3 {
    font-size: 20px;
  }
}

/* Promotion Cards */
.promotion-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none !important;
  color: inherit !important;
  border: 2px solid transparent;
  position: relative;
}

.promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(2, 160, 5, 0.15);
  border-color: var(--accent);
}

.promotion-card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.promotion-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.promotion-card:hover .promotion-card-image img {
  transform: scale(1.1);
}

.promotion-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promotion-card-accent {
  height: 12px;
  background: linear-gradient(90deg, var(--accent), #ffd700);
  position: relative;
}

.promotion-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.promotion-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 800;
}

.promotion-card-excerpt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.promotion-card-footer {
  margin-top: auto;
}

.promotion-card .btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .promotion-card-body {
    padding: 24px;
  }
  .promotion-card h3 {
    font-size: 22px;
  }
}
