/* header Css*/
   :root {
            --primary: #52C1EC;
            --accent: #405769;
            --gray: #4b5563;
            --dark: #1f2937;
        }

        #smart-header {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        }

        .nav-link {
            color: black;
            font-weight: 600;
            font-size: 16px;
            transition: color 0.2s;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .dropdown-arrow {
            transition: transform 0.25s;
        }

        .group:hover .dropdown-arrow {
            transform: rotate(180deg);
        }

        .dental-implants .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            width: auto;
            max-width: 95vw;
            background: white;
            border-radius: 0.75rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
            border: 1px solid rgba(229, 231, 235, 0.8);
            padding: 1rem 1rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.28s ease, transform 0.28s ease;
            transform: translateY(8px);
            z-index: 50;

        }

        .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            width: 920px;
            max-width: 95vw;
            background: white;
            border-radius: 0.75rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
            border: 1px solid rgba(229, 231, 235, 0.8);
            padding: 2.5rem 2.5rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.28s ease, transform 0.28s ease;
            transform: translateY(8px);
            z-index: 50;
            max-height: calc(100vh - 60px);
            overflow-y: auto;
        }

        .group:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }

        .mega-column h4 {
            color: #52C1EC;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--accent);
        }

        .mega-link {
            display: block;
            color: #374151;
            font-size: 14px;
            transition: all 0.15s;
        }

        .mega-link:hover {
            color: var(--primary);
            padding-left: 6px;
        }

        /* ── MOBILE ──────────────────────────────────────── */
        @media (max-width: 767px) {
            #desktop-nav {
                display: none;
            }

            #mobile-menu {
                position: fixed;
                inset: 0;
                background: white;
                z-index: 9999;
                transform: translateY(-100%);
                transition: transform 0.35s ease;
                overflow-y: auto;
            }

            #mobile-menu.active {
                transform: translateY(0) !important;
            }

            .mobile-header {
                background: #52C1EC;
                color: white;
                padding: 1rem 1.25rem;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 1.25rem;
                font-weight: 600;
            }

            .mobile-category {
                padding: 1.5rem 1.25rem;
                border-bottom: 1px solid #e5e7eb;
            }

            .mobile-category h3 {
                font-size: 1.4rem;
                font-weight: 700;
                color: #52C1EC;
                margin-bottom: 1.25rem;
                text-transform: uppercase;
            }

            .mobile-subcategory {
                margin-bottom: 1.5rem;
            }

            .mobile-subcategory h4 {
                font-size: 1.15rem;
                font-weight: 700;
                color: #52C1EC;
                margin-bottom: 0.75rem;
                border-left: 4px solid #52C1EC;
                padding-left: 0.75rem;
            }

            .mobile-service {
                display: block;
                padding: 0.75rem 0;
                color: #374151;
                font-size: 1.05rem;
            }

            .mobile-service:hover {
                color: var(--primary);
            }
        }

        @media (min-width: 768px) {

            .group {
                position: relative;
            }

            /* Invisible hover buffer */
            .group::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                top: 100%;
                height: 12px;
            }

            .mega-menu {
                margin-top: 0;
            }

            .group:hover .mega-menu,
            .mega-menu:hover {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateY(0);
            }
        }

.dropdown-menu-sub a {
    display: block;
    padding: 1rem 0;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.3s ease;
}
.dropdown-menu-sub a:hover {
    color: #0840A3 !important;
}


.negative-margin-top {
    margin-bottom: -100px !important;
}

/* ───────────────────────────────────────────────
   Contact Form 7 - Dental Appointment Style 2026
─────────────────────────────────────────────── */

.wpcf7-form {
  font-family: 'Inter', system-ui, sans-serif;
}

.wpcf7-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.wpcf7-form .input-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem !important;
  font-size: 1rem;
  color: #374151;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s ease;
  background-position: left 1rem center;
  background-repeat: no-repeat;
  background-size: 20px;
}

.wpcf7-form input[name="patient-name"].input-field,
.wpcf7-form input[name="patient-phone"].input-field,
.wpcf7-form input[name="patient-location"].input-field,
.wpcf7-form input[name="preferred-date"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}
.wpcf7-form input[name="patient-phone"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}
.wpcf7-form input[name="patient-location"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}
.wpcf7-form input[name="preferred-date"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}
.wpcf7-form input[name="patient-email"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}
.wpcf7-form select[name="service"].input-field {
  padding-left: 1rem !important;
  padding-right: 2.5rem !important;
}
.wpcf7-form textarea.input-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem !important;
  font-size: 1rem;
  color: #374151;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s ease;
  background-position: left 1rem top 1rem;
  background-repeat: no-repeat;
  background-size: 20px;
  min-height: 110px;
  resize: vertical;
}
.wpcf7-form textarea.input-field:focus {
  border-color: #DCF3FB;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: none;
}
.wpcf7-form textarea[name="message"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z'/%3E%3C/svg%3E");
}

.wpcf7-form input[name="patient-email"].input-field {
  width: 100% !important;
}
.wpcf7-form .input-field:focus,
.wpcf7-form select.input-field:focus {
  border-color: #DCF3FB;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: none;
}
.wpcf7-form select.input-field {
  padding-left: 1rem !important;
  padding-right: 2.5rem !important;
  -webkit-appearance: none;        
  -moz-appearance:    none;         
  appearance:         none; 
}
.wpcf7-form select[name="doctor"].input-field,
.wpcf7-form select[name="preferred-time"].input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-position: right 1.25rem center;
  background-repeat: no-repeat;
  background-size: 18px;
}
.wpcf7-form .radio-custom .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wpcf7-form .radio-custom input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #DCF3FB;
}

