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

/*Font Definitions*/
/* Lato Regular */
@font-face {
  font-family: 'Lato';
  src: url('/fonts/Lato-Regular.woff2') format('woff2'),
       url('/fonts/Lato-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* Lato Bold */
@font-face {
  font-family: 'Lato';
  src: url('/fonts/Lato-Bold.woff2') format('woff2'),
       url('/fonts/Lato-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

  
 
/* Basic styling */
body {
  font-size: 1rem;
   font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: #F9F9F9;
  color: #333;
  font-size-adjust: 0.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 1rem; /* 16px */
  font-family: 'Lato', Arial, Sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #F9F9F9;
  color: #333;
}

/*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-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid gray; 
  padding-bottom: 25px; /* Space between the text and the border */
}



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


h3 {
    font-size: 20px;
    font-weight: 600;
}

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

li {
    margin-bottom: 10px;
}

@media (max-width: 1420px) {

h1 {
  font-size: 24px;
   	margin-top: 60px;
  margin-bottom: 10px;
    border-bottom: 1px solid gray; /* Solid black border */
    padding-bottom: 40px; /* Space between the text and the border */
}

}

@media (max-width: 1200px) {

h1 {
  font-size: 23px;
    margin-top: 50px;
  margin-bottom: 15px;
}
}


/* Mobile Typography Adjustments */
@media (max-width: 775px) {
     body {
    font-size: 19px;  
  }
   h1 {
  font-size: 22px;
    margin-top: 30px;
     line-height: 1.5; 
  margin-bottom: 5px;
    padding: 0 7px 30px 7px;
  }
  
  p {
    margin-bottom: 1.3em; /* Less space between paragraphs on mobile */
  }
  
  #menu {
    display: none;
  }
  .call-to-action-box {
    display: none; 
  }
  .call-to-action-box-mobile {
    display: block;  
  }
   .container {
    flex-direction: column;
  }

  .column-2,
  .column-3 {
    flex: auto; 
  }
}

/* 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: 1em; /* Increase padding for better spacing */
  margin-right: 1.25vw;
  margin-left: 1.25vw;
  order: 2;
  min-width: 37em;
  max-width: 42em;

}

.column-3 {
    
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  align-items: center; /* Centers children horizontally */
  padding-top: 300px; /* Space from the top */
  flex: 1;
  padding: 1em; /* Increase padding for better spacing */
  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: 1087px) {
	
	.column-1 {
 display: none;
}
}


@media screen and (max-width: 1010px) {
	
	
	.column-2 {
   max-width: 30em;
     padding: none;
  margin-right: none;
  margin-left: none;

}
}

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

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

}
}
	

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


.column-2 {
  min-width: 100%;

}

/*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 */
}

/* 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 {
        padding: 5px 10px;
        margin: 0px auto;
        overflow-x: auto;
        display: flex;
        align-items: center;
    }

    #breadcrumbs ol {
        display: flex;
        flex-wrap: nowrap;
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    #breadcrumbs .breadcrumb-item {
        display: flex;
        align-items: center;
        margin-right: 0px;
        font-size: 13px;
    }

    /* Correctly applying separator only between items */
    #breadcrumbs .breadcrumb-item:not(:first-child)::before {
        content: "/";
        color: #6c757d;
        margin: 0 5px;
    }

    #breadcrumbs .breadcrumb-item a {
        color: maroon;
        text-decoration: none;
        white-space: nowrap;
    }
    
      /* Adjusting visibility for compact display */
    #breadcrumbs .breadcrumb-item:not(:nth-last-child(-n+2)) {
        display: none; /* Hides items except for the last two */
    }
}


/*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: 350px;
    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;
  margin: auto;
  padding: 15px 0 10px 20px;
}


@media (max-width: 775) {
    .column-3 .widget {
        display: none;
    }
}

/*END WIDGET*/

