@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/poppins-300.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-500.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600.ttf") format("truetype");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700.ttf") format("truetype");
}

:root {
    --hgc-blue: #2962ff;
    --hgc-ink: #1e1e2f;
}

body {
    background: #2d2d2d;
    color: #555;
    letter-spacing: 0;
}

#page {
    min-height: 100vh;
    background: #f8f8f8;
}

.site-branding {
    background: #fff;
}

.site-branding-logo img {
    display: block;
    width: auto;
    max-width: min(100%, 750px);
    max-height: 125px;
    margin: 0 auto;
    object-fit: contain;
}

.navigation-menu {
    position: relative;
    z-index: 30;
    background: linear-gradient(90deg, #1e1e2f, #3a3a5a, #1e2f3f);
}

.nav-container,
.nav-menu > li {
    position: relative;
}

.nav-menu {
    margin: 0;
    list-style: none;
}

.submenu-toggle {
    display: none;
}

.has-sidebar.no-sidebar #primary {
    width: 100%;
    float: none;
    padding: 0;
}

.has-sidebar.no-sidebar #secondary {
    display: none;
}

.featured-image {
    position: relative;
    overflow: hidden;
    background-color: #eee;
    background-repeat: no-repeat;
}

.featured-image .card-thumbnail {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-thumbnail-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section-top-stories .featured-image,
.related-posts .featured-image {
    background-size: contain;
    background-position: center;
}

.section-top-stories .featured-image .card-thumbnail,
.related-posts .featured-image .card-thumbnail {
    object-fit: contain;
}

.blog-archive .featured-image {
    background-position: center top;
}

.blog-archive .featured-image .card-thumbnail {
    object-position: center top;
}

.latest-heading {
    margin-top: 4px;
}

.page-header {
    margin-bottom: 28px;
    text-align: center;
}

.page-title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.single-page-wrapper .entry-content {
    padding: 30px;
    background: #fff;
    box-shadow: 0 2px 2px rgba(0,0,0,.06);
}

.single-page-wrapper .entry-header {
    margin-bottom: 18px;
    text-align: center;
}

.single-post-wrap .blog-post-item {
    padding: 24px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    padding: 12px 0;
}

.photo-gallery .gallery-item {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: #eee;
}

.photo-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.single-placeholder {
    max-width: 420px;
    margin: 20px auto;
}

.single-placeholder img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.entry-footer .tags-links a {
    display: inline-block;
    margin: 2px 0 2px 6px;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.related-posts {
    clear: both;
    margin-top: 40px;
}

.widget_search .search-form,
.error-404 .search-form {
    display: flex;
}

.widget_search label,
.error-404 .search-field {
    flex: 1;
    min-width: 0;
}

.widget_search input[type="search"] {
    width: 100%;
}

.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    padding: 5px 9px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    background: #fff;
    font-size: 12px;
    text-decoration: none;
}

.set-list {
    display: grid;
}

.set-list a {
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
    color: #222;
    text-decoration: none;
}

.category-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.category-directory a {
    display: block;
    padding: 20px;
    border: 1px solid #e4e4e4;
    color: #222;
    text-decoration: none;
}

.category-directory strong,
.category-directory span {
    display: block;
}

.category-directory strong {
    margin-bottom: 6px;
    color: var(--hgc-blue);
    font-size: 19px;
}

.site-footer .site-branding-logo img {
    max-height: 72px;
}

.to-top {
    bottom: -60px;
}

.to-top.is-visible {
    bottom: 15px;
}

.error-404 {
    padding: 50px 0;
    text-align: center;
}

.error-404 .title {
    color: var(--hgc-blue);
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
}

.error-404 .search-form {
    max-width: 460px;
    margin: 25px auto 0;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 35px;
    background: rgba(0,0,0,.9);
}

.image-lightbox img {
    display: block;
    max-width: 94vw;
    max-height: 91vh;
    object-fit: contain;
}

.image-lightbox button {
    position: fixed;
    top: 12px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    border: 0;
    background: transparent;
    font-size: 34px;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .nav-menu {
        display: none;
    }

    .navigation-menu.toggled .nav-menu {
        display: block;
    }

    .submenu-toggle {
        position: absolute;
        top: 4px;
        right: 0;
        display: block;
        width: 42px;
        height: 42px;
        padding: 0;
        color: #fff;
        border: 0;
        background: transparent;
        font-size: 22px;
    }

    .submenu-arrow {
        display: none;
    }

    .menu-item-has-children > .sub-menu {
        display: none;
    }

    .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }
}

@media (max-width: 760px) {
    #content-wrap {
        padding-top: 25px;
        padding-bottom: 35px;
    }

    .site-branding {
        padding: 12px 0;
    }

    .site-branding-logo img {
        max-height: 88px;
    }

    .site-description {
        font-size: 14px;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post-wrap .blog-post-item {
        padding: 17px;
    }

    .single-page-wrapper .entry-content {
        padding: 20px;
    }

    .category-directory {
        grid-template-columns: 1fr;
    }

    .site-footer .site-branding-logo img {
        max-height: 58px;
    }

    .error-404 .title {
        font-size: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
