/*

Theme Name: IRS Theme

Author: Dave Borca

Description: Custom theme for IRS Website.

Version: 1.0

*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #2C3E50;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --darkblue: #0071BC;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -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";
    --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
body, html{
    font-family: "Oswald", sans-serif !important;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6{
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}
section#hpbanner {
    padding: 180px 0;
    background-size: cover;
    background-position: bottom center;
    background-attachment: fixed;
    position: relative;
}
section#hpbanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #00000057;
}
section#hpbanner h1 {
    text-align: center;
    color: #fff;
    font-size: 50px;
    text-transform: uppercase;
    font-weight: 800;
}
a.btn {
    background-color: var(--primary) !important;
    border-radius: 0;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 auto;
    color: #fff;
    padding: 10px 30px;
    width: 250px;
    margin: 20px auto 0;
    display: block;
    line-height: 25px;
}
section#hpbanner .btn:hover {
    background-color: #fff;
    transition: all  0.3s ease-out;
}
section#app-header {
    background-color: #ffffff;
    padding: 10px 0px;
}
section#app-header ul#mega-menu-header-menu {
    background-color: #fff;
}
section#app-header ul#mega-menu-header-menu li a, section#app-header ul.mega-sub-menu li a {
    color: var(--primary)!important;
    background-color: #fff !important;
    transition: 0.3s ease-out;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}
section#app-header ul.mega-sub-menu {
    background-color: #fff !important;
    border-bottom-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
   
}
section#app-header ul.mega-sub-menu li a{
    font-size: 14px !important;
}
section#app-header ul#mega-menu-header-menu li:hover > a {
    text-decoration: underline !important;
}
section#app-header ul.mega-sub-menu li {
    padding: 5px !important;
}
section#hp1 {
    padding: 50px 0;
}
section#app-header .container {
    display: flex;
    align-items: center;
}
section#app-header .container img {
    width: 100%;
}
section#app-header .container a.logox {
    width: 150px;
}
section#app-header .container  div#mega-menu-wrap-header-menu {
    margin-left: auto;
}
header.fb-entry-header {
    padding: 40px 0;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
}
div#fb-header-title {
    padding: 40px 0;
}
header.fb-entry-header h3 {
    color: #dddddd;
    font-weight: 400;
    font-size: 1.5rem;
}
div#fb-header-title p {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.3rem;
    color: #2f2f2f;
}
div#fb-map {
    height: 400px;
}
div#rest-of-the-content {
    margin-bottom: 50px;
}
div#rest-of-the-content p span {
    color: #337a2f;
    font-weight: 600;
}
div#fb-ftr {
    padding: 40px 0;
}
.food-bank-category-list li a, .category-archive ul.category-posts a {
    font-size: 1.5rem;
    color: #2f2f2f;
    transition: all 0.3s ease-out;
    line-height: 2rem;
}
.food-bank-category-list li:hover a, .category-archive ul.category-posts li:hover a {
    color: #51b94c;
    text-decoration: underline;
}
.food-bank-category-list ul, .category-archive ul.category-posts {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
.food-bank-category-list ul li, .category-archive ul.category-posts li {
    flex: 0 0 auto;
    width: 48%;
    padding: 20px 15px;
}
.page-header1 {
    padding: 50px 0;
}
.food-bank-category-list, .category-archive {
    padding: 50px 0 150px;
}
.food-bank-category-list li a, .category-archive ul.category-posts a {
    font-size: 1.5rem;
    color: #146e17;
    transition: all 0.3s ease-out;
    line-height: 2rem;
}
.category-archive ul.category-posts li {
    position: relative;
    transition: all 0.3s ease-out;
}
.category-archive ul.category-posts li:hover {
    background-color: #51b94c;
    color: #fff !important;
    border-radius: 5px;
}

.category-archive ul.category-posts li:hover a {
    color: #fff !important;
    text-decoration: none !important;
}
.nav-links {
    width: 100%;
    margin: 30px 0;
}
span.page-numbers.current {
    color: #51b94c;
}
.page-numbers {
    font-size: 1.3rem !important;
    color: #6e746b;
}
.pagination {
    margin: 20px auto 30px;
}
.category-archive h1 {
    margin-bottom: 50px;
}

/* AJAX SEARCH */

