/* =========================================================
   HOME4VIEW NEWS PAGE
   =========================================================

   This CSS is scoped to:

   .home4view-news-page

   so it does NOT interfere with:
   - Elementor Header
   - Elementor Footer
   - Astra/theme styles
   - Other pages

   ========================================================= */


/* =========================================================
   GOOGLE FONTS
   ========================================================= */

/*
 * The original client HTML uses:
 *
 * Fraunces
 * Manrope
 * JetBrains Mono
 *
 * We will eventually enqueue these from functions.php.
 *
 * For now, this import makes the CSS work immediately.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700;9..144,900&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

.home4view-news-page {

    --home4view-ink: #0B0C0A;

    --home4view-ink-soft: #4B4F49;

    --home4view-paper: #F6F7F1;

    --home4view-paper-dim: #EDEFE6;

    --home4view-green: #00D084;

    --home4view-green-deep: #00A868;

    --home4view-green-pale: #DFFBEE;

    --home4view-red: #E14B3B;

    --home4view-line: rgba(11, 12, 10, 0.14);

    --home4view-line-dark: rgba(255, 255, 255, 0.14);

    --home4view-shadow:
        0 24px 60px -20px rgba(11, 12, 10, 0.4);


    width: 100%;

    margin: 0;

    padding: 0;

    background: var(--home4view-paper);

    color: var(--home4view-ink);

    font-family: 'Manrope', sans-serif;

    font-size: 18px;

    line-height: 1.55;

    overflow-x: hidden;

    box-sizing: border-box;
}


/* =========================================================
   BOX SIZING
   ========================================================= */

.home4view-news-page *,
.home4view-news-page *::before,
.home4view-news-page *::after {

    box-sizing: border-box;

}


/* =========================================================
   BASIC ELEMENTS
   ========================================================= */

.home4view-news-page img {

    max-width: 100%;

    display: block;

}


.home4view-news-page a {

    color: inherit;

    text-decoration: none;

}


.home4view-news-page button,
.home4view-news-page input {

    font-family: inherit;

}


.home4view-news-page h1,
.home4view-news-page h2,
.home4view-news-page h3,
.home4view-news-page h4 {

    font-family: 'Fraunces', serif;

    font-weight: 600;

    letter-spacing: -0.01em;

    line-height: 1.06;

    margin-top: 0;

}


/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.home4view-news-wrap {

    width: 100%;

    max-width: 1280px;

    margin-left: auto;

    margin-right: auto;

    padding-left: 32px;

    padding-right: 32px;

}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.home4view-news-header {
    position: relative;
    width: 100%;
    background: var(--home4view-ink) !important;
    color: var(--home4view-paper);
    overflow: hidden;
    padding: 72px 0 60px;
    background: linear-gradient(180deg, #0b0c0ad9, var(--h4v-ink));
}


/* ---------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------- */

.home4view-news-breadcrumb {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    font-family: 'JetBrains Mono', monospace;

    font-size: 12.5px;

    line-height: 1.4;

    color: rgba(246, 247, 241, 0.5);

}


.home4view-news-breadcrumb a {

    transition: color 0.25s ease;

}


.home4view-news-breadcrumb a:hover {

    color: var(--home4view-green);

}


/* ---------------------------------------------------------
   Eyebrow
   --------------------------------------------------------- */

.home4view-news-eyebrow {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    font-family: 'JetBrains Mono', monospace;

    font-size: 13px;

    line-height: 1.4;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    color: var(--home4view-green-deep);

}


.home4view-news-eyebrow::before {

    content: "";

    width: 22px;

    height: 2px;

    flex-shrink: 0;

    display: inline-block;

    background: var(--home4view-green);

}


/* ---------------------------------------------------------
   Dark Header Eyebrow
   --------------------------------------------------------- */

.home4view-news-header
.home4view-news-eyebrow {

    color: var(--home4view-green);

}


/* ---------------------------------------------------------
   Page Heading
   --------------------------------------------------------- */

.home4view-news-header h1 {

    max-width: 720px;

    margin: 0;

    color: var(--home4view-paper);

    font-family: 'Fraunces', serif;

    font-size: clamp(36px, 4.4vw, 56px);

    font-weight: 600;

    line-height: 1.06;

    letter-spacing: -0.01em;

}


/* ---------------------------------------------------------
   Header Description
   --------------------------------------------------------- */

.home4view-news-header-description {

    max-width: 560px;

    margin: 18px 0 0;

    color: rgba(246, 247, 241, 0.7);

    font-family: 'Manrope', sans-serif;

    font-size: 18px;

    line-height: 1.55;

}


/* =========================================================
   NEWS ARTICLES SECTION
   ========================================================= */

.home4view-news-section {

    width: 100%;

    padding: 70px 0;

    background: var(--home4view-paper);

}


/* =========================================================
   CATEGORY FILTER
   ========================================================= */

.home4view-news-category-filter {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-bottom: 44px;

}


/* ---------------------------------------------------------
   Category Button
   --------------------------------------------------------- */

.home4view-news-pill {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 12px 20px;

    border: 1.5px solid var(--home4view-ink);

    border-radius: 100px;

    background: transparent;

    color: var(--home4view-ink);

    font-family: 'JetBrains Mono', monospace;

    font-size: 14px;

    line-height: 1;

    font-weight: 400;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;

}


/* ---------------------------------------------------------
   Category Hover
   --------------------------------------------------------- */

.home4view-news-pill:hover {

    transform: translateY(-3px);

}


/* ---------------------------------------------------------
   Active Category
   --------------------------------------------------------- */

.home4view-news-pill.active {

    background: var(--home4view-ink);

    border-color: var(--home4view-ink);

    color: var(--home4view-green);

}


/* =========================================================
   BLOG GRID
   ========================================================= */

.home4view-news-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;

    width: 100%;

}


