html {
  font-size: 20px;
  -webkit-text-size-adjust: 100%; 
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-size: 16px;
}

body {
  font-size: 1rem;
  font-weight: 500;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", 
               sans-serif, "Apple Color Emoji", "Segoe UI Emoji", 
               "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #F9F9F9;
  color: #000;
  font-size-adjust: 0.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 775px) {
    body {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    html {
        overflow-x: hidden;
    }
}

/*TYPOGRAPHY*/



p {
  margin-bottom: 1.5em; /* Add spacing below paragraphs for better readability */
  text-align: left; /* Justify text for a cleaner appearance */
}


h1 {
  text-align: center;
  font-weight: bold;
  font-size: 27px;
  color: black;
  margin-bottom: 10px;
  padding: 20px 0 30px 0; 
}



h2 {
  font-size: 21px;
  font-weight: bold;
   color: #1a1a1a;
   line-height: 1.2;
     margin-top: 20px;
  margin-bottom: 15px;
}


h3 {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
}

h4, h5, h6 {
  font-weight: 600;
}

li {
    margin-bottom: 10px;
}

@media (max-width: 1420px) {

h1 {
  font-size: 24px;
   	margin-top: 25px;
  margin-bottom: 10px;
}

}

@media (max-width: 1200px) {

h1 {
  font-size: 23px;
  line-height: 1; 
    margin-top: 20px;
  margin-bottom: 15px;
}
}

@media (max-width: 795px) {

    h1 {
      font-size: 23px;
      line-height: 1; 
        margin-top: 1px;
      margin-bottom: 15px;
    }
    }

/*typography continued - mobile typography */
@media (max-width: 775px) {
     body {
    font-size: 18px;  
  }
   h1 {
  font-size: 22px;
  margin-bottom: 5px;
    padding: 5px 7px 25px 7px;
  }
  
  p {
    margin-bottom: 1.3em; /* Less space between paragraphs on mobile */
  }
  
 /*MENU CHANGES IN MOBILE */
  #menu {
    display: none;
  }
  .call-to-action-box {
    display: none; 
  }
  .call-to-action-box-mobile {
    display: block;  
  }


}

/* List styles */
/* Add styles for all lists */
ul, ol {
  margin: 10px;
  padding: 10px;
}

/* Add styles for list items */
li {
}

/* adjust the margin in h3 headings in lists */
ul h3, ol h3 {
  margin-top: 0; 
  margin-bottom: 0; 
}
/*HEADER LAYOUT AND STYLING*/

.header-content-wrapper {
     background-color: #F9F9F9;
    top: 0;
    left: 0;
     width: 100%;
     z-index: 400;
}
.header-container {
 display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1400px; /* Example max-width */
  margin: 0 auto; /* Center the container */
}



.header-column-1 {
  flex: 0 1 20%;
  padding: .7em 0 1.2em 1em;
  order: 1;
    margin-right: auto;
}

.header-column-2 {
flex: 0 1 calc(30% - 3.75vw); /* More aggressive shrinking */
  max-width: 22.5em; /* Smaller max-width to allow further reduction */
  padding: 1em;
  margin-right: 1.25vw;
  margin-left: 1.25vw;
  order: 2;

}

.header-column-3 {
  flex: 0 1 20%;
  padding: 1em; /* Increase padding for better spacing */
  order: 3;
   max-width: 45em;
  margin-left: auto;
}


@media (max-width: 775px) {
    
    .header-content-wrapper {
        position: static; /* Make position static for mobile */
        top: auto;
        left: auto;
        width: auto; 
    }
    .header-container {
 background-color:#F9F9F9;
 padding-top: 5px;
}

.header-column-1 {
  order: 2;

  margin-left: auto;
  margin-right: auto;

}

.header-column-2 {
  display:none;

}

.header-column-3 {
  display:none;
}
}

/*END HEADER LAYOUT*/

/*NAV BAR LAYOUT*/

@media (max-width: 775px) {
    .nav-container {
 background-color:maroon;
}

.nav-column-1 {
  flex: 0 1 20%;
  /*visibility: hidden;*/
  order: 1;
}

.nav-column-2 {
  padding: .5em; /* Increase padding for better spacing */
  margin: 0 0 20px 0;

}

}

/*END NAV BAR LAYOUT*/

/*BODY LAYOUT*/

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}