/*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;
}

/* 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;
}

/* Optional: Adjust the table to be more mobile-friendly */
@media (max-width: 775px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 0.6rem;
    }

    td {
        border: none;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-column);
        color: #2C3E50;
        font-weight: bold;
    }
}

  



/*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: 330px;
    font-size: 14px;
    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 {
    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;
  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 */
}
/*END CONTACT FORM */

/*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;
}


/* Pagination Styles */
.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*/







/*Payment*/

body {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Ubuntu', sans-serif;
   background: #f7f9fc;
   margin: 0;
   line-height: 1.5;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

.payment_container {
   max-width: 800px;
   margin: 20px auto;
   padding: 30px;
   background: white;
   border-radius: 8px;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment_content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 150px); /* Account for container padding and margins */
}

.instructions {
   color: #4f566b;
   font-size: 16px;
   margin: 0 0 20px 0; 
}

.agreement-box {

   height: 200px;
   overflow-y: auto;
   border: 1px solid #e3e8ee;
   border-radius: 6px;
   padding: 15px;
   background: #f8fafc;
   font-size: 14px;
}

.agreement-box p,
.agreement-box h1,
.agreement-box h2,
.agreement-box h3,
.agreement-box h4,
.agreement-box h5,
.agreement-box h6,
.agreement-box ul,
.agreement-box ol,
.agreement-box li,
.agreement-box blockquote,
.agreement-box pre {
   margin: 0;
   padding: 0;
   border: none;
   line-height: 1.4;
}

.agreement-box ul,
.agreement-box ol {
   padding-left: 1.5em;
}

.consent {
   margin: 10px 0;
}

.checkbox-label {
   display: flex;
   align-items: center;
   gap: 10px;
   color: #1a1f36;
   font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
   margin: 0;
}

.checkout-container {
    margin-top: 10px;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
}

#checkout {
   width: 100%;
}

.hidden {
   display: none;
}

/* Success page styles */
#success {
   text-align: center;
   padding: 20px;
}

#success p {
   color: #4f566b;
   margin: 10px 0;
}

#success a {
   color: #556cd6;
   text-decoration: none;
}

#success a:hover {
   text-decoration: underline;
}

/*more success styles*/

.success-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.success-message {
    background: #f0f9f0;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.primary-button, .secondary-button {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.primary-button {
    background: #556cd6;
    color: white;
}

.primary-button:hover {
    background: #4559b4;
}

.secondary-button {
    background: #f8f9fa;
    border: 1px solid #556cd6;
    color: #556cd6;
}

.secondary-button:hover {
    background: #e9ecef;
}

