/*
Theme Name: Smile Theme
Theme URI: https://bestsmile.co.il
Author: Best Smile
Author URI: https://bestsmile.co.il
Description: Custom WordPress theme for Best Smile clinic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: smile-theme
*/

:root {
  --primary: #0b6bcb;
  --primary-dark: #0753a0;
  --accent: #dff1ff;
  --text: #1f2937;
  --muted: #5b6472;
  --bg: #f6f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(20, 48, 77, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffd200;
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.top-header-bar {
  background: #06304f;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.top-header-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-header-bar-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

.top-header-bar-phone:hover {
  color: #fff;
  opacity: 1;
}

.top-header-bar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-header-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.top-header-bar-social a svg {
  width: 15px;
  height: 15px;
  display: block;
}

.top-header-bar-social a:hover {
  transform: scale(1.08);
}

.top-header-bar-social .social-facebook:hover {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.75);
  background: rgba(24, 119, 242, 0.14);
}

.top-header-bar-social .social-instagram:hover {
  color: #e4405f;
  border-color: rgba(228, 64, 95, 0.72);
  background: rgba(228, 64, 95, 0.14);
}

.top-header-bar-social .social-whatsapp:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.75);
  background: rgba(37, 211, 102, 0.14);
}

@media (max-width: 480px) {
  .top-header-bar {
    font-size: 0.8125rem;
  }

  .top-header-bar-inner {
    padding: 0.4rem 0;
  }

  .top-header-bar-social a {
    width: 28px;
    height: 28px;
  }
}

.hero {
  background: linear-gradient(135deg, #0b6bcb 0%, #0891b2 100%);
  color: var(--white);
  padding-bottom: 10px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(234, 213, 167, 0.8) 35%,
    rgba(214, 231, 247, 0.92) 50%,
    rgba(234, 213, 167, 0.8) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 8px rgba(219, 230, 244, 0.22);
  pointer-events: none;
}

.home-header {
  background: transparent !important;
  padding-bottom: 52px;
}

.home-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b6bcb 0%, #0891b2 100%);
  z-index: -1;
}

.home-header .nav {
  padding-top: 20px;
  padding-bottom: 20px;
}

.home-header .hero-content {
  padding-top: 28px;
  padding-bottom: 36px;
}

.internal-header-variant {
  background: #0055a5 !important;
  padding-bottom: 26px;
  isolation: isolate;
}

