/* Reset and Base Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: #1E305E;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */

.practice-hero-content {
    max-width: 900px;
    width: 90%;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* optional: ensures it stretches if parent has fixed height */
}

.specific-practice-hero-wrapper h2 {
    color: #CD9D49;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.specific-practice-specific-practice-hero-wrapper h1 {
    color: #1E305E;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.specific-practice-hero-wrapper {
    height: 300px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    border-radius: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    animation: subtle-bounce 2.5s infinite ease-in-out;
}

.scroll-down img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.scroll-down:hover img {
    transform: scale(1.1);
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-8px) translateX(-50%); }
}

/* Practice Section */
.practice-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4%;
    background: linear-gradient(to bottom, #ffffff, #f5f0e6); /* Adjusted gradient to lighter beige */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #e0d4c0; /* Added separator line */
}

.practice-introduction h2 {
    font-size: 2.8rem;
    color: #1E305E;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.practice-introduction p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.practice-details-content {
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.practice-details-content h3 {
    font-size: 2rem;
    color: #1E305E;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.practice-details-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.expertise-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.expertise-list li {
    position: relative;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    padding-left: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.expertise-list li:hover {
    color: #CD9D49;
    transform: translateX(5px);
}

.expertise-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #CD9D49;
    border-radius: 50%; /* Creates a circular button */
    position: absolute;
    left: 0;
    top: 0.6em; /* Adjusted to align with text baseline */
    transform: translateY(-50%); /* Fine-tuned vertical centering */
}

.expertise-list li strong {
    color: #CD9D49;
    font-weight: 600;
}

.learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #CD9D49, #e0b76a);
    color: #fff;
    text-decoration: none;
    border-radius: 0.6rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.learn-more:hover,
.learn-more:focus {
    background: linear-gradient(to right, #1E305E, #2a4278);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */

/* Small Devices (320px - 768px) */
@media (min-width: 320px) and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .practice-hero {
        min-height: 70vh;
        padding-top: 80px;
    }

    .practice-hero-content {
        width: 95%;
        padding: 1.5rem;
        border-radius: 0.8rem;
    }

    .specific-practice-hero-wrapper h2 {
        font-size: 1.8rem;
    }

    .specific-practice-hero-wrapper h1 {
        font-size: 2.5rem;
    }

    .scroll-down {
        display: none;
    }

    .practice-section {
        padding: 2rem 5%;
    }

    .practice-introduction h2 {
        font-size: 2rem;
    }

    .practice-introduction p {
        font-size: 1rem;
    }

    .practice-details-content {
        padding: 1.5rem;
    }

    .practice-details-content h3 {
        font-size: 1.8rem;
    }

    .expertise-list li {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }

    .expertise-list li::before {
        width: 6px;
        height: 6px;
        top: 0.5em; /* Adjusted for smaller screens */
    }

    .learn-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Medium Devices (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .header-container {
        padding: 0 3%;
        background-image: linear-gradient(to right, #fff 25%, #1E305E 75%);
    }

    .site-identity img {
        max-height: 55px;
    }

    nav ul li {
        margin: 0 0.8rem;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .practice-hero {
        background-image: url('images/practice-background-tablet.png');
        min-height: 80vh;
    }

    .practice-hero-content {
        width: 85%;
        padding: 2rem;
        border-radius: 1rem;
    }
    
    .specific-practice-hero-wrapper {
        height: auto;
        padding: 2rem 1rem;
    }

    .specific-practice-hero-wrapper h2 {
        font-size: 2rem;
    }

    .specific-practice-hero-wrapper h1 {
        font-size: 3.2rem;
    }

    
    .scroll-down {
        bottom: 2.5rem;
    }

    .practice-section {
        padding: 2.5rem 3%;
    }

    .practice-introduction h2 {
        font-size: 2.4rem;
    }

    .practice-introduction p {
        font-size: 1.05rem;
    }

    .practice-details-content {
        padding: 1.8rem;
    }

    .practice-details-content h3 {
        font-size: 1.8rem;
    }

    .expertise-list li {
        font-size: 1rem;
        padding-left: 1.8rem;
    }

    .expertise-list li::before {
        width: 6px;
        height: 6px;
        top: 0.6em; /* Adjusted for medium screens */
    }

}

@media (min-width: 1440px) {
  html, body {
    background-color: #fff; /* Prevent deep blue from showing below hero */
  }

  .practice-hero {
    min-height: 100vh;
    height: 100vh;
    background-color: #fff;
    position: relative;
    z-index: 0;
  }

  .practice-hero-content {
    max-width: 1000px;
    padding: 4rem;
  }

  .specific-practice-hero-wrapper {
    width: 65%;
    height: auto;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
  }

  .specific-practice-hero-wrapper h1 {
    font-size: 4.5rem;
  }

  .specific-practice-hero-wrapper h2 {
    font-size: 2.8rem;
  }

  .practice-section {
    max-width: 1600px;
    padding: 6rem 6%;
  }

  .practice-details-content {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .learn-more {
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');