/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    font-family: 'Work Sans', sans-serif; /* Default font */
}

/* Header Styling */
header {
    position: absolute;  
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px; /* Further adjusted vertical padding */
    background-color: transparent; /* Transparent background */
    color: #fff;
    z-index: 100;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif; /* Apply Roboto font to header */
    
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically align logo and nav links */
    width: 100%; /* Ensure nav takes full header width */
    max-width: 1200px; /* Limit max width of nav */
    margin: 0 auto; /* Center nav */
    padding: 0; /* Remove padding from nav, handled by header padding */
    height: auto; /* Allow height to adjust based on content */
}

.logo img {
    height: 145px; /* Slightly reduced logo size based on visual comparison */
    display: block; /* Ensure no extra space below the image */
    vertical-align: middle; /* Vertically align the image */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Vertically align nav link text */
    padding: 0; /* Remove default ul padding */
    margin: 0; /* Remove default ul margin */
    margin-left: auto; /* Push nav links to the right */
    margin-top: -15px;
}

.nav-links li {
    margin: 0 -2px; /* Adjusted horizontal margin between links */
    padding: 0; /* Remove default li padding */
    display: flex; /* Use flexbox for vertical centering of link text */
    align-items: center; /* Vertically center link text */
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 10px;
    transition: background-color 0.3s ease;
    display: block;
    text-transform: uppercase;
    background: transparent;
}

.nav-links li:first-child a {
    background-color: #0666a3;
    border-radius: 0px;
    color: #fff;
}

.nav-links li a:hover, .nav-links li:hover > a {
    background-color: #0666a3 !important;
    color: #fff !important;
    border-radius: 0px;
}

/* Mobile Menu (Hamburger) */
.burger {
    display: none; /* Hide on desktop */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #3a3a3a;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section Styling */
.hero {
    position: relative;
    width: 100%;
    height: 100%; /* Full viewport height */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack hero content and contact info vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
    color: #fff;
    padding-top: 120px; /* Add padding to push content below fixed header */

}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Ensure video is behind content */
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above video */
    padding: 0 20px; /* Adjust padding */
    display: flex; /* Use flexbox for hero content */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    margin-bottom: 60px; /* Increase space below headline */
    margin-top: 40px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 4.1rem; /* Increased size for hero headline */
    margin-bottom: 0.3rem;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.35rem;
}

.hero-content h1:nth-child(2) { /* Style for the second line */
    font-size: 2.5rem; /* Proportionally smaller for the middle line */
    margin-bottom: 0.3rem;
}

.hero-content h1:last-child {
    margin-bottom: 0; /* No bottom margin on the last line */
    font-size: 2.5rem;
}

/* Hero Contact Info Styling (Three Columns) */
.hero-contact-info {
    position: relative;
    z-index: 1; /* Ensure this is above the video */
    display: flex;
    justify-content: center; /* Center columns */
    align-items: flex-start; /* Align items to the top */
    width: 100%; /* Adjust width as needed */
    /* max-width: 900px; Limit max width of the contact block */
    margin-top: 20px; /* Space below main CTA button */
    color: #fff;
    text-align: center; /* Center text within columns */
    gap: 30px; /* Adjust gap between columns */
}

.office-info, .consultation-form {
    flex: 1; /* Allow columns to grow */
    padding: 20px; /* Adjust padding */
    max-width: 500px; /* Set a max-width for columns to control size */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically within columns */
}

.office-info {
    max-width: 300px; /* Set a max-width for columns to control size */
}

.consultation-form {
    flex: 1; /* Allow columns to grow */
    padding: 20px; /* Adjust padding */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content vertically within columns */
}

.office-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px; /* Adjust size */
    margin-top: 0; /* Remove top margin to control space from icon */
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center; /* Center headings */
  
}
.consultation-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px; /* Adjust size */
    margin-top: 0; /* Remove top margin to control space from icon */
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center; /* Center headings */
    
}
.office-info p {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem; /* Adjust size */
    line-height: 1.6;
    color: #eee; /* Slightly lighter white for paragraph text */
    margin-bottom: 5px;
    text-align: center; /* Center paragraph text */
}

