/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

:root {
    --hmdic-navy: #071d41;
    --hmdic-blue: #086bff;
    --hmdic-blue-dark: #0057dc;
    --hmdic-text: #10284d;
    --hmdic-muted: #536b8d;
    --hmdic-border: #e1eaf4;
    --hmdic-white: #ffffff;
    --hmdic-light: #f5faff;
    --hmdic-container: 1180px;
}

*,
::after,
::before {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}


body,
html {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}


/* -----------------------------------------
   HEADER
----------------------------------------- */

.hmdic-header {
    width: 100%;
    background: var(--hmdic-white);

    border-bottom: 1px solid var(--hmdic-border);

    position: relative;
    z-index: 9999;
}


/* -----------------------------------------
   HEADER INNER
----------------------------------------- */

.hmdic-header-inner {
    width: min(1180px, calc(100% - 40px));

    min-height: 82px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* -----------------------------------------
   LOGO
----------------------------------------- */

.hmdic-logo {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
}

.hmdic-logo a {
    display: inline-flex;
    align-items: center;

    line-height: 0;
}

.hmdic-logo-image {
    display: block;
    width: 230px;
    height: auto;
    object-fit: contain;
}

.hmdic-site-title {
    color: var(--hmdic-navy);

    font-size: 22px;
    font-weight: 700;

    line-height: 1.2;
}


/* -----------------------------------------
   NAVIGATION
----------------------------------------- */

.hmdic-navigation {
    margin: 0;
    padding: 0;
}


/* WordPress UL */

.hmdic-menu {
    display: flex;
    align-items: center;

    gap: 38px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* WordPress LI */

.hmdic-menu>li {
    position: relative;

    margin: 0;
    padding: 0;
}


/* Menu Links */

.hmdic-menu>li>a {

    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 31px 0;

    color: var(--hmdic-navy);

    font-size: 15px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    transition: color .2s ease;
}


/* Hover */

.hmdic-menu>li>a:hover {
    color: var(--hmdic-blue);
}


/* Active */

.hmdic-menu>li.current-menu-item>a,
.hmdic-menu>li.current_page_item>a,
.hmdic-menu>li.current-menu-ancestor>a {
    color: var(--hmdic-blue);
}


/* Active underline */

.hmdic-menu>li.current-menu-item>a::after,
.hmdic-menu>li.current_page_item>a::after,
.hmdic-menu>li.current-menu-ancestor>a::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 20px;

    height: 2px;

    background: var(--hmdic-blue);

    border-radius: 10px;
}


/* -----------------------------------------
   MOBILE TOGGLE
----------------------------------------- */

.hmdic-menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--hmdic-border);

    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;
}

