/* ==========================================================================
   2H Medical Centre - Corpox Demo 3 Theme Stylesheet
   ========================================================================== */

/* 1. TOP BAR */
.thm-topbar {
  background-color: var(--thm-dark);
  color: #cbd5e1;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.thm-topbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.thm-topbar a:hover {
  color: #ffffff;
}
.thm-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 20px;
}
.thm-topbar-item i {
  color: var(--thm-accent);
}
.thm-badge-pill {
  background: rgba(229, 57, 53, 0.18);
  color: #ff8a80;
  border: 1px solid rgba(229, 57, 53, 0.35);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 2. HEADER & NAVIGATION */
.thm-header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.3s ease;
}
.thm-header.is-scrolled {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding-top: 2px;
  padding-bottom: 2px;
}
.thm-brand-logo img {
  max-height: 62px;
  width: auto;
  object-fit: contain;
  transition: max-height 0.3s ease;
}
.thm-header.is-scrolled .thm-brand-logo img {
  max-height: 52px;
}

.navbar-nav .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
  padding: 28px 16px !important;
  position: relative;
  transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--thm-primary);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--thm-primary);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
  border: none;
  border-radius: var(--thm-radius-md);
  box-shadow: var(--thm-shadow-lg);
  padding: 12px 8px;
  margin-top: 0;
  min-width: 240px;
  animation: dropdownFadeIn 0.25s ease forwards;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.navbar-nav .dropdown-item {
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  padding: 9px 16px;
  border-radius: var(--thm-radius-sm);
  transition: all 0.2s ease;
}
.navbar-nav .dropdown-item:hover {
  background-color: var(--thm-primary-light);
  color: var(--thm-primary);
  transform: translateX(4px);
}

/* Header Buttons */
.btn-thm-primary {
  background: linear-gradient(135deg, var(--thm-primary) 0%, #2955d9 100%);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(21, 61, 168, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn-thm-primary:hover {
  background: linear-gradient(135deg, var(--thm-primary-dark) 0%, var(--thm-primary) 100%);
  box-shadow: 0 6px 20px rgba(21, 61, 168, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-thm-accent {
  background: linear-gradient(135deg, var(--thm-accent) 0%, #f05252 100%);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn-thm-accent:hover {
  background: linear-gradient(135deg, var(--thm-accent-hover) 0%, var(--thm-accent) 100%);
  box-shadow: 0 6px 22px rgba(229, 57, 53, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-thm-outline {
  border: 2px solid var(--thm-primary);
  color: var(--thm-primary) !important;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn-thm-outline:hover {
  background: var(--thm-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* 3. HERO SECTION (CORPOX DEMO 3 STYLE) */
.thm-hero {
  position: relative;
  background: linear-gradient(135deg, #f8fafd 0%, #edf3ff 100%);
  padding: 90px 0 140px;
  overflow: hidden;
}
.thm-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 61, 168, 0.08) 0%, rgba(21, 61, 168, 0) 70%);
  pointer-events: none;
}
.thm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--thm-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--thm-shadow-sm);
  margin-bottom: 22px;
}
.thm-hero-tag i {
  color: var(--thm-accent);
}
.thm-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--thm-dark);
  margin-bottom: 22px;
}
.thm-hero-title span {
  color: var(--thm-primary);
  position: relative;
  display: inline-block;
}
.thm-hero-lead {
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}
.thm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 35px;
}
.thm-hero-hotline {
  display: flex;
  align-items: center;
  gap: 14px;
}
.thm-hotline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--thm-primary-light);
  color: var(--thm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.thm-hotline-text small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}
.thm-hotline-text strong {
  font-size: 16px;
  color: var(--thm-dark);
}

/* Hero Doctor Photo Frame */
.thm-hero-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.thm-hero-image {
  width: 100%;
  max-width: 490px;
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(12, 38, 112, 0.22);
  display: block;
  margin: 0 auto;
  border: 6px solid #ffffff;
}
.thm-floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatSlow 4s ease-in-out infinite;
}
.thm-floating-badge.badge-top-left {
  top: 30px;
  left: -20px;
}
.thm-floating-badge.badge-bottom-right {
  bottom: 25px;
  right: -20px;
  animation-delay: 2s;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.thm-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.thm-badge-icon.blue { background: #e0e7ff; color: #4338ca; }
.thm-badge-icon.red { background: #fee2e2; color: #dc2626; }
.thm-badge-icon.green { background: #dcfce7; color: #16a34a; }

/* 4. OVERLAPPING FEATURE CARDS (CORPOX SIGNATURE) */
.thm-features-overlap {
  margin-top: -85px;
  position: relative;
  z-index: 10;
  margin-bottom: 70px;
}
.thm-feature-card {
  background: #ffffff;
  border-radius: var(--thm-radius-md);
  padding: 30px 24px;
  box-shadow: var(--thm-shadow-md);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.thm-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(21, 61, 168, 0.12);
  border-color: rgba(21, 61, 168, 0.3);
}
.thm-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--thm-primary-light);
  color: var(--thm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.thm-feature-card:hover .thm-feature-icon {
  background: var(--thm-primary);
  color: #ffffff;
  transform: scale(1.05);
}
.thm-feature-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}
.thm-feature-card p {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}

/* 5. SECTIONS GENERAL */
.thm-section {
  padding: 85px 0;
}
.thm-section.bg-light {
  background-color: var(--thm-bg-light) !important;
}
.thm-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}
.thm-sub-title {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--thm-accent);
  margin-bottom: 12px;
}
.thm-section-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--thm-dark);
  margin-bottom: 16px;
}

