/*
Theme Name: Flash
Theme URI: https://weblish.com/themes/flash
Author: Weblish
Author URI: https://weblish.com
Description: A modern blog theme for WordPress, converted from Webflow into a Weblish plug-and-play theme.
Version: 1779526216
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flash
Tags: blog, custom-menu, featured-images, two-columns, three-columns, custom-logo, responsive-layout
*/

:root {
    --wl-primary: #be0658;
    --wl-primary-hover: #98044a;
    --wl-secondary: #111111;
    --wl-secondary-hover: #000000;
    --wl-accent: #f59e0b;
    --wl-accent-hover: #d97706;
    --wl-surface: #ffffff;
    --wl-background: #f6f7fb;
    --wl-text: #1f2937;
    --wl-muted-text: #6b7280;
    --wl-border: #e5e7eb;
    --wl-pill-bg: #fce7f3;
    --wl-pill-text: #9d174d;
    --wl-highlight-bg: #fff1f7;
    --wl-highlight-text: #9d174d;
    --wl-focus-ring: color-mix(in srgb, var(--wl-primary) 35%, transparent);
    --wl-heading-font: "Lora", serif;
    --wl-body-font: "Poppins", sans-serif;
    --weblish-sticky-offset: 96px;
}

body,
.body {
    background: var(--wl-background);
    color: var(--wl-text);
    font-family: var(--wl-body-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.news-title {
    color: var(--wl-secondary);
    font-family: var(--wl-heading-font);
}

.news-title {
    color: var(--wl-surface);
}

p,
.paragraph,
.subtitle-text,
.form-font,
.copyright,
.min-read-text,
.data-created {
    color: var(--wl-muted-text);
}

a,
.dark-link,
.blog-content a,
.blog-highlight-title a,
.blog-title-small {
    color: var(--wl-primary);
}

a:hover,
.dark-link:hover,
.blog-content a:hover,
.blog-highlight-title a:hover,
.blog-title-small:hover {
    color: var(--wl-primary-hover);
}

::selection {
    background: var(--wl-highlight-bg);
    color: var(--wl-highlight-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--wl-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--wl-focus-ring);
}

.button,
.button-subscribe,
.w-button {
    background: var(--wl-primary);
    border: 1px solid var(--wl-primary);
    color: var(--wl-surface);
}

.button:hover,
.button-subscribe:hover,
.w-button:hover {
    background: var(--wl-primary-hover);
    border-color: var(--wl-primary-hover);
    color: var(--wl-surface);
}

.category-text-link.pills,
.pills,
.tag,
.badge {
    background: var(--wl-pill-bg);
    color: var(--wl-pill-text);
    border-color: color-mix(in srgb, var(--wl-pill-text) 15%, var(--wl-pill-bg));
}

.navbar-2 {
    background: var(--wl-secondary);
}

.brand.w-nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    width: auto;
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.navbar-2 .nav-link {
    color: var(--wl-surface);
}

.navbar-2 .nav-link:hover,
.navbar-2 .nav-link.w--current {
    color: var(--wl-accent);
}

.flash-pillar-nav-wrap {
    padding: 14px 0;
}

.flash-pillar-nav-container {
    display: flex;
    justify-content: center;
}

.flash-pillar-nav {
    width: 100%;
    max-width: 1080px;
}

.flash-pillar-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.flash-pillar-nav-item {
    margin: 0;
}

.flash-pillar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flash-pillar-link:hover,
.flash-pillar-link:focus-visible {
    transform: translateY(-1px);
}

.flash-pillar-link.is-active {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--wl-pill-text) 35%, transparent);
}

.section.footer {
    background: var(--wl-surface);
    color: var(--wl-text);
    border-top: 1px solid var(--wl-border);
}

.section.footer .news-title {
    color: var(--wl-surface);
}

.section.footer .nav-link._3 {
    color: var(--wl-secondary);
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.section.footer .nav-link._3:hover,
.section.footer .nav-link._3:focus-visible,
.section.footer .nav-link._3.w--current {
    color: var(--wl-primary);
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.cta,
.weblish-website-cta {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wl-secondary) 94%, var(--wl-secondary-hover)), color-mix(in srgb, var(--wl-primary) 40%, var(--wl-secondary)));
    border: 1px solid color-mix(in srgb, var(--wl-surface) 14%, transparent);
    box-shadow: 0 22px 45px color-mix(in srgb, var(--wl-secondary) 35%, transparent);
}