.hmdic-menu-toggle span {

    display: block;

    width: 20px;
    height: 2px;

    background: var(--hmdic-navy);

    border-radius: 10px;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .hmdic-header-inner {

        width: min(100% - 32px,
                1180px);

        min-height: 76px;
    }



    .hmdic-menu {

        gap: 25px;
    }


    .hmdic-menu>li>a {

        font-size: 14px;

        padding: 28px 0;
    }


    .hmdic-menu>li.current-menu-item>a::after,
    .hmdic-menu>li.current_page_item>a::after,
    .hmdic-menu>li.current-menu-ancestor>a::after {

        bottom: 18px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .hmdic-header-inner {

        width: calc(100% - 30px);

        min-height: 70px;

        position: relative;
    }




    /* Show hamburger */

    .hmdic-menu-toggle {

        display: flex;
    }


    /* --------------------------------------
       MOBILE MENU
    -------------------------------------- */

    .hmdic-navigation {

        position: absolute;

        left: 0;
        right: 0;

        top: calc(100% + 1px);

        background: #ffffff;

        border: 1px solid var(--hmdic-border);

        border-top: 0;

        box-shadow:
            0 15px 35px rgba(7, 29, 65, .08);

        padding: 8px 0;

        display: none;
    }


    /* Open */

    .hmdic-navigation.is-open {

        display: block;
    }


    /* Same WordPress menu */

    .hmdic-menu {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        width: 100%;
    }


    .hmdic-menu>li {

        width: 100%;
    }


    .hmdic-menu>li>a {

        display: flex;

        width: 100%;

        padding: 14px 20px;

        font-size: 14px;

        line-height: 1.4;
    }


    /* Remove desktop underline */

    .hmdic-menu>li.current-menu-item>a::after,
    .hmdic-menu>li.current_page_item>a::after,
    .hmdic-menu>li.current-menu-ancestor>a::after {

        display: none;
    }


    /* Mobile active background */

    .hmdic-menu>li.current-menu-item>a,
    .hmdic-menu>li.current_page_item>a {

        background: #f2f7ff;

        color: var(--hmdic-blue);
    }


    /* --------------------------------------
       HAMBURGER ACTIVE
    -------------------------------------- */

    .hmdic-menu-toggle.is-active span:nth-child(1) {

        transform: translateY(7px) rotate(45deg);
    }

    .hmdic-menu-toggle.is-active span:nth-child(2) {

        opacity: 0;
    }

    .hmdic-menu-toggle.is-active span:nth-child(3) {

        transform: translateY(-7px) rotate(-45deg);
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .hmdic-header-inner {

        width: calc(100% - 24px);

        min-height: 64px;
    }


    .hmdic-menu-toggle {

        width: 40px;
        height: 40px;
    }

}

/* =========================================================
   HMDIC PREMIUM FOOTER
   Background Image Version
========================================================= */

.hmdic-footer {
    position: relative;

    width: 100%;

    min-height: 245px;

    padding: 42px 20px 28px;

    background-color: #086bff;

    
}


/* =========================================================
   FOOTER INNER
========================================================= */

.hmdic-footer-inner {
    position: relative;

    z-index: 2;

    width: min(1180px, 100%);

    margin: 0 auto;

    text-align: center;
}


/* =========================================================
   FOOTER LOGO
========================================================= */

.hmdic-footer-logo {
    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 0 17px;

    padding: 0;
}


.hmdic-footer-logo a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    line-height: 0;

    text-decoration: none;
}


.hmdic-footer-logo-image {
    display: block;

    width: 155px;

    height: auto;

    max-width: 100%;

    max-height: 65px;

    object-fit: contain;
}


/* Fallback Site Title */

.hmdic-footer-title {
    display: inline-block;

    color: #071d41;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   FOOTER MENU
========================================================= */

.hmdic-footer-navigation {
    display: block;

    width: 100%;

    margin: 0 0 16px;

    padding: 0;
}


.hmdic-footer-menu {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 28px;

    width: 100%;

    margin: 0;

    padding: 0;

    list-style: none;
}


.hmdic-footer-menu li {
    display: block;

    margin: 0;

    padding: 0;
}


.hmdic-footer-menu li a {
    display: inline-block;

    margin: 0;

    padding: 0;

    color: #ffffff;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.5;

    text-decoration: none;

    transition:
        color .2s ease,
        opacity .2s ease;
}


.hmdic-footer-menu li a:hover {
    color: #086bff;

    opacity: 1;
}


/* =========================================================
   DIVIDER
========================================================= */

.hmdic-footer-divider {
    width: 220px;

    max-width: 100%;

    height: 1px;

    margin: 0 auto 13px;

    background: rgba(7, 29, 65, .20);
}


/* =========================================================
   COPYRIGHT
========================================================= */

.hmdic-footer-copyright {
    margin: 0;

    padding: 0;

    color: #ffffff;


    font-size: 16px;

    font-weight: 400;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .hmdic-footer {

        min-height: 230px;

        padding: 40px 20px 27px;

        background-size: cover;

        background-position: center bottom;
    }


    .hmdic-footer-logo {

        margin-bottom: 17px;
    }


    .hmdic-footer-logo-image {

        width: 145px;

        max-height: 60px;
    }


    .hmdic-footer-navigation {

        margin-bottom: 16px;
    }


    .hmdic-footer-menu {

        gap: 24px;
    }



    .hmdic-footer-divider {

        width: 210px;

        margin-bottom: 13px;
    }


}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .hmdic-footer {

        min-height: 220px;

        padding: 36px 15px 25px;

        background-size: auto 100%;

        background-position: center bottom;
    }


    .hmdic-footer-logo {

        margin-bottom: 16px;
    }


    .hmdic-footer-logo-image {

        width: 140px;

        max-height: 58px;
    }


    .hmdic-footer-navigation {

        margin-bottom: 15px;
    }


    .hmdic-footer-menu {

        gap: 20px;
    }




    .hmdic-footer-divider {

        width: 190px;

        margin-bottom: 12px;
    }



}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .hmdic-footer {

        min-height: 215px;

        padding-left: 12px;

        padding-right: 12px;
    }


    .hmdic-footer-logo-image {

        width: 130px;
    }


    .hmdic-footer-menu {

        gap: 16px;
    }





    .hmdic-footer-divider {

        width: 175px;
    }

}


/* =========================================================
   HMDIC HOME PAGE
   FINAL CENTER CSS
   Hero + Blog Listing
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */




/* =========================================================
   HOME
========================================================= */