.office-info a {
    color: #ff6600; /* Orange color for links */
    text-decoration: none;
    font-weight: 700; /* Make links bold */
}

.office-info a:hover {
    text-decoration: underline;
}

.hero-contact-info .icon {
    font-size: 3.5rem; /* Adjust size as needed */
    margin-bottom: 10px; /* Space below icon - reduced to rely more on heading margin */
    color: #fff; /* White color for icons */
}

/* Consultation Form Styling */
.consultation-form form {
    display: flex;
    flex-direction: column;
    width: 100%; /* Form takes full width of its container */
}

.consultation-form input[type="text"], 
.consultation-form input[type="phone"], /* Corrected type */
.consultation-form input[type="email"], 
.consultation-form textarea {
    padding: 10px;
    margin-bottom: 10px; /* Adjust space between form fields */
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white background */
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    width: 100%; /* Make form inputs full width */
    box-sizing: border-box; /* Include padding in width */
    border: 1px solid #fe680d;
}

.consultation-form textarea {
    min-height: 100px; /* Adjust as needed */
    resize: vertical; /* Allow vertical resizing */
}

.consultation-form .cta-button {
    width: 100%; /* Make the button full width of the form */
    text-align: center;
    margin-top: 10px; /* Add space above the button */
    padding: 15px 30px; /* Match padding of the main CTA */
    background-color: #ff6600; /* Orange color */
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none; /* Remove button border */
    cursor: pointer;
}

.consultation-form .cta-button:hover {
     background-color: #e65c00; /* Darker orange on hover */
}

.captcha-text {
    font-size: 0.9rem;
    color: #eee;
    margin-bottom: 10px; /* Adjust spacing */
}

/* Main CTA button styling in Hero */
.hero .cta-button {
    margin-top: 30px; /* Space above the main CTA button */
    /* Inherits other styles from the general .cta-button rule */
}

/* Section 2: Awards Logo Slider Styling */
.awards-slider {
    background-color: #f9f9f9; /* Light gray background */
    padding: 60px 0; /* Increased vertical padding */
    position: relative; /* Needed for absolute positioning of arrows */
    overflow: hidden; /* Hide logos outside the container */
}

.slider-container {
    width: 90%; /* Adjust width as needed */
    margin: 0 auto;
    overflow: hidden; /* Hide logos outside the visible area */
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding transition */
    white-space: nowrap; /* Ensure all images stay on one line */
    width: fit-content; /* Allow content to dictate width */
}

.slider-track img {
    height: 120px; /* Increased image height to match visual */
    width: auto; /* Maintain aspect ratio */
    margin: 0 25px; /* Adjusted space between logos */
    flex-shrink: 0; /* Prevent shrinking */
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background-color: rgba(0, 0, 0, 0.5); Semi-transparent background */
    color: #FE8C13;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10; /* Ensure arrows are above images */
    font-size: 2rem;
    border-radius: 50%; /* Circular buttons */
}

.left-arrow {
    left: 10px; /* Position left arrow */
}

.right-arrow {
    right: 10px; /* Position right arrow */
}

/* About Us Section Styling */
.about {
    padding: 80px 0; /* Add vertical padding */
    background-color: #f9f9f9; /* Light gray background as per previous plan */
}

.about .container {
    width: 80%; /* Container width */
    margin: 0 auto; /* Center the container */
    display: flex; /* Use flexbox for side-by-side layout */
    align-items: center; /* Vertically align items in the center */
    gap: 40px; /* Space between text and image */
}

.about-content {
    flex: 1; /* Allow content to grow */
    padding-right: 20px; /* Add some padding on the right */
}

.about-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem; /* Heading size */
    margin-bottom: 20px; /* Space below heading */
    color: #333; /* Dark text color */
}