.internal-header-variant::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(6, 35, 77, 0.62) 0%, rgba(7, 52, 109, 0.54) 100%),
    var(--internal-hero-image, url("https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&q=80&w=2070"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: internal-hero-zoom 8s ease-in-out infinite;
  transform-origin: center;
}

.internal-header-variant > * {
  position: relative;
  z-index: 1;
}

/* Keep Services page exactly on current internal blue */
body.page-slug-services .internal-header-variant,
body.page-template-treatments .internal-header-variant,
body.page-template-treatments-php .internal-header-variant {
  background: #0055a5 !important;
}

/* Medical Team page: deeper Royal Blue */
body.page-slug-team .internal-header-variant,
body.page-template-staff .internal-header-variant,
body.page-template-staff-php .internal-header-variant {
  background: #1f4fbf !important;
  --internal-hero-image: url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=2070");
}

/* Before & After Gallery page: dark Navy Blue */
body.page-slug-gallery .internal-header-variant,
body.page-template-gallery .internal-header-variant,
body.page-template-gallery-php .internal-header-variant {
  background: #0f2f6b !important;
  --internal-hero-image: url("https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&q=80&w=2070");
}

/* Blog page/archive: distinct Slate Blue */
body.page-slug-blog .internal-header-variant,
body.blog .internal-header-variant,
body.post-type-archive-post .internal-header-variant,
body.page-template-page-blog .internal-header-variant,
body.page-template-page-blog-php .internal-header-variant {
  background: #3f5f8d !important;
  --internal-hero-image: url("https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&q=80&w=2070");
}

body.page-services .internal-header-variant,
body.page-treatments .internal-header-variant,
body.page-slug-services .internal-header-variant,
body.page-slug-treatments .internal-header-variant,
body.page-template-treatments .internal-header-variant,
body.page-template-treatments-php .internal-header-variant {
  --internal-hero-image: url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&q=80&w=2070");
}

body.page-team .internal-header-variant,
body.page-template-staff .internal-header-variant,
body.page-template-staff-php .internal-header-variant {
  --internal-hero-image: url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=2070");
}

body.page-gallery .internal-header-variant,
body.page-template-gallery .internal-header-variant,
body.page-template-gallery-php .internal-header-variant {
  --internal-hero-image: url("https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&q=80&w=2070");
}

body.page-blog .internal-header-variant,
body.page-blog-2 .internal-header-variant,
body.page-slug-blog .internal-header-variant,
body[class*="page-blog"] .internal-header-variant,
body[class*="page-template-page-blog"] .internal-header-variant,
body.archive .internal-header-variant,
body.page-template-page-blog .internal-header-variant,
body.page-template-page-blog-php .internal-header-variant,
body.blog .internal-header-variant,
body.post-type-archive-post .internal-header-variant {
  --internal-hero-image: url("https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&q=80&w=2070");
}

@keyframes internal-hero-zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.internal-header-variant .nav {
  padding-top: 10px;
  padding-bottom: 10px;
}

.internal-header-variant .hero-content {
  padding-top: 14px;
  padding-bottom: 18px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.34;
  pointer-events: none;
  filter: blur(2px);
  animation: blob-drift 22s ease-in-out infinite;
}

.hero-blob-1 {
  width: 360px;
  height: 360px;
  top: -140px;
  left: -80px;
}

.hero-blob-2 {
  width: 280px;
  height: 280px;
  bottom: -110px;
  right: 14%;
  animation-delay: 4s;
}

.hero-blob-3 {
  width: 190px;
  height: 190px;
  top: 32%;
  right: -45px;
  animation-delay: 7s;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 16px;
  position: sticky;
  top: 10px;
  z-index: 15;
  border-radius: 16px;
  transition: background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}

.nav.is-glass {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-inline: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  max-height: 80px;
  max-width: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
}

.main-menu a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Keep header/navigation always visible and static on first paint */
header,
header .nav,
header .brand,
header .brand-logo,
header .main-menu,
header .main-menu li,
header .main-menu a,
header .nav .bs-reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hero-content {
  padding: 20px 0 24px;
  max-width: 760px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.hero-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.smile-visual {
  position: relative;
  width: min(290px, 82vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: smile-float 8s ease-in-out infinite;
}

.smile-photo-wrap {
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.16), 0 20px 44px rgba(5, 36, 80, 0.42);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
  isolation: isolate;
}

.smile-photo-wrap::after {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  width: 24%;
  right: -35%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  filter: blur(0.6px);
  transform: skewX(-16deg);
  animation: teeth-shimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.smile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  transform: scale(1.35);
  transform-origin: center center;
  filter: saturate(1.07) contrast(1.04);
}

.hover-sparkle {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 26%, rgba(255, 255, 255, 0) 56%),
    conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0) 0deg 18deg,
      rgba(255, 255, 255, 0.95) 18deg 30deg,
      rgba(255, 255, 255, 0) 30deg 108deg,
      rgba(255, 255, 255, 0.95) 108deg 120deg,
      rgba(255, 255, 255, 0) 120deg 198deg,
      rgba(255, 255, 255, 0.95) 198deg 210deg,
      rgba(255, 255, 255, 0) 210deg 288deg,
      rgba(255, 255, 255, 0.95) 288deg 300deg,
      rgba(255, 255, 255, 0) 300deg 360deg
    );
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
  z-index: 3;
}

