/*
Theme Name: HyvaGo Blog
Theme URI: https://hyvago.com/
Author: HyvaGo
Description: Lightweight responsive WordPress theme for the HyvaGo blog archive and article pages.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hyvago-blog
*/
:root{--ink:#171522;--muted:#777586;--orange:#ff5a1f;--purple:#21152f;--line:#e9e7ed;--width:1180px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.7 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--orange)}img{max-width:100%;height:auto}.hg-container{width:min(var(--width),calc(100% - 48px));margin:auto}
.hg-header{position:sticky;top:0;z-index:100;background:linear-gradient(105deg,#fffaf5 0%,#f5f0ff 55%,#fff 100%);border-top:1px solid #e8e4dd;border-bottom:1px solid #eeeaf1}
.hg-header:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.23;background-image:radial-gradient(#b8aeca .7px,transparent .7px);background-size:18px 18px}
.hg-header-inner{height:72px;display:flex;align-items:center;gap:30px;position:relative}
.hg-brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--ink)}
.hg-brand-mark{width:40px;height:40px;border-radius:14px;background:#111018;color:#ff681f;display:grid;place-items:center;font-size:31px;line-height:1;font-weight:900;box-shadow:0 4px 10px #1913231a}
.hg-brand-text{font-size:21px;font-weight:800;letter-spacing:-.8px;color:#242131;line-height:1}.hg-brand-text span{color:#ff5a1f}
.hg-brand .custom-logo{max-height:48px;width:auto}
.hg-nav{margin:auto}.hg-nav ul{display:flex;align-items:center;gap:30px;list-style:none;margin:0;padding:0}.hg-nav li{position:relative}.hg-nav a{font-size:16px;font-weight:550;color:#49445b;white-space:nowrap}.hg-nav a:hover{color:var(--orange)}.hg-nav .menu-item-has-children>a:after{content:"";display:inline-block;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 0 3px 9px}.hg-nav .sub-menu{display:none;position:absolute;top:100%;left:-15px;min-width:205px;padding:12px!important;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #17152218}.hg-nav li:hover>.sub-menu,.hg-nav li:focus-within>.sub-menu{display:block}.hg-nav .sub-menu li{padding:7px 5px}
.hg-header-actions{display:flex;align-items:center;gap:10px;flex:none}.hg-currency{height:44px;min-width:150px;padding:0 14px;border:1px solid #dcd7e4;border-radius:24px;background:#fff;color:#343044;font-weight:600;font-size:13px;outline:none}.hg-header-cta{height:44px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:0 23px;border-radius:26px;background:#111018;color:#fff!important;font-size:14px;font-weight:700;white-space:nowrap;transition:transform .2s,background .2s}.hg-header-cta:hover{background:#292333;transform:translateY(-1px)}
.hg-menu-toggle{display:none;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 12px}.hg-skip-link{position:absolute;left:-9999px}.hg-skip-link:focus{left:8px;top:8px;background:white;padding:10px;z-index:999}
.hg-page-hero{padding:24px 0px ;background:#fffaf7}.hg-eyebrow{color:var(--orange);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hg-page-hero h1{font-size:clamp(36px,5vw,56px);line-height:1.1;color:var(--purple);margin:12px 0}.hg-page-hero p{color:var(--muted);max-width:700px}
.hg-archive-layout{display:grid;grid-template-columns:minmax(0,1fr)270px;gap:48px;padding:40px 0 80px}.hg-post-list{display:grid;gap:22px}.hg-post-card{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:186px;border:1px solid #ff654a;border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 5px 18px rgba(25,18,35,.055);margin: 10px 0;transition:box-shadow .2s,transform .2s}.hg-post-card:hover{box-shadow:0 9px 25px rgba(25,18,35,.10);transform:translateY(-2px)}.hg-card-image{display:block;background:#f5f1ef;height:186px;min-height:186px;overflow:hidden}.hg-card-image img{display:block;width:100%;height:186px;min-height:186px;object-fit:cover;object-position:center;transition:transform .35s}.hg-post-card:hover .hg-card-image img{transform:scale(1.025)}.hg-card-content{padding:11px 22px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}.hg-meta{font-size:12px;color:#898593;display:flex;gap:10px;flex-wrap:wrap}.hg-card-content h2{font-size:18px;line-height:1.28;margin:5px 0 4px;font-weight:650;letter-spacing:-.25px}.hg-card-excerpt{font-size:13px;line-height:1.5;color:#686575;margin:5px 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hg-read-more{display:inline-flex;align-items:center;color:var(--orange);font-size:12px;font-weight:600;margin-top:0;border:1px solid #ffb5a5;border-radius:7px;padding:6px 11px;line-height:1.3}.hg-read-more:hover{background:#fff4f0}.hg-sidebar-box{border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px}.hg-sidebar h2{font-size:16px;margin:0 0 12px}.hg-category-list{list-style:none;padding:0}.hg-category-list li{padding:8px 0;border-bottom:1px solid #f1eff3;font-size:13px}.hg-category-list a{display:flex;justify-content:space-between}.hg-search-form{display:flex;gap:6px}.hg-search-form input{width:100%;min-width:0;padding:9px;border:1px solid var(--line);border-radius:8px}.hg-search-form button{border:0;border-radius:8px;background:var(--orange);color:white;padding:0 12px}.hg-pagination{display:flex;justify-content:center;gap:8px;margin-top:30px}.hg-pagination .page-numbers{padding:8px 13px;border:1px solid var(--line);border-radius:8px}.hg-pagination .current{background:var(--purple);color:white}
.hg-single-hero{padding:55px 0 25px;background:#fffaf7}.hg-single-head{text-align:center;max-width:900px;margin:auto}.hg-single-head h1{font-size:clamp(34px,5vw,54px);line-height:1.12;color:var(--purple);letter-spacing:-1.5px}.hg-single-head .hg-meta{justify-content:center}.hg-single-featured{max-width:1000px;margin:30px auto 0}.hg-single-featured img{width:100%;max-height:520px;object-fit:cover;border-radius:15px}.hg-article-layout{display:grid;grid-template-columns:220px minmax(0,760px);justify-content:center;gap:50px;padding:45px 24px 70px}.hg-toc{position:sticky;top:110px;align-self:start;border:1px solid var(--line);border-radius:12px;padding:17px}.hg-toc h2{font-size:13px}.hg-toc ol{padding-left:18px}.hg-toc li{font-size:12px;margin:7px 0}.hg-article{font-size:17px;line-height:1.85;color:#45414d}.hg-article h2,.hg-article h3{color:var(--purple);line-height:1.25;margin:1.6em 0 .6em}.hg-article h2{font-size:29px}.hg-article h3{font-size:22px}.hg-article img{border-radius:10px}.hg-article pre{overflow:auto;background:#211c2b;color:#fff;padding:18px;border-radius:10px}.hg-article table{border-collapse:collapse;width:100%}.hg-article td,.hg-article th{border:1px solid var(--line);padding:9px}.hg-article blockquote{border-left:3px solid var(--orange);padding:8px 20px;background:#fff6f1}.hg-post-footer,.hg-comments{max-width:760px;margin:0 auto 55px;padding:0 24px}.hg-tags{display:flex;gap:8px;flex-wrap:wrap}.hg-tags a{border:1px solid var(--line);border-radius:20px;padding:5px 10px;font-size:12px}.hg-share{display:flex;gap:15px;padding:18px 0;border-block:1px solid var(--line);font-size:13px}.hg-share a{color:var(--orange)}.hg-related{padding:55px 0;background:#faf8f6}.hg-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.hg-related-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.hg-related-card img{width:100%;height:170px;object-fit:cover}.hg-related-card-body{padding:16px}.hg-related-card h3{font-size:16px;line-height:1.35}.hg-cta{padding:55px 20px;text-align:center;background:#171321;color:white}.hg-cta h2{font-size:34px}.hg-cta p{color:#c9c4d0}.hg-button{display:inline-block;padding:12px 22px;border-radius:25px;background:var(--orange);color:white!important;font-weight:700}


/* v1.0.2 compact editorial card refinement */
.hg-header-actions{margin-left:0}.hg-nav{margin:auto}

.custom-logo {
    width: 220px;
}
.hg-custom-logo img {
    width: 220px;
}
.hg-page-hero .hg-container {
    text-align: center;
}

/* v1.0.3 — single article layout correction */
.hg-brand{display:flex!important;align-items:center!important;flex:0 0 auto!important;max-width:300px!important}
.hg-brand .custom-logo-link{display:flex!important;align-items:center!important}
.hg-brand .custom-logo{display:block!important;width:auto!important;height:auto!important;max-width:245px!important;max-height:76px!important;object-fit:contain!important}
.hg-single-hero{width:100%;padding:30px!important;background:linear-gradient(120deg,#fffaf6 0%,#f8f4ff 100%)!important}
.hg-single-hero>.hg-container{width:min(1120px,calc(100% - 48px))!important;margin-inline:auto!important}
.hg-single-head{width:100%!important;max-width:960px!important;margin:0 auto!important;text-align:center!important}
.hg-single-head h1{max-width:920px!important;margin:16px auto 18px!important;font-size:clamp(36px,4.4vw,58px)!important;line-height:1.12!important;letter-spacing:-1.7px!important;text-wrap:balance}
.hg-single-head .hg-meta{justify-content:center!important;align-items:center!important;gap:12px!important}
.hg-single-featured{width:100%!important;max-width:1000px!important;margin:34px auto 0!important}
.hg-single-featured img{display:block!important;width:100%!important;height:auto!important;max-height:560px!important;aspect-ratio:16/9!important;object-fit:cover!important;border-radius:16px!important}
.hg-article-layout{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:28px!important;width:min(900px,calc(100% - 48px))!important;margin:0 auto!important;padding:0 !important}
.hg-toc{position:static!important;width:100%!important;max-width:100%!important;max-height:none!important;margin:0!important;padding:22px 25px!important;background:#fbf9fc!important;border:1px solid #ebe6ef!important}
.hg-toc ol{columns:2;column-gap:34px}
.hg-toc li{break-inside:avoid;font-size:13px!important}
.hg-article{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;font-size:18px!important;line-height:1.85!important;color:#393542!important;overflow-wrap:anywhere}
.hg-article>*{max-width:100%}
.hg-article>p,.hg-article>ul,.hg-article>ol,.hg-article>blockquote,.hg-article>h2,.hg-article>h3,.hg-article>h4{width:100%!important;max-width:100%!important}
.hg-article p{margin:0 0 1.35em!important}
.hg-article h2{font-size:clamp(27px,3vw,34px)!important;margin:1.7em 0 .65em!important}
.hg-article h3{font-size:23px!important;margin:1.5em 0 .6em!important}
.hg-article img,.hg-article figure img{display:block;max-width:100%!important;height:auto!important;margin-inline:auto;border-radius:12px}
.hg-article figure{margin:30px auto!important;max-width:100%!important}
.hg-article iframe,.hg-article video{max-width:100%!important}
.hg-article .wp-block-image,.hg-article .wp-block-embed{margin:30px auto!important}
.hg-post-footer{width:min(900px,calc(100% - 48px))!important;max-width:900px!important;margin:0 auto 55px!important;padding:0!important}
.hg-comments{width:min(900px,calc(100% - 48px))!important;max-width:900px!important}
.hg-related .hg-container{width:min(1120px,calc(100% - 48px))!important}
.hg-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.hg-related-card img{display:block;width:100%;height:190px;object-fit:cover}
@media(max-width:760px){
 .hg-brand .custom-logo{max-width:185px!important;max-height:58px!important}
 .hg-single-hero{padding:38px 0 24px!important}
 .hg-single-hero>.hg-container,.hg-article-layout,.hg-post-footer,.hg-comments{width:calc(100% - 32px)!important}
 .hg-single-head h1{font-size:clamp(31px,8vw,42px)!important;letter-spacing:-1px!important}
 .hg-single-featured{margin-top:24px!important}
 .hg-single-featured img{aspect-ratio:16/10!important;border-radius:11px!important}
 .hg-article-layout{padding:30px 0 44px!important;gap:22px!important}
 .hg-article{font-size:16px!important;line-height:1.8!important}
 .hg-toc ol{columns:1}
 .hg-related-grid{grid-template-columns:1fr!important}
}



/* =========================================
   HYVAGO MODERN PROFESSIONAL FOOTER
========================================= */

.hg-footer {
    position: relative;
    background: #f8f7fc;
    color: #102b4e;
    padding: 20px 24px 0;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #eeeaf5;
}

.hg-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

/* Main Footer Grid */

.hg-footer-main {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 55px;
}

/* Brand Section */

.hg-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.hg-footer-logo img {
    display: block;
    width: 175px;
    height: auto;
    object-fit: contain;
}

.hg-footer-description {
    max-width: 340px;
    margin: 0 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400;
}

.hg-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #102b4e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
}

.hg-email-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff0eb;
    color: #ff6035;
    transition: all .25s ease;
}

.hg-footer-email:hover {
    color: #ff6035;
}

.hg-footer-email:hover .hg-email-icon {
    background: #ff6035;
    color: #fff;
}

/* Footer Navigation */

.hg-footer-column h3 {
    position: relative;
    margin: 7px 0 24px;
    padding-bottom: 12px;
    color: #102b4e;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.hg-footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #ff6035;
    border-radius: 5px;
}

.hg-footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hg-footer-column ul li {
    padding: 0;
    margin: 0;
}

.hg-footer-column ul li a {
    display: inline-block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;
    text-decoration: none;
    transition: all .25s ease;
}

.hg-footer-column ul li a:hover {
    color: #ff6035;
    transform: translateX(5px);
}

/* Footer Bottom */

.hg-footer-bottom {
    min-height: 75px;
    border-top: 1px solid #e6e3ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hg-footer-bottom p {
    margin: 0;
    color: #788397;
    font-size: 12px;
    font-weight: 400;
}

.hg-footer-legal {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hg-footer-legal a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: color .25s ease;
}

.hg-footer-legal a:hover {
    color: #ff6035;
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 991px) {
    .hg-footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px 30px;
    }

    .hg-footer-brand {
        grid-column: 1 / -1;
    }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 600px) {
    .hg-footer {
        padding: 45px 20px 0;
    }

    .hg-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
        padding-bottom: 38px;
    }

    .hg-footer-brand {
        grid-column: 1 / -1;
    }

    .hg-footer-logo img {
        width: 155px;
    }

    .hg-footer-description {
        max-width: 100%;
        font-size: 13px;
    }

    .hg-footer-column h3 {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hg-footer-column ul {
        gap: 11px;
    }

    .hg-footer-column ul li a {
        font-size: 12px;
    }

    .hg-footer-bottom {
        min-height: auto;
        padding: 22px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hg-footer-legal {
        gap: 20px;
        flex-wrap: wrap;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .hg-footer-main {
        gap: 30px 14px;
    }

    .hg-footer-legal {
        gap: 14px;
    }
}


/*   SIDEBAR  */

.hg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Sidebar Cards */
.hg-sidebar-box {
    background: #ffffff;
    border: 1px solid #e9e5ed;
    border-radius: 16px;
    padding: 25px 22px;
    box-shadow: 0 5px 22px rgba(25, 15, 40, 0.035);
    transition: all 0.3s ease;
}

.hg-sidebar-box:hover {
    border-color: rgba(255, 96, 53, 0.35);
    box-shadow: 0 10px 30px rgba(25, 15, 40, 0.07);
}

/* Sidebar Heading */
.hg-sidebar-box h2 {
    color: #171124;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px;
    position: relative;
    padding-left: 13px;
}

.hg-sidebar-box h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 20px;
    border-radius: 5px;
    background: #ff6035;
}

/* Search Form */
.hg-sidebar .search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.hg-sidebar .search-form label {
    display: block;
    width: 100%;
    margin: 0;
}

.hg-sidebar .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hg-sidebar .search-field {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #e5e0e9;
    border-radius: 9px;
    background: #faf9fc;
    color: #171124;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.hg-sidebar .search-field::placeholder {
    color: #9993a2;
}

.hg-sidebar .search-field:focus {
    border-color: #ff6035;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 96, 53, 0.10);
}

/* Search Button */
.hg-sidebar .search-submit {
    width: fit-content;
    min-width: 115px;
    height: 43px;
    padding: 0 22px;
    border: 1px solid #ff6035;
    border-radius: 8px;
    background: #ff6035;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hg-sidebar .search-submit:hover {
    background: #171124;
    border-color: #171124;
    color: #ffffff;
}

/* Category / Topics List */
.hg-sidebar .hg-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg-sidebar .hg-category-list li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    padding: 13px 5px;
    border-bottom: 1px solid #f0edf3;
    color: #8b8495;
    font-size: 13px;
    transition: all 0.3s ease;
}

.hg-sidebar .hg-category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hg-sidebar .hg-category-list li a {
    position: relative;
    color: #393047;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}


.hg-sidebar .hg-category-list li:hover {
    padding-left: 10px;
    color: #ff6035;
}

.hg-sidebar .hg-category-list li a:hover {
    color: #ff6035;
}

/* Need Help Card */
.hg-sidebar-box:last-child {
    background: #171124;
    border: 1px solid #171124;
    padding: 28px 23px;
    position: relative;
    overflow: hidden;
}

/* Decorative Circle */
.hg-sidebar-box:last-child::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -65px;
    top: -65px;
    border-radius: 50%;
    background: rgba(255, 96, 53, 0.13);
    pointer-events: none;
}

.hg-sidebar-box:last-child h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 12px;
}

.hg-sidebar-box:last-child h2::before {
    background: #ff6035;
}

.hg-sidebar-box:last-child p {
    position: relative;
    z-index: 1;
    color: #c7c1d0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
}

/* Expert Link */
.hg-sidebar-box .hg-read-more {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 8px;
    background: #ff6035;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hg-sidebar-box .hg-read-more:hover {
    background: #ffffff;
    color: #171124;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 767px) {
    .hg-sidebar {
        gap: 16px;
    }

    .hg-sidebar-box {
        padding: 22px 18px;
        border-radius: 13px;
    }

    .hg-sidebar-box h2 {
        font-size: 18px;
    }

    .hg-sidebar-box:last-child {
        padding: 24px 19px;
    }
}