.container {
 display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


.column-1 {
  flex: 1;
  /*visibility: hidden;*/
  padding: 1.25em;
  order: 1;
}

.column-2 {
  flex: 0 1 calc(60% - 7.5vw);
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 1.25vw;
  margin-left: 1.25vw;
  order: 2;
  min-width: 37em;
  max-width: 42em;
}

/*Gradual decrease of size of column 3 to accomodate the side bar, 1065 to 900*/

  @media screen and (max-width: 1065px) {
    .column-2 {
      min-width: 36em;
    }
  }
  
  @media screen and (max-width: 1050px) {
    .column-2 {
      min-width: 35em;
    }
  }

  @media screen and (max-width: 1030px) {
    .column-2 {
      min-width: 34em;
    }
  }
  
    @media screen and (max-width: 1013px) {
    .column-2 {
      min-width: 33em;
    }
  }
  
    @media screen and (max-width: 950px) {
    .column-2 {
      min-width: 32em;
    }
  }
  
      @media screen and (max-width: 900px) {
    .column-2 {
      min-width: 37em;
    }
  }



.column-3 {
    
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Centers children horizontally */
  flex: 1;
  padding: 0 1em 1em 1em; /* Removed top padding, kept other sides */
  order: 3;
   max-width: 45em;
   position: relative;
   z-index: 02;
  
}

/*EXTRA FORMATTING OCT 24, 2024*/


/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-section h2 {
    color: maroon;
    margin-top: 0;
}

.contact-section ul {
    list-style: none;
    padding-left: 0;
}

.contact-section ul li {
    margin-bottom: 0.5rem;
}

.contact-section a {
    color: maroon;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonial-section {
    background-color: #f9f9f9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.testimonial {
    background-color: #d6cec7;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #333;
}

.testimonial cite {
    color: maroon;
    font-weight: bold;
    font-style: normal;
    display: block;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: maroon;
    margin-top: 0;
    margin-bottom: 1rem;
}

.faq-item p {
    margin: 0;
}



/*END EXTRA FORMATTING OCT 24, 2024*/


@media screen and (max-width: 1420px) {
  

.column-3 {
     flex: .1;
    max-width: 20em;
}
}

@media screen and (max-width: 1220px) {
	.column-2 {
  margin-left: 1.25vw;
   max-width: 35em;
  order: 1;

}
}

@media screen and (max-width: 1200px) {
	
	.column-1 {
 display: none;
}
}


@media screen and (max-width: 1010px) {
	
	
	.column-2 {
   max-width: 30em;
     padding-left: 15px;
     padding-right: 15px;
     padding-top: 0;
     padding-bottom: 0;
  margin-right: 0;
  margin-left: 0;
}
}
	

@media screen and (max-width: 912px) {
	.column-2 {
  margin-left: 1.25vw;
   max-width: 29em;
  order: 1;

}
}
	

@media screen and (max-width: 750px) {
    

  
  .column-2,
  .column-3 {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }
  
  .column-2 {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0;
    padding-bottom: 0;
  }

/*EXTRA FORMATTING OCTOBER 24, 2024*/
    .hero-section {
    background-color: gray;
    }
    
    .borough-card {
        padding: 1rem;
    }
    
    .contact-section {
        padding: 1rem;
    }
    
  
    .testimonial-section,
    .faq-item {
        padding: 1rem;}

    .borough-flex {
        flex-direction: column;
    }
    
    .courthouse-image {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 15px;
}
    
}
/*END EXTRA FORMATTING OCTOBER 24, 2024*/


/*CONTACT INFO ON TOP OF PAGE*/


.contact-info {
    text-align: left; 
    text-shadow: 0 1px 1px #d0cfe6;
    white-space: nowrap; /* Prevents the name from breaking into multiple lines */
     transform: translateY(8px); /* Adjust the value as needed */
}

.contact-info .call-today,
.contact-info .phone {
    display: block; /* Display elements as block-level */
}

.contact-info .call-today {
    color: black;
    font-family: Arial, sans-serif; /* Example of a sans-serif font */
      font-size: 1.2em;
    font-weight: bold; /* Emphasize the text */
}

.contact-info .phone {
    color: maroon;
    font-family: Arial, sans-serif; /* Example of a sans-serif font */
 /* Subtle embossed text effect */
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.5), /* Light upper shadow */
                 0px -1px 1px rgba(0, 0, 0, 0.2); /* Dark lower shadow */
    font-size: 1.7em;
    font-weight: bold; /* Emphasize the text */
    margin-top: -10px; /* Reduce the top margin to bring it closer to the "Call Today" text */
}

@media screen and (max-width: 1200px) {
.contact-info {
     transform: translateY(2px); /* Adjust the value as needed */
}
}

@media screen and (max-width: 775px) {
    .contact-info {
        display: none; /* Hides the contact info on mobile */
    }
}
/*END CONTACT INFO ON TOP OF PAGE*/

/*CONTACT INFO ON MOBILE "MOBILE CALL TO ACTION"*/
/* Base styles for the mobile call to action */
.mobile-call-to-action {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position to stay at the top */
  top: 0; /* Align to the top of the screen */
  left: 0; /* Align to the left of the screen */
  width: 100%; /* Full width */
  background-color: #F9F9F9; 
  color: black; /* White text color */
  text-align: center; /* Center the text */
  padding: 10px 0; /* Padding top and bottom */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Box shadow for a subtle depth */
  z-index: 1400; /* High z-index to ensure visibility over other elements */
}

/* Styling the content inside the call to action */
.cta-content {
  display: flex; /* Use flexbox for alignment */
  flex-direction: inline; 
  justify-content: space-between; 
  align-items: center; /* Center elements horizontally */
  padding: 0 10px 0 10px;
}

.cta-text {
    font-family: arial;
    color: maroon;
    font-size: 1em;
    font-weight: bold;
    text-align: center; /* Center align text */
    text-shadow: 0 1px 1px #d0cfe6;
    white-space: nowrap; /* Prevents the name from breaking into multiple lines */
}

/* Styling the phone number and button */
.cta-phone-number {
  display: inline; 
  color: maroon; /* White text color for visibility */
  text-decoration: none; /* No underline for links */
  margin: 5px 0; /* Margin for spacing */
  font-weight: bold; /* Bold font for emphasis */
  padding-right: 0; /* Add padding to separate from the button */
}
.cta-button {
  display: block; /* Block display to take full width */
  color: white; /* White text color for visibility */
      font-size: .7em;
  text-shadow: 0 1px 1px black;
  text-decoration: none; /* No underline for links */
  margin: 5px 0; /* Margin for spacing */
  font-weight: bold; /* Bold font for emphasis */
  margin-top: 10px;
}

/* Styling the button specifically */
.cta-button {
  background-color: maroon; 
  padding: 10px 20px; /* Padding for the button */
  border-radius: 5px; /* Rounded corners for the button */
  border: none; /* No border for the button */
  font-size: 16px; /* Font size for the button */
}

/* Media query for mobile devices */
@media (max-width: 775px) {
  .mobile-call-to-action {
    display: block; /* Show the call to action on mobile devices */
    padding: 10px 0;
    justify-content: center; /* Center elements vertically */
    align-items: center; /* Center elements horizontally */
  }
}
/*END CONTACT INFO ON MOBILE "MOBILE CALL TO ACTION"*/


/*BREAD*/
/* Styles the breadcrumbs container */
#breadcrumbs {
    overflow-x: auto; /* Allows horizontal scrolling for small screens */
    white-space: nowrap; /* Keeps breadcrumbs in a single line */
    padding: 10px 20px; /* Consistent padding from screen edges on all screen sizes */
    margin: 0;
}

