@tailwind base;
@tailwind components;
@tailwind utilities;

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Defer offscreen rendering to improve Speed Index */
.section-defer {
  content-visibility: auto;
}

/* Font Face Declarations - Using local fonts from public folder */

/* Oswald Font - For Titles */
@font-face {
  font-family: 'Oswald';
  src: url('/Oswald/Oswald-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('/Oswald/Oswald-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('/Oswald/Oswald-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('/Oswald/Oswald-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('/Oswald/Oswald-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('/Oswald/Oswald-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Source Sans 3 Font - For Body Text */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/Source_Sans_3/SourceSans3-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables for easy color access */
:root {
  --primary: #138b9a;
  --primary-light: #26b8d1;
  --primary-dark: #0f6f7b;
  --primary-50: #e6f7f9;
  --primary-100: #b3e8f0;
  --primary-200: #80d9e7;
}

/* Base Styles */
body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
}

/* Standardized Heading Sizes - Override all inline classes */
h1 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 2.5rem !important;
  /* 40px */
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem !important;
    /* 56px */
    line-height: 1.2 !important;
  }
}

h2 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.875rem !important;
  /* text-3xl - 30px */
  line-height: 2.25rem !important;
  font-weight: 700 !important;
}

@media (min-width: 1024px) {
  h2 {
    font-size: 2.25rem !important;
    /* text-4xl - 36px */
    line-height: 2.5rem !important;
  }
}

h3 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.25rem;
  /* text-xl - 20px */
  line-height: 1.75rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  h3 {
    font-size: 1.5rem;
    /* text-2xl - 24px */
    line-height: 2rem;
  }
}

/* Description text size - 16px */
p.description,
.text-description,
.description {
  font-size: 16px;
}

/* Override common description patterns to ensure 16px */
section p.text-gray-600.leading-relaxed,
p.text-gray-600.leading-relaxed:not(.text-sm):not(.text-xs):not(.text-base):not(.text-lg):not(.text-xl) {
  font-size: 16px !important;
}

/* Oswald font for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Oswald', sans-serif !important;
}

/* Oswald font for spans inside headings */
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  font-family: 'Oswald', sans-serif !important;
  line-height: inherit !important;
}

/* Override leading-tight class for h1 in banner sections */
h1.leading-tight,
h1[class*="leading-tight"] {
  line-height: 1.2 !important;
}

/* Ensure spans inside h1 with leading-tight also have proper line-height */
h1.leading-tight span,
h1[class*="leading-tight"] span {
  line-height: inherit !important;
}

/* Source Sans 3 for body text */
p,
span,
div,
a,
li,
td,
th,
label,
input,
textarea,
select,
button {
  font-family: 'Source Sans 3', sans-serif;
}

/* Serif font utility (if needed) */
.font-serif {
  font-family: 'Source Sans 3', sans-serif;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #80d9e7;
  color: #061b1e;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #26b8d1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #138b9a;
}

/* Writing Mode for Vertical Text */
.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Primary Color Utilities */
.bg-primary {
  background-color: #138b9a;
}

.bg-primary-light {
  background-color: #26b8d1;
}

.bg-primary-dark {
  background-color: #0f6f7b;
}

.text-primary {
  color: #138b9a;
}

.text-primary-light {
  color: #26b8d1;
}

