/* 
 * VEKS Blog Module 
 */

.veks-blog {
    padding: 120px 0;
    background-color: #111111;
    color: #f7f7f7;
    position: relative;
    width: 100%;
}

.veks-blog__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.veks-blog__header {
    margin-bottom: 60px;
}

.veks-blog__eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d59a57;
    margin-bottom: 20px;
    font-weight: 600;
}

.veks-blog__heading {
    font-family: "Playfair Display", "Noto Sans Armenian", serif;
    font-size: clamp(33px, 2vw, 59px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.veks-blog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 992px) {
    .veks-blog__grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
    .veks-blog__featured-col {
        position: sticky;
        top: 100px;
    }
}

.veks-blog__regular-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.veks-blog__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.veks-blog__card--regular {
    flex-direction: column;
    gap: 20px;
}

@media(min-width: 576px) {
    .veks-blog__card--regular {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
}

.veks-blog__card-image {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /* Removed fixed aspect-ratio from here if any */
}

.veks-blog__card-image a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.veks-blog__card-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.veks-blog__card--featured .veks-blog__card-image {
    aspect-ratio: 16/9; /* Fixed gap issue by removing 16/10 if it was acting weird */
}

.veks-blog__card--regular .veks-blog__card-image {
    aspect-ratio: 4/3;
}

@media(min-width: 576px) {
    .veks-blog__card--regular .veks-blog__card-image {
        width: 40%;
        flex-shrink: 0;
    }
    .veks-blog__card--regular .veks-blog__card-content {
        flex: 1;
    }
}

.veks-blog__card-image:hover img {
    transform: scale(1.05);
}

.veks-blog__fallback-image {
    width: 100%;
    height: 100%;
    background-color: #2a2a2a;
    display: block;
}

.veks-blog__card-meta {
    font-size: 13px;
    color: #d59a57;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.veks-blog__card-author {
    color: #ffffff;
    font-weight: 500;
}

.veks-blog__card-title {
    font-family: var(--veks-primary-font, sans-serif) !important;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.veks-blog__card--featured .veks-blog__card-title {
    font-size: clamp(20px, 2.5vw, 28px);
}

.veks-blog__card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.veks-blog__card-title a:hover {
    color: #d59a57;
}

.veks-blog__card-excerpt {
    color: #aaaaaa;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Animations */
.veks-blog.is-visible .veks-blog__eyebrow { animation: veksFadeInUp 0.8s ease forwards; }
.veks-blog.is-visible .veks-blog__heading { animation: veksFadeInUp 0.8s ease 0.1s forwards; }
.veks-blog.is-visible .veks-blog__card { animation: veksFadeInUp 0.8s ease 0.2s forwards; }

.veks-blog__eyebrow,
.veks-blog__heading,
.veks-blog__card {
    opacity: 0;
    transform: translateY(20px);
}

.veks-blog__card:nth-child(2) { animation-delay: 0.3s; }
.veks-blog__card:nth-child(3) { animation-delay: 0.4s; }
.veks-blog__card:nth-child(4) { animation-delay: 0.5s; }
.veks-blog__card:nth-child(5) { animation-delay: 0.6s; }

@keyframes veksFadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .veks-blog__eyebrow,
    .veks-blog__heading,
    .veks-blog__card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 
 * VEKS Blog Page (Archive) - Minimal Luxury Edition 
 */

.veks-blog-page {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    margin-left: calc(-50vw + 50%);
    max-width: 100vw;
}

.veks-blog-page__hero {
    position: relative;
    padding: 260px 0 120px;
    background: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.veks-blog-page__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.veks-blog-page__hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.veks-blog-page__hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0.4) 0%, #0a0a0a 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.veks-blog-page__animated-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #0d0d0d;
}

.veks-blog-page__animated-bg::before,
.veks-blog-page__animated-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: veksFloatBg 15s infinite alternate ease-in-out;
}

.veks-blog-page__animated-bg::before {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(166, 124, 0, 0.15) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.veks-blog-page__animated-bg::after {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(138, 109, 59, 0.12) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.veks-blog-page__hero-content {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.veks-blog-page__title {
    font-family: var(--veks-primary-font, sans-serif) !important;
    font-size: clamp(33px, 2vw, 59px);
    font-weight: 300;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(166, 124, 0, 0.4), 0 0 40px rgba(166, 124, 0, 0.2);
}

.veks-blog-page__subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.4);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

.veks-blog-page__content {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px 120px;
    box-sizing: border-box;
}

/* Pristine Grid Layout */
.veks-blog-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

@media(min-width: 768px) {
    .veks-blog-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 100px 40px;
    }
}

@media(min-width: 1024px) {
    .veks-blog-page__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* The very first post becomes a massive featured story */
    .veks-blog-page__card:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 60px;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .veks-blog-page__card:first-child .veks-blog-page__card-image {
        aspect-ratio: 21/9;
    }
    
    .veks-blog-page__card:first-child .veks-blog-page__card-title {
        font-size: clamp(33px, 2vw, 59px);
        margin-bottom: 30px;
    }
    
    .veks-blog-page__card:first-child .veks-blog-page__card-excerpt {
        font-size: 18px;
        line-height: 1.8;
    }
}

.veks-blog-page__card {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.veks-blog-page__card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #111;
}

.veks-blog-page__card-image a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.veks-blog-page__card-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s;
    filter: brightness(0.9);
}

.veks-blog-page__card:hover .veks-blog-page__card-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.veks-blog-page__fallback {
    width: 100%;
    height: 100%;
    background: #151515;
}

/* Card Content Styling */
.veks-blog-page__card-content {
    display: flex;
    flex-direction: column;
}

.veks-blog-page__card-meta {
    font-size: 11px;
    color: #d59a57;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.veks-blog-page__card-title {
    font-family: "Playfair Display", "Noto Sans Armenian", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.veks-blog-page__card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.veks-blog-page__card-title a:hover {
    color: #d59a57;
}

.veks-blog-page__card-excerpt {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

/* Pagination / Load More */
.veks-blog-page__pagination {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 80px;
}

.veks-btn-load {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    padding: 16px 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 40px;
}

.veks-btn-load:hover {
    background: #fff;
    color: #000;
}

.veks-btn-load .loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

.veks-btn-load.is-loading .text {
    visibility: hidden;
}

.veks-btn-load.is-loading {
    background: #fff;
}

.veks-btn-load.is-loading .loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.veks-blog-page__empty {
    text-align: center;
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    padding: 100px 0;
}


/* Filter & Search Bar */
.veks-blog-page__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.veks-blog-page__filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.veks-blog-filter {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.veks-blog-filter:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.veks-blog-filter.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.veks-blog-page__search {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.veks-search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
}

.veks-blog-page__search input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 10px 10px 35px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.veks-blog-page__search input:focus {
    border-bottom-color: #d59a57;
}

.veks-blog-page__search input::placeholder {
    color: rgba(255,255,255,0.3);
}

@media(max-width: 767px) {
    .veks-blog-page__controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .veks-blog-page__search {
        max-width: 100%;
    }
}