/* 6. ABOUT US & VALUE TABS */
.thm-nav-pills .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 10px 22px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}
.thm-nav-pills .nav-link.active,
.thm-nav-pills .nav-link:hover {
  background: var(--thm-primary);
  color: #ffffff;
}
.thm-checklist {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}
.thm-checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 15.5px;
  color: #334155;
  font-weight: 500;
}
.thm-checklist li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: #10b981;
  font-size: 18px;
}

/* 7. SERVICES GRID */
.thm-service-box {
  background: #ffffff;
  border-radius: var(--thm-radius-md);
  padding: 34px 28px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--thm-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.thm-service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(21, 61, 168, 0.3);
}
.thm-service-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #f1f5f9;
  color: var(--thm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}
.thm-service-box:hover .thm-service-icon {
  background: var(--thm-primary);
  color: #ffffff;
}
.thm-service-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.thm-service-box p {
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.65;
  flex-grow: 1;
}
.thm-service-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--thm-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
}
.thm-service-link:hover {
  color: var(--thm-accent);
  gap: 10px;
}

/* 8. CORPORATE HEALTH BANNER */
.thm-corporate-banner {
  background: linear-gradient(135deg, var(--thm-dark) 0%, #172554 100%);
  border-radius: 24px;
  padding: 60px 50px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(10, 20, 47, 0.3);
}
.thm-corporate-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.thm-corporate-banner h3 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.thm-corporate-banner p {
  color: #94a3b8;
  font-size: 16px;
  max-width: 600px;
  line-height: 1.7;
}

/* 9. STATS COUNTER BAR */
.thm-stats-section {
  background: var(--thm-primary);
  color: #ffffff;
  padding: 55px 0;
}
.thm-stat-item {
  text-align: center;
  padding: 10px 15px;
}
.thm-stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.thm-stat-label {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* 10. FOOTER */
.thm-footer {
  background-color: #080f24;
  color: #94a3b8;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.thm-footer h5 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.thm-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--thm-accent);
}
.thm-footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.thm-footer-links li {
  margin-bottom: 11px;
}
.thm-footer-links a {
  color: #94a3b8;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.thm-footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.thm-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14.5px;
}
.thm-footer-contact i {
  color: var(--thm-accent);
  margin-top: 5px;
}
.thm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  margin-top: 60px;
  font-size: 14px;
}

/* 11. BACK TO TOP BUTTON */
.thm-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--thm-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.thm-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.thm-back-to-top:hover {
  background: var(--thm-accent);
  color: #ffffff;
  transform: translateY(-4px);
}

/* 12. RESPONSIVE BREAKPOINTS */
@media (max-width: 991.98px) {
  .thm-hero {
    padding: 60px 0 100px;
    text-align: center;
  }
  .thm-hero-title {
    font-size: 38px;
  }
  .thm-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .thm-hero-actions {
    justify-content: center;
  }
  .thm-hero-hotline {
    justify-content: center;
    width: 100%;
    margin-top: 15px;
  }
  .thm-hero-image-wrap {
    margin-top: 40px;
  }
  .thm-floating-badge.badge-top-left {
    left: 10px;
    top: 10px;
  }
  .thm-floating-badge.badge-bottom-right {
    right: 10px;
    bottom: 10px;
  }
  .thm-features-overlap {
    margin-top: 30px;
  }
  .navbar-nav .nav-link {
    padding: 12px 0 !important;
  }
}
@media (max-width: 575.98px) {
  .thm-hero-title {
    font-size: 30px;
  }
  .thm-topbar-item {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
  }
  .thm-corporate-banner {
    padding: 35px 24px;
  }
}

/* 13. UNIVERSAL PLUGIN COMPATIBILITY (Forms, WooCommerce, Gutenberg) */
/* Form Plugins: Contact Form 7, WPForms, Fluent Forms */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form select,
.wpforms-form textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #cbd5e1;
  border-radius: var(--thm-radius-sm);
  background-color: #ffffff;
  color: var(--thm-dark);
  font-size: 15px;
  margin-bottom: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus {
  outline: none;
  border-color: var(--thm-primary);
  box-shadow: 0 0 0 3px rgba(21, 61, 168, 0.15);
}
.wpcf7-submit,
.wpforms-submit {
  background: var(--thm-accent) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 30px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
.wpcf7-submit:hover,
.wpforms-submit:hover {
  background: var(--thm-accent-hover) !important;
  transform: translateY(-2px);
}

/* WooCommerce General Harmonization */
.woocommerce .woocommerce-breadcrumb {
  margin-bottom: 25px;
  font-size: 14px;
}
.woocommerce span.onsale {
  background-color: var(--thm-accent) !important;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--thm-primary) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--thm-primary-dark) !important;
  transform: translateY(-2px);
}


