/* =============================================
   Color Palette
   ============================================= */
   :root {
    --dark-blue: #2c3e50;
    --primary-blue: #3498db;
    --light-gray: #f8f9fa;
    --text-color: #333;
  }
  
  /* --- General & Typography --- */
  body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
  }
  
  .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 12px;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
  }
  
  /* Explicit layout alignment adjustment for the "About Me" title section */
  #about .section-title::after {
    left: 0;
    transform: none;
  }
  
  p {
    font-size: 1.05rem;
    line-height: 1.75;
  }
  
  /* --- Navigation --- */
  .navbar {
    background-color: var(--dark-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }
  
  .navbar-logo {
    max-width: 52px;
    border-radius: 50%;
  }
  
  .navbar-brand small {
    font-size: 0.82rem;
    opacity: 0.85;
  }
  
  .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
  }
  
  /* --- Hero Section --- */
  #home {
    min-height: 100vh;
    background-image: url('/static/images/IMG2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding: 130px 0 60px 0; /* Extra space at top prevents logo cutting off your text-box container */
    overflow: hidden;
  }
  
  /* Lighter background image layer protection rule */
  #home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: 1;
  }
  
  /* Content stays on top of overlay */
  #home > .container {
    position: relative;
    z-index: 2;
  }
  
  /* Text box styling */
  .text-box-with-bg {
    background-color: #ffffff !important;   /* Solid white background box */
    padding: 2.8rem 2.4rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    width: 100%;
  }
  
  #home .text-box-with-bg h1 {
    color: #1e2a38 !important;              /* High-contrast dark blue heading applied explicitly over white box */
    font-size: 2.85rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }
  
  #home .text-box-with-bg p {
    color: #2c3e50 !important;              /* Soft dark gray-blue description layout override */
    font-size: 1.05rem !important;
    line-height: 1.75;
  }
  
  /* Hero Logo Container Configuration Rules */
  #hero-logo {
    max-width: 260px;
    height: auto;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease;
    animation: gentlePulse 4s infinite ease-in-out;
  }
  
  #hero-logo:hover {
    transform: scale(1.05);
  }
  
  /* Subtle animation configuration */
  @keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
  }
  
  /* --- About & Therapy Layout Constraints --- */
  .profile-img {
    max-width: 320px;
  }
  
  .option-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px !important;
  }
  
  .option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  }
  
  .option-heading {
    color: #1e2a38;
  }
  
  .feature-text {
    color: #444;
  }
  
  /* --- Buttons --- */
  .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
  }
  
  .btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
  }
  
  /* --- FAQ & Contact Cleanups --- */
  .faq-container {
    max-width: 850px;
  }
  
  .contact-container {
    max-width: 600px;
  }
  
  .social-icon {
    width: 34px;
    height: auto;
  }
  
  .accordion-button {
    font-weight: 600;
    color: var(--dark-blue);
    padding: 1.25rem 1.5rem;
  }
  
  .accordion-button:not(.collapsed) {
    background-color: rgba(52, 152, 219, 0.08);
    color: var(--dark-blue);
  }
  
  /* --- Footer --- */
  footer {
    background-color: var(--dark-blue);
    color: #ddd;
    padding: 2rem 0;
    font-size: 0.95rem;
  }
  
  /* =============================================
     Responsive Design
     ============================================= */
  @media (max-width: 991px) {
    #home {
      min-height: auto !important; 
      background-attachment: scroll !important;  
      background-position: right top !important;
      padding: 120px 0 60px 0; 
    }
  
    #home::before {
      background: rgba(0, 0, 0, 0.35); 
    }
  
    #home .text-box-with-bg h1 {
      font-size: 2.2rem;
      margin-bottom: 1.2rem;
    }
  
    .text-box-with-bg {
      padding: 2rem 1.8rem;
      margin-bottom: 2rem;
    }
  
    #hero-logo {
      max-width: 180px;
      margin-top: 1.5rem;
    }
  }
  
  @media (max-width: 576px) {
    #home .text-box-with-bg h1 {
      font-size: 1.95rem;
    }
    
    .text-box-with-bg {
      padding: 1.8rem 1.4rem;
    }
  }