.hover-sparkle.is-active {
  animation: sparkle-glint 680ms ease-out;
}

.section {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bs-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bs-reveal {
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}

.bs-reveal.bs-reveal-pending {
  opacity: 0;
  transform: translateY(20px);
}

.bs-reveal.is-visible {
  animation: bs-slide-up 0.72s cubic-bezier(0.22, 0.74, 0.26, 1) both;
}

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

@keyframes blob-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes sparkle-glint {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
    opacity: 0;
  }
  35% {
    transform: translate(-50%, -50%) scale(1) rotate(16deg);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -50%) scale(0.74) rotate(26deg);
    opacity: 0.65;
  }
}

@keyframes teeth-shimmer {
  0%,
  76%,
  100% {
    right: -38%;
    opacity: 0;
  }
  84% {
    right: 36%;
    opacity: 0.92;
  }
  90% {
    right: 108%;
    opacity: 0;
  }
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  opacity: 0.9;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 12px 0 14px;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 20px;
}

.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
}

.heading-illustration {
  width: auto;
  max-height: 120px;
  flex: 0 0 auto;
}

.heading-illustration-doctor {
  animation: doctor-bob 7.5s ease-in-out infinite;
}

.doc-ring {
  fill: rgba(255, 255, 255, 0.22);
  stroke: rgba(255, 255, 255, 0.56);
  stroke-width: 1.2;
}

.doc-coat {
  fill: #f9fcff;
  stroke: #9ebadd;
  stroke-width: 1.8;
}

.doc-face {
  fill: #e7f2ff;
  stroke: #9ebadd;
  stroke-width: 1.4;
}

.doc-smile {
  fill: none;
  stroke: #2a4f86;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.doc-arm-wave {
  fill: none;
  stroke: #9ebadd;
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 98px 64px;
  animation: doctor-wave 5.6s ease-in-out infinite;
}

.doc-outline {
  fill: none;
  stroke: #9ebadd;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.doc-cross {
  fill: none;
  stroke: #2e6ac0;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.heading-illustration-happy {
  animation: gentle-pulse 5.2s ease-in-out infinite;
}

.happy-bubble {
  fill: #f9fcff;
  stroke: #9ebadd;
  stroke-width: 2;
}

.happy-tail {
  fill: none;
  stroke: #9ebadd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.happy-dot {
  fill: #2e6ac0;
}

.happy-star {
  fill: #d7ecff;
  opacity: 0.8;
  transform-origin: center;
  animation: star-twinkle 4.2s ease-in-out infinite;
}

.heading-illustration-compare {
  animation: compare-float 6.5s ease-in-out infinite;
}

.compare-frame {
  fill: #f9fcff;
  stroke: #c2d9f2;
  stroke-width: 2;
}

.compare-tooth {
  fill: #ffffff;
  stroke: #9ebadd;
  stroke-width: 1.8;
}

.compare-before {
  fill: none;
  stroke: #82a8d6;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.compare-slider {
  stroke: #2e6ac0;
  stroke-width: 2.6;
  stroke-linecap: round;
  animation: compare-scan 5.4s ease-in-out infinite;
}

.compare-knob {
  fill: #ffffff;
  stroke: #2e6ac0;
  stroke-width: 2.2;
  animation: compare-scan-knob 5.4s ease-in-out infinite;
}

.compare-after {
  fill: none;
  stroke: #2e6ac0;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-attn {
  animation: cta-pulse 4.6s ease-in-out infinite;
}

.btn-attn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 34%;
  height: 320%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
  transform: rotate(18deg) translateX(-220%);
  animation: cta-shimmer 5.2s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.blog-read-more-btn {
  margin-top: 20px;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section-read-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.section-read-more-btn {
  border-color: rgba(11, 107, 203, 0.45);
  color: #0b6bcb;
  background: rgba(255, 255, 255, 0.65);
  padding: 10px 22px;
}

.section-read-more-btn:hover {
  background: rgba(11, 107, 203, 0.1);
  border-color: rgba(11, 107, 203, 0.72);
}

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-light:hover {
  background: #f1f5f9;
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.32);
  }
}

