/* ==========================================================================
   IBP REMEDIAL SERVICES - SHARED DESIGN SYSTEM (LEARNING ENHANCEMENT)
   ========================================================================== */
:root {
  --ibp-primary: #691524;
  --ibp-secondary: #8B2332;
  --ibp-accent: #969696;
  --ibp-accent-rgb: 207, 161, 93;
  --ibp-bg: #F8F9FC;
  --ibp-text: #222222;
  --ibp-text-muted: #555555;
  --ibp-radius: 10px;
  --ibp-spacing: 120px;
  --ibp-card-padding: 32px;
  --ibp-transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  --glass-white: rgba(255, 255, 255, 0.9);
  --gradient-main: linear-gradient(135deg, #691524 0%, #a41e38 100%);
  --shadow-glow: rgba(105, 21, 36, 0.15);
}

/* ==========================================================================
   DESIGN SYSTEM SYNC (Variables are reused from base file - Do NOT Redefine)
   ========================================================================== */

    /* --- Section 1: Visual Storytelling --- */
    .ibp-hero-section {
        padding: 100px 0;
        position: relative;
        /*background: radial-gradient(circle at top right, rgba(105, 21, 36, 0.03), transparent),*/
        /*            radial-gradient(circle at bottom left, rgba(108, 108, 108, 0.03), transparent);*/
    }

    .main-heading {if;
        font-size: clamp(2.8rem, 6vw, 4.5rem);
        line-height: 1;
        color: #1a1a1a;
        margin-bottom: 30px;
    }

    .text-gradient {
        background: var(--gradient-main);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .content-pill {
        background: white;
        border: 1px solid #eee;
        padding: 30px;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.02);
        margin-bottom: 20px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .content-pill:hover {
        border-color: var(--ibp-primary);
        transform: scale(1.02);
    }
    
    .badge {
        font-size: 15px;
    }

    .accent-dot {
        width: 8px; height: 8px;
        background: var(--ibp-primary);
        border-radius: 50%;
        display: inline-block;
        margin-right: 10px;
    }

    /* --- Section 2: Cards Setup --- */
    .therapy-grid-section {
        padding: 80px 0 120px;
    }

    .therapy-card {
        background: var(--gradient-main);
        border-radius: 32px;
        padding: 40px 30px;
        border: 1px solid #f0f0f0;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        position: relative;
        z-index: 1;
        height: 100%;
        text-align: center;
        box-shadow: 0 15px 35px -5px rgba(0,0,0,0.05);
        color: white;
    }

    /* Hover Effect: Pure Premium */
    .therapy-card:hover {
        transform: translateY(-15px);
        color: black !important;
        box-shadow: 0 25px 50px -12px var(--shadow-glow);
    }

    .therapy-card::after {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: white;
        border-radius: 28px;
        opacity: 0;
        z-index: -1;
        transition: opacity 0.4s ease;
    }

    .therapy-card:hover::after {
        opacity: 1;
    }

    /* Icon Styles Fix */
    .icon-box {
        width: 100px; 
        height: 80px;
        background: #ffffff;
        border-radius: 22px;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 25px;
        color: var(--ibp-primary);
        transition: all 0.4s ease;
    }

    .therapy-card:hover .icon-box {
        background: rgb(255 228 228 / 62%);
        color: var(--ibp-primary);
        transform: rotateY(180deg);
    }

    .therapy-card h4 {
        font-weight: 800;
        margin-bottom: 15px;
        font-size: 1.1rem;
        transition: color 0.3s;
        color: var(--ibp-bg);
    }
    
    .therapy-card:hover h4 {
        color: var(--ibp-accent);
    }

    .therapy-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--ibp-bg);
        transition: color 0.3s;
    }

    .therapy-card:hover p { color: var(--ibp-accent); }

    .learn-more-btn {
        margin-top: 25px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--ibp-bg);
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s;
    }

    .therapy-card:hover .learn-more-btn {
        color: var(--ibp-primary);
        gap: 12px;
    }

    /* 360 Visual */
    .circle-visual {
        width: 100%;
        aspect-ratio: 1;
        background: white;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 40px 80px rgb(105 21 36 / 29%);
        border: 15px solid #fcfcfc;
        position: relative;
    }

    .pulse-layer {
        position: absolute;
        width: 110%; height: 110%;
        border: 1px solid var(--ibp-primary);
        border-radius: 50%;
        opacity: 0.1;
        animation: pulse 4s infinite;
    }

    @keyframes pulse {
        0% { transform: scale(1); opacity: 0.2; }
        100% { transform: scale(1.3); opacity: 0; }
    }
    
    .ibp-section {
    padding-top: var(--ibp-spacing);
    padding-bottom: var(--ibp-spacing);
    background-color: var(--ibp-bg);
    font-family: 'Inter', sans-serif;
    /* color: var(--ibp-text); */
    overflow: hidden;
    }
    .ibp-fade-up.active {
    opacity: 1;
    transform: translateY(0);
    }
    .ibp-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .ibp-cta-box {
    background: linear-gradient(135deg, var(--ibp-primary), var(--ibp-secondary));
    border-radius: 30px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    z-index: 1;
    }
    .float-1 {
    font-size: 3.5rem;
    top: 15%;
    left: 15%;
    animation: floatY 6s ease-in-out infinite;
    color: var(--ibp-accent);
    }
    .ibp-cta-box h2 {
    color: #ffffff;
    }
    
    p.lead {
    color: #dddddd;
    font-size: 18px;
    font-weight: 400;
    }
    .ibp-btn-accent {
    background-color: var(--ibp-bg);
    color: var(--ibp-primary) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--ibp-radius);
    border: none;
    transition: var(--ibp-transition);
    }
    .ibp-btn-white-outline {
    background: transparent;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 13px 31px;
    border-radius: var(--ibp-radius);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--ibp-transition);
    }
    .ibp-btn-accent:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgb(255 255 255 / 30%);
    }
    .ibp-btn-white-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    }

    /* ==========================================================================
       RESPONSIVE MEDIA QUERIES (Mobile Adjustments & Visibility Fix)
       ========================================================================== */
    @media (max-width: 991.98px) {
        .ibp-hero-section {
            padding: 60px 0;
        }

        .section-heading {
            text-align: center;
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
        }
        
        .about__para {
            text-align: justify;
        }

        /* Visibility Insurance: Prevent layout/AOS scripts from hiding the visual component on mobile */
        .circle-visual-wrapper {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            margin-bottom: 40px;
            width: 100%;
            max-width: 340px; /* Scaling optimization on medium layout */
            margin-left: auto;
            margin-right: auto;
        }

        .circle-visual {
            border: 10px solid #fcfcfc;
        }
    }
    
    @media (max-width: 767.98px) {
        .ibp-hero-section {
            padding: 40px 0;
        }
        .main-heading { font-size: 2.3rem; }
        .section-heading { font-size: 1.9rem; }
        .therapy-card { padding: 30px 20px; }
        .badge { font-size: 12px; }
        .content-pill { padding: 20px; border-radius: 16px; }
        
        .circle-visual-wrapper {
            max-width: 280px; /* Small screen matching diameter */
        }
         .mobile-center-badge {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
        
    }
    
    /* START: Services Catalog Section Styles */
.ibp-catalog-section {
  background-color: var(--ibp-bg);
  padding-top: var(--ibp-spacing);
  padding-bottom: var(--ibp-spacing);
}

.ibp-header-row {
  margin-bottom: 64px;
}

.ibp-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ibp-text-muted);
}