/* Styles the breadcrumb list */
#breadcrumbs ol.breadcrumbs {
    list-style: none; /* Removes default list styling */
    padding-left: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    display: flex; /* Displays breadcrumbs in a line */
    flex-wrap: nowrap; /* Prevents wrapping */
}

/* Styles individual breadcrumb items */
#breadcrumbs .breadcrumb-item {
    font-size: 15px;
}

/* Styles links within breadcrumb items */
#breadcrumbs .breadcrumb-item a {
    color: maroon; /* Sets the link color */
    text-decoration: none; /* Removes underline from links */
}

/* Adds a separator before each breadcrumb item except the first */
#breadcrumbs .breadcrumb-item:not(:first-child)::before {
    content: ">"; /* Defines the separator character */
    margin-right: 10px; /* Right margin for spacing */
    color: #6c757d; /* Sets the separator color */
}



/* Base styles for breadcrumbs container */
@media (max-width: 775px) {
    #breadcrumbs {
        display: none; /* Hide breadcrumbs completely on mobile */
    }
}

/* Automatic breadcrumb page spacing adjustments */
/* When breadcrumbs are present, reduce h1 top margin */
#breadcrumbs + main h1:first-of-type,
#breadcrumbs ~ main h1:first-of-type,
main:has(#breadcrumbs) h1:first-of-type {
    margin-top: -7px; /* Reduce space between header and h1 on pages with breadcrumbs */
}