/* =========================================================
   BLOG CARD
   ========================================================= */

.home4view-news-grid .blog-card {

    display: block;

    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--home4view-line);

    border-radius: 14px;

    color: var(--home4view-ink);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


/* ---------------------------------------------------------
   Blog Card Hover
   --------------------------------------------------------- */

.home4view-news-grid .blog-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--home4view-shadow);

}


/* ---------------------------------------------------------
   Hidden Card
   --------------------------------------------------------- */

.home4view-news-grid .blog-card.hidden {

    display: none;

}


/* =========================================================
   FEATURED BLOG CARD
   ========================================================= */

.home4view-news-grid .blog-card.featured {

    grid-column: span 2;

    display: grid;

    grid-template-columns: 1.1fr 1fr;

}


/* ---------------------------------------------------------
   Featured Image
   --------------------------------------------------------- */

.home4view-news-grid
.blog-card.featured
.thumb {

    height: 100%;

    aspect-ratio: auto;

}


/* =========================================================
   BLOG CARD IMAGE
   ========================================================= */

.home4view-news-grid .blog-card .thumb {

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: var(--home4view-paper-dim);

}


/* ---------------------------------------------------------
   Blog Image
   --------------------------------------------------------- */

.home4view-news-grid
.blog-card
.thumb img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;

}


/* ---------------------------------------------------------
   Image Hover
   --------------------------------------------------------- */

.home4view-news-grid
.blog-card:hover
.thumb img {

    transform: scale(1.06);

}


/* =========================================================
   BLOG CARD BODY
   ========================================================= */

.home4view-news-grid .blog-card .body {

    display: flex;

    flex-direction: column;

    padding: 24px;

}


/* ---------------------------------------------------------
   Featured Card Body
   --------------------------------------------------------- */

.home4view-news-grid
.blog-card.featured
.body {

    justify-content: center;

    padding: 34px;

}


/* =========================================================
   BLOG CARD META
   ========================================================= */

.home4view-news-grid .blog-card .meta {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;

    color: var(--home4view-green-deep);

    font-family: 'JetBrains Mono', monospace;

    font-size: 11.5px;

    line-height: 1.4;

    font-weight: 400;

    letter-spacing: 0.04em;

    text-transform: uppercase;

}


/* =========================================================
   BLOG CARD TITLE
   ========================================================= */

.home4view-news-grid .blog-card h4 {

    margin: 0 0 10px;

    color: var(--home4view-ink);

    font-family: 'Fraunces', serif;

    font-size: 19px;

    font-weight: 600;

    line-height: 1.3;

}


/* ---------------------------------------------------------
   Featured Title
   --------------------------------------------------------- */

.home4view-news-grid
.blog-card.featured
h4 {

    font-size: 27px;

}


/* =========================================================
   BLOG CARD EXCERPT
   ========================================================= */

.home4view-news-grid .blog-card p {

    margin: 0 0 16px;

    color: var(--home4view-ink-soft);

    font-family: 'Manrope', sans-serif;

    font-size: 14.5px;

    line-height: 1.55;

}


/* =========================================================
   READ MORE
   ========================================================= */

.home4view-news-grid
.blog-card
.readmore {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: auto;

    color: var(--home4view-ink);

    font-family: 'JetBrains Mono', monospace;

    font-size: 13px;

    line-height: 1.4;

    font-weight: 600;

}


/* =========================================================
   NO POSTS MESSAGE
   ========================================================= */

.home4view-news-no-posts {

    grid-column: 1 / -1;

    padding: 40px 4px;

    color: var(--home4view-ink-soft);

    font-family: 'Manrope', sans-serif;

    font-size: 16px;

}


