/* 1st Pain Management - Professional Medical Theme (Charcoal, Deep Navy, Medical Orange) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --charcoal-heading: #333333;
  --charcoal-body: #4A4A4A;
  --navy-blue: #104785;
  --navy-dark: #0C386A;
  --medical-orange: #E58110;
  --orange-hover: #C26508;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --border-light: #E5E7EB;
}

/* Universal Mobile Responsiveness & Strict Overflow Prevention */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #4A4A4A;
  background-color: #FFFFFF;
  scroll-behavior: smooth;
  line-height: 1.6;
}

img, video, iframe {
  max-width: 100%;
}

/* Zero Cropping Hero Image & Carousel */
.hero-image-contain {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.carousel-track {
  display: flex;
  width: 200%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
}

/* Headings Typography */
h1, h2 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #333333;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3, h4 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #104785;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: #4A4A4A;
}

/* Primary CTA Button Global Styling */
.btn-primary {
  background-color: #104785;
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background-color: #E58110;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(229, 129, 16, 0.28);
}

/* Outline / Secondary Button Styling */
.btn-outline {
  border: 1.5px solid #104785;
  color: #104785;
  background-color: transparent;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background-color: #104785;
  color: #FFFFFF;
}

/* Accordion Smooth Transitions */
.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-out, padding 0.25s ease;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  opacity: 1;
  padding-top: 0.75rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: #E58110;
}

.accordion-item.active {
  border-color: #104785;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(16, 71, 133, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
  background: #C3D9EB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #104785;
}

/* Video Responsive Frame */
.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Clean Minimal Card Shadows */
.clean-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.clean-card:hover {
  border-color: #104785;
  box-shadow: 0 10px 25px -5px rgba(16, 71, 133, 0.08);
}