.hmdic-home {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #fff;

    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.hmdic-hero {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 50px 0px;
    overflow: hidden;
    background-color: #f5faff;
    background-image: url("./assets/image/home-hero-bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
}

/* =========================================================
   HERO CONTAINER
========================================================= */

.hmdic-hero-container {
    position: relative;

    z-index: 2;

    width: min(var(--hmdic-container),
            calc(100% - 40px));

    margin: 0 auto;
    padding: 0;

    display: grid;

    /*
     * Text on left
     * Image is already inside background
     */
    grid-template-columns: 56% 44%;

    align-items: center;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hmdic-hero-content {
    position: relative;

    z-index: 3;

    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   HERO LABEL
========================================================= */

.hmdic-hero-label {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px !important;
    color: #071d41;

    font-size: 14px !important;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: .9px;

    text-transform: uppercase;
}


/* =========================================================
   HERO TITLE
========================================================= */

.hmdic-hero h1 {
    display: block;

    width: 100%;
    max-width: 650px;

    margin: 0 0 9px !important;
    padding: 0 !important;

    color: var(--hmdic-navy);

    font-size: 50px !important;

    font-weight: 750 !important;

    line-height: .99 !important;

    letter-spacing: -2px;

    text-align: left;
}


/* Blue text */

.hmdic-hero h1 span {
    color: var(--hmdic-blue);
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hmdic-hero-content>p {
    display: block;

    width: 100%;
    max-width: 600px;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--hmdic-text);



    font-size: 16px !important;

    font-weight: 400;

    line-height: 1.45 !important;

    text-align: left;
}


/* =========================================================
   HERO TAGLINE
========================================================= */

.hmdic-hero-tagline {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 15px 0 0 !important;
    padding: 0 !important;
}


.hmdic-hero-line {
    display: block;

    width: 35px;
    height: 2px;

    flex: 0 0 auto;

    background: var(--hmdic-blue);
}


.hmdic-hero-tagline span:last-child {
    color: #395273;


    font-size: 12px !important;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 2.7px;
}


/* =========================================================
   HIDE IMAGE ELEMENT
   Because image is now background
========================================================= */

.hmdic-hero-visual {
    display: none !important;
}


/* =========================================================
   BLOG SECTION
========================================================= */

.hmdic-blog-section {
    width: 100%;

    margin: 0;
    padding: 40px 0 30px;

    background: #fff;
}


/* =========================================================
   BLOG CONTAINER
========================================================= */

.hmdic-blog-container {
    width: min(var(--hmdic-container),
            calc(100% - 40px));

    margin: 0 auto;

    padding: 0;
}


/* =========================================================
   POST LIST
========================================================= */

.hmdic-post-list {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   POST CARD
========================================================= */

.hmdic-post-card {
    display: grid;

    grid-template-columns:
        333px minmax(0, 1fr);

    gap: 22px;

    width: 100%;

    margin: 0 0 20px;

    padding: 0 0 20px;

    border-bottom: 1px solid var(--hmdic-border);

    background: #fff;
}


/* Last post */

.hmdic-post-card:last-child {
    margin-bottom: 0;

    padding-bottom: 0;

    border-bottom: 0;
}


/* =========================================================
   POST IMAGE
========================================================= */

.hmdic-post-image {
    position: relative;

    display: block;

    width: 100%;
    height: 150px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border-radius: 9px;

    background: #edf3f9;

    text-decoration: none;
}


.hmdic-post-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    margin: 0;
    padding: 0;

    object-fit: cover;

    object-position: center;

    transition:
        transform .4s ease;
}


.hmdic-post-image:hover img {
    transform: scale(1.035);
}


/* =========================================================
   NO FEATURED IMAGE
========================================================= */

.hmdic-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    background: #edf6ff;

    color: var(--hmdic-navy);

    font-size: 18px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   POST CONTENT
========================================================= */

.hmdic-post-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    margin: 0;
    padding: 0;
}


/* =========================================================
   DATE
========================================================= */

.hmdic-post-date {
    display: flex;

    align-items: center;

    gap: 7px;

    margin: 0 0 4px;

    padding: 0;

    color: #526887;

    font-size: 11px;

    font-weight: 400;

    line-height: 1.4;
}


.hmdic-post-date svg {
    display: block;

    width: 15px;
    height: 15px;

    flex: 0 0 auto;

    color: var(--hmdic-navy);
}


/* =========================================================
   POST TITLE
========================================================= */

.hmdic-post-title {
    margin: 8px 0 10px;

    padding: 0;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -.5px;
}


.hmdic-post-title a {
    color: var(--hmdic-navy);

    text-decoration: none;

    transition:
        color .2s ease;
}


.hmdic-post-title a:hover {
    color: var(--hmdic-blue);
}


/* =========================================================
   POST EXCERPT
========================================================= */

.hmdic-post-excerpt {
    display: -webkit-box;
    max-width: 760px;
    margin: 0 0 15px;
    padding: 0;
    overflow: hidden;
    color: var(--hmdic-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   READ MORE
========================================================= */

.hmdic-read-more {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 31px;

    margin: 0;
    padding: 7px 15px;

    border: 0;

    border-radius: 6px;

    background: var(--hmdic-blue);

    color: #fff !important;

    font-size: 16px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.hmdic-read-more:hover {
    background: var(--hmdic-blue-dark);

    color: #fff !important;

    transform: translateY(-1px);
}


.hmdic-read-more-arrow {
    display: inline-block;

    font-size: 15px;

    line-height: 1;

    transition:
        transform .2s ease;
}


.hmdic-read-more:hover .hmdic-read-more-arrow {
    transform: translateX(3px);
}


/* =========================================================
   NO POSTS
========================================================= */

.hmdic-no-posts {
    width: 100%;

    margin: 0;

    padding: 70px 20px;

    text-align: center;
}


.hmdic-no-posts h2 {
    margin: 0 0 8px;

    color: var(--hmdic-navy);

    font-size: 28px;

    line-height: 1.2;
}


.hmdic-no-posts p {
    margin: 0;

    color: var(--hmdic-muted);

    font-size: 15px;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    .hmdic-hero-container,
    .hmdic-blog-container {
        width: 1180px;
    }

}


/* =========================================================
   TABLET - 1000px
========================================================= */

@media (max-width: 1000px) {

    .hmdic-hero-container {
        width: calc(100% - 32px);

        grid-template-columns:
            56% 44%;
    }


    .hmdic-hero h1 {
        font-size: 40px !important;

        line-height: 1 !important;

        letter-spacing: -1.5px;
    }


    .hmdic-post-card {
        grid-template-columns:
            290px minmax(0, 1fr);

        gap: 20px;
    }


    .hmdic-post-image {
        height: 145px;
    }


    .hmdic-post-title {
        font-size: 19px;
    }

}


/* =========================================================
   TABLET - 800px
========================================================= */

@media (max-width: 800px) {

    .hmdic-hero-container {
        width: calc(100% - 30px);

        grid-template-columns:
            58% 42%;
    }


    .hmdic-hero h1 {
        font-size: 34px !important;

        line-height: 1 !important;

        letter-spacing: -1px;
    }


    .hmdic-post-card {
        grid-template-columns:
            260px minmax(0, 1fr);

        gap: 18px;
    }


    .hmdic-post-image {
        height: 140px;
    }

}


/* =========================================================
   MOBILE - 700px
========================================================= */

@media (max-width: 700px) {


    .hmdic-hero-container {
        width: calc(100% - 30px);

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: flex-start;

        text-align: center;
    }


    /* Hero content */


    .hmdic-hero h1 {
        width: 100%;

        max-width: 600px;

        margin: 0 auto 9px !important;

        font-size: 32px !important;

        line-height: 1.05 !important;

        letter-spacing: -1px;

        text-align: center;
    }


    .hmdic-hero-content>p {
        max-width: 520px;

        margin: 0 auto !important;

        line-height: 1.5 !important;

        text-align: center;
    }


    /* Tagline */

    .hmdic-hero-tagline {
        justify-content: center;

        margin-top: 14px !important;
    }


    /* Blog */

    .hmdic-blog-section {
        padding: 20px 0 30px;
    }


    .hmdic-blog-container {
        width: calc(100% - 30px);
    }


    /* Post */

    .hmdic-post-card {
        display: block;

        width: 100%;

        margin: 0 0 20px;

        padding: 0 0 20px;
    }


    /* Image */

    .hmdic-post-image {
        width: 100%;

        height: 190px;

        margin: 0 0 14px;

        border-radius: 9px;
    }


    /* Content */

    .hmdic-post-content {
        display: block;

        width: 100%;
    }


    .hmdic-post-date {
        margin-bottom: 5px;
    }


    .hmdic-post-title {
        margin-bottom: 5px;

        font-size: 20px;

        line-height: 1.25;
    }


    .hmdic-post-excerpt {
        max-width: 100%;

        margin-bottom: 10px;
    }


    .hmdic-read-more {
        min-height: 34px;

        padding: 8px 15px;

    }

}


/* =========================================================
   SMALL MOBILE - 480px
========================================================= */

@media (max-width: 480px) {

    .hmdic-hero-container {
        width: calc(100% - 24px);
    }

    .hmdic-hero h1 {
        font-size: 29px !important;

        line-height: 1.05 !important;

        letter-spacing: -.8px;
    }


    .hmdic-hero-tagline {
        margin-top: 13px !important;
    }


    .hmdic-blog-container {
        width: calc(100% - 24px);
    }


    .hmdic-post-image {
        height: 175px;

        margin-bottom: 13px;
    }


}


/* =========================================================
   VERY SMALL MOBILE - 360px
========================================================= */

@media (max-width: 360px) {

    .hmdic-hero h1 {
        font-size: 27px !important;
    }



    .hmdic-post-image {
        height: 160px;
    }


 

}

/* =========================================================
   HMDIC PAGINATION
========================================================= */

.hmdic-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    width: 100%;

    margin: 30px 0 5px;

    padding: 0;

}


/* Pagination links */

.hmdic-pagination a,
.hmdic-pagination span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    height: 38px;

    padding: 0 12px;

    border: 1px solid #dce7f3;

    border-radius: 6px;

    background: #ffffff;

    color: #071d41;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;

}


/* Hover */

.hmdic-pagination a:hover {

    border-color: #086bff;

    background: #086bff;

    color: #ffffff;

    transform: translateY(-1px);

}


/* Current page */

.hmdic-pagination .current {

    border-color: #086bff;

    background: #086bff;

    color: #ffffff;

}


/* Dots */

.hmdic-pagination .dots {

    border-color: transparent;

    background: transparent;

    color: #536b8d;

}


/* Previous / Next */

.hmdic-pagination .prev,
.hmdic-pagination .next {

    padding-left: 15px;

    padding-right: 15px;

}


/* =========================================================
   MOBILE PAGINATION
========================================================= */

@media (max-width: 700px) {

    .hmdic-pagination {

        gap: 6px;

        margin-top: 25px;

    }


    .hmdic-pagination a,
    .hmdic-pagination span {

        min-width: 34px;

        height: 34px;

        padding: 0 9px;

        font-size: 12px;

    }


    .hmdic-pagination .prev,
    .hmdic-pagination .next {

        padding-left: 11px;

        padding-right: 11px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hmdic-pagination {

        gap: 5px;

        margin-top: 22px;

    }


    .hmdic-pagination a,
    .hmdic-pagination span {

        min-width: 32px;

        height: 32px;

        padding: 0 7px;

        font-size: 11px;

    }

}


/* =========================================================
   HMDIC SINGLE POST PAGE
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */




/* =========================================================
   PAGE
========================================================= */

.hmdic-single-page {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #ffffff;

    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.hmdic-single-container {
    width: min(var(--hmdic-container),
            calc(100% - 40px));

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.hmdic-single-breadcrumb-wrap {
    width: 100%;

    margin: 0;
    padding: 16px 0 8px;

    background: #ffffff;
}


.hmdic-breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin: 0;
    padding: 0;

    color: #607493;

    font-size: 14px;

    line-height: 1.4;
}


.hmdic-breadcrumb a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--hmdic-blue);

    text-decoration: none;

    transition: color .2s ease;
}


.hmdic-breadcrumb a:hover {
    color: var(--hmdic-blue-dark);
}


.hmdic-breadcrumb a svg {
    width: 18px;
    height: 18px;
}


.hmdic-breadcrumb-separator {
    color: #a4b3c5;
}


.hmdic-breadcrumb-current {
    max-width: 450px;

    overflow: hidden;

    color: #607493;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.hmdic-single-section {
    width: 100%;

    margin: 0;
    padding: 10px 0 34px;

    background: #ffffff;
}


.hmdic-single-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 300px;

    gap: 28px;

    align-items: start;
}


/* =========================================================
   ARTICLE
========================================================= */

.hmdic-single-article {
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   TITLE
========================================================= */

.hmdic-single-header {
    margin: 0;
    padding: 0;
}


.hmdic-single-title {
    max-width: 800px;

    margin: 0 0 14px !important;
    padding: 0 !important;

    color: var(--hmdic-navy);

    font-size: 38px !important;

    font-weight: 750 !important;

    line-height: 1.08 !important;

    letter-spacing: -1.3px;
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.hmdic-single-featured {
    width: 100%;

    margin: 0 0 12px;
    padding: 0;

    overflow: hidden;

    border-radius: 9px;

    background: #edf3f9;
}


.hmdic-single-featured img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    margin: 0 !important;
    padding: 0;

    object-fit: cover;
}


/* =========================================================
   CONTENT
========================================================= */

.hmdic-single-content {
    width: 100%;

    margin: 0;
    padding: 0;

    color: var(--hmdic-muted);

    font-size: 15px;

    font-weight: 400;

    line-height: 1.55;
}


/* =========================================================
   CONTENT - PARAGRAPH
========================================================= */

.hmdic-single-content p {
    margin: 0 0 14px;

    color: var(--hmdic-muted);

    font-size: 17px;

    line-height: 1.55;
}


/* =========================================================
   CONTENT - HEADINGS
========================================================= */

.hmdic-single-content h1,
.hmdic-single-content h2,
.hmdic-single-content h3,
.hmdic-single-content h4,
.hmdic-single-content h5,
.hmdic-single-content h6 {

    margin-top: 22px;

    margin-bottom: 8px;

    padding: 0;

    color: var(--hmdic-navy);

    font-weight: 750;

    line-height: 1.18;

    letter-spacing: -.5px;
}


.hmdic-single-content h1 {
    font-size: 32px;
}


.hmdic-single-content h2 {
    font-size: 25px;
}


.hmdic-single-content h3 {
    font-size: 21px;
}


.hmdic-single-content h4 {
    font-size: 18px;
}


.hmdic-single-content h5 {
    font-size: 16px;
}


.hmdic-single-content h6 {
    font-size: 14px;
}


/* =========================================================
   LINKS
========================================================= */

.hmdic-single-content a {
    color: var(--hmdic-blue);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 2px;

    transition: color .2s ease;
}


.hmdic-single-content a:hover {
    color: var(--hmdic-blue-dark);
}


/* =========================================================
   UL / OL
========================================================= */

.hmdic-single-content ul,
.hmdic-single-content ol {
    margin: 0 0 16px;

    padding-left: 24px;

    color: var(--hmdic-muted);
}


.hmdic-single-content ul,
.hmdic-single-content ul li {
    list-style: disc;
}


.hmdic-single-content ol,
.hmdic-single-content ol li {
    list-style: decimal;
}


.hmdic-single-content li {
    margin: 0 0 5px;

    padding-left: 3px;

    color: var(--hmdic-muted);

    font-size: 17px;

    line-height: 1.5;
}


.hmdic-single-content li::marker {
    color: var(--hmdic-blue);

    font-weight: 700;
}


/* Nested list */

.hmdic-single-content ul ul,
.hmdic-single-content ol ol,
.hmdic-single-content ul ol,
.hmdic-single-content ol ul {
    margin-top: 5px;

    margin-bottom: 5px;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.hmdic-single-content blockquote {
    position: relative;

    margin: 18px 0;

    padding: 13px 18px 13px 22px;

    border: 1px solid #b9d9ff;

    border-left: 3px solid var(--hmdic-blue);

    border-radius: 8px;

    background: #eef7ff;

    color: #29476d;

    font-size: 14px;

    line-height: 1.5;
}


.hmdic-single-content blockquote p {
    margin: 0;

    color: #29476d;
}


/* =========================================================
   IMAGES INSIDE CONTENT
========================================================= */

.hmdic-single-content img {
    display: block;

    max-width: 100%;

    height: auto;

    margin: 18px 0;

    border-radius: 7px;
}


/* =========================================================
   FIGURE / CAPTION
========================================================= */

.hmdic-single-content figure {
    margin: 18px 0;
}


.hmdic-single-content figcaption {
    margin-top: 6px;

    color: #73849d;

    font-size: 11px;

    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   TABLE
========================================================= */

.hmdic-single-content table {
    width: 100%;

    margin: 18px 0;

    border-collapse: collapse;

    font-size: 13px;
}


.hmdic-single-content th,
.hmdic-single-content td {
    padding: 9px 11px;

    border: 1px solid #dce7f2;

    text-align: left;

    vertical-align: top;
}


.hmdic-single-content th {
    background: #eef6ff;

    color: var(--hmdic-navy);

    font-weight: 700;
}


.hmdic-single-content td {
    color: var(--hmdic-muted);
}


/* =========================================================
   STRONG
========================================================= */

.hmdic-single-content strong,
.hmdic-single-content b {
    color: #19375e;

    font-weight: 700;
}


/* =========================================================
   CODE
========================================================= */

.hmdic-single-content code {
    padding: 2px 5px;

    border-radius: 4px;

    background: #f1f5f9;

    color: #16375f;

    font-size: .9em;
}


.hmdic-single-content pre {
    margin: 18px 0;

    padding: 16px;

    overflow-x: auto;

    border-radius: 8px;

    background: #071d41;

    color: #ffffff;

    font-size: 17px;

    line-height: 1.5;
}


.hmdic-single-content pre code {
    padding: 0;

    background: transparent;

    color: inherit;
}


/* =========================================================
   HR
========================================================= */

.hmdic-single-content hr {
    height: 1px;

    margin: 25px 0;

    border: 0;

    background: var(--hmdic-border);
}


/* =========================================================
   TAGS
========================================================= */

.hmdic-single-tags {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 24px;

    padding-top: 16px;

    border-top: 1px solid var(--hmdic-border);
}


.hmdic-single-tags strong {
    color: var(--hmdic-navy);

    font-size: 12px;
}


.hmdic-tag-list {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.hmdic-tag-list a {
    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding: 4px 10px;

    border-radius: 15px;

    background: #eaf4ff;

    color: var(--hmdic-blue);

    font-size: 10px;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}


.hmdic-tag-list a:hover {
    background: var(--hmdic-blue);

    color: #ffffff;
}


/* =========================================================
   SIDEBAR
========================================================= */

.hmdic-single-sidebar {
    position: sticky;

    top: 20px;

    width: 100%;
}


.hmdic-popular-box {
    width: 100%;

    padding: 14px 12px;

    border: 1px solid #e2ebf5;

    border-radius: 9px;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(7,
            29,
            65,
            .06);
}


/* =========================================================
   SIDEBAR HEADING
========================================================= */

.hmdic-sidebar-heading {
    margin: 0 0 10px;

    padding: 0 0 7px;

    border-bottom: 1px solid #e4edf6;
}


.hmdic-sidebar-heading h2 {
    margin: 0 !important;

    padding: 0 !important;

    color: var(--hmdic-navy);

    font-size: 19px !important;

    font-weight: 750 !important;

    line-height: 1.2 !important;

    letter-spacing: -.5px;
}


.hmdic-sidebar-heading span {
    display: block;

    width: 32px;
    height: 2px;

    margin-top: 6px;

    background: var(--hmdic-blue);
}


/* =========================================================
   POPULAR ITEM
========================================================= */

.hmdic-popular-item {
    display: grid;

    grid-template-columns: 76px minmax(0, 1fr);

    gap: 10px;

    margin: 0;

    padding: 9px 0;

    border-bottom: 1px solid #edf2f7;
}


.hmdic-popular-item:last-child {
    border-bottom: 0;

    padding-bottom: 2px;
}


/* =========================================================
   POPULAR IMAGE
========================================================= */

.hmdic-popular-image {
    display: block;

    width: 76px;
    height: 64px;

    overflow: hidden;

    border-radius: 6px;

    background: #edf4fb;
}


.hmdic-popular-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.hmdic-popular-image:hover img {
    transform: scale(1.04);
}


.hmdic-popular-no-image {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;

    background: #edf6ff;

    color: var(--hmdic-blue);

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   POPULAR CONTENT
========================================================= */

.hmdic-popular-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.hmdic-popular-content h3 {
    margin: 0 0 5px !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.15px;
}


.hmdic-popular-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hmdic-navy);
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.hmdic-popular-content h3 a:hover {
    color: var(--hmdic-blue);
}


/* Date */

.hmdic-popular-date {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #667b97;

    font-size: 9px;

    line-height: 1.3;
}


.hmdic-popular-date svg {
    width: 12px;
    height: 12px;

    flex: 0 0 auto;
}


/* =========================================================
   RELATED POSTS
========================================================= */

.hmdic-related-section {
    width: 100%;

    margin: 0;

    padding: 20px 0 30px;

    border-top: 1px solid var(--hmdic-border);

    background: #ffffff;
}


.hmdic-related-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin: 0 0 10px;
}


.hmdic-related-header h2 {
    margin: 0 !important;

    padding: 0 !important;

    color: var(--hmdic-navy);

    font-size: 21px !important;

    font-weight: 750 !important;

    line-height: 1.2 !important;
}


.hmdic-related-header>a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--hmdic-blue);

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}


.hmdic-related-header>a:hover {
    color: var(--hmdic-blue-dark);
}


.hmdic-related-header>a span {
    font-size: 15px;
}


/* =========================================================
   RELATED GRID
========================================================= */

.hmdic-related-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   RELATED CARD
========================================================= */

.hmdic-related-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #e2ebf5;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 3px 12px rgba(7,
            29,
            65,
            .045);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.hmdic-related-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(7,
            29,
            65,
            .08);
}


/* =========================================================
   RELATED IMAGE
========================================================= */

.hmdic-related-image {
    display: block;

    width: 100%;
    height: 125px;

    overflow: hidden;

    background: #edf4fb;
}


.hmdic-related-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.hmdic-related-card:hover .hmdic-related-image img {
    transform: scale(1.035);
}


.hmdic-related-no-image {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;

    background: #edf6ff;

    color: var(--hmdic-blue);

    font-size: 14px;

    font-weight: 700;
}


/* =========================================================
   RELATED CONTENT
========================================================= */

.hmdic-related-content {
    padding: 9px 11px 11px;
}


.hmdic-related-content h3 {
    margin: 0 0 7px !important;

    padding: 0 !important;

    font-size: 16px !important;

    font-weight: 700 !important;

    line-height: 1.3 !important;
}


.hmdic-related-content h3 a {
    display: -webkit-box;

    overflow: hidden;

    color: var(--hmdic-navy);

    text-decoration: none;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;
}


.hmdic-related-content h3 a:hover {
    color: var(--hmdic-blue);
}


/* Related date */

.hmdic-related-date {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #657a96;

    font-size: 9px;
}


.hmdic-related-date svg {
    width: 12px;
    height: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .hmdic-single-container {
        width: calc(100% - 32px);
    }


    .hmdic-single-layout {
        grid-template-columns:
            minmax(0, 1fr) 225px;

        gap: 22px;
    }


    .hmdic-single-title {
        font-size: 34px !important;
    }


    .hmdic-popular-item {
        grid-template-columns:
            68px minmax(0, 1fr);
    }


    .hmdic-popular-image {
        width: 68px;
        height: 60px;
    }


    .hmdic-related-grid {
        gap: 14px;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    .hmdic-single-layout {
        grid-template-columns:
            minmax(0, 1fr) 210px;

        gap: 18px;
    }


    .hmdic-single-title {
        font-size: 31px !important;
    }


    .hmdic-related-image {
        height: 115px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .hmdic-single-container {
        width: calc(100% - 30px);
    }


    /* Breadcrumb */

    .hmdic-single-breadcrumb-wrap {
        padding: 13px 0 8px;
    }


    .hmdic-breadcrumb {
        font-size: 9px;
    }


    .hmdic-breadcrumb-current {
        max-width: 220px;
    }


    /* Main */

    .hmdic-single-section {
        padding-top: 7px;
    }


    .hmdic-single-layout {
        display: flex;

        flex-direction: column;

        gap: 25px;
    }


    /* Article */

    .hmdic-single-article {
        width: 100%;
    }


    /* Title */

    .hmdic-single-title {
        margin-bottom: 12px !important;

        font-size: 30px !important;

        line-height: 1.08 !important;

        letter-spacing: -.8px;
    }


    /* Featured */

    .hmdic-single-featured {
        margin-bottom: 14px;

        border-radius: 8px;
    }


    /* Content */

    .hmdic-single-content{
        font-size: 17px;

        line-height: 1.55;
    }


    .hmdic-single-content h1 {
        font-size: 28px;
    }


    .hmdic-single-content h2 {
        font-size: 23px;
    }


    .hmdic-single-content h3 {
        font-size: 20px;
    }


    .hmdic-single-content h4 {
        font-size: 17px;
    }


    .hmdic-single-content h5 {
        font-size: 15px;
    }


    .hmdic-single-content h6 {
        font-size: 14px;
    }

    /* Sidebar */

    .hmdic-single-sidebar {
        position: static;

        width: 100%;
    }


    .hmdic-popular-box {
        padding: 14px;
    }


    .hmdic-sidebar-heading h2 {
        font-size: 20px !important;
    }


    .hmdic-popular-item {
        grid-template-columns:
            85px minmax(0, 1fr);

        gap: 11px;
    }


    .hmdic-popular-image {
        width: 85px;
        height: 70px;
    }


    .hmdic-popular-content h3 {
        font-size: 13px !important;
    }


    .hmdic-popular-date {
        font-size: 10px;
    }


    /* Related */

    .hmdic-related-section {
        padding-top: 22px;

        padding-bottom: 25px;
    }


    .hmdic-related-header {
        margin-bottom: 12px;
    }


    .hmdic-related-header h2 {
        font-size: 20px !important;
    }


    .hmdic-related-header>a {
        font-size: 10px;
    }


    .hmdic-related-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .hmdic-related-card {
        display: grid;

        grid-template-columns:
            125px minmax(0, 1fr);

        align-items: stretch;
    }


    .hmdic-related-image {
        width: 125px;

        height: 100%;
        min-height: 100px;
    }


    .hmdic-related-content {
        display: flex;

        flex-direction: column;

        justify-content: center;

        padding: 10px 12px;
    }

    .hmdic-hero {
padding: 35px 0;}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hmdic-single-container {
        width: calc(100% - 24px);
    }


    .hmdic-single-title {
        font-size: 27px !important;

        letter-spacing: -.7px;
    }



    .hmdic-single-content h1 {
        font-size: 26px;
    }


    .hmdic-single-content h2 {
        font-size: 22px;
    }


    .hmdic-single-content h3 {
        font-size: 19px;
    }


    .hmdic-popular-item {
        grid-template-columns:
            80px minmax(0, 1fr);
    }


    .hmdic-popular-image {
        width: 80px;
        height: 66px;
    }


    .hmdic-related-card {
        grid-template-columns:
            110px minmax(0, 1fr);
    }


    .hmdic-related-image {
        width: 110px;

        min-height: 90px;
    }

}

/* =========================================================
   HMDIC SINGLE POST + GENERATEPRESS COMPATIBILITY
   Scoped only to single blog posts.
   Does NOT change Home / Header / Footer.
========================================================= */

.single-post .site-content {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.single-post .content-area {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.single-post .site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.single-post .inside-article {
    margin: 0;
    padding: 0;
    background: transparent;
}

.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-summary {
    margin: 0;
    padding: 0;
}

.single-post .entry-title {
    display: none;
}

.single-post .widget-area {
    display: none;
}

.single-post .comments-area {
    max-width: none;
}

.single-post .site-footer {
    margin-top: 0;
}

/* Prevent GeneratePress/theme global rules from changing article lists. */
.single-post .hmdic-single-content ul,
.single-post .hmdic-single-content ol {
    margin-top: 0;
}

/* Featured image must remain naturally proportional — no cropping. */
.single-post .hmdic-single-featured img {
    aspect-ratio: auto;
    object-fit: contain;
}

/* Keep WordPress responsive embeds/media inside article width. */
.single-post .hmdic-single-content iframe,
.single-post .hmdic-single-content video,
.single-post .hmdic-single-content embed,
.single-post .hmdic-single-content object {
    max-width: 100%;
}

/* Long words/URLs should not break the desktop layout. */
.single-post .hmdic-single-content,
.single-post .hmdic-single-title {
    overflow-wrap: break-word;
}

/* Single page responsive safety. */
@media (max-width: 700px) {

    .single-post .site-content,
    .single-post .content-area,
    .single-post .site-main {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================================
   POST VIEWS
========================================================= */

.hmdic-post-views {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin: 0 0 8px;

    color: #536b8d;

    font-size: 11px;

    font-weight: 500;

    line-height: 1;
}


.hmdic-post-views svg {
    width: 15px;
    height: 15px;

    flex: 0 0 auto;

    color: #536b8d;
}


.hmdic-post-views span {
    color: #536b8d;

    font-size: 11px;

    line-height: 1;
}