/* =========================================================
   LOAD MORE AREA
   ========================================================= */

.home4view-news-load-more {

    display: flex;

    justify-content: center;

    margin-top: 52px;

}


/* =========================================================
   BUTTON
   ========================================================= */

.home4view-news-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 52px;

    padding: 16px 30px;

    border: 2px solid var(--home4view-ink);

    border-radius: 100px;

    background: var(--home4view-ink);

    color: var(--home4view-paper);

    font-family: 'Manrope', sans-serif;

    font-size: 16px;

    line-height: 1;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;

}


/* ---------------------------------------------------------
   Button Hover
   --------------------------------------------------------- */

.home4view-news-button:hover {

    transform: translateY(-3px);

    background: var(--home4view-green);

    border-color: var(--home4view-green);

    color: var(--home4view-ink);

}


/* ---------------------------------------------------------
   Ghost Button
   --------------------------------------------------------- */

.home4view-news-button-ghost {

    background: transparent;

    border-color: var(--home4view-ink);

    color: var(--home4view-ink);

}


.home4view-news-button-ghost:hover {

    background: var(--home4view-ink);

    color: var(--home4view-paper);

}


/* ---------------------------------------------------------
   Disabled Button
   --------------------------------------------------------- */

.home4view-news-button:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none !important;

}


/* =========================================================
   NEWSLETTER CTA
   ========================================================= */

.home4view-news-cta {

    position: relative;

    width: 100%;

    overflow: hidden;

    background: var(--home4view-ink);

    color: var(--home4view-paper);

    padding: 100px 0;

}


/* =========================================================
   CTA INNER
   ========================================================= */

.home4view-news-cta-inner {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 70px;

    align-items: center;

}


/* =========================================================
   CTA CONTENT
   ========================================================= */

.home4view-news-cta-content {

    width: 100%;

}


/* ---------------------------------------------------------
   CTA Eyebrow
   --------------------------------------------------------- */

.home4view-news-cta
.home4view-news-eyebrow {

    margin-bottom: 18px;

    color: var(--home4view-green);

}


/* ---------------------------------------------------------
   CTA Heading
   --------------------------------------------------------- */

.home4view-news-cta h2 {

    max-width: 650px;

    margin: 0;

    color: var(--home4view-paper);

    font-family: 'Fraunces', serif;

    font-size: clamp(30px, 3.4vw, 46px);

    font-weight: 600;

    line-height: 1.06;

}


/* ---------------------------------------------------------
   CTA Description
   --------------------------------------------------------- */

.home4view-news-cta-content > p {

    max-width: 440px;

    margin: 18px 0 0;

    color: rgba(246, 247, 241, 0.65);

    font-family: 'Manrope', sans-serif;

    font-size: 16.5px;

    line-height: 1.55;

}


/* =========================================================
   NEWSLETTER FORM
   ========================================================= */

.home4view-news-form {

    position: relative;

    z-index: 4;

    width: 100%;

    padding: 34px;

    background: var(--home4view-paper);

    color: var(--home4view-ink);

    border-radius: 18px;

    box-shadow: var(--home4view-shadow);

}


/* ---------------------------------------------------------
   Form Heading
   --------------------------------------------------------- */

.home4view-news-form h4 {

    margin: 0 0 6px;

    color: var(--home4view-ink);

    font-family: 'Fraunces', serif;

    font-size: 23px;

    font-weight: 600;

    line-height: 1.2;

}


/* ---------------------------------------------------------
   Form Sub Text
   --------------------------------------------------------- */

.home4view-news-form-sub {

    margin-bottom: 22px;

    color: var(--home4view-ink-soft);

    font-family: 'Manrope', sans-serif;

    font-size: 14.5px;

    line-height: 1.5;

}


/* ---------------------------------------------------------
   Email Input
   --------------------------------------------------------- */

.home4view-news-form input[type="email"] {

    display: block;

    width: 100%;

    min-height: 48px;

    margin: 0 0 12px;

    padding: 13px 15px;

    border: 1.5px solid var(--home4view-line);

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    color: var(--home4view-ink);

    font-family: 'Manrope', sans-serif;

    font-size: 14.5px;

    line-height: 1.4;

}


/* ---------------------------------------------------------
   Input Focus
   --------------------------------------------------------- */

.home4view-news-form input[type="email"]:focus {

    border-color: var(--home4view-green-deep);

}


/* ---------------------------------------------------------
   Subscribe Button
   --------------------------------------------------------- */

.home4view-news-form
.home4view-news-button {

    width: 100%;

    margin-top: 6px;

    justify-content: center;

    padding: 15px;

}


/* ---------------------------------------------------------
   Fine Print
   --------------------------------------------------------- */

