/* ==========================================================================
   Blog Articles Grid Section
   ========================================================================== */

.blog-articles-carousel {
    background: #fff;
    padding: 80px 0;
}

.blog-articles-carousel .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1B1B1B;
    margin-bottom: 50px;
    position: relative;
}

/* Desktop/Mobile Layout Control */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}


/* Blog Grid Layout - Pattern Based (111122222/333332222/333334444/555664444/555667777) */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1470px;
    margin-left: auto;
    margin-right: auto;
}

/* Post 1: spans 3 columns, 2 rows (positions 1-3 in rows 1-2) */
.blog-grid-item:nth-child(1) { 
    grid-column: span 3; 
    grid-row: span 2; 
}

/* Post 2: spans 2 columns, 1 row (positions 4-5 in row 1) */
.blog-grid-item:nth-child(2) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 3: spans 2 columns, 1 row (positions 6-7 in row 1) */
.blog-grid-item:nth-child(3) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 4: spans 2 columns, 1 row (positions 8-9 in row 1) */
.blog-grid-item:nth-child(4) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 5: spans 3 columns, 1 row (positions 4-6 in row 2) */
.blog-grid-item:nth-child(5) { 
    grid-column: span 3; 
    grid-row: span 1; 
}

/* Post 6: spans 2 columns, 1 row (positions 7-8 in row 2) */
.blog-grid-item:nth-child(6) {
    grid-column: span 3;
    grid-row: span 1;
}

/* Post 7: spans 1 column, 1 row (position 9 in row 2) */
.blog-grid-item:nth-child(7) { 
    grid-column: span 1; 
    grid-row: span 1; 
}

/* Post 8: spans 3 columns, 1 row (positions 1-3 in row 3) */
.blog-grid-item:nth-child(8) { 
    grid-column: span 3; 
    grid-row: span 1; 
}

/* Post 9: spans 3 columns, 1 row (positions 4-6 in row 3) */
.blog-grid-item:nth-child(9) { 
    grid-column: span 3; 
    grid-row: span 1; 
}

/* Post 10: spans 2 columns, 1 row (positions 7-8 in row 3) */
.blog-grid-item:nth-child(10) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 11: spans 1 column, 1 row (position 9 in row 3) */
.blog-grid-item:nth-child(11) { 
    grid-column: span 1; 
    grid-row: span 1; 
}

/* Post 12: spans 3 columns, 1 row (positions 1-3 in row 4) */
.blog-grid-item:nth-child(12) { 
    grid-column: span 3; 
    grid-row: span 1; 
}

/* Post 13: spans 3 columns, 1 row (positions 4-6 in row 4) */
.blog-grid-item:nth-child(13) { 
    grid-column: span 3; 
    grid-row: span 1; 
}

/* Post 14: spans 2 columns, 1 row (positions 7-8 in row 4) */
.blog-grid-item:nth-child(14) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 15: spans 1 column, 1 row (position 9 in row 4) */
.blog-grid-item:nth-child(15) { 
    grid-column: span 1; 
    grid-row: span 1; 
}

/* Post 16: spans 3 columns, 1 row (positions 1-3 in row 5) */
.blog-grid-item:nth-child(16) { 
    grid-column: span 3; 
    grid-row: span 1; 
}

/* Post 17: spans 1 column, 1 row (position 4 in row 5) */
.blog-grid-item:nth-child(17) { 
    grid-column: span 1; 
    grid-row: span 1; 
}

/* Post 18: spans 2 columns, 1 row (positions 5-6 in row 5) */
.blog-grid-item:nth-child(18) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 19: spans 2 columns, 1 row (positions 7-8 in row 5) */
.blog-grid-item:nth-child(19) { 
    grid-column: span 2; 
    grid-row: span 1; 
}

/* Post 20: spans 1 column, 1 row (position 9 in row 5) */
.blog-grid-item:nth-child(20) { 
    grid-column: span 1; 
    grid-row: span 1; 
}

