.blog-section {
    padding: var(--section-padding);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 18px;
    margin-top: 0;
}
.blog-view-all {
    text-align: center;
    margin-top: 40px;
}

.blog-card {
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(36, 86, 214, 0.06) 0%, transparent 60%),
        var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    transform: translateZ(0);
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-warm);
    z-index: 4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(233, 185, 73, 0.15),
        0 0 60px rgba(233, 185, 73, 0.08);
    border-color: rgba(233, 185, 73, 0.4);
}

.blog-card__img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    z-index: 2;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.1);
}

.blog-card__img-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(transparent, var(--card-bg-hover));
    z-index: 3;
}

.blog-card__content {
    padding: 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.blog-card__title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-card__subtitle {
    color: var(--accent-gold, #e9b949);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__bar {
    width: 40px;
    height: 3px;
    background: var(--gradient-warm);
    border-radius: 2px;
    margin-bottom: 14px;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card__bar {
    width: 60px;
}

.blog-card__preview-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.btn11-hover {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn11-hover:hover {
    background: var(--gradient-warm);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(233, 185, 73, 0.3);
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 40px;
    }

    .blog-card {
        height: auto;
        min-height: 0;
    }

    .blog-card__img-container {
        height: 130px;
    }

    .blog-card__content {
        padding: 16px 14px;
    }

    .blog-card__title {
        font-size: 16px;
    }

    .blog-card__subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .blog-card__bar {
        margin-bottom: 14px;
    }

    .blog-card__preview-text {
        font-size: 13px;
        -webkit-line-clamp: 3;
        margin-bottom: 16px;
    }

    .btn11-hover {
        padding: 7px 14px;
        font-size: 10.5px;
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .blog-card__img-container {
        height: 96px;
    }

    .blog-card__content {
        padding: 10px 11px 12px;
    }

    .blog-card__title {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-card__subtitle {
        font-size: 9.5px;
        margin-bottom: 6px;
        letter-spacing: 0.4px;
    }

    .blog-card__bar,
    .blog-card__preview-text {
        display: none;
    }

    .btn11-hover {
        padding: 5px 10px;
        font-size: 9px;
        letter-spacing: 0.8px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .blog-card__content {
        padding: 9px 10px 11px;
    }

    .blog-card__title {
        font-size: 12.5px;
    }
}
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: var(--text-secondary);
    font-size: 18px;
}

.blog-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-gold, #e9b949);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.blog-pager {
    position: relative;
    z-index: 2;
}

.blog-pager .blog-grid {
    margin-bottom: 28px;
}

.blog-page-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.35);
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.blog-page-prev {
    left: 10px;
}

.blog-page-next {
    right: 10px;
}

@media (min-width: 1400px) {
    .blog-page-prev {
        left: -68px;
    }

    .blog-page-next {
        right: -68px;
    }
}

.blog-page-btn:hover:not(:disabled) {
    background: rgba(233, 185, 73, 0.75);
    border-color: rgba(233, 185, 73, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 26px rgba(233, 185, 73, 0.3);
}

.blog-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.blog-page-btn:focus-visible {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.blog-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-dot:hover {
    background: rgba(233, 185, 73, 0.4);
    transform: scale(1.2);
}

.blog-dot.is-active {
    background: var(--accent-gold, #e9b949);
    border-color: var(--accent-gold, #e9b949);
    box-shadow: 0 0 10px rgba(233, 185, 73, 0.5);
}

.blog-page-counter {
    font-size: 13px;
    color: var(--accent-gold-light, #f7d888);
    letter-spacing: 0.08em;
}

.blog-grid[data-slide="next"] .blog-card {
    animation: blogSlideInRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blog-grid[data-slide="prev"] .blog-card {
    animation: blogSlideInLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes blogSlideInRight {
    from {
        opacity: 0;
        transform: translateX(70px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes blogSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-70px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 1024px) {
    .blog-page-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .blog-page-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .blog-pagination {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .blog-dots {
        gap: 8px;
    }

    .blog-dot {
        width: 10px;
        height: 10px;
    }

    .blog-page-counter {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-page-btn,
    .blog-dot {
        transition: none;
    }

    .blog-grid[data-slide="next"] .blog-card,
    .blog-grid[data-slide="prev"] .blog-card {
        animation: none;
    }
}
.blog-grid {
    scroll-margin-top: 90px;
}

.blog-card {
    cursor: pointer;
}

.blog-inline-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.35);
    background: rgba(10, 10, 12, 0.72);
    color: #fff;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, outline 0.3s ease, outline-offset 0.3s ease;
    flex-shrink: 0;
}

.blog-inline-btn[hidden] {
    display: none !important;
}

.blog-inline-btn:hover:not(:disabled) {
    background: rgba(233, 185, 73, 0.75);
    border-color: rgba(233, 185, 73, 0.8);
}

.blog-inline-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.blog-inline-btn:focus-visible {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.blog-dot {
    position: relative;
}

.blog-dot::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .blog-page-btn {
        display: none;
    }

    .blog-inline-btn {
        display: flex;
    }

    .blog-pagination {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .blog-page-counter {
        flex-basis: 100%;
        text-align: center;
    }

    .blog-dots {
        gap: 14px;
    }

    .blog-dot {
        width: 12px;
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-inline-btn {
        transition: none;
    }
}

html.rc-light .blog-page-btn {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(161, 98, 7, 0.35);
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(20, 24, 40, 0.16);
}

html.rc-light .blog-dot {
    border-color: rgba(30, 58, 138, 0.55);
}
html.rc-light .blog-dot:hover {
    background: rgba(30, 58, 138, 0.35);
}
html.rc-light .blog-dot.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.45);
}
html.rc-light .blog-page-counter {
    color: #1e3a8a;
}
html.rc-light .blog-page-btn {
    color: #1e3a8a;
    border-color: rgba(30, 58, 138, 0.4);
}
html.rc-light .blog-inline-btn {
    color: #1e3a8a;
    border-color: rgba(30, 58, 138, 0.45);
    background: rgba(255, 255, 255, 0.9);
}