.about-content p {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem; /* Paragraph text size */
    line-height: 1.6; /* Line height for readability */
    color: #555; /* Slightly lighter text color */
    margin-bottom: 15px; /* Space between paragraphs */
}

.about-content p:last-child {
    margin-bottom: 0; /* No bottom margin on the last paragraph */
}

.about-image {
    flex: 1; /* Allow image container to grow */
    padding-left: 20px; /* Add some padding on the left */
}

.about-image img {
    display: block; /* Remove extra space below image */
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: add rounded corners */
}
.about-image-container {
    flex: 1;
    max-width: 50%;
    margin-top: -400px;
}
/* About Us Detailed Section Styling */
.about-detailed {
    padding: 80px 0; /* Vertical padding */
     background-color: #f9f9f9 !important; 
}

.about-detailed .container {
    width: 97%; /* Container width */
    margin: 0 auto; /* Center container */
    display: flex; /* Use flexbox for side-by-side layout */
    align-items: center; /* Vertically align items */
    gap: 40px; /* Space between columns */
}

.about-image-container {
    flex: 1; /* Allow container to grow */
    max-width: 50%; /* Limit max width of image container */
     margin-top: -340px;
}

.about-image-container img {
    display: block; /* Remove extra space below image */
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: rounded corners */
}

.about-text-content {
    flex: 1;
    padding-right: 20px;
}

.about-text-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px; /* Heading size */
    margin-bottom: 20px; /* Space below heading */
    color: #333; /* Dark text color */
}

.about-text-content p {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem; /* Paragraph text size */
    line-height: 1.6; /* Line height */
    color: #555; /* Slightly lighter text color */
    margin-bottom: 15px; /* Space between paragraphs */
}

.about-text-content p:last-child {
    margin-bottom: 0; /* No bottom margin on last paragraph */
}

.about-text-content ul {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem; /* List item text size */
    line-height: 1.6; /* Line height */
    color: #555; /* Slightly lighter text color */
    margin-bottom: 15px; /* Space below list */
    margin-left: 20px; /* Indent list items */
    list-style: disc; /* Bullet points */
}

.about-text-content ul li {
    margin-bottom: 5px; /* Space between list items */
}

/* Malpractice Statistics Section Styling */
.malpractice-stats {
    padding: 60px 0; /* Vertical padding */

}

.malpractice-stats .container {
    width: 90%; /* Container width */
   /* max-width: 1000px;  */
    margin: 0 auto; /* Center container */
    display: flex; /* Use flexbox for side-by-side layout */
    align-items: stretch; /* Make columns equal height */
    border-radius: 8px; /* Optional: rounded corners for the whole block */
    overflow: hidden; /* Hide content outside border-radius */
}


.stats-left-column {
    flex: 1; /* Allow column to grow */
    background-color: #1a2b4c; /* Dark blue background */
    color: #fff; /* White text */
    padding: 40px; /* Padding inside column */
    display: flex;
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text block */
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem; /* Adjust font size */
    line-height: 1.4; /* Adjust line height */
    /* Add background image here if needed */
    background-image: url('https://www.leightonpanofflaw.us/wp-content/uploads/2025/04/malpractice-bg.png'); /* Placeholder background image */
    background-size: cover;
    background-position: center;
    position: relative; /* Needed for pseudo-element overlay */
}

/* Add a subtle overlay to the background image for text readability */
.stats-left-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: 1;
}

.stats-left-column p {
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
    max-width: 340px; /* Limit text width for readability */
}

.stats-left-column .highlight {
    color: #ffc107; /* Yellow color for highlights */
}

.stats-right-column {
    flex: 1; /* Allow column to grow */
    background-color: #d3d3d3; /* Light gray background */
    padding: 40px; /* Padding inside column */
    display: flex;
    flex-direction: column; /* Stack stat items vertically */
    justify-content: center; /* Center items vertically */
    gap: 30px; /* Space between stat items */
}

