.page-hero {
    position: relative;
    overflow: hidden !important;
    text-align: left;
    padding: 85px 0 60px !important;
    min-height: 500px !important;
    border-bottom: 1px solid #0d0d0d !important;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-banner-blog.webp') !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    z-index: -1;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* גירדיאנט תחתון */
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%),
        /* גרדיאנט צדדים */
        linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.8) 100%) !important;
    z-index: 1;
}

/* Base styles for the hero content */
.page-hero .section-tag {
    display: inline-block;
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 20px;
}

.page-hero .container {
    padding: 0 10px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 11.9vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 auto 15px;
    text-align: center;
    white-space: nowrap;
}

.page-hero h1 .gradient-text {
    background-image: linear-gradient(to right, #F59E0B, #EF4444);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #F59E0B;
}

.page-hero p {
    color: #cbd5e1;
    font-size: clamp(0.85rem, 4.09vw, 1.15rem);
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    max-width: 675px;
    width: 100%;
}

/* Blog Layout */
.blog-layout {
    display: flex;
    gap: 50px;
    max-width: 1600px;
    margin: 75px auto 0;
    padding: 0 40px 80px;
    position: relative;
    justify-content: center;
}

/* Balancing ghost element on the LEFT to center the articles */
.blog-layout::before {
    content: "";
    flex: 0 0 280px;
    /* Exact same as sidebar */
    pointer-events: none;
    display: block;
}

/* Stage 1: 1270px to 1599px - Lock width and pin to right */
@media (min-width: 1270px) and (max-width: 1599px) {
    .blog-layout::before {
        display: none !important;
    }
    .blog-layout {
        justify-content: flex-end;
    }
    .blog-main {
        flex: 0 0 860px !important;
        max-width: 860px !important;
    }
}

/* Stage 2: 901px to 1269px - Flexible content, hide ghost element */
@media (min-width: 901px) and (max-width: 1269px) {
    .blog-layout::before {
        display: none !important;
    }
    .blog-layout {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .blog-layout::before {
        display: none !important;
    }
}

/* Synchronize secondary glow position with the layout margin for posts */
.blog-layout.post-layout-spacing::before {
    top: -25px !important;
    /* Matches the 25px margin-top */
}

/* Surgical adjustment for Bump Proof Lock Page only: Move halo down 25px */
.page-hero.post-bump-hero::before {
    background: radial-gradient(circle at 50% 85.5%, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 100%) !important;
}

/* Position the badge without pushing the title down */
.page-hero .container {
    position: relative;
    /* Base for absolute positioning */
}

.hero-badge.blog-badge-fix {
    position: absolute;
    top: 30px;
    /* Aligned with the header logo */
    left: 15px;
    margin-bottom: 0;
    /* Override default margin to prevent layout shift */
}

/* Ensure badge is hidden on mobile/tablet */
@media (max-width: 768px) {
    .hero-badge.blog-badge-fix {
        display: none !important;
    }
}

.blog-layout::after {
    content: '';
    position: absolute;
    top: -75px;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(240, 180, 41, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-sidebar-col {
    flex: 0 0 280px;
}

/* Blog Post Card */
.blog-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 70px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.blog-post-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1.5px;
    background: linear-gradient(to right,
            rgba(240, 180, 41, 0) 0%,
            rgba(240, 180, 41, 0.8) 50%,
            rgba(240, 180, 41, 0) 100%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.blog-post-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-12px) scale(1.02) !important;
}

.blog-post-card:hover::after {
    opacity: 1;
}

.blog-post-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.blog-post-card-body {
    padding: 30px 35px 35px;
}

.blog-post-card-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #F59E0B;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.blog-post-card-date svg {
    width: 14px;
    height: 14px;
    fill: #F59E0B;
}

.blog-post-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.3;
}

.blog-post-card h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
    color: #F59E0B;
}

.blog-post-card-text {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f0b429;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(240, 180, 41, 0.3);
    padding-bottom: 3px;
    transition: 0.3s;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.blog-read-more:hover {
    border-bottom-color: #f0b429;
}

/* Full Content Expand */
.blog-post-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.blog-post-full-content.expanded {
    opacity: 1;
}

.blog-post-full-content-inner {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #bfc5d0;
    font-size: 1rem;
    line-height: 1.8;
}

.blog-post-full-content-inner h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F59E0B;
    margin: 25px 0 12px;
}

.blog-post-full-content-inner p {
    margin: 0 0 15px;
    color: #bfc5d0;
}

.blog-post-full-content-inner ul,
.blog-post-full-content-inner ol {
    margin: 0 0 15px;
    padding-left: 25px;
    color: #bfc5d0;
}

.blog-post-full-content-inner li {
    margin-bottom: 6px;
}

.blog-post-full-content-inner a {
    color: #F59E0B;
    text-decoration: underline;
    text-decoration-color: rgba(240, 180, 41, 0.3);
    transition: 0.3s;
}

.blog-post-full-content-inner a:hover {
    text-decoration-color: #F59E0B;
}

.blog-post-full-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
}

/* Sidebar */
.blog-sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
}

.blog-sidebar-widget h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #F59E0B;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(240, 180, 41, 0.15);
}

.blog-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-widget li {
    margin-bottom: 0;
}

.blog-sidebar-widget li a {
    display: block;
    padding: 10px 0;
    color: #cdd0d7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-sidebar-widget li:last-child a {
    border-bottom: none;
}