.ibp-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ibp-text);
  letter-spacing: -0.02em;
}

.ibp-title em {
  font-style: italic;
  font-family: 'Poppins', sans-serif;
}

.ibp-lead-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ibp-text-muted);
}

/* Reusable Card Component */
.ibp-service-card {
  position: relative;
  background-color: var(--glass-white);
  border: 1px solid rgba(150, 150, 150, 0.15); /* var(--ibp-accent) low opacity */
  border-radius: var(--ibp-radius);
  padding: var(--ibp-card-padding);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--ibp-transition);
  cursor: pointer;
  overflow: hidden;
}

/* Card Top Animated Border Highlight */
.ibp-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--ibp-transition);
}

/* Icon Container */
.ibp-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(105, 21, 36, 0.05); /* var(--ibp-primary) 5% opacity */
  border-radius: 50%;
  color: var(--ibp-primary);
  font-size: 1.25rem;
  margin-bottom: 32px;
  transition: var(--ibp-transition);
}

.ibp-card-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ibp-accent);
  margin-bottom: 12px;
  display: block;
}

.ibp-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ibp-text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ibp-card-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ibp-text-muted);
  margin-bottom: 0;
}

/* Card Hover Effects */
.ibp-service-card:hover {
  transform: translateY(-9px);
  border-color: var(--ibp-accent);
  box-shadow: 0 20px 40px var(--shadow-glow), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ibp-service-card:hover::before {
  opacity: 1;
}

.ibp-service-card:hover .ibp-icon-wrapper {
  transform: scale(1.08);
  background-color: var(--ibp-secondary);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .ibp-title {
    font-size: 2.75rem;
  }
  .ibp-header-row {
    margin-bottom: 40px;
  }
}
/* END: Services Catalog Section Styles */
/* START: Why This Practice Section Styles */
.ibp-features-section {
  padding-top: var(--ibp-spacing);
  padding-bottom: var(--ibp-spacing);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.ibp-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ibp-text-muted);
  display: block;
}

