/* ---- from page-blog.php (originally lines 9-179) ---- */
/* TITLE TEXT ON HOVER */
.blog-thumb::before {
    content: var(--hover-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;

    padding: 10px 18px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;


    white-space: nowrap;       /* keeps it compact */
    opacity: 0;
    transition: opacity 0.35s ease;

    pointer-events: none;      /* avoids click issues */
}



/* SHOW TEXT ON HOVER */
.boxeffect:hover .blog-thumb::before {
    opacity: 1;
}




    a {
    color: var(--btn-color);
}

 .hero-bg-lines.heroblog {

    background-image: url("/wp-content/uploads/2026/03/blogbanner.webp");
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}



/* ================= SEARCH ================= */
.blog-search {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

input#searchInput {
    border-radius: 40px;
    padding: 14px 50px 14px 20px;
    border: 1px solid rgba(255, 255, 255);
    background: transparent;
    color: #fff;
    max-width: 800px;
}
.blogsearch {
    padding: 10px 17px;
    border-radius: 20px;
    max-width: 600px;
    color: #fff;
    background: transparent;
}

/* ================= TAG PILLS ================= */
.btn-pill {
    border-radius: 30px;
    padding: 8px 22px;
    background: trasparent;
    color: #fff;
    font-weight: 500;
    border: 2px solid #fff; 
    transition: all 0.25s ease;
        margin: 0px 10px;
}

.btn-pill.active {
    background: var(--btn-color);
    color: #fff;
}

.btn-pill:hover {
    background: var(--text-color);
    color: var(--body-bg);
}

/* ================= BLOG CARD ================= */
.blog-card {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: #fff;
    text-align:left;
}

/* wrapper for hover effect */
.boxeffect {
    position: relative;
    display: block;
    height: 100%;
}

/* ================= THUMB ================= */
.blog-thumb {
    height: 234px;
    border-radius: 14px;
    background-size: 100% 100%;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* GRADIENT OVERLAY */
.blog-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    background:
        radial-gradient(
            circle at 40% -7%,
            rgba(255, 255, 255, 0.85) 1%,
            rgba(255, 255, 255, 0.45) 16%,
            rgba(255, 255, 255, 0.15) 30%,
            rgba(255, 255, 255, 0.0) 69%
        ),
        linear-gradient(
            90deg,
            #e24b0b 0%,
            #e24b0b 21%,
            #ff8a4c 42%,
            #6b5b53 66%,
            #2b2b2b 85%,
            #000000 100%
        );
}

/* SHOW GRADIENT ON HOVER */
.boxeffect:hover .blog-thumb::after {
    opacity: 1;
}

/* ================= BODY ================= */
.blog-body {
    padding: 10px;
}

.blog-body h5 {
    font-size: 18px;
    font-weight: 600;
}

.blog-body p {
    font-size: 14px;

}

/* ---- from page-blog.php (originally lines 485-536) ---- */
.newsletter-alert {
    background: #111;
    border: 1px solid #fd5902;
    color: #ffffff;
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 0 25px rgba(253, 89, 2, 0.15);
    text-align: center;
}
.newsletter-alert {
    max-width: 650px;
    margin: 0 auto;
}
.newsletter-alert.success {
    border-color: #fd5902;
}

.newsletter-alert.error {
    border-color: #ff3b3b;
}

.newsletter-alert.info,
.newsletter-alert.warning {
    border-color: #fd5902;
}

.newsletter-form-blog button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.newsletter-form-blog input {
    background: #000;
    border: 1px solid #333;
    color: #fff;
}



.newsletter-form-blog button {
    background: #fd5902;
    color: #fff;
    border: none;
}

.newsletter-form-blog button:hover {
    background: #ff6a1a;
}

/* ---- from page-blog.php (originally lines 541-703) ---- */
.blog-thumb.video-thumb iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none; /* allows hover to pass through */
}

.blog-thumb::before {
    z-index: 3; /* above iframe */
}

.blog-thumb::after {
    z-index: 2;
}

.blog-thumb.no-media {
    height: 250px;
    background: #f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    opacity:.6;
}


/* ================= NEWSLETTER SECTION ================= */

.newsletter-wrap {

    padding: 80px 20px;
}

/* Main container */
.newsletter-box {

    margin: 0 auto;
    padding: 80px 40px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;

    /* Background glow */
    background:
        radial-gradient(
            ellipse at 50% 120%,
            rgba(255, 120, 0, 0.35) 0%,
            rgba(255, 120, 0, 0.15) 35%,
            rgba(0, 0, 0, 0.0) 70%
        ),
        #000;

    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Title */
.newsletter-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Subtitle */
.newsletter-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 45px;
}

/* ================= FORM ================= */

.newsletter-form-blog {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;

    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

/* Input */
.newsletter-form-blog input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 14px 18px;
    font-size: 14px;
    min-height: 48px;
}

/* Placeholder */
.newsletter-form-blog input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Button */
.newsletter-form-blog button {
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.newsletter-form-blog button:hover {
    background: #ff7a1a;
    transform: translateY(-1px);
}

/* ================= RESPONSIVE FIX ================= */

@media (max-width: 768px) {

    .newsletter-box {
        padding: 50px 20px;
    }

    .newsletter-title {
        font-size: 30px;
    }

    .newsletter-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .newsletter-form-blog {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
        border-radius: 22px; /* clean container on mobile */
    }

    .newsletter-form-blog input {
        width: 100%;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        padding: 14px 16px;
    }

    .newsletter-form-blog button {
        width: 100%;
        border-radius: 999px;
        padding: 14px;
        font-size: 15px;
    }
}