@keyframes cta-shimmer {
  0%,
  65%,
  100% {
    transform: rotate(18deg) translateX(-220%);
  }
  78% {
    transform: rotate(18deg) translateX(460%);
  }
}

@keyframes doctor-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes doctor-wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-5deg);
  }
  70% {
    transform: rotate(4deg);
  }
}

@keyframes gentle-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.95;
  }
}

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

@keyframes compare-scan {
  0%,
  100% {
    transform: translateX(-25px);
  }
  50% {
    transform: translateX(25px);
  }
}

@keyframes compare-scan-knob {
  0%,
  100% {
    transform: translateX(-25px);
  }
  50% {
    transform: translateX(25px);
  }
}

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

.section {
  padding: 17px 0;
}

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

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

.card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.team {
  background: #eef6ff;
}

.team .card {
  text-align: right;
}

.team-member-photo {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e7ecfb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team .card:hover .team-member-photo {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.testimonials-swiper {
  position: relative;
  margin-top: 10px;
  opacity: 1 !important;
  z-index: 1;
}

.testimonials-swiper .swiper {
  position: relative;
  width: 100%;
  padding: 6px 4px 44px;
  overflow: hidden;
  opacity: 1 !important;
  z-index: 1;
}

.testimonials-swiper .swiper-wrapper {
  align-items: stretch;
  opacity: 1 !important;
}

.testimonials-swiper .swiper-slide {
  height: auto;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-sizing: border-box;
  direction: rtl;
}

.testimonials-swiper .testimonial-card {
  margin: 0;
  width: 100%;
  height: auto !important;
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding-bottom: 25px;
}

.testimonials-swiper .testimonial-card cite {
  display: block;
  margin-top: 12px;
  text-align: right;
  font-style: normal;
  font-weight: 600;
  color: var(--brand, #1a4789);
}

.testimonials-swiper .swiper-pagination {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.testimonials-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c7d9ef;
  opacity: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--brand, #1a4789);
  transform: scale(1.2);
}

.testimonials-swiper .swiper-pagination-bullet:hover {
  transform: scale(1.1);
}

.before-after,
.blog {
  background: var(--white);
}

.before-after .cards,
.blog .cards {
  grid-template-columns: repeat(2, 1fr);
}

.ba-swiper {
  position: relative;
  margin-top: 10px;
  z-index: 1;
}

.ba-swiper .swiper {
  position: relative;
  width: 100%;
  padding: 6px 4px 44px;
  overflow: hidden;
  z-index: 1;
}

.ba-swiper .swiper-wrapper {
  align-items: stretch;
}

.ba-swiper .swiper-slide {
  height: auto;
  display: flex !important;
  box-sizing: border-box;
  direction: rtl;
  opacity: 1 !important;
  visibility: visible !important;
}

.ba-card {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  direction: rtl;
  text-align: right;
}

.ba-media {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: #eef6ff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(13, 51, 108, 0.12);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
  transition-delay: var(--ba-stagger, 0ms);
  pointer-events: none;
}

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

.ba-img-after {
  opacity: 0;
  z-index: 2;
}

.ba-card.is-after .ba-img-before {
  opacity: 0;
}

.ba-card.is-after .ba-img-after {
  opacity: 1;
}

.ba-labels {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.ba-label {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(2px);
}

.ba-label.is-active {
  background: var(--primary, #0b6bcb);
  color: #ffffff;
  transform: scale(1.05);
}

.ba-swiper .swiper-pagination {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.ba-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c7d9ef;
  opacity: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ba-swiper .swiper-pagination-bullet-active {
  background: var(--primary, #0b6bcb);
  transform: scale(1.2);
}

.ba-swiper .swiper-pagination-bullet:hover {
  transform: scale(1.1);
}

.quote {
  font-size: 1.05rem;
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--primary-dark);
  font-weight: 600;
}

.contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 8px;
  color: var(--muted);
}

.contact-form {
  background: #f8fbff;
  border: 1px solid #dce9f8;
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  background: #0a162b;
  color: #d7e2f2;
  direction: rtl;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 48px 0 36px;
}

.site-footer-col h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer-logo-link {
  display: inline-flex;
}

.site-footer-logo {
  max-height: 54px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer-tagline {
  margin: 0;
  line-height: 1.8;
  color: #b8c8df;
}

.site-footer-social {
  display: flex;
  gap: 12px;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.site-footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer-social a:hover {
  transform: scale(1.1);
}

.site-footer-social .social-facebook:hover {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.75);
  background: rgba(24, 119, 242, 0.14);
}

.site-footer-social .social-instagram:hover {
  color: #e4405f;
  border-color: rgba(228, 64, 95, 0.72);
  background: rgba(228, 64, 95, 0.14);
}

.site-footer-social .social-whatsapp:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.75);
  background: rgba(37, 211, 102, 0.14);
}

.site-footer-links,
.site-footer-contact,
.site-footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #d7e2f2;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d7e2f2;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.site-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  color: #9fb2cf;
  font-size: 0.92rem;
}

.site-footer-bottom-inner p {
  margin: 0;
}

/* Floating WhatsApp: double pulse rings + wobble icon; tooltip after 15s; button immediate */
.floating-whatsapp-wrap {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10050;
  width: 60px;
  height: 60px;
  direction: ltr;
  overflow: visible;
  isolation: isolate;
}

/* Concentric ripple rings (#25D366) — behind button, above page content via parent z-index */
.floating-whatsapp-wrap::before,
.floating-whatsapp-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid rgba(37, 211, 102, 0.7);
  pointer-events: none;
  z-index: -1;
  transform-origin: center center;
  animation: floating-whatsapp-pulse-ring 2.4s ease-out infinite;
}

.floating-whatsapp-wrap::after {
  animation-delay: 1.2s;
}

@keyframes floating-whatsapp-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.floating-whatsapp-bubble {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 10051;
  max-width: min(220px, 52vw);
  padding: 10px 14px;
  background: #ffffff;
  color: #0c254d;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(11, 107, 203, 0.14);
  box-shadow:
    0 10px 28px rgba(17, 44, 78, 0.14),
    0 2px 10px rgba(11, 79, 155, 0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(6px) scale(0.98);
  animation: floating-whatsapp-bubble-lifecycle 25s ease-in-out forwards;
}

/* 0–15s hidden → fade in → visible → gentle fade out (no layout shift; position fixed to viewport stack) */
@keyframes floating-whatsapp-bubble-lifecycle {
  0%,
  59.9% {
    opacity: 0;
    transform: translateY(-50%) translateX(6px) scale(0.98);
  }
  61% {
    opacity: 0.35;
    transform: translateY(-50%) translateX(2px) scale(0.99);
  }
  64% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
  84% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(4px) scale(0.98);
  }
}

.floating-whatsapp-bubble::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  margin-top: -5px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-left: 1px solid rgba(11, 107, 203, 0.14);
  border-bottom: 1px solid rgba(11, 107, 203, 0.14);
  transform: rotate(45deg);
  box-shadow: -2px 2px 6px rgba(17, 44, 78, 0.05);
}

.floating-whatsapp-bubble-text {
  display: block;
}

.floating-whatsapp {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2ae871 0%, #25d366 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    0 10px 20px rgba(0, 85, 165, 0.3);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.floating-whatsapp::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 44px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transform: translateY(0) scale(1);
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0.92;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    0 16px 30px rgba(0, 85, 165, 0.34);
  filter: saturate(1.04);
}

.floating-whatsapp:hover::after {
  transform: translateY(-2px) scale(1.04);
  opacity: 1;
}

.floating-whatsapp:active {
  transform: translateY(0) scale(0.92);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    0 6px 14px rgba(0, 85, 165, 0.28);
  filter: saturate(1);
}

.floating-whatsapp:active::after {
  transform: translateY(0) scale(1);
  opacity: 0.85;
}

.floating-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  animation: floating-whatsapp-icon-wobble 5.5s ease-in-out infinite;
}