.cta .h1,
.cta .subtitle-text,
.cta a {
    color: var(--wl-surface);
}

.weblish-cta-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.weblish-footer-contact p {
    margin-bottom: 10px;
}

.weblish-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* Blog hero and cards */
.blog-hero-banner {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wl-secondary) 96%, var(--wl-secondary-hover)), color-mix(in srgb, var(--wl-primary) 38%, var(--wl-secondary)));
    padding: clamp(52px, 7vw, 100px) 4%;
    position: relative;
    overflow: hidden;
}

.blog-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--wl-accent) 22%, transparent), transparent 48%),
                radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--wl-primary) 25%, transparent), transparent 45%);
    pointer-events: none;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
}

.blog-hero-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.blog-hero-content--centered {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.blog-hero-tagline {
    color: var(--wl-accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    font-size: 13px;
}

.blog-hero-title {
    color: var(--wl-surface);
    margin: 16px 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1;
}

.blog-hero-description {
    color: color-mix(in srgb, var(--wl-surface) 78%, transparent);
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--wl-surface) 20%, transparent);
}

.blog-hero-content--centered .blog-hero-stats {
    justify-content: center;
}

.blog-hero-stats + .blog-cta-wrap {
    margin-top: 24px;
    clear: both;
}

.blog-hero-content .blog-cta-wrap {
    position: relative;
    z-index: 1;
}

.blog-hero-stat-number {
    color: var(--wl-surface);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1;
}

.blog-hero-stat-label {
    color: color-mix(in srgb, var(--wl-surface) 62%, transparent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-top: 4px;
}

.blog-hero-image-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px color-mix(in srgb, var(--wl-secondary) 45%, transparent);
}

.blog-hero-image {
    width: 100%;
    min-height: 260px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 30px);
}

.blog-card-image,
.related-card-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}

.card-category-row {
    margin-bottom: 8px;
}

.view-all-articles {
    text-align: center;
    margin-top: 42px;
}

.blog-highlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: center;
}

.blog-highlight-image {
    min-height: 360px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-highlight-content {
    padding: 10px 0;
}

.blog-highlight-title {
    color: var(--wl-secondary);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 14px 0 16px;
}

.blog-highlight-excerpt {
    color: var(--wl-muted-text);
}

.blog-highlight-content .button.large {
    display: inline-block;
    margin-top: 18px;
}

/* Blog detail */
.blog-detail-header {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.blog-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--wl-secondary) 82%, transparent), color-mix(in srgb, var(--wl-secondary) 40%, transparent));
}

.blog-detail-header-content {
    position: relative;
    z-index: 1;
    width: min(950px, 100%);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 68px) 20px;
}

.blog-detail-title {
    color: var(--wl-surface);
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.blog-detail-meta span {
    color: color-mix(in srgb, var(--wl-surface) 78%, transparent);
}

.blog-detail-wrapper {
    max-width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(36px, 4vw, 64px) 20px;
    overflow: visible;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
    overflow: visible;
}

.blog-detail-content {
    min-width: 0;
}

.blog-content {
    display: flex;
    flex-direction: column;
    color: var(--wl-text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--wl-secondary);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.blog-content blockquote {
    border-left: 4px solid var(--wl-primary);
    padding-left: 20px;
    color: var(--wl-muted-text);
    margin: 1.8em 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.8em 0;
}

.blog-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
    min-width: 0;
    overflow: visible;
}

.blog-sidebar-meta {
    background: var(--wl-surface);
    border: 1px solid var(--wl-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--wl-secondary) 9%, transparent);
}

.blog-author-profile {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.blog-author-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid color-mix(in srgb, var(--wl-primary) 20%, var(--wl-surface));
}

.blog-author-text h3 {
    margin: 0;
    font-size: 1.1rem;
}

.blog-author-bio {
    margin-top: 6px;
    font-size: 0.92rem;
}

.blog-sidebar-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--wl-border);
}

.blog-sidebar-label {
    margin-bottom: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wl-muted-text);
}

.blog-sidebar-sticky {
    position: sticky;
    top: var(--weblish-sticky-offset, 96px);
    z-index: 1;
    align-self: start;
}

