
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}


body {
    font-family: Arial, sans-serif;
    padding-top: 60px; /* Space for fixed header */
}

.header {
    background: #00204A;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 1;
}

.header-logo {
    height: auto;
    width: auto;
}

.sandwich-btn {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none; /* Initially hidden */
}

.desktop-nav {
    display: none; /* Initially hidden */
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: none; /* Initially hidden */
}

.sidenav a, .desktop-nav a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    display: block;
    transition: 0.3s;
}

.sidenav a {
    color: black;
}

.desktop-nav a {
    color: white;
}

.sidenav a:hover .desktop-nav a:hover {
    color: #be9345;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.main-content {
    padding-bottom: 100px;
    margin-top: 50px; /* Adjust based on the actual height of your header */
    
}

.hero {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%; /* Ensure image takes full width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any default margins */
}

.hero-content {
    padding: 20px; /* Add some spacing */
    color: black; /* Ensure text is readable */
    box-sizing: border-box; /* Include padding in width calculation */
}

.hero-buttons {
    display: inline-block; /* To lay out buttons inline */
}

.callbutton, .quizbutton {
    color: #ffffff; /* White text for visibility */
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    padding: 10px 20px;
    width: 350px; /* Fixed width */
    max-width: 100%; /* Ensure it doesn't overflow on smaller screens */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    display: flex; /* Changed from inline-block to flex */
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    height: 50px; /* Set a fixed height to ensure vertical centering */
    font-size: 18px; /* Fixed font size */
    margin: 5px 0; /* Provide some spacing around buttons */
    font-weight: bold;
}

.callbutton {
    background-color: black; 
}

.quizbutton {
    background-color: #be9345; 
}