/* Additional posts for flexibility */
.blog-grid-item:nth-child(21) { grid-column: span 3; }
.blog-grid-item:nth-child(22) { grid-column: span 3; }
.blog-grid-item:nth-child(23) { grid-column: span 3; }
.blog-grid-item:nth-child(24) { grid-column: span 2; }
.blog-grid-item:nth-child(25) { grid-column: span 2; }

.blog-carousel {
    margin-bottom: 40px;
}

/* Blog Grid Item Styling */
.blog-grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background: #fff;
}

.blog-grid-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Blog Grid Item Image */
.blog-grid-item .blog-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: grayscale(1);
    opacity: 0.6;
}

.blog-grid-item .blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8) saturate(1.1);
}

.blog-grid-item:hover .blog-item-image img {
    transform: scale(1.05);
    filter: brightness(0.6) saturate(1.2);
}

/* Dark Overlay with Title */
.blog-grid-item .blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: all 0.3s ease;
}

.blog-grid-item:hover .blog-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Blog Title in Overlay */
.blog-grid-item .blog-overlay-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-align: right;
    direction: rtl;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-grid-item:hover .blog-overlay-title {
    transform: translateY(-5px);
    color: #fff;
}

/* Blog Category Badge */
.blog-grid-item .blog-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(224, 25, 46, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.blog-grid-item:hover .blog-category-badge {
    background: rgba(224, 25, 46, 1);
    transform: scale(1.05);
}

/* Legacy carousel styles for backward compatibility */
.blog-carousel .blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    height: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-carousel .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224, 25, 46, 0.05), rgba(192, 23, 41, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
}

.blog-carousel .blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(224, 25, 46, 0.2);
    border-color: rgba(224, 25, 46, 0.3);
}

.blog-carousel .blog-card:hover::before {
    opacity: 1;
}

.blog-carousel .blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.blog-carousel .blog-card a:hover {
    text-decoration: none;
    color: inherit;
}

.blog-carousel .blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1) saturate(1);
}

.blog-carousel .blog-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.15);
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1B1B1B;
    margin: 0;
    padding: 25px 25px 20px 25px;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

.blog-carousel .blog-card:hover .blog-card-title {
    color: #e0192e;
    transform: translateY(-2px);
}

/* Owl Carousel Navigation for Blog */
.blog-carousel .owl-nav {
    margin-top: 30px;
    text-align: center;
}

.blog-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    margin: 0 10px;
    color: #6c757d;
    font-size: 18px;
    transition: all 0.3s ease;
    outline: none;
}

.blog-carousel .owl-nav button:hover {
    background: #e0192e;
    border-color: #e0192e;
    color: #fff;
    transform: scale(1.1);
}

.blog-carousel .owl-nav button.owl-prev,
.blog-carousel .owl-nav button.owl-next {
    position: relative;
}

.blog-carousel .owl-nav button i {
    font-size: 16px;
}

.section-view-all {
    margin-top: 30px;
}

.section-view-all .btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #e0192e;
    color: #e0192e;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.section-view-all .btn:hover {
    background: #e0192e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(224, 25, 46, 0.3);
    text-decoration: none;
}

/* No posts message */
.blog-articles-carousel .text-center p {
    font-size: 16px;
    color: #6c757d;
    margin: 40px 0;
    font-style: italic;
}

/* ==========================================================================
   Mobile Blog Carousel Styling
   ========================================================================== */

.blog-carousel .blog-carousel-item {
    padding: 0 10px;
}

.blog-carousel .blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-carousel .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224, 25, 46, 0.05), rgba(192, 23, 41, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
}

.blog-carousel .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(224, 25, 46, 0.2);
    border-color: rgba(224, 25, 46, 0.3);
}

.blog-carousel .blog-card:hover::before {
    opacity: 1;
}

.blog-carousel .blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.blog-carousel .blog-card a:hover {
    text-decoration: none;
    color: inherit;
}

.blog-carousel .blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-carousel .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1) saturate(1);
}

.blog-carousel .blog-card:hover .blog-card-image img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.15);
}

