/*
 Theme Name:   memory-child
 Description:  memory-child
 Template:     memory
 Text Domain:  memory-child
*/

@import url("../memory/style.css");

@font-face {
  font-family: 'Ysabeau';
  src: url('/nhcpmp/wp-content/themes/memory-child/assets/fonts/Ysabeau-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ysabeau';
  src: url('/nhcpmp/wp-content/themes/memory-child/assets/fonts/Ysabeau-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --brown: #7a4f1d;
  --light: #f7f5f2;
  --text: #4a4a4a;
}

* {
  box-sizing: border-box;
}
html, body{
    overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Ysabeau', sans-serif;
  background: #fff;
  color: var(--text);
}
div#content .ast-container {
    width: 100% !important;
    max-width: 100%;
    padding:0;
}

h1, h2, h3 , h4, h5 a {
 font-family: 'Ysabeau', sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 46px; /* 2.25rem */
}

h2 {
  font-size: 42px; /* 1.875rem */
}

h3 {
  font-size: 24px; /* 1.5rem */
}

h4 {
  font-size: 20px; /* 1.25rem */
}

h5 {
  font-size: 18px; /* 1.125rem */
}

p {
  font-size: 18px; /* 1rem */
}

/* header */
.menu-search-form {
    position: relative;
    display: inline-block;
}
div#header-top input[type=submit]:hover, div#header-top button[type=submit]:hover {
    background: unset;
    color: #000;
}
/* header sub menu */
/* Parent menu item */
.collections-nav .menu-item-has-children {
    position: relative;
}

/* Sub menu hidden by default */
.collections-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    padding: 0;
    list-style: none;
    z-index: 999;
}

/* Show submenu on hover */
.collections-nav .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Optional styling */
.collections-nav .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.collections-nav .sub-menu li a:hover {
    background: #f5f5f5;
}
.menu-search-form input[type="search"] {
    padding: 5px 40px 5px 15px; /* extra space sa right para sa icon */
    border: 2px solid #8b5e3c;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    width: 420px;
}

.menu-search-form input[type="search"]:focus {
    border-color: #5a3d2a;
}

/* Button icon sa loob ng input */
.menu-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #8b5e3c;
}

.menu-search-form button:focus {
    outline: none;
}

.search-box {
    display: flex;
    border: 1px solid var(--brown);
    border-radius: 4px;
    overflow: hidden;
    width: 80%;
    margin: auto;
}

.search-box input {
  flex: 1;
    padding: 2rem;
    border: none;
    font-size: 0.9rem;
}
.search-box input[type="text"]::placeholder {
    font-size: 18px;
}
.search-box input:focus {
  outline: none;
}

.search-box button {
    padding: 0 1rem;
    background: var(--brown);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 16%;
    text-align: center;
    font-weight: 600;
}
.main-navigation {
    flex: unset;
}
div#content {
    background: #F7F7F7;
}

.site-branding {
    padding: 0 0 10px;
    width: 100%;
    max-width: 403px;
    /* filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(-15deg); */
}
.site-header .custom-logo-link img, .site-header .retina-logo img{
  margin: 0;
}
ul#primary-menu li a {
    font-size: 20px;
    text-transform: none;
        font-family: 'Ysabeau', sans-serif;
    font-weight: 600;
    margin: 0 ;
    color: #8b5e3c;
    padding: 5px 20px;
}
ul#primary-menu  li:hover a {
    background: #8b5e3c;
    color: #fff ;
}
/* toggle menu */
  button#toggleBtn{
     display: none;
         padding: 13px 19px;
  }
#sidebar {

    position: fixed;
    top: 0;
    left: -420px;
       width: 358px;
    height: 100%;
    background: #6b4a1e;
    color: white;
    transition: left 0.3s ease;
    padding: 1rem;
    z-index: 1040;
    overflow-y: auto;
}
#sidebar .main-navigation {
    margin-top: 20px;
}
	#sidebar ul#primary-menu {
    display: flex;
    flex-direction: column;
}
#sidebar ul#primary-menu li a {
    color: #fff !important;
        padding: 0 10px 10px;
}
#sidebar form.menu-search-form {
    margin-top: 63px;
}
#sidebar .menu-search-form input[type="search"] {
    padding: 11px 40px 10px 15px;
    border: 2px solid #8b5e3c;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    width: 333px;
}
button#closeBtn {
    background: none;
    border: none;
    color: #fff;
    font-size: 39px;
    padding: 10px;
    top: -16px !important;
}
					#sidebar.show {
						left: 0;
					}

					/* Overlay */
					#overlay {
						position: fixed;
						top: 0;
						left: 0;
						width: 100%;
						height: 100%;
						background: rgba(0, 0, 0, 0.5);
						display: none;
						z-index: 1030;
					}

					#overlay.show {
						display: block;
					}
          button#toggleBtn {
    font-size: 25px;
    color: #6b4a1e;
}
.page-header,.page-header:before {
  border-bottom: none!important;
}
   .btn-custom-green {
        padding: 10px 87px;
        font-size: 20px;
        font-weight: 800;
        background: #09d577;
        border: none;
        color: #fff;
    }
       .btn-custom-green:hover {
        background: #09d57780;
         color: #fff;
    }


@media (max-width: 1024px) {
   button#toggleBtn {
    display: block;
   }
   .section-hide{
    display: none;
   }
body:not(.home) #content {
    padding: 2rem 20px;
}
.page-header h1 {
    font-size: 30px;
}
}
/* toggle menu */
@media (min-width: 922px) {
    .ast-container {
        max-width: 80%;
    }
}

/* bootstrap overide */
@media (min-width: 1400px) {
  .container {
    max-width: 1440px;
    padding: 0 20px;
  }
}
/* bootstrap overide */
@media (max-width: 768px) {
 .gov_footer {
    padding: 61px 20px;
}
}

/* bootstrap overide */
@media (max-width: 1399px) {
 .gov_footer {
    padding: 61px 20px;
}
}


@media (min-width: 1025px) and (max-width: 1399px) {
  .site-branding {
    max-width: 280px;

}
.menu-search-form input[type="search"] {
        font-size: 10px;
        width: 255px;
    
}
ul#primary-menu li a {
            font-size: 14px;
}
}