.section {
    padding: 20px;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.achievement-block {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: center;
    gap: 10px; /* Space between tiles */
}

.achievement {
    background-color: #f0f0f0; /* Light grey background */
    border: 1px solid #dcdcdc; /* Slight border for definition */
    padding: 10px; /* Reduced padding */
    width: 75%;
    text-align: center; /* Center the text within each tile */
    border-radius: 4px; /* Optional: adds rounded corners */
    margin-bottom: 10px; /* Ensure there's space between tiles */
    box-sizing: border-box; /* Include padding in the box's total dimensions */
}

.achievement h4, .achievement p {
    margin: 5px 0; /* Reduced margin for elements inside the tile */
    font-size: 14px; /* Smaller font size to reduce height */
}

.logoblock {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly; /* Center the logos horizontally */
    align-items: center; /* Align the logos vertically */
    gap: 10px; /* Optional: Adjusts the space between logos */
}

.associationlogos {
    max-width: 100px; /* Adjust this value based on your preference */
    height: auto; /* Maintain aspect ratio */
}

.practiceareatile {
    display: block;
    background-color: #ebf8fc;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-decoration: none; /* Removes underline from links */
    color: black; /* Text color */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.practiceareatile:hover {
    background-color: #e2e2e2; /* Slightly darker on hover to indicate clickability */
}

.areaoflaw {
    font-weight: bold;
    margin-bottom: 5px;   
}

.areaoflawdetails {
    margin: 0;
}

.toaster {
    text-align: center;
}

.zerocost {
    width: 100%;
    margin: 0 auto; /* Center the container itself if necessary */
    background: #EBF4FF;
    text-align: center;
}

.reviews-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.reviews-section h2 {
    margin-bottom: 20px;
}

.review {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.review-author {
    font-style: italic;
    margin-top: 20px;
    text-align: right;
    color: #007bff;
}


.contact-us-section {
    padding: 20px;
    background-color: #f0f0f0; /* Light grey background for contrast */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px;
}

.sectiontitle {
    text-align: center;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the form elements horizontally */
    justify-content: center; /* Optional: Use if you also want vertical centering */
    width: 100%; /* Use a specific width or percentage as needed */
    max-width: 600px; /* Set a max-width to prevent the form from stretching too wide on large screens */
    margin: 0 auto; /* This centers the form container itself horizontally */
}


.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 90%; /* Adjust based on preference, making sure it's less than 100% of the form's width */
    max-width: 500px; /* Prevents the elements from becoming too wide on large screens */
    margin: 10px 0; /* Adds some space above and below each element */
    width: 100%; /* Ensures form fields take full width */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #007bff;
    width: 250px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.sticky-footer {
    position: fixed;
    left: 0;
    bottom: -60px; /* Start hidden */
    height: 5%;
    width: 100%;
    background-color: #ebeaea;
    color: white;
    text-align: center;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    transition: bottom 0.3s ease-in-out;
}

.footer-btn {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    width: 125px;
    transition: background-color 0.2s;
    font-weight: bold;
    display: flex; /* Use flexbox to align the text */
    align-items: center; /* This will vertically center the text */
    justify-content: center; /* This will horizontally center the text */
    height: 50%; /* Adjust the height as needed */
}

.footer-btn.call-btn {
    background-color: black; 
}

.footer-btn.quiz-btn {
    background-color: #be9345; 
}

.footer-btn:hover {
    background-color: darken(#007bff, 10%);
}


/* Media query for desktop */
@media (min-width: 768px) {
 
    .sandwich-btn {
        display: none; /* Hide sandwich button */
    }
    
    .sidenav, .sidenav a {
        display: none; /* Hide side navigation */
    }
    
    .desktop-nav {
        display: flex; /* Show desktop navigation in header */
        font-size: 18px;
    }

    .header h1 {
        flex-grow: 1;
    }
    
    .header-logo {
        height: 50px;
    }

    .header {
        justify-content: space-between;
    }

    .hero-image {
        max-height: 100vh; /* Adjust the value as needed */
    }

    .hero-content {
        position: absolute; /* Overlay content on the image */
        top: 0;
        left: 0;
        max-width: 40%; /* Adjust based on how much of the image you want the content to cover */
        padding: 20px; /* Increase padding if needed */
        text-align: left; /* Align text to the left */
        margin-left: 100px;
        margin-top: 100px;
        background-color: rgba(226, 226, 226, 0.5);
    
    }

    /* Optionally, adjust button layout on desktop */
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically, or use 'row' for horizontal */
    }

      /* Optionally, adjust button layout on desktop */
      .hero-buttons a {
        width: 400px;
        height: 50px;
        font-size: 20px;
        font-weight: bold;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content p {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 30px;
    }

    
    .achievement-block {
        flex-direction: row; /* Align tiles in a row */
        justify-content: space-evenly; /* Evenly space the tiles */
        align-items: stretch; /* Stretch tiles to match height */
    }

    .associationlogos {
        max-width: 200px; /* Or any size that makes them fit in a single row */
    }

    .section {
        padding-bottom: 150px;
    }

    .section h2 {
        font-size: 40px;
    }

    .section h4 {
        font-size: 24px;
    }

    .section p {
        font-size: 24px;
    }


    .practiceAreas {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Adjusts spacing; you can use 'space-around' for equal spacing */
    }
    
    .practiceareatile {
        width: calc(33.333% - 20px); /* Adjust the subtraction value based on your margin */
        margin: 10px; /* Half of the subtracted value to ensure spacing around */
        box-sizing: border-box; /* Ensures padding and border are included in the width */
    }

    .practiceareatile {
        max-width: 30%;
    }

    .areaoflaw {
        font-size: 24px;  
    }
    
   
    .contact-info {
        max-width: 600px; /* Limit form width on larger screens */
        margin: 20px auto; /* Center the form */
    }

    .contact-form {
        margin: 20px auto; /* Center the form */
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
    font-size: 24px;
}
    .sticky-footer {
        display: none;
    }
}

  /* Media query for screens smaller than 768px */
  @media (max-width: 768px) {
            .sandwich-btn {
                display: block; /* Show sandwich button on mobile */
            }
            .sidenav {
                display: block; /* Allow the sidenav to be displayed when toggled */
            }
            .desktop-nav {
                display: none; /* Hide desktop navigation on mobile */
            }
            .header-logo {
                width: 150px;
                margin-left: 20px;
            }
            .hero-content {
                position: relative;
                width: 100%; /* Take up the full width */
                text-align: center; /* Center the text for mobile */
            }
            .main-content {
                padding-top: 30px; /* Same as the header's height */
                margin-top: 1px; /* Adjust based on the actual height of your header */
            }
        
        }
