/* =========================================================
   PickaVault Homepage
========================================================= */

:root {
    --pv-primary: #16766f;
    --pv-primary-dark: #0f5f59;
    --pv-text: #18252c;
    --pv-muted: #65727a;
    --pv-border: #dfe8e7;
    --pv-soft: #eef8f7;
    --pv-white: #ffffff;
    --pv-radius: 14px;
    --pv-shadow: 0 8px 24px rgba(20, 55, 60, 0.09);
}

.pickavault-home {
    overflow: hidden;
}

.pv-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.pv-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.pv-section-heading h2 {
    position: relative;
    margin: 0;
    padding-bottom: 14px;
    font-size: 32px;
    line-height: 1.2;
    color: var(--pv-text);
}

.pv-section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 99px;
    background: var(--pv-primary);
}

/* =========================================================
   Hero
========================================================= */

.pv-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #eef8f7;
}

.pv-hero-grid {
    position: relative;
    display: block;
    min-height: 500px;
}

/* Full-width background image */
.pv-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pv-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(239, 250, 251, 0.98) 0%,
        rgba(239, 250, 251, 0.9) 24%,
        rgba(239, 250, 251, 0.45) 42%,
        rgba(239, 250, 251, 0.08) 58%,
        rgba(239, 250, 251, 0) 72%
    );
}

.pv-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    object-fit: cover;
    object-position: center right;
}

.pv-hero-image img {
    filter: none;
    opacity: 1;
}

/* Content over the banner */
.pv-hero-content {
    position: relative;
    z-index: 2;
    width: 55%;
    max-width: 680px;
    padding: 78px 0 72px;
}

.pv-hero-editor-content h1,
.pv-hero-editor-content h2 {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: clamp(42px, 4.5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--pv-text);
}

.pv-hero-editor-content p {
    max-width: 610px;
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--pv-muted);
}

.pv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
/* =========================================================
   Categories
========================================================= */

.pv-categories {
    padding: 52px 0 68px;
    background: var(--pv-white);
}

.pv-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.pv-category-card {
    display: block;
    padding: 20px 14px;
    text-align: center;
    color: var(--pv-text);
    text-decoration: none;
    border-radius: var(--pv-radius);
    transition: transform 0.2s ease, color 0.2s ease;
}

.pv-category-card:hover {
    color: var(--pv-primary);
    transform: translateY(-4px);
}

.pv-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--pv-soft);
}

.pv-category-card:nth-child(2) .pv-category-icon {
    background: #fff2dc;
}

.pv-category-card:nth-child(3) .pv-category-icon {
    background: #fde9eb;
}

.pv-category-card:nth-child(4) .pv-category-icon {
    background: #e1f5f8;
}

.pv-category-card:nth-child(5) .pv-category-icon {
    background: #eee5fb;
}

.pv-category-icon img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}

.pv-category-placeholder {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--pv-primary);
}

.pv-category-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.3;
    color: inherit;
}

.pv-category-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pv-muted);
}

@media (max-width: 1024px) {
    .pv-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pv-categories {
        padding: 36px 0 46px;
    }

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

    .pv-category-card {
        padding: 16px 8px;
    }

    .pv-category-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .pv-category-icon img {
        width: 36px;
        height: 36px;
    }

    .pv-category-card h3 {
        font-size: 16px;
    }

    .pv-category-card p {
        font-size: 13px;
    }
}
/* =========================================================
   Featured Posts
========================================================= */

.pv-featured {
    padding: 24px 0 72px;
}

.pv-featured-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: repeat(2, 210px);
    gap: 16px;
}

.pv-featured-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--pv-radius);
    box-shadow: var(--pv-shadow);
    background: #dfe6e4;
}

.pv-featured-card-large {
    grid-row: 1 / 3;
}

.pv-featured-image,
.pv-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.pv-featured-image img {
    object-fit: cover;
}

.pv-featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 18, 22, 0.86) 0%,
        rgba(8, 18, 22, 0.3) 56%,
        rgba(8, 18, 22, 0.03) 100%
    );
    pointer-events: none;
}

.pv-featured-content {
    position: absolute;
    z-index: 2;
    left: 26px;
    right: 26px;
    bottom: 24px;
    color: var(--pv-white);
}

.pv-featured-card-small .pv-featured-content {
    left: 22px;
    right: 22px;
    bottom: 18px;
}

.pv-post-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pv-primary);
    background: rgba(255, 255, 255, 0.93);
    text-decoration: none;
}

.pv-featured-content h3 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.pv-featured-card-small .pv-featured-content h3 {
    font-size: 22px;
}

.pv-featured-content h3 a,
.pv-featured-content h3 a:hover {
    color: var(--pv-white);
    text-decoration: none;
}

.pv-featured-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.pv-featured-card-small .pv-featured-content p {
    display: none;
}

.pv-read-more {
    display: none;
}

/* =========================================================
   Latest Posts
========================================================= */