.blog-sidebar-widget li a:hover {
    color: #F59E0B;
    padding-left: 8px;
}

.blog-sidebar-widget li a .archive-count {
    float: right;
    background: rgba(240, 180, 41, 0.1);
    color: #F59E0B;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
        padding: 0 20px 60px;
        gap: 40px;
    }

    .blog-sidebar-col {
        flex: auto;
    }

    .blog-hero {
        padding: 80px 20px 40px;
    }
}

@media (max-width: 600px) {
    .blog-post-card-body {
        padding: 20px 22px 25px;
    }

    .blog-post-card h2 {
        font-size: 1.25rem;
    }

    .blog-post-card-img {
        height: 180px;
    }
}

/* ========== Blog Post Specific Styles ========== */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-meta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.post-content h3 {
    color: #f0b429;
    margin: 40px 0 20px;
}

.post-content h4 {
    color: #fff;
    font-size: 1.25rem;
    margin: 35px 0 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 50px 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f0b429;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: 0.3s;
}

.back-to-blog:hover {
    transform: translateX(-5px);
}

/* Sidebar alignment for blog posts */
.blog-sidebar-col.post-sidebar {
    padding-top: 90px;
}

@media (max-width: 900px) {
    .blog-sidebar-col.post-sidebar {
        padding-top: 0;
    }
}

/* Filter Status Bar */
.filter-status {
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.filter-info {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.filter-info strong {
    color: #f0b429;
    margin-left: 8px;
    font-weight: 600;
}

.clear-filter {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.clear-filter:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-content ol,
.post-content ul {
    list-style-type: disc !important;
    color: #cbd5e1;
    margin-bottom: 25px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.post-content li::marker {
    color: #cbd5e1;
}

/* Post Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
}

.comments-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.comment-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.comment-info span {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.comment-text {
    color: var(--gray-300);
    line-height: 1.6;
    margin: 0;
}

/* Comment Form - Premium Glassmorphism */
.comment-respond {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.comment-reply-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #fff;
}

.comment-notes {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 30px;
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comment-form p {
    margin: 0;
}

.comment-form-comment {
    grid-column: span 2;
}

.comment-form-url {
    grid-column: span 2;
}

.comment-form-cookies-consent {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 15px;
    margin-bottom: 5px;
}

.comment-form .comment-form-cookies-consent label {
    margin: 0 !important;
    display: inline-block !important;
    cursor: pointer;
    line-height: normal !important;
    vertical-align: middle;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-submit {
    grid-column: span 2;
    margin-top: 10px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gray-300);
    font-weight: 500;
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .post-container {
        padding: 30px 0 !important;
    }

    .comment-respond {
        padding: 30px !important;
        border-radius: 16px !important;
        margin-top: 40px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .comment-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .comment-form p {
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .comment-form-author,
    .comment-form-email,
    .comment-form-url,
    .comment-form-comment,
    .comment-form-cookies-consent,
    .form-submit {
        grid-column: span 1 !important;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        width: 100% !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 380px) {

    /* 1. שחרור החניקה של המיכל - נותן עוד מקום לטקסט */
    .blog-hero .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 2. וידוא שהטקסט מנצל את כל המרחב החדש */
    .blog-hero-subtitle {
        font-size: 0.92rem !important;
        /* הקטנה מיקרוסקופית שמונעת את השבירה */
        letter-spacing: -0.2px;
        /* מצופף מעט את האותיות, כמעט בלתי מורגש אבל עוזר */
        width: 100% !important;
    }

    /* 3. העלמת הכפתור הצף בעמוד הבלוג בלבד */
    /* כאן תשתמש ב-Class של הכפתור הצף שלך, למשל .floating-call-button */
    .floating-call-button,
    .mobile-call-now {
        display: none !important;
    }
}

/* Hide subtitle part on mobile */
@media (max-width: 768px) {
    .hide-mobile-inline {
        display: none !important;
    }
}

/* Hide specific words on very small screens (<= 384px) */
@media (max-width: 384px) {
    .hide-xs {
        display: none !important;
    }
}


/* Frame 2 - Clean Glass (Mailbox Style) */
.frame-2-glass-clean {
    position: relative;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    padding: 45px 50px !important;
    max-width: 1600px !important;
    margin: 40px auto !important;
    overflow: hidden;
    border: none;
}

/* Golden Bottom Gradient Line */
.frame-2-glass-clean::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right,
            rgba(240, 180, 41, 0) 0%,
            rgba(240, 180, 41, 0.8) 50%,
            rgba(240, 180, 41, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .frame-2-glass-clean {
        padding: 30px !important;
        margin: 20px auto !important;
        border-radius: 16px !important;
    }
}

/* Frame - Simple Glass (With Golden Line) */
.frame-glass-simple {
    position: relative;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    max-width: 1300px !important;
    margin: 30px auto !important;
    overflow: hidden !important;
    border: none !important;
}

/* Frame - Pure Glass (Clean, no lines, no borders) */
.frame-glass-pure {
    position: relative;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    max-width: 1300px !important;
    margin: 30px auto !important;
    overflow: hidden !important;
    border: none !important;
}

/* Golden Bottom Line for Simple Glass */
.frame-glass-simple::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right,
            rgba(240, 180, 41, 0) 0%,
            rgba(240, 180, 41, 0.8) 50%,
            rgba(240, 180, 41, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .frame-glass-simple {
        padding: 30px !important;
        margin: 20px auto !important;
        border-radius: 16px !important;
    }
}