/* Mobile adjustments: when breadcrumbs exist but are hidden, add space back */
@media (max-width: 775px) {
    #breadcrumbs + main h1:first-of-type,
    #breadcrumbs ~ main h1:first-of-type,
    main:has(#breadcrumbs) h1:first-of-type {
        margin-top: 10px; /* Add space on mobile when breadcrumbs are hidden */
    }
}

/*END BREAD*/

/*HEADER*/
#header {
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
 
}




/*Firm Name*/
.firm-name {
    font-family: 'Times New Roman', serif; /* Example of a serif font */
    color: maroon;
    text-align: center; /* Center align text */
    text-shadow: 0 1px 1px #d0cfe6;
    white-space: nowrap; /* Prevents the name from breaking into multiple lines */
    transform: translateY(10px); /* Adjust the value as needed */

}

.firm-name .law-offices-of,
.firm-name .name,
.firm-name .years {
    margin: 0; /* Removes default margin to bring lines closer */
    padding: 0; /* Adjust padding as needed */
}

.firm-name .law-offices-of {
    	font-size: 1.1em;
        margin-bottom: -5px; /* Pulls the second line closer */
}

.firm-name .name {
    font-size: 1.5em;
    font-weight: bold; /* Makes the name bold */
    line-height: 1; /* Adds more space before the third line */
    margin-bottom: 5px; /* Adjust spacing between lines as needed */

}

.firm-name .years {
    font-style: italic; /* Italicize the 'years of service' line */
    font-size: 1.1em;
}

.separator-line {
    width: 250px; /* Adjust width as needed */
    height: 1px; /* Adjust height as needed */
    background-color: maroon; /* Color of the separator line */
    margin: 0 auto; /* Center the separator line */
    margin-bottom: 0px; /* Adjust spacing between lines as needed */
}

.firm-name-link {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits text color from parent elements */
  display: block; /* Ensures the link is block-level, wrapping the entire content */
}

@media screen and (max-width: 775px) {
    .firm-name {
        color: white; /* Change font color to white */
        background-color: maroon;
        font-size: 16px; /* Adjust font size for mobile */
        text-shadow: 0 1px 1px black;
        padding-top: 2em;
    }

    .firm-name .law-offices-of,
    .firm-name .name,
    .firm-name .years {
        margin: 0; /* Removes default margin to bring lines closer */
        padding: 0; /* Adjust padding as needed */
    }

    .firm-name .law-offices-of {
       display: none;
    }

    .firm-name .name {
     display: none;
    }

    .firm-name .years {
 display: none;
    }

    .separator-line {
       display: none;
    }
}


/*end firm name*/

/* Media query for mobile devices */
@media (max-width: 775px) {
  #header {
    background-color: maroon; /* Maroon background for mobile */
    color: white; /* Adjusts the text color within the header, if necessary */
  }

  .firm-name, .firm-name a {
    color: white; /* White text for firm name and its link */
  }
}
/*End Header*/

/*NAVIGATION BAR*/
/* navigation styles*/

.navbar-background {
    background-color: #F9F9F9;
    width: 100%;
    position: relative;
    z-index: 1000;
    height: 45px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.navbar-content {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    z-index: 1500;
    height: 100%;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 100%;
}

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.8rem;
        color: rgb(124, 61, 61);
        font-size: 11px;
        font-weight: 900;
        text-decoration: none;
        transition: all 0.3s ease;
        background-color: #F9F9F9;
        width: 100%;
        height: 100%;
        text-transform: uppercase;
    }

    @media screen and (max-width: 800px) {
        .nav-links li a {
            justify-content: flex-start;
        }
    }

.nav-links li a:hover {
    background-color: #e0d9d3;
    color: #600000;
    border-color: rgba(128, 0, 0, 0.2);
}

/* Submenu styles */
.nav-links .sub-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #F9F9F9;
    min-width: 200px;
    z-index: 1600;
    list-style: none;
    transition: all 0.3s ease-out;
}

.nav-links > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.nav-links .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    height: auto;
}

