/*
Theme Name: Blocksy Child SRV V7
Template: blocksy
Version: 7.0
Text Domain: blocksy-child-srv
*/

html, body {min-height:100%;}
body {display:flex; flex-direction:column;}
.site-content, #main, main {flex:1 0 auto;}
.site-footer, .srv-footer {margin-top:auto;}
.ct-container[data-stretched="no"]{max-width:none;}

.srv-page-wrapper{margin:28px auto 40px;padding:22px;border-radius:24px;background:#eef5f6;box-sizing:border-box;}
.srv-page-wrapper--full{width:calc(100% - 48px);max-width:1640px;}
.srv-page-wrapper--boxed{width:calc(100% - 40px);max-width:1040px;}

.site-header.srv-header{background:linear-gradient(180deg,#0c5f73 0%, #0b6e84 100%);border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;z-index:100;box-shadow:0 12px 28px rgba(8,41,53,.22);}
.srv-header__top{width:calc(100% - 48px);max-width:1640px;margin:0 auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:18px 0 14px;}
.srv-brand{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0;}
.srv-brand__logo{width:56px;height:56px;border-radius:999px;object-fit:cover;border:2px solid rgba(255,255,255,.12);}
.srv-brand__mark{width:56px;height:56px;border-radius:999px;background:rgba(255,255,255,.12);border:2px solid rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:22px;}
.srv-brand__name{display:block;font-size:22px;line-height:1.08;font-weight:800;color:#fff;}
.srv-brand__tag{display:block;margin-top:2px;color:rgba(255,255,255,.82);font-size:12px;line-height:1.35;font-weight:700;letter-spacing:.02em;}
.srv-header-search{display:flex;justify-content:center;}
.srv-search-form{display:flex;align-items:center;gap:10px;width:100%;max-width:640px;}
.srv-search-form input[type="search"]{flex:1 1 auto;min-width:0;height:48px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.96);padding:0 18px;font-size:14px;color:#274055;outline:none;}
.srv-search-form button{height:48px;padding:0 20px;border:0;border-radius:999px;background:#fff;color:#0b647b;font-size:14px;font-weight:800;cursor:pointer;}
.srv-header__quick{display:flex;justify-content:flex-end;}
.srv-header__pill{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.12);color:#fff;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;}
.srv-header__navwrap{border-top:1px solid rgba(255,255,255,.08);background:rgba(4,38,49,.16);}
.srv-header__navinner{width:calc(100% - 48px);max-width:1640px;margin:0 auto;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;}
.srv-nav,.srv-nav ul{display:flex;flex-wrap:wrap;gap:22px;align-items:center;list-style:none;margin:0;padding:0;}
.srv-nav a{color:#fff;text-decoration:none;font-size:13px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;}
.srv-nav a:hover,.srv-nav .current-menu-item>a,.srv-nav .current_page_item>a{color:#cbf9ff;}
.srv-nav-note{color:rgba(255,255,255,.78);font-size:12px;font-weight:700;}

/* HERO */
.srv-hero{
    margin-bottom:22px;
}

.srv-hero__shell{
    overflow:hidden;
    border-radius:24px;
    background:linear-gradient(135deg,#0a5064 0%, #0e6a84 43%, #deeff4 43%, #eff8fb 100%);
    box-shadow:0 16px 34px rgba(18,38,63,.08);
    display:grid;
    grid-template-rows: 340px 56px;
    min-height: 436px;
}

.srv-hero__inner{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
    align-items:center;
    height:340px;
    min-height:340px;
    max-height:340px;
    padding:24px 28px;
    box-sizing:border-box;
}

.srv-hero__content{
    color:#fff;
    max-width:620px;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:0;
}

.srv-hero__eyebrow{
    display:inline-block;
    margin-bottom:10px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.18);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
    align-self:flex-start;
}

.srv-hero__title{
    margin:0 0 10px;
    color:#fff;
    font-size:clamp(2rem, 2.7vw, 3.1rem);
    line-height:1.03;
    font-weight:800;
    max-width:560px;
}

.srv-hero__desc{
    margin:0 0 14px;
    color:rgba(255,255,255,.92);
    font-size:.98rem;
    line-height:1.58;
    max-width:560px;
}

.srv-hero__actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:2px;
}

.srv-btn,
.srv-btn:visited{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:12px;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
}

.srv-btn--primary{
    background:#fff;
    color:#0a6078;
}

.srv-btn--secondary{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
}

.srv-hero__tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}

.srv-hero__tag{
    padding:8px 12px;
    border-radius:999px;
    background:rgba(141,168,195,.88);
    color:#fff;
    font-size:12px;
    font-weight:700;
}

.srv-hero__media{
    position:relative;
    height:190px;
    align-self:center;
    margin-top:-8px;
}

.srv-hero-card{
    position:absolute;
    border-radius:22px;
    box-shadow:0 18px 36px rgba(0,0,0,.12);
    background:#fff;
    border:1px solid rgba(32,58,76,.08);
    overflow:hidden;
}

.srv-hero-card--back{
    width:280px;
    padding:16px 16px 20px;
    top:-8px;
    right:8px;
    transform:rotate(5deg);
}

.srv-hero-card--mid{
    width:220px;
    padding:14px 16px 18px;
    top:52px;
    left:8px;
    transform:rotate(-6deg);
    z-index:2;
}

.srv-hero-card--front{
    width:290px;
    padding:14px 16px 20px;
    top:78px;
    right:-2px;
    background:linear-gradient(135deg,#2d8d9d,#52b7da);
    color:#fff;
    z-index:3;
}

.srv-hero-card__chip{
    display:inline-flex;
    min-height:30px;
    align-items:center;
    padding:0 12px;
    border-radius:999px;
    background:#e8f3f4;
    color:#2a7578;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.srv-hero-card--front .srv-hero-card__chip{
    background:rgba(255,255,255,.16);
    color:#fff;
}

.srv-hero-card__title{
    margin:14px 0 8px;
    font-size:20px;
    line-height:1.12;
    font-weight:800;
    color:#1a2240;
}

.srv-hero-card--mid .srv-hero-card__title{
    font-size:18px;
}

.srv-hero-card--front .srv-hero-card__title{
    color:#fff;
}

.srv-hero-card__desc{
    font-size:13px;
    line-height:1.5;
    color:#5d7086;
}

.srv-hero-card--front .srv-hero-card__desc{
    color:rgba(255,255,255,.9);
}

.srv-hero__meta{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1px;
    background:#dbe8ec;
    height:56px;
    min-height:56px;
    max-height:56px;
    margin-top:40px;
}

.srv-hero__meta span{
    background:#fff;
    text-align:center;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#193247;
    font-size:14px;
    font-weight:700;
}

/* ===== HOME HERO OVERRIDE (FINAL FIX) ===== */

.home .srv-hero__shell{
    grid-template-rows: 380px 56px; /* increase height only for home */
}

.home .srv-hero__inner{
    height:380px;
    min-height:380px;
    max-height:380px;
}

/* Reduce spacing inside home hero so everything fits */
.home .srv-hero__content{
    justify-content:flex-start;
    padding-top:10px;
}

/* Slightly tighten typography for home */
.home .srv-hero__title{
    font-size:clamp(1.8rem, 2.5vw, 2.8rem);
    line-height:1.02;
    margin-bottom:8px;
}

.home .srv-hero__desc{
    font-size:.95rem;
    line-height:1.5;
    margin-bottom:10px;
}

/* Tighten buttons spacing */
.home .srv-hero__actions{
    gap:10px;
    margin-top:4px;
}

/* Tighten eyebrow */
.home .srv-hero__eyebrow{
    margin-bottom:8px;
}


/* Responsive */
@media (max-width:900px){
    .srv-hero__shell{
        grid-template-rows:auto auto;
    }

    .srv-hero__inner{
        grid-template-columns:1fr;
        height:auto;
        min-height:auto;
        max-height:none;
        padding:22px 18px;
    }

    .srv-hero__content{
        height:auto;
        display:block;
        max-width:none;
    }

    .srv-hero__media{
        display:none;
    }

    .srv-hero__meta{
        grid-template-columns:repeat(2,1fr);
        height:auto;
        min-height:0;
        max-height:none;
    }

    .srv-hero__meta span{
        padding:14px 10px;
    }
}

@media (max-width:640px){
    .srv-hero__meta{
        grid-template-columns:1fr;
    }

    .srv-hero__title{
        font-size:clamp(1.9rem, 7vw, 2.6rem);
    }

    .srv-hero__desc{
        font-size:.96rem;
    }
}


/* Home-only refinement */
.home .srv-hero__title{
    font-size:clamp(2rem, 2.8vw, 3.05rem);
    max-width:560px;
}

.home .srv-hero__meta{
    margin-top:4px;
}

/* Optional extra smoothing for home page */
.home .srv-hero__meta{
    margin-top:4px;
}

.srv-page-content,.srv-article-content{background:#fff;border:1px solid #dce8eb;border-radius:20px;padding:28px;box-shadow:0 10px 24px rgba(22,35,57,.05);line-height:1.8;color:#2a4259;}
.srv-article-header{margin-bottom:18px;}
.srv-article-title{margin:0 0 12px;font-size:clamp(2rem,3vw,3rem);line-height:1.12;color:#18314a;font-weight:800;}
.srv-article-meta{color:#5f7388;font-size:13px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;}

.srv-product-single{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(320px,1.1fr);gap:32px;align-items:start;background:#fff;border:1px solid #dce8eb;border-radius:22px;padding:28px;box-shadow:0 12px 28px rgba(22,35,57,.05);}
.srv-product-single__media img{width:100%;height:auto;display:block;border-radius:18px;}
.srv-product-single__title{margin:0 0 14px;font-size:clamp(2rem,3vw,3rem);line-height:1.12;color:#18314a;font-weight:800;}
.srv-product-single__meta{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:14px;}
.srv-price{font-size:26px;line-height:1;color:#0c7899;font-weight:800;}
.srv-badge{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#e8f7fa;color:#0c7899;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}
.srv-product-single__excerpt{color:#365066;line-height:1.8;margin-bottom:18px;}
.srv-product-single__buy .edd_purchase_submit_wrapper a,.srv-product-single__buy .edd-submit,.srv-product-single__buy .button,.srv-product-single__buy input[type="submit"]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:12px;background:linear-gradient(135deg,#0a7ea3,#18b7b7);color:#fff!important;text-decoration:none!important;font-weight:800;box-shadow:0 12px 24px rgba(10,126,163,.24);}
.srv-product-single__features{margin:18px 0 0;padding-left:18px;color:#365066;line-height:1.8;}
.srv-product-body{margin-top:24px;}

.srv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.srv-product-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dce8eb;border-radius:20px;overflow:hidden;box-shadow:0 12px 26px rgba(22,35,57,.05);}
.srv-product-card__thumb{display:block;background:#f7fbfc;}
.srv-product-card__thumb img{width:100%;height:250px;object-fit:cover;display:block;}
.srv-product-card__body{display:flex;flex-direction:column;gap:12px;padding:18px;flex:1 1 auto;}
.srv-product-card__title{margin:0;font-size:1.35rem;line-height:1.3;}
.srv-product-card__title a{color:#2149d8;text-decoration:none;font-weight:800;}
.srv-product-card__excerpt{color:#365066;line-height:1.72;font-size:14px;}
.srv-product-card__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;}
.srv-product-card__price{color:#0c7899;font-size:20px;line-height:1;font-weight:800;}
.srv-product-card__cta .srv-btn{min-height:42px;padding:0 16px;}
.srv-product-card__badge{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#eaf7fb;color:#0c7899;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}

.srv-search-card{background:#fff;border:1px solid #dce8eb;border-radius:20px;padding:28px;box-shadow:0 10px 24px rgba(22,35,57,.05);}
.srv-search-head{margin-bottom:22px;}
.srv-search-head__eyebrow{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#dff3f8;color:#0b7394;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;margin-bottom:10px;}
.srv-search-head h1{margin:0 0 10px;color:#18314a;font-size:clamp(2rem,3vw,3rem);line-height:1.1;font-weight:800;}
.srv-search-head p{margin:0;color:#577086;line-height:1.8;font-size:15px;}
.srv-search-form--wide{margin-top:18px;max-width:720px;}
.srv-search-empty{text-align:center;padding:44px 24px;}

.site-footer.srv-footer{background:#0d2333;color:rgba(255,255,255,.82);margin-top:42px;}
.srv-footer__inner{width:calc(100% - 48px);max-width:1640px;margin:0 auto;padding:40px 0 18px;}
.srv-footer__grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px;}
.srv-footer h3{margin:0 0 14px;color:#fff;font-size:18px;}
.srv-footer p,.srv-footer li,.srv-footer a{color:rgba(255,255,255,.8);font-size:14px;line-height:1.75;text-decoration:none;}
.srv-footer ul{list-style:none;margin:0;padding:0;}
.srv-footer__bottom{margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:rgba(255,255,255,.7);}

@media (max-width:1200px){
.srv-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.srv-footer__grid{grid-template-columns:1fr 1fr;}
.srv-header__top{grid-template-columns:auto 1fr;grid-template-areas:'brand quick' 'search search';}
}
@media (max-width:900px){
.srv-page-wrapper--full,.srv-page-wrapper--boxed,.srv-header__top,.srv-header__navinner,.srv-footer__inner{width:calc(100% - 24px);}
.srv-header__top{grid-template-columns:1fr;padding:14px 0 12px;}
.srv-header__quick{justify-content:flex-start;}
/*.srv-header__navinner{padding:10px 0;}*/
/*.srv-nav,.srv-nav ul{gap:14px;}*/
.srv-hero__inner,.srv-product-single{grid-template-columns:1fr;min-height:auto;max-height:none;}
.srv-hero__media{display:none;}
.srv-grid{grid-template-columns:1fr;}
.srv-hero__meta{grid-template-columns:repeat(2,1fr);}
.srv-footer__grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
.srv-page-wrapper{padding:16px;border-radius:16px;}
.srv-page-content,.srv-article-content,.srv-search-card,.srv-product-single{padding:18px;}
.srv-hero__inner{padding:22px 18px;}
.srv-hero__meta{grid-template-columns:1fr;}
.srv-brand__name{font-size:18px;}
.srv-brand__tag{font-size:11px;}
}

/* Mobile View Adjustment */

/* ===== SAFE MOBILE FIX ONLY ===== */
@media (max-width: 900px){

    /* Keep top area stacked cleanly */
    .srv-header__top{
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0 12px;
    }

    .srv-brand{
        width: 100%;
        align-items: center;
        gap: 12px;
    }

    .srv-brand__logo,
    .srv-brand__mark{
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .srv-brand__name{
        font-size: 17px;
        line-height: 1.08;
    }

    .srv-brand__tag{
        font-size: 11px;
        line-height: 1.3;
    }

    /* Search row */
    .srv-header-search{
        width: 100%;
        justify-content: stretch;
    }

    .srv-search-form{
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0,1fr) 96px;
        gap: 8px;
        align-items: center;
    }

    .srv-search-form input[type="search"]{
        width: 100%;
        min-width: 0;
        height: 44px;
        font-size: 14px;
        padding: 0 14px;
    }

    .srv-search-form button{
        width: 100%;
        height: 44px;
        font-size: 14px;
        padding: 0 12px;
    }

    /* Browse button row */
    .srv-header__quick{
        width: 100%;
        justify-content: flex-start;
    }

    .srv-header__pill{
        min-height: 36px;
        padding: 0 12px;
        font-size: 11px;
    }

    /* IMPORTANT: do not change nav flex direction here */
    .srv-nav-note{
        font-size: 11px;
        line-height: 1.35;
    }

    /* Footer center only */
    .srv-footer__grid{
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .srv-footer__inner{
        text-align: center;
    }

    .srv-footer p,
    .srv-footer li,
    .srv-footer a,
    .srv-footer h3,
    .srv-footer__bottom{
        text-align: center;
    }

    .srv-footer ul{
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 640px){
    .srv-header__top{
        gap: 10px;
    }

    .srv-brand__name{
        font-size: 16px;
    }

    .srv-brand__tag{
        font-size: 10px;
    }

    .srv-search-form{
        grid-template-columns: minmax(0,1fr) 88px;
    }

    .srv-search-form input[type="search"],
    .srv-search-form button{
        height: 42px;
    }
}


/* Mobile Tope Area Fix */

@media (max-width: 900px){

    .srv-header__top{
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0 10px;
    }

    .srv-brand{
        width: 100%;
        align-items: center;
    }

    .srv-header-search{
        width: 100%;
    }

    .srv-search-form{
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0,1fr) 92px;
        gap: 8px;
    }

    .srv-search-form input[type="search"]{
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .srv-search-form button{
        width: 100%;
        height: 42px;
        padding: 0 10px;
        font-size: 14px;
    }

    .srv-header__quick{
        width: 100%;
        justify-content: flex-start;
    }
}
/* Mobile Tope Area Fix */

/* Mobile View Adjustment */

/* Desktop Fix */

/* Desktop default */
.srv-mobile-menu{
    display: none;
}

.srv-desktop-nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Mobile menu */
@media (max-width: 900px){

    .srv-desktop-nav{
        display: none;
    }

    .srv-mobile-menu{
        display: block;
        width: 100%;
    }

    .srv-mobile-menu__toggle{
        list-style: none;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        padding: 0 10px;
        border-radius: 12px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.14);
        cursor: pointer;
    }

    .srv-mobile-menu__toggle::-webkit-details-marker{
        display: none;
    }

    .srv-mobile-menu__toggle span{
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .srv-mobile-menu__panel{
        margin-top: 10px;
        padding: 14px 14px 12px;
        border-radius: 14px;
        background: rgba(5, 46, 58, .35);
    }

    .srv-mobile-menu__panel .srv-nav,
    .srv-mobile-menu__panel .srv-nav ul{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .srv-mobile-menu__panel .srv-nav a{
        font-size: 14px;
    }

    .srv-mobile-menu__panel .srv-nav-note{
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.4;
        color: rgba(255,255,255,.8);
    }
}

/* Desktop Fix */


/* Mobile Content Boundary Touching Fix */

/* ===== MOBILE BOUNDARY / OVERFLOW SAFETY PATCH ===== */
html, body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

@media (max-width: 900px) {

    body {
        overflow-x: hidden;
    }

    .srv-page-wrapper,
    .srv-page-wrapper--full,
    .srv-page-wrapper--boxed,
    .srv-header__top,
    .srv-header__navinner,
    .srv-footer__inner,
    .srv-page-content,
    .srv-article-content,
    .srv-search-card,
    .srv-product-single,
    .srv-product-card,
    .srv-hero__shell,
    .srv-hero__inner,
    .srv-hero__content,
    .srv-search-form,
    .srv-header__actionrow,
    .srv-brand,
    .srv-brand__textwrap,
    .srv-grid {
        min-width: 0;
        max-width: 100%;
    }

    .srv-page-wrapper--full,
    .srv-page-wrapper--boxed {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }

    .srv-page-wrapper {
        padding: 14px;
    }

    .srv-page-content,
    .srv-article-content,
    .srv-search-card,
    .srv-product-single {
        padding: 18px;
        overflow: hidden;
    }

    .srv-hero__shell {
        overflow: hidden;
    }

    .srv-hero__inner {
        width: 100%;
        min-width: 0;
        padding: 20px 16px;
    }

    .srv-hero__content {
        min-width: 0;
        max-width: 100%;
    }

    .srv-hero__title,
    .srv-product-card__title,
    .srv-product-single__title,
    .srv-article-title {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .srv-hero__desc,
    .srv-product-card__excerpt,
    .srv-product-single__excerpt,
    .srv-page-content p,
    .srv-article-content p,
    .srv-footer p,
    .srv-footer a,
    .srv-nav-note {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .srv-search-form {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .srv-search-form input[type="search"] {
        min-width: 0;
        width: 100%;
    }

    .srv-btn,
    .srv-btn:visited,
    .srv-header__pill {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .srv-product-card__thumb img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .srv-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 640px) {

    .srv-page-wrapper--full,
    .srv-page-wrapper--boxed,
    .srv-header__top,
    .srv-header__navinner,
    .srv-footer__inner {
        width: calc(100% - 20px);
    }

    .srv-page-wrapper {
        padding: 12px;
    }

    .srv-page-content,
    .srv-article-content,
    .srv-search-card,
    .srv-product-single {
        padding: 16px;
    }

    .srv-search-form {
        grid-template-columns: minmax(0, 1fr) 84px;
        gap: 8px;
    }

    .srv-hero__inner {
        padding: 18px 14px;
    }
}

/* Mobile Content Boundary Touching Fix */

/* Product Display Style */

/* ===== EDD PRODUCT CARD STYLING ===== */

.edd_downloads_list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.edd_download {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.edd_download_inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #dce8eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(22,35,57,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.edd_download_inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(22,35,57,.09);
}

.edd_download_image {
    margin: 0 !important;
    background: #f7fbfc;
}

.edd_download_image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.edd_download_title,
.edd_download_inner h3,
.edd_download_inner .edd_download_title {
    margin: 0;
    padding: 18px 18px 8px;
    font-size: 1.28rem;
    line-height: 1.28;
    font-weight: 800;
}

.edd_download_title a,
.edd_download_inner h3 a,
.edd_download_inner .edd_download_title a {
    color: #1f3f8f;
    text-decoration: none;
}

.edd_download_title a:hover,
.edd_download_inner h3 a:hover,
.edd_download_inner .edd_download_title a:hover {
    color: #0c7899;
}

.edd_download_excerpt,
.edd_download_inner .edd_download_excerpt,
.edd_download_inner p {
    padding: 0 18px;
    color: #365066;
    line-height: 1.68;
    font-size: 14px;
}

.edd_price,
.edd_download_buy_button .edd_price {
    color: #0c7899;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.edd_download_buy_button,
.edd_purchase_submit_wrapper {
    margin-top: auto;
    padding: 14px 18px 18px;
}

.edd_download_buy_button a,
.edd_download_buy_button .button,
.edd_purchase_submit_wrapper a,
.edd_purchase_submit_wrapper .button,
.edd-submit,
input.edd-submit[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#0a7ea3,#18b7b7);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(10,126,163,.18);
}

.edd_download_buy_button .edd_price,
.edd_purchase_submit_wrapper .edd_price {
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

/* Tablet */
@media (max-width: 1200px) {
    .edd_downloads_list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .edd_downloads_list {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .edd_download_image img {
        height: auto;
    }
}

/* ===== PAGINATION POLISH ===== */

.navigation.pagination,
.edd_pagination {
    margin: 30px 0 10px;
    text-align: center;
}

.navigation.pagination .nav-links,
.edd_pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #dce8eb;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(22,35,57,.05);
}

.navigation.pagination .page-numbers,
.edd_pagination a,
.edd_pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #dce8eb;
    background: #f7fbfc;
    color: #1f3f8f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: all .18s ease;
}

.navigation.pagination .page-numbers:hover,
.edd_pagination a:hover {
    background: #eaf7fb;
    border-color: #b8dce6;
    color: #0c7899;
    transform: translateY(-1px);
}

.navigation.pagination .page-numbers.current,
.edd_pagination .current {
    background: linear-gradient(135deg,#0a7ea3,#18b7b7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(10,126,163,.18);
}

.navigation.pagination .prev,
.navigation.pagination .next,
.edd_pagination .prev,
.edd_pagination .next {
    padding: 0 16px;
    min-width: auto;
}

.navigation.pagination .dots,
.edd_pagination .dots {
    background: transparent;
    border: 0;
    min-width: auto;
    padding: 0 4px;
    color: #6b7f92;
}

/* Mobile */
@media (max-width: 640px) {
    .navigation.pagination .nav-links,
    .edd_pagination {
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
    }

    .navigation.pagination .page-numbers,
    .edd_pagination a,
    .edd_pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* Product Display Style */

/* Sidebar Style */

/* ===== POST SIDEBAR LAYOUT ===== */

.srv-post-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:28px;
    align-items:start;
}

.srv-post-main{
    min-width:0;
}

.srv-post-sidebar{
    min-width:0;
}

.srv-sidebar-card{
    background:#fff;
    border:1px solid #dce8eb;
    border-radius:20px;
    padding:20px;
    box-shadow:0 10px 24px rgba(22,35,57,.05);
    margin-bottom:20px;
}

.srv-sidebar-card h3{
    margin:0 0 12px;
    font-size:18px;
    line-height:1.25;
    color:#18314a;
    font-weight:800;
}

.srv-sidebar-card p{
    margin:0 0 14px;
    color:#365066;
    line-height:1.7;
    font-size:14px;
}

.srv-sidebar-card ul{
    margin:0;
    padding-left:18px;
}

.srv-sidebar-card li{
    margin-bottom:8px;
}

@media (max-width: 900px){
    .srv-post-layout{
        grid-template-columns:1fr;
    }

    .srv-post-sidebar{
        margin-top:20px;
    }
}

/* Sidebar Style */