.stat-item {
    display: flex; /* Layout for icon and text */
    align-items: center; /* Vertically align icon and text */
    gap: 20px; /* Space between icon and text */
}

.stat-item .icon {
    width: 60px; /* Icon size */
    height: 60px; /* Icon size */
    background-size: contain; /* Adjust background size */
    background-repeat: no-repeat;
    background-position: center;
    /* Icon color will be set individually */
}

.stat-item .person-icon {
    background-image: url('https://www.leightonpanofflaw.us/wp-content/uploads/elementor/thumbs/person-solid-r3r98m2867k1t82p0x0f3v4g5u051x56f5j9u.png'); /* Using a potential icon URL */
    background-color: #4682b4; /* Steel blue color from image */
     mask: url('https://www.leightonpanofflaw.us/wp-content/uploads/elementor/thumbs/person-solid-r3r98m2867k1t82p0x0f3v4g5u051x56f5j9u.png') no-repeat center; /* Using mask with a potential icon URL */
     mask-size: contain;
     -webkit-mask-size: contain;
     filter: none; /* Remove filter if using mask and background-color */
}

.stat-item .medical-icon {
    background-image: url('https://www.leightonpanofflaw.us/wp-content/uploads/elementor/thumbs/hands-helping-solid-r3r98m2867k1t82p0x0f3v4g5u051x56f5j9u.png'); /* Using a potential icon URL - assuming hands icon is for medicare */
    background-color: #4682b4; /* Steel blue color from image */
     mask: url('https://www.leightonpanofflaw.us/wp-content/uploads/elementor/thumbs/hands-helping-solid-r3r98m2867k1t82p0x0f3v4g5u051x56f5j9u.png') no-repeat center; /* Using mask with a potential icon URL */
     mask-size: contain;
     -webkit-mask-size: contain;
     filter: none; /* Remove filter if using mask and background-color */
}

.stat-content .number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem; /* Large number size */
    color: #fff; /* White number text */
    line-height: 1.2;
}

.stat-content .label {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem; /* Label text size */
    color: #333; /* Dark label text */
    text-transform: uppercase;
}

/* Get Started Contact Form Section Styling */
.get-started-form {
    padding: 80px 0; /* Vertical padding */
    background-image: url('https://www.leightonpanofflaw.us/wp-content/uploads/2025/04/form-background.png'); /* Background image from the provided image */
    background-size: cover;
    background-position: center;
    color: #fff; /* White text color */
    text-align: center; /* Center content horizontally */
    position: relative; /* Needed for overlay */
}

/* Add a subtle dark overlay to the background image */
.get-started-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0); /* Dark overlay */
    z-index: 1;
}

.get-started-form .container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding-left: 110px;
    padding-right: 110px;
}

.get-started-form h2 {
    background: none !important;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    box-shadow: none;
}

.get-started-form form {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-wrap: wrap; /* Allow form rows to wrap */
    gap: 20px; /* Space between form rows and fields */
    justify-content: space-between; /* Distribute fields evenly */
    padding-left: 0;
    padding-right: 0;
}

.get-started-form .form-row {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    gap: 20px; /* Space between fields within a row */
}

.get-started-form .form-row input[type="text"],
.get-started-form .form-row input[type="tel"],
.get-started-form .form-row input[type="email"],
.get-started-form .form-row select,
.get-started-form .form-row textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 0.1rem solid #fff !important;
    color: #fff !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0 !important;
    box-shadow: none;
    margin-bottom: 30px;
    transition: border-color 0.3s;
    width: 50%;
}