.nav-links .sub-menu a {
    display: block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 900;
    color: maroon;
    white-space: nowrap;
    transition: all 0.3s ease;
    height: auto;
    background-color: #F9F9F9;
    text-transform: uppercase;
}

.nav-links .sub-menu a:hover {
    background: #e0d9d3;
    color: #600000;
}

/* Burger menu */
.burger {
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    width: 25px;
    height: 30px;
    display: none; /* Hidden by default */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: black;
    position: absolute;
    transition: all 0.3s ease;
}

.burger .line1 {
    top: 0;
}

.burger .line2 {
    top: 13px;
}

.burger .line3 {
    top: 26px;
}

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

.burger.toggle .line2 {
    opacity: 0;
}

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

@media screen and (max-width: 800px) {
    .navbar-background {
        background-color: #F9F9F9;
        width: 100%;
        box-shadow: none;
        height: 25px;
        padding: 12px 0;
        margin-top: 15px;
    }

    .burger {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2000;
    }

.burger div {
    width: 20px;
    height: 2px;
    background-color: black;
    position: absolute;
    transition: all 0.3s ease;
}

.burger .line1 {
    top: 35%;
}

.burger .line2 {
    top: 50%;
}

.burger .line3 {
    top: 65%;
}

.burger.toggle .line1 {
    transform: rotate(45deg);
    top: 50%;
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(-45deg);
    top: 50%;
}

    .nav-links {
        display: none;
        position: fixed;
        top: 110px;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #F9F9F9;
        flex-direction: column;
        padding: 0;
        margin: 0;
        z-index: 1010;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links li {
        background-color: #F9F9F9;
    }

    .nav-links .sub-menu {
        background-color: #F9F9F9;
    }

    .nav-links.nav-active {
        display: flex;
        transform: translateX(0%);
    }
    
    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .nav-links li a {
        color: black;
        padding: 12px 15px;
        background: none;
        border: none;
    }

    .nav-links li a:hover {
        background-color: #f5f5f5;
    }

    .nav-links li.has-submenu {
        display: block;
    }

    .nav-links li.has-submenu > a {
        border-bottom: 1px solid #eee;
    }

    .nav-links .sub-menu {
        position: static;
        width: 100%;
        background: #F9F9F9;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links .sub-menu li:last-child {
        border-bottom: none;
    }

    .nav-links li.has-submenu {
        display: block;
    }

    .nav-links li.has-submenu > a {
        border-bottom: none;
    }

    .nav-links .sub-menu {
        width: 100%;
        position: static;
        transform: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-top: 1px solid #eee;
    }

    .nav-links .sub-menu a {
        padding: 10px 15px 10px 35px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        line-height: 1.4;
    }

    .nav-links li.has-submenu > a {
        padding: 12px 15px;
        font-weight: 500;
        color: #333;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .nav-links li.has-submenu > a {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-links li.has-submenu > a::after {
        content: "▼";
        font-size: 10px;
        color: #666;
        transition: all 0.3s ease;
        transform-origin: center;
        margin-left: 4px;
        position: relative;
        top: 1px;
    }

    .nav-links li.has-submenu.active > a::after {
        transform: rotate(180deg);
    }

    .nav-links li.has-submenu.active > a {
        color: maroon;
        background-color: #f9f9f9;
    }

    .nav-links .sub-menu li:last-child a {
        border-bottom: none;
    }

    .nav-links .sub-menu.show {
        display: block;
    }

    .nav-links .sub-menu a {
        padding-left: 30px;
        background: none;
    }

    .nav-links li.has-submenu.active > a {
        color: maroon;
    }

    .nav-links.nav-active {
        display: block;
    }
}
/*END NAVIGATION BAR*/


/*Accordion*/

.accordion {
    width: 100%;
    max-width: 800px; /* Adjust to fit your design */
    margin: auto;
}

.accordion-item {
    background-color: #f9f9f9; 
    color: #333;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-title {
    background-color:#d6cec7;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.accordion-title h2 {
    font-size: 1rem;
    margin: 0;
    color: maroon;
    border-bottom: none;
    padding-bottom: 2px;
}

.accordion-title .icon {
    font-size: 1rem;
    font-weight: bold;
}

.accordion-content {
    display: none; /* Hidden by default */
    padding: 15px;
    border: 1px solid #ccc; 
    border-top: 2px solid white; /* Separator */
}

.accordion-content p {
    margin: 0 0 15px;
    line-height: 1.3;
}
/*end accordion*/

/* Read More Section */

.read-more-content {
    margin: 20px;
}

.read-more-summary {
    margin-bottom: 10px;
}

.read-more-more-content {
    margin-top: 10px;
}

.read-more-button {
    cursor: pointer;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

.read-more-button:hover {
    background-color: #0056b3;
}
/*end Read More*/

/* WIDGET */

.column-3 .widget {
    background: #d6cec7;
   box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    color: maroon;       
    width: 315px;
    padding: 20px 10px 1px 10px;   
    border-radius: 8px;        
    height: auto;              
    word-wrap: break-word; 
     z-index: 200; /* Lower z-index */
    margin-bottom: 30px; 
}
 

.column-3 .widget h2,
.column-3 .widget p {
    max-width: 95%; /* Adjust as needed */
    margin: 0 auto; /* Center the text block */
}

.widget h2 {
    font-size: 1em;         
    font-weight: bold;        
}

.widget p {
    font-size: .9em;
    margin-bottom: 1.5em !important; /* Increased space, forcing priority */
}

.widget img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 15px 0 10px;
}

@media screen and (max-width: 1000px) {
    .column-3 .widget {
        width: 300px;
    }
}

@media screen and (max-width: 950px) {
    .column-3 .widget {
        width: 280px;
    }
}

@media screen and (max-width: 775px) {
    .column-3 .widget {
        width: 100%; /* Take up full width */
        max-width: none; /* Remove max-width constraint */
        margin-left: auto;
        margin-right: auto;
        padding: 20px 15px 1px 15px;
    }

    .column-3 .widget img {
        display: none;
    }

    /* Update the widget content to use more width */
    .column-3 .widget h2,
    .column-3 .widget p {
        max-width: none; /* Remove the 95% max-width constraint */
        padding: 0;
    }
}

/*END WIDGET*/

/* Sidebar and TOC styles */
.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 300px;
}