.wpcf7-form .radio-custom label {
  margin: 0;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.wpcf7-form .submit-btn {
  width: 100%;
  padding: 1.125rem 2rem;
  background-color:#000000;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

.wpcf7-form .submit-btn:hover, .emergency:hover {
  background-color:#405769;
}


.wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}


/* Testinomials Css */
.testimonials-swiper,
.testimonials-swiper .swiper-wrapper,
.testimonials-swiper .swiper-slide {
  overflow: visible !important;
}

.testimonial-card {
  overflow: visible;
}
.testimonials-swiper {
  padding-top: 3rem;
}

.testimonials-swiper .swiper-slide {
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonials-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 10;
}

.testimonials-swiper .swiper-pagination,
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
  display: none !important;
}
.testimonials-swiper .swiper-slide {
  height: auto;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonials-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 10;
}
.testimonial-card {
  padding-top: 2.5rem;
  min-height: 350px;
}
.avatar-wrapper {
  z-index: 20;
}
.testimonials-swiper {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

@media (min-width: 1024px) {
  .testimonials-swiper {
    padding-left: 4rem;
    padding-right: 4rem;
    margin-left: -4rem;
    margin-right: -4rem;
  }
}


 .mobile-hover:hover{
  border-bottom:2px solid#2B4CA1 !important ;
 }


/* Scroll Animation Keyframes */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply to elements in view */
.animate-on-scroll {
    view-timeline-name: --element;
    view-timeline-axis: block;
    animation-timeline: view();
    animation-name: fade-up;
    animation-range: entry 20% cover 40%;
    animation-fill-mode: both;
}

.animate-scale {
    view-timeline-name: --element;
    view-timeline-axis: block;
    animation-timeline: view();
    animation-name: scale-in;
    animation-range: entry 20% cover 50%;
    animation-fill-mode: both;
}

/* Stagger children automatically (magic!) */
.animate-group > * {
    animation-delay: calc(var(--index) * 150ms);
}

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

.faq-answer {
  display: none;
}
.faq-item {
  transition: all 0.3s ease;
  background: transparent;         
  box-shadow: none !important;     
  border-radius: 0;
}

.faq-item.active {
  background: transparent;
  box-shadow: none !important;    
}

.service-card {
  position: relative;        
  z-index: 0;               
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* ------------------------- */
/* BACKGROUND PSEUDO ELEMENT */
/* ------------------------- */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;                   
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;                
}

.service-card > * {
  position: relative;
  z-index: 1;
}
  .service-card  span {
    border-radius: 50px;
    background-color: white;
    text-decoration: none; 
  }

/* ------------------------- */
/* COLORS FOR EACH CARD       */
/* ------------------------- */
.hover-card::before { background-color: #E8F0F3;  border: 2px solid #DCF3FB;}
.purple-card::before { background-color: #B700FF; }
.skyblue-card::before   { background-color: #52C1EC;border:1px solid white }
.skyblue::before   { background-color: #DCF3FB;border:1px solid black }
.green-card::before  { background-color: #00C853; }
.hover-card:hover h3,
.hover-card:hover p {
  color: #000000 !important;    

}

.hover-card:hover {
  color: #000000 !important; 
}
/* ------------------------- */
/* DESKTOP HOVER             */
/* ------------------------- */
@media (hover: hover) {
  .service-card:hover::before {
    opacity: 1;
  }

  .service-card:hover h3 {
    color: black;
  }

  .page-id-6 .service-card:hover h3 {
    color:white;
  }
  
   
  .service-card:hover span {
    background-color: white;
    border-radius: 50px;
     text-decoration: none; 
    color: #DCF3FB;
  }
.service-card span:hover {
    background-color: white !important;
    color: black !important;
    text-decoration: none;
    border-radius: 50px;
}
 .service-card:hover .icon-border {
    border:1px solid black;
  }
  .service-card:hover p {
  color: black;
  }
  .page-id-6 .service-card:hover p {
  color: white;
  }
}
/* ------------------------- */
/* MOBILE TAP / FOCUS         */
/* ------------------------- */
@media (hover: none) {
  /* Make tap/focus visible */
  .service-card:focus-visible::before {
    opacity: 1;
  }
  
body:not(.page-id-5) .service-card:focus-visible h3 {
    color: white;
  }

  .service-card:focus-visible .icon-border {
    border: 2px solid white;
  }

  
body:not(.page-id-5) .service-card:focus-visible p {
    color: rgba(255, 255, 255, 0.9);
  }
  .service-card {
    transform: none !important;
  }
}

.service-card.is-active::before {
  opacity: 1;
}
 
body:not(.page-id-5) .service-card.is-active h3 {
  color: black;
}


.service-card.is-active .icon-border {
  border: 2px solid black;
}


body:not(.page-id-5) .service-card.is-active p {
  color: black;
}

  @keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .animate-spin-slow {
    animation: spin-slow 35s linear infinite;
    transform-origin: center;
  }

.hover-btn {
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .hover-btn:hover {
    background-color: #405769;
    border:1px solid #405769;
    color:white;
    transform: translateY(-2px);
  }
}
@media (hover: none) {
  .hover-btn:hover{
    background-color: #405769;
    border:1px solid #405769;
    color:white;
  }
}



.no-scrollbar::-webkit-scrollbar {
display: none;
}

.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}

/* Masonry Layout */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;         
}

@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

/* Prevent cards from breaking across columns */
.masonry-grid > * {
    break-inside: avoid;
    margin-bottom: 1.5rem;        /* Vertical spacing between cards */
}

/* Optional: Reduce gap on smaller screens */
@media (max-width: 640px) {
    .masonry-grid {
        column-gap: 1rem;
    }
}


.hidden-service{
display:none;
}