.ibp-title {
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ibp-text);
  letter-spacing: -0.02em;
  font-family: 'Poppins', sans-serif;
}

/* Image Presentation Styles */
.ibp-image-container {
  width: 100%;
  height: 100%;
}

.ibp-rounded-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--ibp-radius) * 3); /* Generates the signature soft large rounded corners from reference */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* Reusable Pill Card Component */
.ibp-feature-pill {
  position: relative;
  background-color: var(--glass-white);
  border: 1px solid rgba(150, 150, 150, 0.15); /* var(--ibp-accent) matching description setup */
  border-radius: 50px; /* Fully rounded capsule pill shape matching reference */
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 32px rgb(105 21 36 / 14%), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--ibp-transition);
  cursor: pointer;
  height: 100%;
}

/* Card Top Border Accent Track */
.ibp-feature-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--ibp-transition);
  border-radius: 0 0 4px 4px;
}

/* Pill Icon Circle Container */
.ibp-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(150, 150, 150, 0.1); /* var(--ibp-accent) soft base */
  border-radius: 50%;
  color: var(--ibp-text-muted);
  font-size: 1.1rem;
  transition: var(--ibp-transition);
  flex-shrink: 0;
}

.ibp-pill-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ibp-text);
  /*white-space: nowrap;*/
}

/* Interactive Hover Actions */
.ibp-feature-pill:hover {
  transform: translateY(-8px);
  border-color: var(--ibp-accent);
  box-shadow: 0 16px 32px #69152454, 0 4px 12px rgb(255 5 5 / 0%);
}

.ibp-feature-pill:hover::before {
  opacity: 1;
}

.ibp-feature-pill:hover .ibp-pill-icon {
  transform: scale(1.08);
  background-color: var(--ibp-primary);
  color: #ffffff;
}

/* Responsive Scaling Breakpoints */
@media (max-width: 991px) {
  .ibp-title {
    font-size: 2.5rem;
  }
  .ibp-rounded-img {
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
  }
}

@media (max-width: 576px) {
  .ibp-feature-pill {
    padding: 14px 20px;
  }
  .ibp-pill-text {
    font-size: 0.85rem;
  }
}
/* END: Why This Practice Section Styles */
/* START: The Journey Steps Section Styles */
.ibp-journey-section {
  background: var(--gradient-main); /* Adopting the system primary container background as modeled by the dark tone layout */
  padding-top: var(--ibp-spacing);
  padding-bottom: var(--ibp-spacing);
  font-family: 'Poppins', sans-serif;
  color: #ffffff; /* White typography overlay adapted to match high contrast on dark layout background */
}

.ibp-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7); /* Adapted text-muted representation for dark theme */
  display: block;
}

.ibp-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #6c1425;
}

.ibp-journey-section .ibp-title {
     font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}


.ibp-title em {
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  color: rgb(153 153 153);
}

.ibp-lead-text {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

/* Steps Layout Components */
.ibp-steps-row {
  position: relative;
  margin-top: 48px;
}

.ibp-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--ibp-transition);
  cursor: pointer;
  height: 100%;
}

/* Reusable Interactive Step Icon Container Wrapper */
.ibp-step-number-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin-bottom: 28px;
  transition: var(--ibp-transition);
}

.ibp-step-number {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, serif;
}

.ibp-step-title {
  font-size: 1.35rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  font-family: 'Poppins', sans-serif;
}

.ibp-step-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Card Interactive Hover Behaviors matching design system requirements */
.ibp-step-card:hover {
  transform: translateY(-8px);
}

.ibp-step-card:hover .ibp-step-number-wrap {
  transform: scale(1.08);
  background-color: #ffffff;
  border-color: var(--ibp-accent);
}

.ibp-step-card:hover .ibp-step-number {
  color: var(--ibp-primary);
}

.ibp-step-card:hover .ibp-step-title {
  color: rgb(255 255 255);
}

/* Responsive Structural Layout Breaks */
@media (max-width: 991px) {
  .ibp-title {
    font-size: 2.75rem;
  }
  .ibp-step-card {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
/* END: The Journey Steps Section Styles */