.get-started-form .form-row input[type="text"]::placeholder,
.get-started-form .form-row input[type="tel"]::placeholder,
.get-started-form .form-row input[type="email"]::placeholder,
.get-started-form .form-row textarea::placeholder {
    color: #e0e0e0;
    opacity: 1;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.get-started-form .form-row select {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    border-bottom: 2px solid #fff !important;
    border-radius: 0 !important;
    /* padding: 12px 0 8px 0; */
    margin-bottom: 30px;
}

.get-started-form .form-row select option {
    color: #222;
    background: #fff;
}

.get-started-form .form-row input[type="text"]:focus,
.get-started-form .form-row input[type="tel"]:focus,
.get-started-form .form-row input[type="email"]:focus,
.get-started-form .form-row select:focus,
.get-started-form .form-row textarea:focus {
    background: #fff !important;
    color: #222 !important;
    border-bottom: 2.5px solid #fe680d !important;
    transition: background 0.2s, color 0.2s;
}

.get-started-form .form-row.full-width {
    width: 100% !important;
    max-width: 100% !important;
}

.get-started-form .form-row textarea {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    resize: vertical;
}

.get-started-form .form-row .captcha-button-row {
    display: flex;
    align-items: center; /* Vertically align captcha and button */
    gap: 20px; /* Space between captcha and button */
    width: 100%; /* Full width */
    justify-content: flex-start; /* Align to the left */
}

.get-started-form .captcha-text {
    font-size: 0.9rem;
    color: #fff; /* White text */
    margin-bottom: 0; /* Remove bottom margin */
}

.get-started-form .cta-button {
    padding: 12px 30px; /* Adjust button padding */
    background-color: #ff6600; /* Orange color */
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem; /* Adjust font size */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none; /* Remove button border */
    cursor: pointer;
}

.get-started-form .cta-button:hover {
    background-color: #e65c00; /* Darker orange on hover */
}

/* Responsive Styles for Get Started Form Section */
@media (max-width: 768px) {
    .get-started-form {
        padding: 60px 0; /* Adjust padding */
    }

    .get-started-form .container {
        width: 95%; /* Adjust container width */
    }

    .get-started-form h2 {
        font-size: 2rem; /* Adjust heading size */
        margin-bottom: 30px; /* Adjust margin */
    }

    .get-started-form form {
        flex-direction: column; /* Stack form rows vertically */
        gap: 20px; /* Adjust gap */
    }

    .get-started-form .form-row {
        flex-direction: column; /* Stack fields within a row vertically */
        gap: 15px; /* Adjust gap */
    }

    .get-started-form .form-row input[type="text"],
    .get-started-form .form-row input[type="tel"],
    .get-started-form .form-row input[type="email"],
    .get-started-form .form-row select,
    .get-started-form .form-row textarea {
        width: 100%; /* Make fields full width */
    }

     .get-started-form .form-row .captcha-button-row {
        flex-direction: column; /* Stack captcha and button vertically */
        align-items: center; /* Center items */
        gap: 15px; /* Adjust gap */
    }

    .get-started-form .captcha-text {
        text-align: center; /* Center captcha text */
    }

    .get-started-form .cta-button {
        width: 100%; /* Make button full width */
        max-width: 200px; /* Limit button width */
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-links {
        margin-left: 10px; /* Reduce space between links on smaller screens */
    }

    .nav-links li {
        margin-left: 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h1:nth-child(2) {
        font-size: 3rem;
    }

    .hero-contact-info {
        flex-direction: column; /* Stack columns on smaller screens */
        align-items: center;
        width: 95%;
        gap: 30px; /* Adjust gap when stacked */
    }

    .office-info, .consultation-form {
        width: 100%; /* Make columns full width when stacked */
        max-width: 400px; /* Adjust max width for stacked columns */
    }

    .malpractice-stats .container {
        flex-direction: column; /* Stack columns on smaller screens */
        gap: 0; /* Remove gap when stacked */
    }

    .stats-left-column, .stats-right-column {
        width: 100%; /* Full width when stacked */
        padding: 30px; /* Adjust padding */
        text-align: center; /* Center text when stacked */
    }

     .stats-left-column p {
        max-width: 100%; /* Remove max width when stacked */
    }

    .stats-right-column {
        gap: 20px; /* Adjust gap between stat items when stacked */
    }

    .stat-item {
        flex-direction: column; /* Stack icon and text in stat item */
        gap: 10px; /* Adjust gap */
    }

    .stat-item .icon {
         margin: 0 auto 10px auto; /* Center icon and space below */
    }

    .stat-content .number {
        font-size: 2.5rem;
    }

    .stat-content .label {
        font-size: 0.9rem;
    }

    .get-started-form .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    nav {
        max-width: 100%;
    }

    .logo img {
        height: 120px; /* Further reduce logo size on smaller screens */
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 140px; /* Position below header */
        /* height: calc(100vh - 80px); */
        background-color: rgba(0, 0, 0, 0.9); /* Darker background for better visibility */
        flex-direction: column;
        width: 100%; /* Full width on mobile */
        transform: translateX(100%); /* Hide off-screen */
        transition: transform 0.5s ease-in;
        display: flex; /* Ensure flex display */
        align-items: center; /* Center items */
        padding: 20px 0; /* Add some padding */
    }

    .nav-links li {
        opacity: 1; /* Make sure items are visible */
        margin: 15px 0; /* Adjust spacing */
        /* width: 100%;  */
        text-align: center; /* Center text */
    }

    .nav-links li a {
        width: 100%; /* Full width for links */
        padding: 15px 20px; /* More padding for better touch targets */
    }

    .burger {
        display: block; /* Show on mobile */
        z-index: 1000; /* Ensure it's above other elements */
        background-color: #fe680d;
        padding: 7px;
        border-radius: 10px;

    }

    /* Adjust dropdown menus for mobile */
    .nav-links li.dropdown .dropdown-menu,
    .nav-links li.dropdown-submenu .dropdown-menu.submenu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        transform: none;
        margin-left: 0;
        display: none;
    }

    .nav-links li.dropdown:hover .dropdown-menu,
    .nav-links li.dropdown-submenu:hover .dropdown-menu.submenu {
        display: none; /* Hide on hover for mobile */
    }

    .nav-links li.dropdown.active .dropdown-menu,
    .nav-links li.dropdown-submenu.active .dropdown-menu.submenu {
        display: block; /* Show when parent is active */
    }

    .hero {
        padding-top: 80px; /* Adjust padding-top for smaller header */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: 15px;
    }

    .hero-content h1:nth-child(2) {
        font-size: 2rem;
    }
    .hero-content h1:last-child{
        font-size: 2rem;
    }

    .hero-contact-info {
        width: 95%;
    }

     .malpractice-stats {
        padding: 40px 0;
    }

    .get-started-form .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Navigation Active State (for JS toggle) */
.nav-active {
    transform: translateX(0%);
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Keyframes for mobile nav link fade in (used by JS) */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Footer Styling */
.site-footer {
    background-color: #f5f5f5; /* Light gray background from image */
    padding: 40px 20px; /* Vertical and horizontal padding */
    font-family: 'Work Sans', sans-serif; /* Font for footer text */
    color: #555; /* Default text color */
    font-size: 0.8rem; /* Default font size */
}

.site-footer .container {
    width: 90%; /* Container width */
    max-width: 1200px; /* Max width for the footer content */
    margin: 0 auto; /* Center container */
    text-align: center; /* Center content by default */
}

.footer-info p {
    margin-bottom: 20px; /* Space below address/phone info */
    line-height: 1.6; /* Improve readability */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px; /* Space below links */
    display: flex; /* Use flexbox for horizontal links */
    justify-content: center; /* Center the links */
    flex-wrap: wrap; /* Allow links to wrap on smaller screens */
}

.footer-links li {
    margin: 5px 6px; /* Space between links and separators */
}

.footer-links li:first-child {
    margin-left: 0; /* No left margin on the first item */
}

.footer-links li:last-child {
    margin-right: 0; /* No right margin on the last item */
}

.footer-links a {
    color: #ff6600; /* Orange color for links */
    text-decoration: none; /* Remove underline */
    font-weight: 500; /* Semi-bold */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.footer-links a:hover {
    color: #e65c00; /* Darker orange on hover */
}

.footer-bottom {
    display: flex; /* Use flexbox for copyright and powered-by */
    justify-content: space-between; /* Push items to opposite ends */
    align-items: center; /* Vertically align items */
    padding-top: 20px; /* Space above the bottom section */
    border-top: 1px solid #ccc; /* Add a top border line */
}

.footer-bottom p {
    margin: 0; /* Remove default paragraph margin */
}

.footer-bottom .powered-by {
    color: #333; /* Darker color for powered-by text */
}

/* Responsive Styles for Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px; /* Adjust padding */
    }

    .footer-links ul {
        flex-direction: column; /* Stack links vertically */
        gap: 10px; /* Space between stacked links */
    }

    .footer-links li {
        margin: 0; /* Remove horizontal margin when stacked */
    }

    .footer-links li:not(:last-child) {
         margin-bottom: 10px; /* Add bottom margin except for the last item */
    }

    .footer-bottom {
        flex-direction: column; /* Stack copyright and powered-by */
        gap: 10px; /* Space between stacked items */
        text-align: center; /* Center text when stacked */
    }
}

.get-started-form .form-row:first-child input[type="text"],
.get-started-form .form-row:first-child input[type="email"],
.get-started-form .form-row:first-child select,
.get-started-form .form-row:nth-child(2) input[type="text"],
.get-started-form .form-row:nth-child(2) select {
    border-bottom: 0.1rem solid #fff !important;
    width: 50%;
}

.nav-links li.dropdown {
  position: relative;
}
.nav-links li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #0666a3;
  z-index: 999;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}
.nav-links li .dropdown-menu li {
  width: 100%;
  padding: 0;
}
.nav-links li .dropdown-menu a {
  display: block;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: 1.1rem;
  padding: 16px 28px 16px 28px;
  text-align: left;
  background: #0666a3;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.nav-links li .dropdown-menu a:hover {
  background: #fff !important;
  color: #000 !important;
  width: 350px;
}

.nav-links li.dropdown > a {
  display: inline-block;
  width: auto;
  min-width: unset;
  background: transparent;
  padding: 10px 10px;
  font-size: 1.02rem;
}
.nav-links li.dropdown:hover > a {
  background: #0666a3;
  color: #fff;
  box-shadow: none;
}
.nav-links li .dropdown-menu {
  min-width: 270px;
  width: 320px;
  left: 185px;
  transform: translateX(-50%);
  background: #0666a3;
  border-radius: 0 0 2px 2px;
}
.nav-links li .dropdown-menu a {
  font-size: 1.02rem;
  padding: 13px 22px;
  width: 320px;
}
.dropdown-submenu > a .submenu-icon {
  margin-left: 8px;
  font-size: 0.95em;
}
.dropdown-submenu > a {
  padding: 13px 22px;
  font-size: 1.02rem;
}
.dropdown-submenu > .dropdown-menu.submenu {
  min-width: 270px;
  width: 320px;
  left: 100%;
  top: 0;
  background: #0666a3;
  border-radius: 0 2px 2px 0;
}

/* Submenu styles for multi-level dropdown */
.nav-links li.dropdown-submenu {
  position: relative;
}
.nav-links li.dropdown-submenu > .dropdown-menu.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 270px;
  width: 320px;
  background: #fff;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  margin-left: 163px;
}
.nav-links li.dropdown-submenu:hover > .dropdown-menu.submenu {
  display: block;
}
.nav-links li.dropdown-submenu > a {
  position: relative;
}
.nav-links li.dropdown-submenu > a:after {
  content: none;
  /* position: absolute; */
  /* right: -10px; */
  /* font-size: 0.9em; */
  /* color: #000; */
}
.nav-links li.dropdown-submenu > .dropdown-menu.submenu a {
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s;
}
.nav-links li.dropdown-submenu > .dropdown-menu.submenu a:hover {
  background: #0666a3;
  /* color: #fff; */
}