.blog-carousel .blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
    direction: rtl;
}

.blog-carousel .blog-card-category {
    font-size: 12px;
    color: #e0192e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.blog-carousel .blog-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1B1B1B;
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.blog-carousel .blog-card:hover .blog-card-title {
    color: #e0192e;
}

.blog-carousel .blog-card-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Mobile Carousel Navigation */
.blog-carousel .owl-nav {
    margin-top: 20px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.blog-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    margin: 0;
    color: #6c757d;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-carousel .owl-nav button:hover {
    background: #e0192e;
    border-color: #e0192e;
    color: #fff;
    transform: scale(1.1);
}

.blog-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.blog-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.blog-carousel .owl-dots .owl-dot.active,
.blog-carousel .owl-dots .owl-dot:hover {
    background: #e0192e;
    transform: scale(1.2);
}

/* Responsive Design for Blog Grid */
@media (max-width: 1200px) {
    .blog-grid-container {
        max-width: 100%;
        margin: 0 20px;
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .blog-articles-carousel {
        padding: 60px 0;
    }
    
    .blog-articles-carousel .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    /* Tablet Grid Layout - 2x2 pattern */
    .blog-grid-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 220px);
        gap: 15px;
        margin: 0 15px;
    }
    
    /* Reset all items to 2-column spans for tablet */
    .blog-grid-item:nth-child(1),
    .blog-grid-item:nth-child(2),
    .blog-grid-item:nth-child(3),
    .blog-grid-item:nth-child(4),
    .blog-grid-item:nth-child(5),
    .blog-grid-item:nth-child(6),
    .blog-grid-item:nth-child(7),
    .blog-grid-item:nth-child(8),
    .blog-grid-item:nth-child(9),
    .blog-grid-item:nth-child(10),
    .blog-grid-item:nth-child(11),
    .blog-grid-item:nth-child(12),
    .blog-grid-item:nth-child(13),
    .blog-grid-item:nth-child(14),
    .blog-grid-item:nth-child(15),
    .blog-grid-item:nth-child(16),
    .blog-grid-item:nth-child(17),
    .blog-grid-item:nth-child(18),
    .blog-grid-item:nth-child(19),
    .blog-grid-item:nth-child(20),
    .blog-grid-item:nth-child(21),
    .blog-grid-item:nth-child(22),
    .blog-grid-item:nth-child(23),
    .blog-grid-item:nth-child(24),
    .blog-grid-item:nth-child(25) {
        grid-column: span 2;
    }
    
    /* Make some items span full width for variety */
    .blog-grid-item:nth-child(7),
    .blog-grid-item:nth-child(16),
    .blog-grid-item:nth-child(23) {
        grid-column: span 4;
    }
    
    .blog-grid-item .blog-overlay {
        padding: 20px;
    }
    
    .blog-grid-item .blog-overlay-title {
        font-size: 16px;
    }
    
    /* Legacy carousel responsive */
    .blog-carousel .blog-card {
        height: 350px;
    }
    
    .blog-carousel .blog-card img {
        height: 200px;
    }
    
    .blog-card-title {
        font-size: 16px;
        padding: 20px 20px 18px 20px;
    }
    
    .section-view-all .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .blog-articles-carousel {
        padding: 50px 0;
    }
    
    .blog-articles-carousel .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    /* Mobile Grid Layout - Single column */
    .blog-grid-container {
        grid-template-columns: 1fr;
        /* grid-template-rows: repeat(25, 200px); */
        gap: 15px;
        margin: 0 15px;
    }
    
    /* All items single column on mobile */
    .blog-grid-item:nth-child(1),
    .blog-grid-item:nth-child(2),
    .blog-grid-item:nth-child(3),
    .blog-grid-item:nth-child(4),
    .blog-grid-item:nth-child(5),
    .blog-grid-item:nth-child(6),
    .blog-grid-item:nth-child(7),
    .blog-grid-item:nth-child(8),
    .blog-grid-item:nth-child(9),
    .blog-grid-item:nth-child(10),
    .blog-grid-item:nth-child(11),
    .blog-grid-item:nth-child(12),
    .blog-grid-item:nth-child(13),
    .blog-grid-item:nth-child(14),
    .blog-grid-item:nth-child(15),
    .blog-grid-item:nth-child(16),
    .blog-grid-item:nth-child(17),
    .blog-grid-item:nth-child(18),
    .blog-grid-item:nth-child(19),
    .blog-grid-item:nth-child(20),
    .blog-grid-item:nth-child(21),
    .blog-grid-item:nth-child(22),
    .blog-grid-item:nth-child(23),
    .blog-grid-item:nth-child(24),
    .blog-grid-item:nth-child(25) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .blog-grid-item .blog-overlay {
        padding: 15px;
    }
    
    .blog-grid-item .blog-overlay-title {
        font-size: 14px;
    }
    
    .blog-grid-item .blog-category-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Legacy carousel responsive */
    .blog-carousel .blog-card {
        height: 320px;
    }
    
    .blog-carousel .blog-card img {
        height: 180px;
    }
    
    .blog-card-title {
        font-size: 15px;
        padding: 18px 18px 16px 18px;
    }
    
    .blog-carousel .owl-nav button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .section-view-all .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    /* Extra small mobile adjustments */
    .blog-grid-container {
        /* grid-template-rows: repeat(25, 180px); */
        gap: 12px;
        margin: 0 10px;
    }

    .blog-grid-item .blog-overlay {
        padding: 12px;
    }

    .blog-grid-item .blog-overlay-title {
        font-size: 13px;
    }

    /* Legacy carousel responsive */
    .blog-carousel .blog-card {
        height: 300px;
    }

    .blog-carousel .blog-card img {
        height: 170px;
    }

    .blog-card-title {
        font-size: 14px;
        padding: 15px 15px 14px 15px;
    }

    .blog-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 14px;
        margin: 0 8px;
    }
    section.split-parallax-hero {
        height: auto;
        min-height: 130vw;
        display: flex;
    }

    h1.hero-main-title {
        font-size: 30px;
        margin-bottom: 0;
        max-width: 302px;
        margin: auto;
    }

    p.hero-slogan {
        margin-bottom: 10px;
    }

    a.alpine-button.hero-btn-primary,.hero-btn-secondary {
        padding: 10px;
    }

    .new-page-section {
        padding: 15px;
    }

}