/* admin panel styles */
.login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-submit {
    background: maroon;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-submit:hover {
    background: #600;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logout-button {
    background: #f8f9fa;
    color: maroon;
    padding: 8px 16px;
    border: 1px solid maroon;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.logout-button:hover {
    background: maroon;
    color: white;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ===== ADMIN DASHBOARD STYLES ===== */

/* Admin navigation bar */
.admin-nav {
    background: #1a1f36;
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.admin-nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.admin-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.admin-nav-brand {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.admin-nav-brand:hover {
    color: #e0e0e0;
}

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.admin-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.admin-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-nav-user {
    font-size: 13px;
    color: #718096;
}

.admin-nav-logout {
    color: #e88;
    font-size: 13px;
    padding: 5px 12px;
    border: 1px solid rgba(255,100,100,0.25);
    border-radius: 5px;
}

.admin-nav-logout:hover {
    color: #fff;
    background: rgba(255,100,100,0.15);
    border-color: rgba(255,100,100,0.4);
}

/* Mobile nav */
@media (max-width: 600px) {
    .admin-nav-inner {
        padding: 0 12px;
        height: 48px;
    }

    .admin-nav-left {
        gap: 16px;
    }

    .admin-nav-brand {
        font-size: 14px;
    }

    .admin-nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }

    .admin-nav-user {
        display: none;
    }
}

.admin-dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 32px 60px;
}

.admin-dashboard h1.admin-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1f36;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: #800000;
    color: #fff;
}

.btn-primary:hover {
    background: #600000;
}

.btn-outline {
    background: #fff;
    color: #800000;
    border: 1px solid #800000;
}

.btn-outline:hover {
    background: #800000;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #b02a37;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-edit {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.btn-edit:hover {
    background: #e0e0e0;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #666;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s;
}

.btn-icon:hover {
    background: #eee;
    color: #333;
}

/* Stats */
.admin-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #800000;
}

.stat-label {
    font-size: 14px;
    color: #697386;
}

/* Toolbar / Search */
.admin-toolbar {
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    max-width: 340px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

/* Table */
.admin-table-wrap {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.admin-table thead {
    background: #f8f9fc;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #697386;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e3e8ee;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    color: #3c4257;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #fafbfd;
}

.admin-table code {
    background: #f4f5f7;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    color: #556cd6;
    word-break: break-all;
}

.cell-name strong {
    color: #1a1f36;
}

.cell-link {
    white-space: nowrap;
}

.cell-link .btn-icon {
    vertical-align: middle;
    margin-left: 4px;
}

.payment-url {
    font-size: 12px;
    color: #697386;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-actions {
    white-space: nowrap;
}

.cell-actions .btn {
    margin-right: 6px;
}

.actions-col {
    width: 160px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #697386;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-success {
    background: #059669;
    color: #fff;
}

.toast-error {
    background: #dc3545;
    color: #fff;
}

/* Modal overlay */
.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
}

.modal-overlay.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.modal-overlay .modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.2s ease;
}

.modal-overlay .modal-sm {
    max-width: 440px;
}

.modal-overlay .modal-lg {
    max-width: 720px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

/* Quill rich text editor in modals */
.quill-editor {
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.quill-editor .ql-editor {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quill-editor .ql-editor.ql-blank::before {
    font-style: normal;
    color: #9ca3af;
}

.modal-form .ql-toolbar.ql-snow {
    border: 1px solid #d1d5db;
    border-radius: 6px 6px 0 0;
    background: #f8f9fc;
}

.modal-form .ql-container.ql-snow {
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-overlay .modal-lg {
        max-width: 100%;
    }
}

@keyframes modalIn {
    from { transform: translateY(-20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e3e8ee;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1f36;
    border: none;
    padding: 0;
    text-align: left;
}

.modal-header-danger h2 {
    color: #dc3545;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin: 0 0 10px;
    color: #3c4257;
    font-size: 14px;
    line-height: 1.6;
}

.text-muted {
    color: #9ca3af !important;
    font-size: 13px !important;
}

.modal-overlay form,
.modal-form {
    padding: 20px 24px 0;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0;
    line-height: 1.5;
    font-size: 14px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3c4257;
    margin-bottom: 6px;
}

.modal-form .form-group input[type="text"],
.modal-form .form-group input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.modal-form .form-group input[type="text"]:focus,
.modal-form .form-group input[type="number"]:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.modal-form .form-group input[type="file"] {
    font-size: 14px;
    padding: 6px 0;
}

.input-disabled {
    background: #f4f5f7 !important;
    color: #697386 !important;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e3e8ee;
    margin-top: 12px;
}

/* Mobile responsive adjustments for admin dashboard */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 16px 12px 40px;
    }

    .admin-header {
        flex-direction: row;
        align-items: center;
    }

    .admin-dashboard h1.admin-title {
        font-size: 20px;
    }

    .search-box {
        max-width: 100%;
    }

    .admin-stats {
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 12px 16px;
    }

    .stat-number {
        font-size: 22px;
    }

    /* Convert table to card layout on mobile */
    .admin-table-wrap {
        background: none;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .admin-table {
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .admin-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        background: #fff;
        border: 1px solid #e3e8ee;
        border-radius: 8px;
        padding: 14px 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        gap: 4px 12px;
    }

    .admin-table tbody tr:hover {
        background: #fff;
    }

    .admin-table td {
        padding: 0;
        border: none;
    }

    .admin-table td.cell-name {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 15px;
    }

    .admin-table td.cell-name strong {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-table td.cell-amount {
        flex: 0 0 auto;
        font-weight: 600;
        color: #1a1f36;
        font-size: 15px;
    }

    .admin-table td.cell-link {
        flex: 0 0 auto;
    }

    .admin-table td.cell-link .payment-url {
        display: none;
    }

    .admin-table td.cell-actions {
        flex: 0 0 100%;
        display: flex;
        gap: 8px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid #f0f2f5;
    }

    .admin-table td.cell-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        margin-right: 0;
    }

    .modal-overlay .modal {
        margin: 10px;
        max-height: 85vh;
    }
}

/* ===== FULL-PAGE EDITOR VIEW STYLES ===== */

/* Back button in nav bar */
.editor-back-btn {
    display: none;
    align-items: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    padding: 5px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}

.editor-back-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

/* Save status indicator in nav bar */
.editor-save-status {
    display: none;
    font-size: 13px;
    color: #718096;
    white-space: nowrap;
}

.editor-save-status.saving {
    color: #ffc107;
}

.editor-save-status.saved {
    color: #28a745;
}

.editor-save-status.error {
    color: #dc3545;
}

/* Editor page container */
.editor-page {
    max-width: 900px;
    margin: 0 auto;
}

.editor-page-header {
    margin-bottom: 24px;
}

.editor-page-header .admin-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

/* Editor form styles */
.editor-page-form {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    line-height: 1.5;
    font-size: 14px;
}

.editor-fields-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.editor-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 20px;
}

.editor-fields-row .editor-field {
    margin-bottom: 0;
}

.editor-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3c4257;
    margin-bottom: 6px;
}

.editor-field input[type="text"],
.editor-field input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    background: #fff;
}

.editor-field input[type="text"]:focus,
.editor-field input[type="number"]:focus {
    outline: none;
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.editor-field input:disabled {
    background: #f4f5f7;
    color: #697386;
    cursor: not-allowed;
}

/* Full-page Quill editor */
.quill-editor-full {
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.quill-editor-full .ql-editor {
    min-height: 450px;
    font-size: 14px;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quill-editor-full .ql-editor.ql-blank::before {
    font-style: normal;
    color: #9ca3af;
}

.editor-page-form .ql-toolbar.ql-snow {
    border: 1px solid #d1d5db;
    border-radius: 6px 6px 0 0;
    background: #f8f9fc;
}

.editor-page-form .ql-container.ql-snow {
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* Action buttons row */
.editor-page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e3e8ee;
    margin-top: 24px;
}

.editor-delete-btn {
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .editor-page {
        padding: 16px 12px 40px;
    }

    .editor-page-form {
        padding: 20px 16px;
    }

    .editor-fields-row {
        flex-direction: column;
        gap: 0;
    }

    .editor-fields-row .editor-field {
        margin-bottom: 16px;
    }

    .quill-editor-full .ql-editor {
        min-height: 300px;
    }

    .editor-page-actions {
        flex-wrap: wrap;
    }
}

/* ===== END FULL-PAGE EDITOR VIEW STYLES ===== */

/* Executed agreements table cells */
.cell-email {
    font-size: 12px;
    color: #697386;
}

.cell-date {
    white-space: nowrap;
    font-size: 13px;
    color: #697386;
}

.cell-ip {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    color: #697386;
}

/* Mobile card layout for executed agreements */
@media (max-width: 768px) {
    #executedView .admin-table td {
        padding: 4px 0;
        border: none;
    }

    #executedView .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #697386;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        display: block;
        margin-bottom: 2px;
    }

    #executedView .admin-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e3e8ee;
        border-radius: 8px;
        padding: 14px 16px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    #executedView .admin-table td.cell-name {
        font-size: 16px;
    }
}

/* ===== END ADMIN DASHBOARD STYLES ===== */