/*!
Theme Name: drranjitorthocare
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: drranjitorthocare
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ------------------------------
   RESET & BASE (Normalize)
------------------------------ */
/* 404 page */
/* Global spacing */
.default-page {
  padding: 100px 0;
  background: #f8f9fa;
}

/* Error Card */
.error-card {
  background: #fff;
  padding: 50px 30px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

/* 404 Big Text */
.error-code {
  font-size: 100px;
  font-weight: 800;
  color: #0c8a8a;
}

/* Title */
.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Text */
.error-text {
  color: #666;
}

/* Search input */
.error-search input {
  border-radius: 8px;
  padding: 10px;
}

/* archive page */
.post-card-inner {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.post-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.post-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-title a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

.post-title a:hover {
  color: #0c8a8a;
}
/* glide slider */
.glide__bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.glide__bullet--active {
  background: #14b8a6; /* teal */
  transform: scale(1.2);
}

.videoGlide {
  position: relative;
}

.videoGlide .glide__arrows {
  position: absolute;
  top: 43.5%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.videoGlide .glide__arrow {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #14b8a6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.videoGlide .glide__arrow:hover {
  background: #0f766e;
  transform: scale(1.1);
}

.videoGlide .glide__arrow--left {
  margin-left: 15px;
}

.videoGlide .glide__arrow--right {
  margin-right: 15px;
}
.textGlide {
  position: relative;
}

.textGlide .glide__slide {
  height: auto;
  padding: 5px 0;
}

.textGlide .card-medical {
  height: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.textGlide .card-medical:hover {
  transform: translateY(-5px);
}

.textGlide .flex {
  align-items: center;
}
.textGlide p {
  line-height: 1.6;
  min-height: 70px;
}

.textGlide .font-semibold {
  margin-top: auto;
}

.textGlide .glide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.textGlide .glide__arrow {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #14b8a6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.textGlide .glide__arrow:hover {
  background: #0f766e;
}

/* inner pages  */

.knee-page .section-padding {
  padding: 72px 0;
}

.knee-page .knee-hero {
  background: #eff3f6;
}

.knee-page .knee-hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  min-height: 74vh;
  padding: 26px 0;
}

.knee-page .knee-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 18px 0;
}

.knee-page .knee-hero-media {
  background: #f4f2c8;
  border-radius: 32px;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 20px 0;
  overflow: hidden;
}

.knee-page .knee-hero-media img {
  width: auto;
  max-height: 410px;
  object-fit: contain;
}

.knee-page .knee-hero-lead {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.knee-page .about-doctor-image-wrap {
  background: linear-gradient(145deg, #f8fbfd 0%, #ecf6f8 100%);
  border: 1px solid hsl(var(--border));
}

.knee-page ul.knee-bullets {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.knee-page ul.knee-bullets li {
  position: relative;
  padding-left: 32px;
}

.knee-page ul.knee-bullets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: hsl(var(--teal) / 0.14);
  color: hsl(var(--teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.knee-page .knee-content p {
  line-height: 1.8;
}

.knee-page .knee-content p:not([class*="text-"]) {
  color: hsl(var(--muted-foreground));
}

.knee-page .knee-approach-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.knee-page .knee-approach-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  padding: 22px;
  height: 100%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.knee-page .knee-approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.knee-page .knee-approach-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: hsl(var(--teal) / 0.12);
  color: hsl(var(--teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.knee-page .knee-faq .accordion-item {
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

.knee-page .knee-faq .accordion-button:focus {
  box-shadow: none;
}

@media (min-width: 1024px) {
  .knee-page .section-padding {
    padding: 82px 0;
  }

  .knee-page .knee-hero-wrap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
    padding: 34px 0;
  }

  .knee-page .knee-hero-copy {
    text-align: left;
    padding-right: 10px;
  }

  .knee-page .knee-hero-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .knee-page .knee-hero-media {
    min-height: 520px;
    border-radius: 0;
    padding-top: 24px;
    margin-right: -24px;
  }

  .knee-page .knee-hero-media img {
    max-height: 540px;
  }

  .knee-page .knee-approach-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .knee-page .knee-approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .knee-page .section-padding {
    padding: 56px 0;
  }
}

/* pop-up css */
/* ================= MODAL BACKDROP ================= */
.modal-backdrop.show {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.4);
}

/* ================= MODAL BOX ================= */
.modal-content {
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  padding: 30px !important;
}

/* ================= HEADER ================= */
.modal-content h5 {
  font-size: 22px;
  font-weight: 700;
}

.modal-content p {
  font-size: 14px;
  color: #6b7280;
}

/* CLOSE BUTTON */
.btn-close {
  background-color: #f1f5f9;
  border-radius: 50%;
  padding: 8px;
  opacity: 1;
}

/* ================= INPUT FIELDS ================= */
.form-control {
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.3s ease;
}

/* FOCUS EFFECT */
.form-control:focus {
  border-color: #0ea5a4;
  box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.15);
  background: #ffffff;
}

/* TEXTAREA */
textarea.form-control {
  min-height: 100px;
}

/* ================= FILE INPUT ================= */
input[type="file"] {
  padding: 10px;
  background: #f1f5f9;
  border-radius: 12px;
}

/* ================= CHECKBOX ================= */
.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.form-check-input:checked {
  background-color: #0ea5a4;
  border-color: #0ea5a4;
}

/* ================= BUTTON ================= */
.btn-primary {
  background: linear-gradient(135deg, #0ea5a4, #14b8a6);
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* HOVER */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(14, 165, 164, 0.3);
}

/* ================= FORM SPACING ================= */
.form-group {
  margin-bottom: 16px;
}

/* ================= ANIMATION ================= */
.modal.fade .modal-dialog {
  transform: translateY(40px) scale(0.95);
  transition: all 0.4s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}
/* modal popup */
.modal-content {
  border: none;
}

.form-control {
  border-radius: 10px;
  padding: 12px;
}

textarea.form-control {
  resize: none;
}

.btn-close {
  font-size: 12px;
}

.form-check-input:checked {
  background-color: #1f7a7a;
  border-color: #1f7a7a;
}

.modal-dialog.modal-dialog-centered.modal-lg {
  max-width: 540px;
}

/* REMOVE CF7 DEFAULT */
.wpcf7 p {
  margin: 20 !important;
}

/* INPUT DESIGN */
.wpcf7 input,
.wpcf7 textarea {
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
}

/* FOCUS STYLE */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #1f7a7a;
  box-shadow: none;
}

/* BUTTON */
.wpcf7-submit {
  background: #1f7a7a;
  border-radius: 30px;
  padding: 14px;
  border: none;
  font-weight: 600;
}

/* FILE INPUT FIX */
.wpcf7 input[type="file"] {
  padding: 10px;
}

/* ERROR MESSAGE */
.wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 5px;
}

/* CHECKBOX ALIGN */
.wpcf7 .form-check-input {
  margin-top: 4px;
}

/* REMOVE DEFAULT RED BORDER */
.wpcf7-not-valid {
  border-color: #e5e5e5 !important;
}

.floating-buttons {
  position: fixed;
  top: 350px;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
}

/* Common Button Style */
.float-btn {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transition: 0.3s;
}

/* Call Button - Left */
.call-btn {
  left: 15px;
  background: #2291a0;
}

/* WhatsApp Button - Right */
.whatsapp-btn {
  right: 15px;
  background: #2291a0;
}

/* Hover Effect */
.float-btn:hover {
  transform: scale(1.1);
}

/* Right WhatsApp */
.whatsapp-btn {
  right: 15px;
  background: #2291a0;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }
}

/* Optional Blink Effect */
.float-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: blink 2s infinite;
  z-index: -1;
}

@keyframes blink {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