.border-primary {
  border-color: #138b9a;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(20px, -20px) scale(1.05);
  }

  50% {
    transform: translate(-10px, 20px) scale(0.95);
  }

  75% {
    transform: translate(-20px, -10px) scale(1.02);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-blob {
  animation: blob 8s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Animation delays */
.animation-delay-1000 {
  animation-delay: 1s;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-3000 {
  animation-delay: 3s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Animation Delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Button Styles */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #374151;
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .btn-dark {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

.btn-dark:hover {
  background-color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #138b9a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
  border: 2px solid #138b9a;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn-purple {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.btn-purple:hover {
  background-color: #0f6f7b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(19, 139, 154, 0.4);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: white;
  color: #138b9a;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid white;
  cursor: pointer;
  white-space: nowrap;
}

.btn-white:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #138b9a;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid #138b9a;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: #e6f7f9;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid white;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Step Indicator */
.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  color: #9ca3af;
  transition: all 0.3s;
  border: 2px solid #e5e7eb;
}

@media (min-width: 640px) {
  .step-circle {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

.step-circle.active {
  background-color: #138b9a;
  color: white;
  border-color: #138b9a;
}

.step-line {
  width: 2rem;
  height: 2px;
  background-color: #e5e7eb;
}

@media (min-width: 640px) {
  .step-line {
    width: 3rem;
  }
}

/* Form Input */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 2rem;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background-color: white;
}

@media (min-width: 640px) {
  .form-input {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
}

.form-input:focus {
  outline: none;
  border-color: #138b9a;
  box-shadow: 0 0 0 3px rgba(19, 139, 154, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: #138b9a;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  height: auto;
}

.btn-submit:hover {
  background-color: #0f6f7b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -5px rgba(19, 139, 154, 0.4);
}

/* Service Card */
.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .service-card {
    padding: 2rem;
  }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .service-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
  }
}

/* Testimonial Card */
.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .testimonial-card {
    padding: 2rem;
  }
}

.testimonial-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Hover utilities */
.hover-primary:hover {
  color: #138b9a;
}

.hover-primary-light:hover {
  color: #26b8d1;
}

/* Modal Input Styles */
.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background-color: #f9fafb;
}

.modal-input:focus {
  outline: none;
  border-color: #138b9a;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(19, 139, 154, 0.1);
}

.modal-input::placeholder {
  color: #9ca3af;
}

/* Sticky Button */
.sticky-btn {
  background-color: #138b9a;
}

.sticky-btn:hover {
  background-color: #0f6f7b;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom Utility Classes for Inline Style Replacement */

/* Background Colors */
.bg-custom-primary {
  background-color: #138b9a;
}

.bg-custom-primary-50 {
  background-color: #e6f7f9;
}

.bg-custom-primary-100 {
  background-color: #b3e8f0;
}

.bg-custom-primary-200 {
  background-color: #80d9e7;
}

.bg-custom-primary-300 {
  background-color: #4dcade;
}

.bg-custom-hero {
  background-color: #f8f6fa;
}

/* Text Colors */
.text-custom-primary {
  color: #138b9a;
}

.text-custom-primary-100 {
  color: #b3e8f0;
}

.text-primary-200 {
  color: #80d9e7;
}

/* Font Sizes */
.text-size-16 {
  font-size: 16px;
}

.text-size-18 {
  font-size: 18px;
}

/* Border Colors */
.border-custom-primary {
  border-color: #138b9a;
}

/* Background Images */
.bg-pattern-dots {
  background-image: radial-gradient(circle at 2px 2px, #138b9a 1px, transparent 0);
  background-size: 40px 40px;
}

.bg-gradient-primary {
  background-image: linear-gradient(135deg, #138b9a 0%, #26b8d1 100%);
}

.bg-gradient-overlay {
  background: linear-gradient(to top, rgba(19, 139, 154, 0.8), transparent);
}

/* Transform Utilities */
.transform-decorative-1 {
  transform: translate(50%, -50%);
}

.transform-decorative-2 {
  transform: translate(-50%, 50%);
}

/* Indicator Colors */
.bg-indicator-active {
  background-color: #138b9a;
}

.bg-indicator-inactive {
  background-color: #e5e7eb;
}

/* Button with transparent background and primary border/text */
.btn-outline-primary {
  border-color: #138b9a;
  color: #138b9a;
  background-color: transparent;
}

/* Badge style - primary background with primary text */
.badge-primary {
  background-color: #e6f7f9;
  color: #138b9a;
}

/* Green badge style */
.badge-green {
  border-color: #22c55e;
  background-color: #f0fdf4;
}

/* Progress bar background */
.bg-progress-bar {
  background-color: #138b9a;
}

/* Progress bar width using CSS variable */
.progress-bar-width {
  width: var(--progress-width, 0%);
}

/* Decorative orb backgrounds */
.bg-decorative-orb {
  background-color: #138b9a;
}

/* Overlay with theme color */
.bg-overlay-theme {
  background-color: rgba(19, 139, 154, 0.8);
}

/* Testimonial slider transform using CSS variable */
.testimonial-slider-transform {
  transform: translateX(var(--testimonial-slider-offset, 0%));
}

/* Slider transform using CSS variable */
.slider-transform {
  transform: translateX(var(--slider-offset, 0%));
}

/* Progress bar width using CSS variable */
.progress-bar-width {
  width: var(--progress-width, 0%);
}

/* Dynamic slider container - sets CSS variable from inline style value */
.slider-container {
  --testimonial-slider-offset: calc(var(--offset-value, 0) * -1%);
}

.slider-container[data-slider-offset] {
  --slider-offset: calc(var(--slider-value, 0) * -1%);
}

.progress-container {
  --progress-width: calc(var(--progress-value, 0) * 1%);
}

/* Image overlay badge - positioned on images */
.image-overlay-badge {
  background-color: #138b9a;
}

.image-overlay-badge-text {
  color: #80d9e7;
}

/* Remove color:transparent from images */
img,
Image,
[data-next-image],
.next-image-wrapper img {
  color: inherit !important;
}

/* Ensure Next.js Image components don't have color:transparent */
img[style*="color:transparent"],
img[style*="color: transparent"] {
  color: inherit !important;
}

/* Additional Background Colors */
.bg-custom-hero-section {
  background-color: #f0f9fa;
}

.bg-custom-primary-200 {
  background-color: #80d9e7;
}

.bg-custom-primary-300 {
  background-color: #4dcade;
}

/* Background Pattern */
.bg-pattern-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23138b9a' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Inline Style Replacements */

/* Text Colors */
.text-primary-inline {
  color: #138b9a;
}

.text-primary-100-inline {
  color: #b3e8f0;
}

.text-primary-200-inline {
  color: #80d9e7;
}

/* Background Colors */
.bg-primary-inline {
  background-color: #138b9a;
}

.bg-primary-50-inline {
  background-color: #e6f7f9;
}

.bg-primary-100-inline {
  background-color: #b3e8f0;
}

.bg-primary-200-inline {
  background-color: #80d9e7;
}

/* Border Styles */
.border-none-inline {
  border: 0;
}

.border-0 {
  border: 0;
}

/* Font Sizes */
.text-18px {
  font-size: 18px;
}

/* Line Height */
.leading-1 {
  line-height: 1;
}

/* Accent Color for Inputs */
.accent-primary {
  accent-color: #138b9a;
}

/* Progress Bar Width (using CSS variable) */
.progress-bar {
  width: var(--progress-width, 0%);
}

/* Max Width Utilities */
.max-w-1480 {
  max-width: 1480px;
}

/* Quote Block Line Height */
.quote-line-height {
  line-height: 1;
}

/* Suburb Name Font Size Override */
h3.suburb-name,
.suburb-name {
  font-size: 16px !important;
  line-height: 1.5 !important;
}

@media (min-width: 1024px) {

  h3.suburb-name,
  .suburb-name {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

/* Google Places Autocomplete Dropdown - Ensure it appears above modals */
.pac-container {
  z-index: 9999 !important;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: absolute !important;
  /* Prevent body scroll from affecting pac-container */
  transform: translateZ(0);
  will-change: transform;
}

.pac-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
}

.pac-item:hover {
  background-color: #f3f4f6;
}

.pac-item-selected {
  background-color: #e6f7f9;
}

/* Hide date placeholder text on empty date inputs (use overlay text instead) */
.job-date-input.date-empty::-webkit-datetime-edit,
.job-date-input.date-empty::-webkit-datetime-edit-fields-wrapper,
.job-date-input.date-empty::-webkit-datetime-edit-text,
.job-date-input.date-empty::-webkit-datetime-edit-month-field,
.job-date-input.date-empty::-webkit-datetime-edit-day-field,
.job-date-input.date-empty::-webkit-datetime-edit-year-field {
  color: transparent;
}

/* Force selection color to white for job date input */
.job-date-input::selection {
  background: #ffffff;
  color: transparent;
}

/* Prevent text selection on job date input */
.job-date-input {
  user-select: none;
}

/* Inclusions & Exclusions content styling */
.inclusion-exclusion-content {
  color: #1f2937;
}

/* Make row div use flexbox for left-right layout */
.inclusion-exclusion-content .row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  margin: 0 !important;
  align-items: stretch !important;
}

/* Make column divs flex containers so ul can fill height */
.inclusion-exclusion-content .row>div {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 calc(50% - 12px) !important;
  min-width: 0 !important;
}

/* Make paragraphs inside row span full width */
.inclusion-exclusion-content .row>p {
  width: 100% !important;
  flex-basis: 100% !important;
}

/* Make headings inside row span full width */
.inclusion-exclusion-content .row>h3.inclusions-heading {
  width: 100% !important;
  flex-basis: 100% !important;
}

.inclusion-exclusion-content .endoflease {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 24px 0 12px;
}

.inclusion-exclusion-content .endoflease1 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 18px 0 10px;
}

/* Hide div.inclusions-heading but show h3.inclusions-heading */
.inclusion-exclusion-content div.inclusions-heading {
  display: none !important;
}

/* Style h3.inclusions-heading to be visible */
.inclusion-exclusion-content h3.inclusions-heading {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 10px 0 5px;
  display: block !important;
}

.inclusion-exclusion-content p {
  margin: 0 0 0;
  color: #4b5563;
  line-height: 1.7;
}

/* Add small margin only for first paragraph in row */
.inclusion-exclusion-content .row>p:first-child {
  margin-top: 0;
  margin-bottom: 0;
}

/* Normal line spacing between paragraphs in row */
.inclusion-exclusion-content .row>p+p {
  margin-top: 0;
  margin-bottom: 0;
}

.inclusion-exclusion-content p:empty {
  display: none;
}

/* Style each ul as a card with border - li items stay in single column */
.inclusion-exclusion-content ul,
.inclusion-exclusion-content ul.inclusions-list {
  display: block !important;
  grid-template-columns: none !important;
  list-style: none !important;
  padding: 10px 16px !important;
  margin: 0 0 16px 0 !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  width: 100% !important;
  flex: 1 !important;
  height: 100% !important;
}

/* Style list items - single column, top to bottom */
.inclusion-exclusion-content ul>li {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 0 8px 24px !important;
  margin: 0 !important;
  list-style: none !important;
  position: relative !important;
}

/* Style list item bullet point */
.inclusion-exclusion-content ul>li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 16px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: #9ca3af !important;
}

/* Nested lists (ul inside li) should not be styled as cards */
.inclusion-exclusion-content ul>li>ul {
  display: block !important;
  grid-template-columns: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 8px 0 0 0 !important;
  gap: 0 !important;
}

.inclusion-exclusion-content ul>li>ul>li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 6px 0 6px 18px !important;
  margin-bottom: 6px !important;
  position: relative !important;
}

.inclusion-exclusion-content ul>li>ul>li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: #9ca3af !important;
}

.inclusion-exclusion-content .fusion-li-item-content {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.inclusion-exclusion-content .fusion-checklist .fusion-li-item::before,
.inclusion-exclusion-content .mainul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #9ca3af;
}

.inclusion-exclusion-content .fusion-li-item-content {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

.inclusion-exclusion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 12px 0 20px;
}

.inclusion-exclusion-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.inclusion-exclusion-card .endoflease1 {
  margin: 0;
}

.inclusion-exclusion-card .fusion-checklist {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.inclusion-exclusion-content strong {
  color: #111827;
}

.inclusion-exclusion-content em {
  color: #6b7280;
}

/* Terms & Conditions styling */
.terms-content {
  color: #374151;
}

.terms-content h2,
.terms-content h3,
.terms-content h4 {
  color: #1f4f9e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.terms-content .endoflease2 {
  color: #111827;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.terms-content p {
  margin: 0.5rem 0 0.75rem;
  line-height: 1.8;
}

.terms-content p+ul,
.terms-content p+ol {
  margin-top: 0.25rem;
}

.terms-content ul,
.terms-content ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.terms-content .mainul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.terms-content .mainul li {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0 6px 18px;
  margin-bottom: 6px;
  position: relative;
  line-height: 1.6;
  color: #374151;
}

.terms-content .mainul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #9ca3af;
}

/* Footer social widget - inline list */
.footer-social-widget .socail_list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social-widget .socail_list li {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .inclusion-exclusion-content .row {
    grid-template-columns: 1fr !important;
  }

  .inclusion-exclusion-content .endoflease1,
  .inclusion-exclusion-content .fusion-checklist,
  .inclusion-exclusion-content .mainul {
    padding: 12px;
  }

  .inclusion-exclusion-grid {
    grid-template-columns: 1fr;
  }
}

/* Prose content heading styles - h2 and h3 inherit similar styling */
.prose h2,
.prose h2#heading2 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.25rem !important;
  /* text-xl - 20px */
  line-height: 1.75rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

@media (min-width: 1024px) {

  .prose h2,
  .prose h2#heading2 {
    font-size: 1.5rem !important;
    /* text-2xl - 24px */
    line-height: 2rem !important;
  }
}

/* h3 inherits from h2 styling */
.prose h3 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.875rem !important;
  /* text-3xl - 30px - inherits from h2 */
  line-height: 2.25rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

@media (min-width: 1024px) {
  .prose h3 {
    font-size: 2.25rem !important;
    /* text-4xl - 36px - inherits from h2 */
    line-height: 2.5rem !important;
  }
}

/* Blog detail page - h3 smaller than h2 */
.blog-detail-prose h3 {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.125rem !important;
  /* 18px - smaller than h2's 20px */
  line-height: 1.625rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

@media (min-width: 1024px) {
  .blog-detail-prose h3 {
    font-size: 1.375rem !important;
    /* 22px - smaller than h2's 24px */
    line-height: 1.875rem !important;
  }
}

/* Blog detail page - links in description/content */
.blog-detail-prose a {
  color: #138b9a !important;
  transition: color 0.2s ease;
}

.blog-detail-prose a:hover {
  color: #0f6f7b !important;
}

.toc {
  padding: 20px 0px;
  display: flex;
  flex-direction: column;
  row-gap: 2px;
}

.toc .btn-primary {
  background-color: transparent;
  border: 1px solid #138b9a;
  padding: 10px 30px;
  font-weight: 700;
  border-radius: 10px;
}

.toc .collapse {
  display: none;
  padding: 20px 30px;
  border: 1px solid #138b9a;
  background-color: #f8f6fa;
  border-radius: 10px;
}

.toc .collapse.show {
  display: block;
  visibility: visible;
}

/* Toggle text logic */
#table-c .hidec {
  display: none;
}

.toc.collapsed #table-c .shw {
  display: none;
}

.toc.collapsed #table-c .hidec {
  display: inline;
}