@keyframes floating-whatsapp-icon-wobble {
  0%,
  86%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  88% {
    transform: rotate(-7deg) scale(1.03);
  }
  90% {
    transform: rotate(7deg) scale(1.03);
  }
  92% {
    transform: rotate(-4deg) scale(1.01);
  }
  94% {
    transform: rotate(0deg) scale(1);
  }
}

.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(10, 71, 40, 0.3));
}

@media (max-width: 420px) {
  .floating-whatsapp-bubble {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp-bubble {
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .floating-whatsapp-wrap::before,
  .floating-whatsapp-wrap::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .floating-whatsapp-icon {
    animation: none !important;
  }
}

.bs-acc-menu {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
}

.bs-acc-toggle {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5fbff 0%, #dbe8f9 100%);
  color: #0b4f9e;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.65),
    0 10px 20px rgba(0, 85, 165, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-acc-toggle:hover {
  transform: scale(1.08);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.72),
    0 14px 26px rgba(0, 85, 165, 0.32);
}

.bs-acc-toggle svg {
  width: 30px;
  height: 30px;
}

.bs-acc-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 240px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(10, 27, 52, 0.94);
  border: 1px solid rgba(188, 215, 243, 0.32);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bs-acc-menu.is-open .bs-acc-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bs-acc-panel h3 {
  margin: 0 0 10px;
  color: #f2f7ff;
  font-size: 0.98rem;
}

.bs-acc-actions {
  display: grid;
  gap: 8px;
}

.bs-acc-actions button,
.bs-acc-font-controls button {
  border: 1px solid rgba(197, 220, 245, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf3ff;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bs-acc-actions button:hover,
.bs-acc-font-controls button:hover {
  background: rgba(121, 179, 239, 0.24);
}

.bs-acc-actions button.is-active {
  background: rgba(72, 150, 232, 0.36);
  border-color: rgba(185, 224, 255, 0.58);
}

.bs-acc-font-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

body.bs-acc-high-contrast,
body.bs-acc-high-contrast .hero,
body.bs-acc-high-contrast main,
body.bs-acc-high-contrast section,
body.bs-acc-high-contrast footer {
  background: #000000 !important;
  color: #ffd900 !important;
}

body.bs-acc-high-contrast h1,
body.bs-acc-high-contrast h2,
body.bs-acc-high-contrast h3,
body.bs-acc-high-contrast p,
body.bs-acc-high-contrast li,
body.bs-acc-high-contrast span,
body.bs-acc-high-contrast label,
body.bs-acc-high-contrast a {
  color: #ffd900 !important;
}

body.bs-acc-grayscale {
  filter: grayscale(1);
}

body.bs-acc-readable-font,
body.bs-acc-readable-font * {
  font-family: Arial, system-ui, sans-serif !important;
}

body.bs-acc-highlight-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 3px;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 18px 0;
}

.bs-cookie-consent {
  position: fixed;
  right: 14px;
  left: 14px;
  bottom: 14px;
  z-index: 9990;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.bs-cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bs-cookie-consent-inner {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border-top: 3px solid #0b6bcb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(8, 31, 65, 0.16);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
}

.bs-cookie-consent-title {
  margin: 0;
  color: #0a2344;
  font-weight: 700;
}

.bs-cookie-consent-text {
  margin: 0;
  color: #244266;
  line-height: 1.6;
  font-size: 0.96rem;
}

.bs-cookie-consent-text a {
  color: #0b6bcb;
  font-weight: 700;
  text-decoration: underline;
}

.bs-cookie-consent-btn {
  border: none;
  background: #0b6bcb;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bs-cookie-consent-btn:hover {
  background: #0858a8;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-animation {
    order: -1;
    margin-top: 10px;
  }

  .smile-visual {
    width: min(240px, 64vw);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-blob {
    opacity: 0.22;
    animation-duration: 28s;
  }

  .bs-cookie-consent {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .bs-cookie-consent-inner {
    grid-template-columns: 1fr;
  }

  .bs-cookie-consent-btn {
    justify-self: start;
  }

}

@media (max-width: 640px) {
  .cards,
  .before-after .cards,
  .blog .cards {
    grid-template-columns: 1fr;
  }

  .team-member-photo {
    margin-left: auto;
    margin-right: auto;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .main-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }

  .section-read-more {
    margin-top: 18px;
  }

  .section-read-more-btn {
    min-width: 120px;
    text-align: center;
  }

  .bs-cookie-consent {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .bs-cookie-consent-inner {
    padding: 12px 12px 14px;
    border-radius: 12px;
  }

  .bs-cookie-consent-title {
    font-size: 0.96rem;
  }

  .bs-cookie-consent-text {
    font-size: 0.9rem;
  }

  .bs-cookie-consent-btn {
    width: 100%;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 0 26px;
  }

  .site-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .floating-whatsapp-wrap {
    left: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .bs-acc-menu {
    right: 14px;
    bottom: 14px;
  }

  .bs-acc-toggle {
    width: 50px;
    height: 50px;
  }

  .bs-acc-toggle svg {
    width: 24px;
    height: 24px;
  }

  .bs-acc-panel {
    right: 0;
    bottom: 58px;
    width: 220px;
  }

  .hero-blob-3 {
    display: none;
  }

  .smile-visual {
    animation-duration: 10s;
  }

  .btn-attn {
    animation-duration: 6.8s;
  }

  .btn-attn::after {
    animation-duration: 7.4s;
  }

  .section-heading {
    gap: 8px;
  }

  .heading-illustration {
    max-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .smile-visual,
  .hero-blob,
  .btn-attn,
  .btn-attn::after,
  .hover-sparkle.is-active,
  .heading-illustration-doctor,
  .doc-arm-wave,
  .heading-illustration-happy,
  .happy-star,
  .heading-illustration-compare,
  .compare-slider,
  .compare-knob,
  .testimonials .card {
    animation: none !important;
  }

  .btn,
  .bs-reveal,
  .nav {
    transition: none !important;
  }

  .bs-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .bs-cookie-consent,
  .bs-cookie-consent-btn {
    transition: none !important;
  }
}

/* Keep top navigation static while leaving hero image motion active */
header .nav,
header .brand,
header .brand-logo,
header .main-menu,
header .main-menu li,
header .main-menu a {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Disable only explicit plus/loading overlays if they appear */
.smile-photo-wrap .loading-plus,
.smile-photo-wrap .loader-plus,
.smile-photo-wrap.is-loading::before,
.smile-photo-wrap.is-loading::after {
    display: none !important;
    content: none !important;
}

/* Elementor bridge (pilot: Blog page template only) */
body.page-template-page-blog .elementor,
body.page-template-page-blog .elementor-widget-container {
  font-family: inherit;
  color: inherit;
}

body.page-template-page-blog .elementor-widget-heading .elementor-heading-title,
body.page-template-page-blog .elementor-widget-text-editor,
body.page-template-page-blog .elementor-widget-text-editor p,
body.page-template-page-blog .elementor-widget-text-editor li {
  font-family: inherit;
  color: inherit;
}

/* Blog Specific Styles */
.blog .smile-blog-heading,
.post-type-archive-post .smile-blog-heading {
  margin-bottom: 24px;
  text-align: right;
  color: #0f172a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.blog .smile-blog-grid,
.post-type-archive-post .smile-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog .smile-blog-card,
.post-type-archive-post .smile-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  direction: rtl;
  text-align: right;
}

.blog .smile-blog-card-image-link,
.post-type-archive-post .smile-blog-card-image-link {
  display: block;
  margin: -24px -24px 18px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

.blog .smile-blog-card-image,
.post-type-archive-post .smile-blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog .smile-blog-card-title,
.post-type-archive-post .smile-blog-card-title {
  margin: 0 0 10px;
  line-height: 1.35;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.blog .smile-blog-card-title a,
.post-type-archive-post .smile-blog-card-title a {
  color: #111827;
  text-decoration: none;
}

.blog .smile-blog-card-title a:hover,
.post-type-archive-post .smile-blog-card-title a:hover {
  color: #0f3e75;
  text-decoration: none;
}

.blog .smile-blog-card-date,
.post-type-archive-post .smile-blog-card-date {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.92rem;
}

.blog .smile-blog-card-excerpt,
.post-type-archive-post .smile-blog-card-excerpt {
  margin: 0 0 18px;
  color: #334155;
  font-family: "Segoe UI", Arial, sans-serif;
}

.blog .smile-blog-read-more,
.post-type-archive-post .smile-blog-read-more {
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid #d1d9e6;
  background: #ffffff;
  color: #0f3e75;
  border-radius: 10px;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog .smile-blog-read-more:hover,
.post-type-archive-post .smile-blog-read-more:hover {
  background: #f8fafc;
  border-color: #b8c4d6;
  color: #0b2f5a;
}

.blog .smile-blog-empty,
.post-type-archive-post .smile-blog-empty {
  margin: 8px 0 0;
  color: #475569;
  text-align: right;
}

.blog .pagination,
.post-type-archive-post .pagination,
.blog .nav-links,
.post-type-archive-post .nav-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.blog .page-numbers,
.post-type-archive-post .page-numbers {
  display: inline-block;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 7px 12px;
  color: #0f3e75;
  text-decoration: none;
  background: #ffffff;
}

.blog .page-numbers.current,
.post-type-archive-post .page-numbers.current {
  background: #0f3e75;
  border-color: #0f3e75;
  color: #ffffff;
}

@media (max-width: 900px) {
  .blog .smile-blog-grid,
  .post-type-archive-post .smile-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog .smile-blog-grid,
  .post-type-archive-post .smile-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Single Post Specific Styles */
.single-post .smile-single-post-page {
  background: #f6f9fc;
}

.single-post .smile-single-post-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  padding: 30px;
  direction: rtl;
  text-align: right;
}

.single-post .smile-single-post-header {
  margin-bottom: 20px;
}

.single-post .smile-single-post-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.single-post .smile-single-post-date {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.single-post .smile-single-post-thumbnail {
  margin-bottom: 20px;
}

.single-post .smile-single-post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.single-post .smile-single-post-content {
  color: #1f2937;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.85;
}

.single-post .smile-single-post-content h2,
.single-post .smile-single-post-content h3,
.single-post .smile-single-post-content h4 {
  color: #0f172a;
  margin: 1.2em 0 0.55em;
}

.single-post .smile-single-post-content p {
  margin: 0 0 1em;
}

.single-post .smile-single-post-content a {
  color: #0f3e75;
}

.single-post .smile-single-post-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
}

.single-post .smile-single-back-btn {
  border: 1px solid #ccd6e3;
  border-radius: 10px;
  background: #ffffff;
  color: #0f3e75;
  text-decoration: none;
  box-shadow: none;
}

.single-post .smile-single-back-btn:hover {
  background: #f8fafc;
  color: #0b2f5a;
}

@media (max-width: 640px) {
  .single-post .smile-single-post-card {
    padding: 22px;
  }
}
