/*
Theme Name: AR GeneratePress
Author: Asfianda
Author URI: https://asfianda.com/
Description: A GeneratePress child theme for printable content and blogs. It includes a customizable homepage hero and search box, responsive post grids for archives and search results, breadcrumbs, and homepage SEO settings.
Template: generatepress
Version: 2.0
Requires PHP: 8.2
Text Domain: ar-generatepress
Tags: blog, custom-background, featured-images, threaded-comments
*/

.printable-front #content > .printable-home {
    width: 100%;
    min-width: 0;
}

.printable-home {
    --printable-blue: #007c9e;
    --printable-ink: #202c35;
}

.printable-home__hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(20rem, 26vw, 29rem);
    overflow: hidden;
    background: var(--printable-blue);
    color: white;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    text-align: center;
}

.printable-home__hero--banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    background: transparent;
}

.printable-home__banner {
    display: block;
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center bottom;
}

.printable-home__hero--banner .printable-home__intro {
    grid-area: 1 / 1;
    z-index: 1;
    box-sizing: border-box;
    padding: 1rem;
}

.printable-home__hero--banner .printable-home__intro :is(h1, p, a) {
    text-shadow: 0 1px 3px #000, 0 0 8px #0009;
}


.printable-home__intro {
    width: min(100%, 48rem);
}

.printable-home__intro h1 {
    color: var(--hero-title-color);
    margin: 0 0 1rem;
    font-size: var(--hero-title-desktop);
    line-height: 1.12;
    font-weight: var(--hero-title-weight);
    text-transform: var(--hero-title-case);
    overflow-wrap: anywhere;
}

.printable-home__intro p {
    margin: 0 0 1.5rem;
    font-size: var(--hero-tagline-desktop);
    color: var(--hero-tagline-color);
    font-weight: var(--hero-tagline-weight);
    text-transform: var(--hero-tagline-case);
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.printable-home__search {
    display: flex;
    gap: .4rem;
    width: min(100%, 35rem);
    margin: 0 auto;
}

.printable-home__search input[type="search"] {
    flex: 1;
    min-width: 0;
    min-height: 3rem;
    padding: .75rem 1rem;
    background: white;
    color: var(--printable-ink);
    border: 1px solid #d7e2e7;
    border-radius: .35rem;
}

.printable-home__search button {
    min-height: 3rem;
    border: 0;
    border-radius: .35rem;
    padding: .65rem 1rem;
    background: #ff8a00;
    color: #241500;
    font-weight: 650;
}

.printable-home__search button:is(:hover, :focus-visible) {
    background: #ffac42;
    color: #241500;
}

.printable-home__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.65rem, 1.25vw, 1rem);
}

.printable-home__card {
    min-width: 0;
    border-radius: .55rem;
    padding: clamp(.5rem, 1vw, 1rem);
    background: white;
}

.printable-home__media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.printable-home__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.printable-home__card-heading {
    padding: .8rem .65rem 1rem;
}

.printable-home__card-heading .entry-title {
    margin: 0;
    overflow-wrap: anywhere;
}

.printable-home__pagination .printable-home__pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.printable-home__pagination-list > li {
    display: block;
    margin: 0;
    padding: 0;
}

.printable-home__pagination-list > li > .page-numbers {
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding-inline: .65rem;
    border-radius: .45rem;
    background: #315f7d;
    color: white;
    text-decoration: none;
}

.printable-home__pagination-list > li > a.page-numbers:hover {
    background: #007c9e;
}

.printable-home__pagination-list > li > .page-numbers.current {
    background: #ffb547;
    color: #241500;
    font-weight: 750;
}

.printable-home a:focus-visible,
.printable-home button:focus-visible,
.printable-home input:focus-visible {
    outline: .18rem solid currentColor;
    outline-offset: .18rem;
    box-shadow: 0 0 0 .36rem #ffbe61;
}

@media (max-width: 960px) {
    .printable-home__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (width < 660px) {
    .printable-home__hero--banner {
        padding-block: 1rem;
    }

    .printable-home__hero--banner .printable-home__banner {
        /* Let the intro size the hero, then fill it with the image. */
        position: absolute;
        grid-area: auto;
        inset: 0;
        height: 100%;
        max-height: none;
    }
}

@media (max-width: 650px) {
    .printable-home__intro h1 {
        font-size: var(--hero-title-mobile);
    }

    .printable-home__intro p {
        font-size: var(--hero-tagline-mobile);
    }

    .printable-home__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .printable-home__pagination .printable-home__pagination-list {
        justify-content: center;
    }
}

@media (max-width: 350px) {
    .printable-home__grid {
        grid-template-columns: 1fr;
    }
}


.printable-listing-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    padding-block: .5rem 1rem;
    border-bottom: .25rem solid #00bedf;
}

.printable-listing-heading .page-title {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.printable-listing-heading nav {
    font-size: 13px;
    margin-inline-start: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
}

a:hover,
a:focus {
    text-decoration: none;
}

.gb-block-image img {
    padding: 3px;
}

.gb-grid-wrapper-788bc71d,
.gb-grid-wrapper-d82504eb,
.gb-grid-wrapper-e1b943ee,
.gb-grid-wrapper-ce412e8d {
    border-bottom: 3px solid #00c0ef;
}

.aioseo-breadcrumbs {
    font-size: 12px;
}

.site-header {
    box-shadow: 0 0 10px #464343;
}

.main-navigation ul ul li:nth-child(even) {
    background-color: #efefef;
}

.menu-item {
    cursor: pointer;
}

ol,
ul {
    margin: 0 0 0.8em 2em;
}

.widget-title {
    margin-bottom: 10px;
}

.menu-item-has-children .dropdown-menu-toggle {
    padding-right: 0;
}

.avatar {
    vertical-align: middle;
}

h2,
h3 {
    margin-top: 18px;
}

.printable-home__catalog {
    padding-block: clamp(1.5rem, 5vw, .5rem) 0rem;
}