.home4view-news-form-fine {

    margin-top: 12px;

    color: var(--home4view-ink-soft);

    font-family: 'Manrope', sans-serif;

    font-size: 12px;

    line-height: 1.45;

    text-align: center;

}


/* =========================================================
   FLOATING CALL BUTTON
   ========================================================= */

.home4view-news-float-call {

    position: fixed;

    right: 26px;

    bottom: 26px;

    z-index: 200;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    border-radius: 50%;

    background: var(--home4view-green);

    color: var(--home4view-ink);

    box-shadow:
        0 10px 30px rgba(0, 208, 132, 0.45);

    animation:
        home4view-news-pulse 2.4s ease-in-out infinite;

}


.home4view-news-float-call svg {

    width: 26px;

    height: 26px;

}


/* =========================================================
   FLOATING BUTTON ANIMATION
   ========================================================= */

@keyframes home4view-news-pulse {

    0%,
    100% {

        box-shadow:
            0 10px 30px rgba(0, 208, 132, 0.45);

    }

    50% {

        box-shadow:
            0 10px 42px rgba(0, 208, 132, 0.7);

    }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .home4view-news-page *,
    .home4view-news-page *::before,
    .home4view-news-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 1024px) {
	.home4view-news-header {padding: 50px 0;}
	.home4view-news-section {padding: 60px 0;}
}
@media (max-width: 980px) {
    .home4view-news-wrap {padding-left: 28px;padding-right: 28px;}
    .home4view-news-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
    .home4view-news-grid .blog-card.featured {grid-column: span 2;grid-template-columns: 1fr;}
    .home4view-news-grid .blog-card.featured .thumb {height: auto;aspect-ratio: 16 / 9;}
    .home4view-news-grid .blog-card.featured .body {padding: 28px;}
    .home4view-news-cta-inner {grid-template-columns: 1fr;gap: 50px;}
    .home4view-news-float-call {right: 22px;bottom: 22px;}
}
@media (max-width: 767px) {
	.home4view-news-header {padding: 50px 0;}
	.home4view-news-eyebrow {margin-bottom: 10px;}
	.home4view-news-header-description {margin: 10px 0 0;font-size: 15px;}
	.home4view-news-section {padding: 50px 0;}
}
@media (max-width: 640px) {
    .home4view-news-page {font-size: 16px;}
    .home4view-news-wrap {padding-left: 20px;padding-right: 20px;}
    .home4view-news-header {padding-top: 55px;padding-bottom: 50px;}
    .home4view-news-header h1 {font-size: 40px;}
    .home4view-news-header-description {font-size: 16px;}
    .home4view-news-category-filter {margin-bottom: 30px;gap: 8px;}
    .home4view-news-pill {min-height: 40px;padding: 10px 16px;font-size: 12px;}
    .home4view-news-grid {grid-template-columns: 1fr;gap: 22px;}
    .home4view-news-grid .blog-card.featured {grid-column: span 1;grid-template-columns: 1fr;}
    .home4view-news-grid .blog-card.featured .thumb {aspect-ratio: 16 / 10;height: auto;}
    .home4view-news-grid .blog-card .body {padding: 22px;}
    .home4view-news-grid .blog-card.featured .body {padding: 26px 22px;}
    .home4view-news-grid .blog-card h4 {font-size: 19px;}
    .home4view-news-grid .blog-card.featured h4 {font-size: 25px;}
    .home4view-news-grid .blog-card p {font-size: 14px;}
    .home4view-news-load-more {margin-top: 40px;}
    .home4view-news-button {min-height: 48px;padding: 14px 24px;font-size: 14px;}
    .home4view-news-cta {padding: 65px 0;}
    .home4view-news-cta-inner {gap: 38px;}
    .home4view-news-cta h2 {font-size: 34px;}
    .home4view-news-cta-content > p {font-size: 15px;}
    .home4view-news-form {padding: 26px 22px;border-radius: 15px;}
    .home4view-news-form h4 {font-size: 21px;}
    .home4view-news-float-call {right: 18px;bottom: 18px;width: 58px;height: 58px;}
    .home4view-news-float-call svg {width: 23px;height: 23px;}
}
@media (max-width: 480px) {
    .home4view-news-header {padding-top: 45px;padding-bottom: 42px;}
    .home4view-news-header h1 {font-size: 36px;}
    .home4view-news-header-description {font-size: 15px;}
    .home4view-news-pill {padding: 9px 14px;font-size: 11px;line-height: normal;min-height: fit-content;}
    .home4view-news-grid .blog-card.featured h4 {font-size: 23px;}
    .home4view-news-cta h2 {font-size: 30px;}
    .home4view-news-float-call {width: 54px;height: 54px;right: 15px;bottom: 15px;}
}