/* ==========================================================================
   Mobile Blog Stack Layout
   ========================================================================== */

.blog-stack-container {
    position: relative;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 100%;
}

.blog-stack-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 20px;
}

.blog-stack {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1000px;
}

/* Individual Stack Card */
.blog-stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.4s ease,
                box-shadow 0.4s ease;
    cursor: grab;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.blog-stack-card:active {
    cursor: grabbing;
}

/* Stack positions - cards stacked behind each other */
.blog-stack-card.active {
    z-index: 10;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.blog-stack-card:not(.active) {
    pointer-events: none;
}

.blog-stack-card[data-index="1"]:not(.active) {
    z-index: 9;
    transform: translateY(10px) scale(0.95);
    opacity: 0.7;
}

.blog-stack-card[data-index="2"]:not(.active) {
    z-index: 8;
    transform: translateY(20px) scale(0.9);
    opacity: 0.5;
}

.blog-stack-card[data-index="3"]:not(.active),
.blog-stack-card:not(.active) {
    z-index: 7;
    transform: translateY(30px) scale(0.85);
    opacity: 0.3;
}

/* Card Image Section */
.blog-stack-card .blog-card-image {
    position: relative;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-stack-card .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-stack-card.active:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-stack-card .blog-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

/* Card Content Section */
.blog-stack-card .blog-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* Meta Information */
.blog-stack-card .blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.blog-stack-card .blog-category {
    background: linear-gradient(135deg, #e0192e, #c01729);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-stack-card .blog-read-time {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Title */
.blog-stack-card .blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1B1B1B;
}

.blog-stack-card .blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-stack-card .blog-card-title a:hover {
    color: #e0192e;
}

/* Card Excerpt */
.blog-stack-card .blog-card-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Card Footer */
.blog-stack-card .blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.blog-stack-card .blog-post-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-stack-card .blog-post-date i {
    font-size: 14px;
}

.blog-stack-card .blog-read-more {
    color: #e0192e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.blog-stack-card .blog-read-more:hover {
    gap: 10px;
}

.blog-stack-card .blog-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-stack-card .blog-read-more:hover i {
    transform: translateX(-3px);
}

/* Swipe Hints */
.blog-stack-card .blog-card-swipe-hint {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-stack-card.active:hover .blog-card-swipe-hint,
.blog-stack-card.swiping .blog-card-swipe-hint {
    opacity: 1;
}

.blog-stack-card .swipe-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 16px;
}

/* Stack Navigation Buttons */
.blog-stack-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.blog-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.blog-nav-btn:hover {
    background: #e0192e;
    border-color: #e0192e;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(224, 25, 46, 0.3);
}

.blog-nav-btn:active {
    transform: scale(0.95);
}

.blog-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blog-nav-btn:disabled:hover {
    background: #fff;
    border-color: #e9ecef;
    color: #6c757d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Progress Indicator */
.blog-stack-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.blog-stack-progress .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.blog-stack-progress .progress-dot.active {
    background: #e0192e;
    transform: scale(1.3);
}

/* Swiping Animation States */
.blog-stack-card.swipe-left {
    animation: swipeLeft 0.4s ease forwards;
}

.blog-stack-card.swipe-right {
    animation: swipeRight 0.4s ease forwards;
}

@keyframes swipeLeft {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-120%) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes swipeRight {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(120%) rotate(15deg);
        opacity: 0;
    }
}

/* Mobile Section Adjustments */
@media (max-width: 767px) {
    .blog-articles-carousel {
        padding: 40px 0;
    }

    .blog-articles-carousel .section-title {
        font-size: 22px;
        margin-bottom: 25px;
        text-align: center;
    }

    .blog-stack {
        height: 450px;
    }

    .blog-stack-card .blog-card-image {
        height: 180px;
    }

    .blog-stack-card .blog-card-content {
        padding: 15px;
    }

    .blog-stack-card .blog-card-title {
        font-size: 16px;
    }

    .blog-stack-card .blog-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .blog-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .section-view-all {
        margin-top: 25px;
    }

    .section-view-all .alpine-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-stack {
        height: 420px;
    }

    .blog-stack-card .blog-card-image {
        height: 160px;
    }

    .blog-stack-card .blog-card-content {
        padding: 12px;
    }

    .blog-stack-card .blog-card-meta {
        margin-bottom: 10px;
    }

    .blog-stack-card .blog-category {
        font-size: 10px;
        padding: 4px 10px;
    }

    .blog-stack-card .blog-read-time {
        font-size: 11px;
    }

    .blog-stack-card .blog-card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .blog-stack-card .blog-card-excerpt {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .blog-stack-card .blog-card-footer {
        padding-top: 12px;
    }

    .blog-stack-card .blog-post-date {
        font-size: 11px;
    }

    .blog-stack-card .blog-read-more {
        font-size: 13px;
    }

    .blog-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Mobile Simple Blocks Layout (Replacing Stack/Carousel)
   ========================================================================== */

.blog-mobile-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
}

.blog-mobile-block {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-mobile-block:active {
    transform: scale(0.98);
}

.blog-mobile-block a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-mobile-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.blog-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-mobile-category {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
}

.blog-mobile-title {
    padding: 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1B1B1B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

/* Responsive adjustments for very small screens */
@media (max-width: 380px) {
    .blog-mobile-blocks {
        gap: 10px;
    }

    .blog-mobile-title {
        font-size: 12px;
        padding: 10px;
    }

    .blog-mobile-category {
        font-size: 9px;
        padding: 3px 8px;
    }
}