.toc {
    font-size: 16px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    color: maroon;
    text-decoration: none;
}

.toc a:hover {
    background: #f3f4f6;
    text-decoration: none;
}

/*EMAIL BUTTON - used in widget*/
.email-button {
  display: inline-block;
  background-color: #823838; /* Button background color */
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05); 
  color: white; /* Button text color */
  text-shadow: 0 1px 1px black;
  padding: 10px 0px; /* Button padding */
  max-width: 200px;
  border-radius: 5px; /* Rounded corners */
  text-decoration: none; /* Removes underline from the link */
  font-weight: bold; /* Makes the text bold */
  text-align: center; /* Center align text */
  margin-top: 20px; /* Space above the button */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
   display: block; /* Change from inline-block to block */
  margin: 20px auto; /* Adds top margin and centers the button horizontally */
  /* Keep the rest of your styles unchanged */
}

.email-button:hover {
    transition: background-color 0.3s, box-shadow 0.3s;
  background-color: #802020; /* Darker shade of maroon for hover effect */
  color: #ffffff; /* Keeps text color white on hover */
}
/*end email button*/

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    text-align: left;
    color: #333;
}

/* Table headers */
thead {
    background-color: #2C3E50;
    color: #ECF0F1;
}

th, td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
}

th {
    font-weight: bold;
}