.pv-latest {
    padding: 0 0 78px;
}

.pv-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pv-latest-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pv-border);
    border-radius: 12px;
    background: var(--pv-white);
    box-shadow: 0 5px 16px rgba(20, 55, 60, 0.06);
}

.pv-latest-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #edf1f0;
}

.pv-latest-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pv-latest-card:hover .pv-latest-image img {
    transform: scale(1.04);
}

.pv-latest-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 16px 16px;
}

.pv-latest-content .pv-post-category {
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 0;
    color: var(--pv-primary);
    background: transparent;
}

.pv-latest-content h3 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.4;
}

.pv-latest-content h3 a {
    color: var(--pv-text);
    text-decoration: none;
}

.pv-latest-content h3 a:hover {
    color: var(--pv-primary);
}

.pv-post-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--pv-border);
    font-size: 13px;
    color: var(--pv-muted);
}

@media (max-width: 1024px) {
    .pv-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pv-latest-grid {
        grid-template-columns: 1fr;
    }

    .pv-latest-image {
        height: 230px;
    }
}
/* =========================================================
   Newsletter
========================================================= */

.pv-newsletter {
    padding: 0 0 36px;
}

.pv-newsletter-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 42px 48px;
    border-radius: var(--pv-radius);
    background: linear-gradient(90deg, #e2f6f4 0%, #eefaf9 100%);
}

.pv-newsletter-content h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--pv-text);
}

.pv-newsletter-content p {
    margin: 0;
    color: var(--pv-muted);
}

.pv-newsletter-form {
    display: flex;
    width: min(100%, 410px);
}

.pv-newsletter-form input {
    min-width: 280px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--pv-border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--pv-white);
    outline: none;
}

.pv-newsletter-form input:focus {
    border-color: var(--pv-primary);
}

.pv-newsletter-form button {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 0 8px 8px 0;
    color: var(--pv-white);
    font-weight: 700;
    background: var(--pv-primary);
    cursor: pointer;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
    .pv-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pv-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pv-latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv-newsletter-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pv-container {
        width: min(100% - 28px, 1180px);
    }

    .pv-hero,
    .pv-hero-grid {
        min-height: 330px;
    }

    .pv-hero-grid {
        display: flex;
        flex-direction: column;
    }

    .pv-hero-image img {
        min-height: 330px;
        object-position: 62% center;
    }

    .pv-hero-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 330px;
        padding: 20px 0 18px;
    }

    .pv-hero-editor-content h1,
    .pv-hero-editor-content h2 {
        max-width: 92%;
        margin-bottom: 10px;
        font-size: 27px;
        line-height: 1.08;
    }

    .pv-hero-editor-content p {
        max-width: 92%;
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.5;
    }

    .pv-hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
        padding-bottom: 4px;
    }

    .pv-button {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 12px;
    }
	
    .pv-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pv-category-card {
        padding-inline: 8px;
    }

    .pv-featured-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .pv-featured-card,
    .pv-featured-card-large,
    .pv-featured-card-small {
        grid-row: auto;
        min-height: 320px;
    }

    .pv-latest-grid {
        grid-template-columns: 1fr;
    }

    .pv-newsletter-box {
        padding: 32px 22px;
    }

    .pv-newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pv-newsletter-form input {
        min-width: 0;
        width: 100%;
        border-right: 1px solid var(--pv-border);
        border-radius: 8px;
    }

    .pv-newsletter-form button {
        width: 100%;
        border-radius: 8px;
    }
}

/* Hero primary button */
.pickavault-home .pv-hero .pv-hero-actions {
    display: flex;
    align-items: center;
    margin-top: 26px;
}

.pickavault-home .pv-hero .pv-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 14px 24px;
    border: 1px solid #16766f;
    border-radius: 8px;
    color: #ffffff;
    background: #16766f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(22, 118, 111, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.pickavault-home .pv-hero .pv-button-primary:hover,
.pickavault-home .pv-hero .pv-button-primary:focus {
    color: #ffffff;
    background: #0f5f59;
    border-color: #0f5f59;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .pickavault-home .pv-hero .pv-hero-actions {
        margin-top: auto;
    }

    .pickavault-home .pv-hero .pv-button-primary {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {

    .pickavault-home .pv-hero .pv-hero-actions {
        display: flex;
        margin-top: auto;
    }

    .pickavault-home .pv-hero .pv-hero-actions a.pv-button-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        min-height: 40px;
        padding: 10px 16px;
        border: 1px solid #16766f;
        border-radius: 8px;
        color: #ffffff !important;
        background-color: #16766f !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(22, 118, 111, 0.18);
    }

    .pickavault-home .pv-hero .pv-hero-actions a.pv-button-primary:hover,
    .pickavault-home .pv-hero .pv-hero-actions a.pv-button-primary:focus {
        color: #ffffff !important;
        background-color: #0f5f59 !important;
        border-color: #0f5f59;
        text-decoration: none !important;
    }
}