/*
	Theme Name: v215 Child
	Template:v215
	Author:The 215 Guys
	Author URI: https://www.the215guys.com
	Version: 1
*/

:root {
	--green: #6a9913;
	--darkgreen: #006362;
}

#header .header-cta span {background: var(--green);color: white;padding: 12px 24px;border: 2px solid var(--green); transition: .5s;}
#header .header-cta span:hover {background: transparent; color: var(--green);}

.title-area {border-bottom: 1px solid var(--green);}

#footer .widget:not(:last-child) {margin-bottom: 30px;}
#footer .footer-3-cols {justify-content: space-between;}
#footer .col-2 {width: auto;}
#footer .col-3 img {max-width: 230px !important;}


.search-form {
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.search-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form form input[type="text"], 
.search-form form select, 
.search-form form input[type="submit"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form form input[type="text"], 
.search-form form select {
    flex: 1 1 auto;
}

.search-form form input[type="submit"] {
    flex: 0 0 auto;
/*     background-color: #007bff; */
	background-color: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form form input[type="submit"]:hover {
/*     background-color: #0056b3; */
	background-color: var(--darkgreen);
}

.search-form ul {
    list-style-type: none;
    padding: 0;
}

.search-form ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.search-form ul li a {
    text-decoration: none;
/*     color: #007bff; */
	color: var(--green);
    font-weight: bold;
    transition: color 0.3s;
}

.search-form ul li a:hover {
/*     color: #0056b3; */
	color: var(--darkgreen);
}

.search-form .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-form .pagination a, 
.search-form .pagination span {
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
/*     color: #007bff; */
	color: var(--green);
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.search-form .pagination a:hover {
/*     background-color: #007bff; */
	background-color: var(--green);
    color: #fff;
}

.search-form .pagination .current-page {
/*     background-color: #007bff; */
	background-color: var(--green);
    color: #fff;
/*     border: 1px solid #007bff; */
	border: 1px solid var(--green);
}

.inventory-search-form {
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.inventory-search-form ul.results-list {
    padding-left: 0;
}

.inventory-search-form form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.highlight {
    text-decoration: underline;
    background-color: yellow; /* Optional: Highlight background color */
}

.inventory-search-form form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.inventory-search-form form input[type="submit"] {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
/*     background-color: #007bff; */
	background-color: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.inventory-search-form form input[type="submit"]:hover {
/*     background-color: #0056b3; */
	background-color: var(--darkgreen);
}

/* List Styles */
.results-list {
    list-style-type: none;
    padding: 0;
}

.result-item {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.result-item ul {
    list-style-type: none;
    padding: 0;
}

.result-item ul li {
    margin-bottom: 5px;
}

.result-item ul li strong {
    display: inline-block;
    width: 150px;
}
.inventory-search-form .pagination {
    display: flex;
    flex-wrap: wrap; /* Allow pagination links to wrap */
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.inventory-search-form .pagination a,
.inventory-search-form .pagination span {
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
/*     color: #007bff; */
	color: var(--green);
    transition: background-color 0.3s, color 0.3s;
}

.inventory-search-form .pagination a:hover {
/*     background-color: #007bff; */
	background-color: var(--green);
    color: #fff;
}

.inventory-search-form .pagination .current-page {
/*     background-color: #007bff; */
	background-color: var(--green);
    color: #fff;
/*     border: 1px solid #007bff; */
	border: 1px solid var(--green);
}.pdf-list {
    font-family: Arial, sans-serif;
    padding-left: 20px;
}

.pdf-list .directory {
    font-weight: bold;
    margin-top: 10px;
}

.pdf-list .file {
    margin-left: 20px;
}

.pdf-list .directory > ul {
    padding-left: 20px;
}

.pdf-list a:hover {
    text-decoration: underline;
}

.pdf-list .volume {
    font-size: 1.5em;
    margin-top: 20px;
}

.pdf-list > .file {
    font-weight: bold;
    list-style: none;
    margin: 0;
}
.pdf-toc ul li:first-child, .pdf-toc ul li:nth-child(2) {
    display: none;
}

/* ===========================
   General Styles
   =========================== */

/* Container for the ToC and PDF list */
.pdf-container {
    display: flex;
    flex-direction: row; /* Side by side on larger screens */
    align-items: flex-start;
    gap: 20px; /* Space between ToC and PDF list */
    padding: 20px;
}

/* ===========================
   Table of Contents (ToC) Styling
   =========================== */

/* Styling for the ToC navigation */
.pdf-toc {
    width: 250px; /* Fixed width for the sidebar */
}

/* Make the ToC sticky */
.pdf-toc nav {
    position: sticky;
    top: 20px; /* Distance from the top of the viewport */
    max-height: calc(100vh - 40px); /* Ensure it doesn't exceed viewport height */
    overflow-y: auto; /* Enable scrolling if content exceeds max-height */
    background-color: #f9f9f9; /* Light background for distinction */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Heading for the ToC */
.pdf-toc nav h2 {
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* List styling within the ToC */
.pdf-toc nav ul {
    list-style-type: none;
    padding-left: 0;
}

/* Individual ToC items */
.pdf-toc nav li {
    margin-bottom: 8px;
}

/* ToC links styling */
.pdf-toc nav a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

/* ToC links hover effect */
.pdf-toc nav a:hover {
    text-decoration: underline;
}

/* ===========================
   Main PDF List Styling
   =========================== */

/* Styling for the main PDF list */
.pdf-list {
    flex: 1; /* Take up remaining space */
    list-style-type: none;
    padding-left: 0;
}

/* Nested lists within directories */
.pdf-list .directory > ul {
    margin-left: 20px;
    list-style-type: disc;
}


/* File links hover effect */
.pdf-list .file a:hover {
    text-decoration: underline;
}

ul.pdf-list > .directory {font-size: 24px;}

ul.pdf-list > .directory .directory {
    font-size: 18px;
}

ul.pdf-list > .directory .directory .file {
    font-size: 18px;
    line-height: 22px;
    padding: 5px 0;
    font-weight: normal;
}

.file a {
    color: #607d2c;
}

/* Hide checkbox */
.toggle {
  display: none;
}

/* Make label look like a proper block */
.directory-wrapper > label.directory {
  display: block;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: bold;
  background-color: #f9f9f9;
  border-radius: 4px;
  position: relative;
}

/* Arrow styles */
.directory .arrow {
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
  width: 0;
  height: 0;
  vertical-align: middle;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
	transform: rotate(270deg);
}

/* Rotated when open (via JS class) */
.directory-wrapper.open .arrow {
  transform: rotate(0);
}

/* Nested list collapses initially */
.nested {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
  padding-left: 16px;
}

.open ul.nested {
    padding-top: 10px;
    padding-bottom: 20px;
}

.big-title {
    font-size: 40px;
    line-height: 40px;
    padding-top: 20px;
    padding-bottom: 5px;
    display: block;
    border-bottom: 1px solid #d8d8d8;
    margin-bottom: 14px;
}

.big-title span {
    display: block;
    font-size: 16px;
}

li.directory.directory-wrapper {
    list-style: none;
}

.directory > ul:not(.nested), .directory > ul > ul {
    padding: 0!important;
    margin: 0!important;
}

/* ===========================
   Responsive Styling
   =========================== */

/* Mobile Styles */
@media (max-width: 768px) {
    .pdf-container {
        flex-direction: column; /* Stack ToC and PDF list vertically */
    }

    .pdf-toc {
        width: 100%; /* Full width on mobile */
    }

    .pdf-toc nav {
        position: static; /* Remove sticky positioning */
        max-height: none; /* Remove max-height constraint */
        overflow-y: visible; /* Show all content */
    }

    .pdf-toc nav {
        /* Optional: Add margin-bottom to separate ToC from PDF list */
        margin-bottom: 20px;
    }

    /* Adjust ToC background and border for better mobile appearance */
    .pdf-toc nav {
        background-color: #ffffff;
        border: 1px solid #ccc;
    }
}