.blog-sticky-cta-banner,
.blog-end-cta-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--wl-primary) 28%, transparent);
    border-radius: 14px;
    background: linear-gradient(140deg, color-mix(in srgb, var(--wl-primary) 16%, var(--wl-surface)), color-mix(in srgb, var(--wl-secondary) 8%, var(--wl-surface)));
    box-shadow: 0 16px 30px color-mix(in srgb, var(--wl-secondary) 15%, transparent);
}

.blog-sticky-cta-banner::before,
.blog-end-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--weblish-sticky-cta-bg-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
}

.blog-end-cta-banner::before {
    background-image: var(--weblish-end-cta-bg-image, none);
}

.blog-sticky-cta-banner > *,
.blog-end-cta-banner-inner {
    position: relative;
    z-index: 1;
}

.blog-sticky-cta-banner {
    padding: 22px 20px;
}

.blog-sticky-cta-banner h3 {
    margin: 0 0 10px;
    color: var(--wl-secondary);
    font-size: 1.35rem;
}

.blog-sticky-cta-banner p {
    margin-bottom: 16px;
}

.blog-end-cta-banner {
    margin-top: 34px;
}

.blog-end-cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    flex-wrap: wrap;
}

.blog-end-cta-banner h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.blog-end-cta-banner p {
    margin: 0;
    max-width: 560px;
}

.back-to-home-div {
    margin-top: 34px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Contact */
.weblish-contact-subheadline {
    margin-top: 10px;
}

.grid-form.for-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.grid-form.for-contact .text-field-primary {
    width: 100%;
    border: 1px solid var(--wl-border);
    background: var(--wl-surface);
    color: var(--wl-text);
}

.grid-form.for-contact .text-field-primary::placeholder {
    color: var(--wl-muted-text);
}

.grid-form.for-contact .text-field-primary.area {
    min-height: 160px;
}

.weblish-contact-info {
    border-top: 1px solid var(--wl-border);
    padding-top: 20px;
}

.weblish-contact-info-list {
    display: grid;
    gap: 14px;
}

.weblish-contact-row strong {
    display: block;
    color: var(--wl-secondary);
    margin-bottom: 5px;
}

.weblish-contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* WordPress defaults */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    background: var(--wl-surface);
    color: var(--wl-primary);
    border-radius: 3px;
    box-shadow: 0 0 0 3px var(--wl-focus-ring);
    display: block;
    left: 5px;
    top: 5px;
    height: auto;
    width: auto;
    padding: 15px 23px 14px;
    z-index: 100000;
}

.wp-caption {
    background: var(--wl-surface);
    border: 1px solid var(--wl-border);
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption p.wp-caption-text {
    color: var(--wl-muted-text);
}

.comment-body {
    padding: 20px;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--wl-background) 92%, var(--wl-surface));
    border-radius: 8px;
    border: 1px solid var(--wl-border);
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--wl-border);
    border-radius: 6px;
    color: var(--wl-text);
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--wl-surface);
}

.pagination a:hover,
.pagination .current {
    background: var(--wl-primary);
    border-color: var(--wl-primary);
    color: var(--wl-surface);
}

.flash-empty-state {
    background: var(--wl-surface);
    border: 1px solid var(--wl-border);
    border-radius: 12px;
    padding: clamp(28px, 4vw, 40px);
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--wl-secondary) 10%, transparent);
}

.flash-empty-state h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.flash-empty-state p {
    margin-bottom: 22px;
}

body.admin-bar .navbar-2 {
    top: 32px;
}

@media screen and (max-width: 991px) {
    .blog-grid-3-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-highlight-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-sidebar-sticky {
        position: static;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar-2 {
        top: 46px;
    }
}

@media screen and (max-width: 767px) {
    .flash-pillar-nav-wrap {
        padding: 12px 0;
    }

    .flash-pillar-nav-container {
        justify-content: flex-start;
    }

    .flash-pillar-nav-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .blog-grid-3-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-hero-content {
        text-align: center;
    }

    .blog-hero-stats {
        justify-content: center;
    }

    .blog-end-cta-banner-inner {
        padding: 22px;
    }
}

@media screen and (max-width: 479px) {
    .related-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