/* Links */
td a {
    color: #2980b9;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* Striped rows for better readability */
tbody tr:nth-child(odd) {
    background-color: #f8f8f8;
}

/* Hover effect for rows */
tbody tr:hover {
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

/* Active row style */
tbody tr.active-row {
    background-color: #D4E6F1;
}

/* Mobile styles */
@media (max-width: 775px) {
    /* Hide table headers */
    thead {
        display: none;
    }

    /* Make table rows behave like blocks */
    tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e0e0e0;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* Style individual cells */
    td {
        display: block;
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }

    td:last-child {
        border-bottom: none;
    }

    /* Add labels before content */
    td:before {
        content: attr(data-column);
        display: block;
        font-weight: bold;
        color: #2C3E50;
        margin-bottom: 4px;
    }

    /* Remove striping on mobile */
    tbody tr:nth-child(odd) {
        background-color: #fff;
    }
}



/*END HEADING TAGS*/

/* Remove default link styling for phone and email */
.phone-number a, .email-address a {
  color: black;
  text-decoration: none;
}
/* Table of Contents */
.table-of-contents {
    width: 400px;
    border: 3px solid #f5f5f5;
    padding: 10px;
    margin: 30px 20px;  
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.table-of-contents h2 {
    font-size: 21px;
    margin-bottom: 5px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 5px;  /* Reduced space between list items */
    font-size: 15px;
}

.table-of-contents a {
    display: inline-block;
    padding: 14px 10px;  /* Increased padding to expand tap target size */
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.table-of-contents a:visited {
    color: #888;
}

.table-of-contents a:hover {
    color: #007BFF;
    background-color: #f5f5f5;
}

/*EMBEDDED VIDEOS*/
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* End Embedded Videos*/

/* Footer styling */
#footer {
  background-color: #333;
  color: white;
  font-size: 15px;
  line-height: 1.5;     
  letter-spacing: 0.02em; 
  padding: 40px 20px;  
  text-align: left;
  border-top: 1px solid #555;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
}

.footer-content p {
  margin: 0 0 1.5em 0;  
  padding: 0;
  line-height: 1.6;     
}

.footer-content p:last-child {
  margin-bottom: 0;
}

/* Mobile responsiveness for footer */
@media (max-width: 775px) {
  .footer-content {
    padding: 15px;
  }
  
  .footer-content p {
    margin-bottom: 1.2em;  /* Slightly reduced spacing on mobile */
  }
}


/*CALCULATOR*/
.calculator {
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 20px;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 20px;
    font-size: 17px;
    color: #333;
}
/*END CALCULATOR*/


/*CONTACT FORM*/
form {
    background: #d6cec7;
    padding: 12px;
    border-radius: 8px;
   box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    line-height: .5;
    font-size: 16px;
}

.form-label {
    display: block;
    margin-bottom: 0; /* Further reduced margin for tighter vertical spacing */
}

form h3 {
    text-align: center;
}

.form-input {
    background-color: #F9F9F9;
    width: 100%;
    width: 300px;
    font-size: 16px;
    min-height: 44px;
    padding: 7px; 
    margin-bottom: 15px; 
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.form-input::placeholder {
    color: black; /* Example placeholder color */
    opacity: 0.5; /* Optional: Adjust the opacity of the placeholder text */
}

/* Specific targeting for textarea to adjust its height, assuming it uses .form-input */
textarea.form-input {
    min-height: 150px; 
}

.form-input[type="submit"] {
    display: inline-block;
    width: auto; /* Set width to auto to allow it to adjust based on content */
    min-width: 100px; /* Reset the min-width property */
    max-width: 200px; /* Set a maximum width for the button */
  background-color: #823838; /* Button background color */
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.05); 
  color: white; /* Button text color */
  font-size: 16px;
  text-shadow: 0 1px 1px black;
  padding: 10px 0px; /* Button padding */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none; /* Removes underline from the link */
  font-weight: bold; /* Makes the text bold */
  text-align: center; /* Center align text */
  margin-top: 20px; /* Space above the button */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
   display: block; /* Change from inline-block to block */
  margin: 20px auto; /* Adds top margin and centers the button horizontally */
  /* Keep the rest of your styles unchanged */
}

.form-input[type="submit"]:hover {
    transition: background-color 0.3s, box-shadow 0.3s;
    transition: background-color 0.3s, box-shadow 0.3s;
  background-color: #802020; /* Darker shade of maroon for hover effect */
  color: #ffffff; /* Keeps text color white on hover */
  cursor: pointer; /* Change cursor to hand pointer on hover */
}

@media screen and (max-width: 1000px) {
    .form-input {
        width: 280px;
    }
}

@media screen and (max-width: 1000px) {
    .form-input {
        width: 260px;
    }
}

/*END CONTACT FORM */

/* Warning box */
.warning-box {
    background-color: #990000;
    border-left: 4px solid #660000;
    padding: 15px;
    margin: 20px 0;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(102, 0, 0, 0.2);
    font-weight: 500;
}

.warning-box strong {
    color: white;
    font-weight: 700;
}

.warning-box ol {
    margin: 10px 0;
}

/* Court cards grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.court-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.court-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.court-card strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Mobile responsiveness for new components */
@media screen and (max-width: 800px) {
    .warning-box {
        border-radius: 0;
        margin: 15px -5px;
        padding: 12px;
    }

    .card-grid {
        gap: 15px;
        margin: 15px -5px;
    }

    .court-card {
        border-radius: 4px;
        padding: 15px;
    }
}

/*REVIEW FORM 10/30/2024*/
/* Review Form Styles */
.review-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reviews-widget {
    background-color: #f8f9fa;
    padding: 1rem;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #fbbf24;
}

.submit-button {
    background-color: #1f2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #374151;
}

.review-success {
    background-color: #ecfdf5;
    color: #059669;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.review-error {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

/* Add these rules to your existing CSS */
.reviews-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.reviews-card:hover {
    transform: translateY(-2px);
}

.reviews-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.reviews-stars svg {
    color: #fbbf24;
    fill: #fbbf24;
}

.reviews-text {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reviews-card footer {
    margin-top: auto;  /* Pushes footer to bottom */
    padding-top: 0.5rem;  /* Reduced padding */
}

.reviews-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.reviews-area {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.reviews-date {
    font-size: 0.875rem;
    color: #9ca3af;
}


/*for reviews-all.php */

/* Reviews Listing Page Styles */
.reviews-container {
    padding: 2rem 1rem;
}

.reviews-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.reviews-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    text-align: center; 
}

.reviews-button {
    display: inline-block;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #800000;
    background-color: transparent;
    border: 2px solid #800000;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.reviews-button:hover {
    background-color: #800000;
    color: white;
}

.reviews-action {
    text-align: center;
    margin: 2rem 0;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.reviews-pagination a {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.reviews-pagination a.active {
    background-color: #1f2937;
    color: white;
}

.reviews-pagination a:not(.active) {
    background-color: #f3f4f6;
    color: #1f2937;
}

.reviews-pagination a:hover:not(.active) {
    background-color: #e5e7eb;
}

.reviews-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Review Card Styles for Listing Page */
.reviews-listing-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reviews-date {
    color: #6b7280;
    font-size: 0.875rem;
}

/*link to submit a review in reviews.php*/
.reviews-submit-link {
    text-align: center;
    margin-top: 1rem;
}

.reviews-submit-link a {
    color: #1f2937;
    text-decoration: underline;
    font-size: 0.9rem;
}

.reviews-submit-link a:hover {
    color: #374151;
}
/*END REVIEW FORM 10/30/2024*/


/*CREDENTIALS WIDGET 10/30/2024*/
.credentials-bar {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    text-align: center;
}
.credentials-container {
    max-width: 800px;    /* Reduced from 1200px */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 40px;          /* Reduced base gap */
}
.credential-icon {
    height: 80px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 1200px) {
    .credentials-container {
        gap: 35px;
    }
    .credential-icon {
        height: 70px;
    }
}
@media (max-width: 992px) {
    .credentials-container {
        gap: 30px;
    }
    .credential-icon {
        height: 60px;
    }
}
@media (max-width: 768px) {
    .credentials-container {
        gap: 25px;
    }
    .credential-icon {
        height: 50px;
    }
}
@media (max-width: 576px) {
    .credentials-container {
        gap: 20px;
    }
    .credential-icon {
        height: 40px;
    }
}
/*END CREDENTIALS WIDGET 10/30/2024*/

/*MEDIA OUTLETS WIDGET 10/30/2024*/

.media-link {
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.media-text {
    color: #666666;
    text-align: center;
}

.media-bar {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    text-align: center;
    overflow: hidden; /* Prevent horizontal scroll */
}
.media-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;    /* Increased padding */
    display: flex;
    justify-content: space-between; /* Changed back to space-between */
    align-items: center;
    flex-wrap: nowrap;
}
.media-icon {
    height: 87px;
    width: auto;
    object-fit: contain;
    max-width: 160px; /* Prevent icons from getting too wide */
}
@media (max-width: 1400px) {
    .media-container {
        padding: 0 60px;
    }
    .media-icon {
        height: 80px;
        max-width: 140px;
    }
}
@media (max-width: 1200px) {
    .media-container {
        padding: 0 50px;
    }
    .media-icon {
        height: 70px;
        max-width: 120px;
    }
}
@media (max-width: 992px) {
    .media-container {
        padding: 0 40px;
    }
    .media-icon {
        height: 60px;
        max-width: 100px;
    }
}
@media (max-width: 768px) {
    .media-container {
        padding: 0 30px;
    }
    .media-icon {
        height: 45px;
        max-width: 80px;
    }
}
@media (max-width: 576px) {
    .media-container {
        padding: 0 20px;
    }
    .media-icon {
        height: 35px;
        max-width: 60px;
    }
}
/*END MEDIA OUTLETS WIDGET 10/30/2024*/
