/* 
 * Bespoke Luxury Blog Styles
 * Isolated from other sections
 */

/* Blog Archive Layout */
.blog-archive-header {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(14, 17, 38, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 85px; /* Base header height offset */
    margin-top: -85px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(14,17,38,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-z {
    position: relative;
    z-index: 5;
    width: 100%;
}

.blog-archive-header .hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

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

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-archive-content {
    position: relative;
    overflow: hidden;
}

.blog-container-relative {
    position: relative;
    z-index: 2;
}

.section-subtitle.gold {
    display: inline-block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-subtitle.gold::before,
.section-subtitle.gold::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 35px;
    height: 2px;
    background: var(--gradient-1);
    margin: 0 15px;
}

.blog-section-mascot {
    position: absolute;
    top: -10%;
    right: -240px; /* Adjusted proportional to 20% size increase */
    width: 720px; /* 600px + 20% */
    height: 720px;
    opacity: 0.18; /* Final visibility tweak */
    z-index: -1;
    pointer-events: none;
    animation: slowRotateCompass 100s linear infinite;
}

.blog-section-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes slowRotateCompass {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blog-archive-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(214, 40, 40, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
}

.blog-archive-header h1.blog-archive-title {
    color: #fff;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    position: relative;
    z-index: 2;
    margin: 20px 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.blog-archive-header .section-lead-text {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card Styling */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(14, 17, 38, 0.12);
    border-color: rgba(42, 63, 255, 0.1);
}

.blog-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

.blog-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(42, 63, 255, 0.3);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--secondary-1);
    margin-bottom: 12px;
    display: block;
}

.blog-card h3 a {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text; /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}

.blog-card:hover h3 a {
    opacity: 0.8;
}

.blog-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-read-more {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-1);
    position: relative;
    padding-right: 25px;
    transition: all 0.3s ease;
}

.blog-read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more {
    color: #2A3FFF;
}

.blog-card:hover .blog-read-more::after {
    transform: translate(5px, -50%);
}
/* Responsive Mobile & Tablet Overrides */
@media (max-width: 1200px) {
    .blog-archive-header {
        height: auto;
        min-height: 400px;
        padding: 120px 0 80px;
    }
    .blog-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .blog-archive-header h1.blog-archive-title {
        font-size: 48px;
        letter-spacing: -1px;
    }
    .blog-archive-header .section-lead-text {
        font-size: 17px;
        padding: 0 20px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-archive-header {
        height: auto;
        min-height: 360px;
        padding: 100px 0 60px;
    }
}

@media (max-width: 600px) {
    .blog-archive-header {
        height: auto;
        min-height: 320px;
        padding: 110px 0 60px;
    }
    .blog-archive-header h1.blog-archive-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .blog-archive-header .section-lead-text {
        font-size: 15px;
        line-height: 1.5;
    }
    .blog-card {
        border-radius: 16px;
    }
    .blog-content {
        padding: 25px 20px;
    }
    .blog-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .blog-grid {
        gap: 25px;
        margin-bottom: 50px;
    }
    .blog-section-mascot {
        right: -250px;
        width: 450px;
        height: 450px;
    }
    .luxury-pagination {
        margin-top: 30px;
    }
}

/* --- Empty State --- */
.no-posts-found {
    text-align: center;
    padding: 100px 0;
}

.no-posts-found h2 {
    font-size: 32px;
    color: var(--primary-1);
    margin-bottom: 20px;
}

.no-posts-found p {
    color: #666;
    margin-bottom: 30px;
}
