/**
Theme Name: helenmilk-astra-child
Author: helenmilk.com
Author URI: https://helenmilk.com
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helenmilk-astra-child
Template: astra
*/

/* Variables */
.wp-block-cb-carousel-v2.cb-carousel-block {
    --wp--custom--carousel-block--navigation-color: var(--ast-global-color-0);
    --wp--custom--carousel-block--pagination-bullet-active-color: var(--ast-global-color-0);
    --wp--custom--carousel-block--pagination-bullet-size: 10px;
    --wp--custom--carousel-block--navigation-size: 20px;
    --wp--custom--carousel-block--navigation-sides-offset: -5px;
}

/* Variables END */

/* Homepage */
body.home .site .site-content #primary .ast-article-single {
    padding: 0;
}

body.home .wp-block-latest-posts__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    body.home .wp-block-latest-posts__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) {

    .ast-separate-container #primary,
    .ast-separate-container.ast-left-sidebar #primary,
    .ast-separate-container.ast-right-sidebar #primary {
        margin: 2.5em 0;
    }
}

@media (max-width: 768px) {
    body.home .wp-block-latest-posts__list {
        grid-template-columns: 1fr;
    }
}

body.home .wp-block-latest-posts__list li {
    margin-block-start: unset;
    padding: 80px 40px;
    border: 1px solid var(--ast-global-color-5);
}

body.home .wp-block-latest-posts__post-title {
    font-family: 'Noto Serif HK', serif;
    font-size: x-large;
    line-height: 1.6;
}

body.home .wp-block-heading {
    margin-block-end: 0.6em;
}

a.wp-block-latest-posts__read-more {
    display: block;
    margin: 20px auto 0;
    width: 120px;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    background-color: var(--ast-global-color-5);
}

/* Homepage END */

/* Pagination */
.ast-pagination .page-numbers {
    width: 3.1em;
    height: 3.3em;
    color: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-5);
    font-size: 0.8rem;
    font-weight: normal;
    line-height: calc(3.3em - 2px);
}

.ast-pagination .next.page-numbers,
.ast-pagination .prev.page-numbers {
    float: none;
    width: auto;
    height: 3.3em;
    line-height: calc(3.3em - 2px);
}

.ast-pagination .current {
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-3);
}

/* Pagination END */

/* Post entry meta */
.entry-meta,
.entry-meta * {
    font-size: 0.8rem;
    font-style: italic;
    font-family: 'Noto Serif HK', serif;
}

.entry-meta,
.entry-meta .posted-on .published {
    color: var(--ast-global-color-6);
}

.post-content>.read-more {
    width: fit-content;
    height: 3.3em;
    font-size: 0.8rem;
    color: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-5);
    line-height: calc(3.3em - 2px);
    padding: 0 1.5em;
}

.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
    font-family: 'Noto Serif HK', serif;
    color: var(--ast-global-color-6);
    font-style: italic;
    font-size: 0.8rem;
}

/* Post entry meta END */

/* Page title */
#primary .ast-archive-description h1::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 1px;
    background: var(--ast-global-color-0);
    margin-top: 0.4em;
}

.ast-archive-description .ast-archive-title {
    font-weight: normal;
}

/* Page title END */

/* Sidebar */
#secondary {
    margin-block-start: 2.5em;
}

#secondary .wp-block-latest-posts__post-title {
    font-family: 'Noto Serif HK', serif;
}

/*- Custom header */
#secondary .custom-header {
    text-align: center;
}

#secondary .custom-header::after {
    content: "";
    display: block;
    width: 5rem;
    height: 1px;
    background: var(--ast-global-color-0);
    margin: 0.4em auto 0.6em;
}

#secondary .wp-block-group {
    padding: 0;
}

#secondary .wp-block-group__inner-container>p {
    margin: 0;
}

#secondary ul.wp-block-categories-list.aligncenter li:hover {
    background-color: var(--ast-global-color-5);
}

/* Sidebar END */

/* Tag */
.wp-block-tag-cloud a {
    background-color: var(--ast-global-color-5);
    padding: 0 10px;
}

/* Tag END */

/* Top Banner */
.my-fullwidth-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    line-height: 0;
    background-size: cover;
    background-position: center;
    height: 380px;
    display: block;
}

@media (min-width: 1025px) {
    .my-fullwidth-banner {
        height: 380px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .my-fullwidth-banner {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .my-fullwidth-banner {
        height: 220px;
    }
}

.my-fullwidth-banner.category {
    background-image: url('/wp-content/uploads/hm-banners/Category_banner.webp');
}

.my-fullwidth-banner.post {
    background-image: url('/wp-content/uploads/hm-banners/Category_banner.webp');
}

.my-fullwidth-banner.page {
    background-image: url('/wp-content/uploads/hm-banners/Page_banner.webp');
}

.my-fullwidth-banner.tag {
    background-image: url('/wp-content/uploads/hm-banners/Tag_banner.webp');
}

.my-fullwidth-banner.other {
    background-image: url('/wp-content/uploads/hm-banners/Tag_banner.webp');
}

/* Top Banner END */

/* Footer START */
footer.site-footer .site-footer-section h2::after {
    content: "";
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--ast-global-color-0);
    margin-top: 0.4em;
}

/* Footer END */

/* First aid video page */
#video-player-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000;
}

.video-aspect-ratio-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#tag-filters {
    margin: 20px 0;
}

.tag-filter {
    padding: 8px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: var(--ast-global-color-5);
    color: var(--ast-global-color-4);
    border: none;
    cursor: pointer;
}

.tag-filter.active,
.tag-filter.active:hover {
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-3);
    font-weight: bold;
}

#video-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#video-list li {
    padding: 6px 10px;
}

#video-list li:nth-child(even) {
    background-color: var(--ast-global-color-2);
}

/* First aid video page END */