.search-form {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 !important;
}

.search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

.search-field:focus {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.ajax-search-results li {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s;
}

.ajax-search-results li:hover {
    background: #f8f8f8;
}

.ajax-search-results a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.ajax-search-results a:hover {
    text-decoration: underline;
}
section#fb-header-title {
    padding: 80px 0;
}
#rest-of-the-content p span, #rest-of-the-content p strong {
    color: var(--primary) !important;
    font-weight: 600;
}
.fb-description a {
    color: var(--primary) !important;
    text-decoration: underline;
}
.fb-description h3 {
    text-transform: uppercase;
}
p {
    margin-top: 0;
    margin-bottom: .5rem;
}
section#rest-of-the-content {
    padding: 50px 0;
}
footer#fb-ftr {
    padding-bottom: 50px;
}
.srch {
    text-align: center;
    display: flex;
    justify-content: center;
}

.search-results ul{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}
section#food-banks-nearby ul.food-bank-list{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}
.search-results ul a.text-xl {
    font-size: 1.8rem;
    font-weight: 700;
    color: #41933d;
    line-height: 2rem;
}
.search-results main.wrap {
    padding: 80px 150px;
}
div#search-results ul {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}
div#search-results ul a {
    color: #2f2f2f;
    transition: all 0.3s ease-out;
}
div#search-results ul li:hover a {
    color: #41933d;
}
section#food-banks-nearby ul.food-bank-list li {
    flex: 0 0 auto;
    width: 32%;
    text-align: center;
    border: 3px solid #8f8f8f;
    padding: 40px;
    border-radius: 10px;
}
div#nearby-food-banks h2 {
    text-align: center;
    font-size: 3rem;
    color: #2f2f2f;
}
section#food-banks-nearby ul.food-bank-list li strong {
    font-size: 1.5rem;
    color: var(--primary);
}
section#food-banks-nearby {
    padding: 20px 0 80px;
}
.srch {
    margin-bottom: 30px;
}
.search-results ul li {
    flex: 0 0 auto;
    width: 32%;
}

.search-results ul a.btn, .fb-description a.btn {
    width: 150px;
    margin: 0;
    border-radius: 34px;
    line-height: 16px;
    margin-top: 15px;
    color: #fff !important;
}


/* POP UP */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
  }
  
  .popup-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    position: relative;
  }
  
  .popup-close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .popup-button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }
  .popup-button:hover {
    background: #005f8c;
  }
  .search-results ul a.btn:hover, .fb-description a.btn:hover {
    background-color: #15441d;
}
.ad-space {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    margin: 30px 0;
}
section#fb-header-title {
    padding: 20px 0 80px;
}
.ad-space.vert {
    height: 100%;
}
.search-form ul li {
    width: 100%;
}
.ad-space.vert img {
    width: 100%;
}
.ad-space img {
    width: 100%;
}
.ad-space.vert.ad-display-mobile {
    display: none !important;
}
@media screen and (max-width:640px){
	section#hpbanner {

    position: relative;
}
	section#food-banks-nearby ul.food-bank-list li {
    width: 100% !important;
    padding: 20px;
    border-radius: 10px;
}
	.fb-description {
    margin-top: 20px;
}
	section#fb-header-title {
    padding: 20px 0 10px;
}
	.ad-space.vert img {
    width: 40%;
}
	section#rest-of-the-content {
    padding: 20px 0;
}
	.ad-space.vert {
    height: 100%;
    padding-bottom: 20px;
}
	div#nearby-food-banks h2 {
    font-size: 2.3rem;
}
	section#food-banks-nearby {
    padding: 20px 0 20px;
}
	.ad-space.vert.ad-display-desktop {
    display: none !important;
}
	section#hpbanner {

    background-attachment: unset !important;
 
}
}