@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');
/* ==========================================================================
   BVMK VISAS - SCOPED PORTAL STYLE SYSTEM (LEAK-PROOF & UNLOCKED)
   ========================================================================== */


:root {
    --blog-light-bg: #f8fafc;
    --blog-card-white: #ffffff;
    --blog-navy-blue: #1a2a3a;
    --blog-navy-light: #2c3e50;
    --blog-gold-accent: #c5a47e;
    --blog-text-primary: #1e293b;
    --blog-text-muted: #5a6b7e;
    --blog-border-light: #e2e8f0;
    --blog-transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/*
   OFFICIAL LENIS STRUCTURAL INTEGRATION CSS (Required to avoid scroll locking)
   ========================================================================== */
html.lenis {
    height: auto !important;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain !important;
}

.lenis.lenis-stopped {
    overflow: hidden !important;
}

/* Base resets restricted ONLY to the blog body pages.
   CRITICAL: body must have overflow:visible on BOTH axes for Lenis to work.
   styles.css sets body{overflow-x:hidden} globally, which per CSS spec forces
   overflow-y to compute to "auto" — creating a body-level scroll container that
   steals wheel events from Lenis at the window level, locking scroll entirely. */
.blog-list-page,
.blog-article-page {
    background-color: var(--blog-light-bg) !important;
    width: 100% !important;
    min-height: 100vh !important;
}

/* CRITICAL FIX FOR LENIS SMOOTH SCROLL:
   Override global body{overflow-x:hidden} from styles.css which creates
   a body-level scroll container that steals wheel events from Lenis.
   Must set BOTH overflow-x and overflow-y to visible for Lenis to work. */
body.blog-list-page,
body.blog-article-page {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ensure html element works correctly with Lenis */
html {
    scroll-behavior: auto !important;
}

/* Scoped Font families for blog components only (Does not affect Header/Footer) */
.blog-creative-hero,
.blog-container,
.article-container {
    font-family: 'Poppins', 'Inter', sans-serif !important;
}

/* Reading Progress Indicator */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 10000;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--blog-gold-accent);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   HERO SECTIONS (Safe layout settings that do not block header elements)
   ========================================================================== */
.blog-creative-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 4% 80px 4%; /* Safe space below fixed header */
    background-color: #01040d;
    overflow: hidden;
}

.blog-creative-hero .hero-slider-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-creative-hero .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35; /* Coordinates with About Us page opacity settings */
}

.blog-creative-hero .hero-vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 20%, #020617 90%),
                linear-gradient(to bottom, transparent 80%, #020617 100%);
    z-index: 4;
    pointer-events: none;
}

.blog-creative-hero .blog-hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    text-align: center;
}

.blog-creative-hero .creative-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blog-gold-accent);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 20px;
}

.blog-creative-hero .creative-heading {
    font-family: 'Cinzel', serif !important;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 25px;
}

.blog-creative-hero .gold-text {
    background: linear-gradient(135deg, #f3e5d8 0%, var(--blog-gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-creative-hero .creative-paragraph {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
}

.blog-creative-hero .creative-scroll-indicator {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--blog-gold-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 5;
    cursor: pointer;
}

.blog-creative-hero .creative-scroll-indicator i {
    animation: bounce-indicator 2s infinite;
}

@keyframes bounce-indicator {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================
   DIRECTORY CARD GRID
   ========================================================== */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--blog-card-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--blog-border-light);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.6s var(--blog-transition), 
                box-shadow 0.6s var(--blog-transition), 
                border-color 0.6s var(--blog-transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--blog-gold-accent);
    box-shadow: 0 20px 45px rgba(197, 164, 126, 0.12);
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: var(--blog-light-bg);
}

.blog-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--blog-transition);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.placeholder-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blog-navy-blue) 0%, #020617 100%);
    padding: 2.5rem;
}

.placeholder-img img {
    max-width: 110px;
    height: auto;
    opacity: 0.85;
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blog-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-date i {
    color: var(--blog-gold-accent);
}

.blog-title {
    font-family: 'Marcellus', serif !important;
    font-size: 1.4rem;
    color: var(--blog-navy-blue);
    margin: 0 0 14px 0;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title {
    color: var(--blog-gold-accent);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--blog-text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-navy-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s var(--blog-transition);
}

.blog-card:hover .read-more {
    color: var(--blog-gold-accent);
}

.blog-card:hover .read-more i {
    transform: translateX(6px);
}

.no-blogs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    background: var(--blog-card-white);
    border: 1px solid var(--blog-border-light);
    border-radius: 12px;
}

.no-blogs i {
    font-size: 3rem;
    color: var(--blog-gold-accent);
    margin-bottom: 20px;
}

/* ==========================================================
   INDIVIDUAL EDITORIAL ARTICLE PAGE
   ========================================================== */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 160px 24px 100px 24px; /* Space below sticky global headers */
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--blog-text-muted);
    margin-bottom: 35px;
}

.breadcrumbs a {
    color: var(--blog-navy-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--blog-gold-accent);
}

.breadcrumb-separator {
    font-size: 0.7rem;
    color: var(--blog-border-light);
}

.breadcrumb-active {
    color: var(--blog-text-muted);
}

.article-header {
    text-align: center;
    margin-bottom: 45px;
}

.article-header .article-date {
    font-size: 0.9rem;
    color: var(--blog-gold-accent);
    margin-bottom: 15px;
    display: block;
}

.article-title {
    font-family: 'Marcellus', serif !important;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--blog-navy-blue);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.article-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blog-card-white);
    border: 1px solid var(--blog-border-light);
    padding: 8px 18px;
    border-radius: 40px;
}

.author-avatar {
    width: 25px;
    height: 25px;
    background: rgba(197, 164, 126, 0.1);
    color: var(--blog-gold-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blog-navy-blue);
}

.article-featured-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(26, 42, 58, 0.12);
    margin-bottom: 50px;
    aspect-ratio: 16 / 9;
}

.article-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TinyMCE Content Alignment Engine */
.article-body {
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    line-height: 1.95;
    color: var(--blog-navy-light);
    font-family: 'Inter', sans-serif !important;
}

.article-body h1, 
.article-body h2, 
.article-body h3 {
    color: var(--blog-navy-blue);
    font-family: 'Marcellus', serif !important;
    margin-top: 45px;
    margin-bottom: 18px;
    font-weight: 700;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body blockquote {
    font-family: 'Marcellus', serif !important;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--blog-navy-blue);
    border-left: 4px solid var(--gold-accent);
    padding: 10px 0 10px 30px;
    margin: 35px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
}

.article-body th, 
.article-body td {
    padding: 12px 18px;
    border: 1px solid var(--blog-border-light);
}

.article-body th {
    background-color: var(--blog-navy-blue);
    color: #ffffff;
}

.article-body tr:nth-child(even) {
    background-color: var(--blog-light-bg);
}

.article-body .attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background-color: #ffffff;
    border: 1.5px solid var(--blog-border-light);
    border-radius: 8px;
    text-decoration: none !important;
    color: var(--blog-navy-blue) !important;
    font-weight: 700;
    transition: all 0.3s var(--blog-transition);
}

.article-body .attachment-link:hover {
    border-color: var(--blog-gold-accent);
    background-color: rgba(197, 164, 126, 0.05);
    transform: translateY(-2px);
}

.article-footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid var(--blog-border-light);
}

.back-to-blogs-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-navy-blue);
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.article-share-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--blog-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-text-primary);
    text-decoration: none;
    transition: all 0.3s var(--blog-transition);
}

.share-icon:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.share-icon.whatsapp:hover { background-color: #25D366; border-color: #25D366; }
.share-icon.facebook:hover { background-color: #1877F2; border-color: #1877F2; }
.share-icon.twitter:hover { background-color: #1DA1F2; border-color: #1DA1F2; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-creative-hero {
        padding: 140px 20px 40px 20px;
        height: 50vh;
    }
    .blog-container { padding: 40px 20px; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-container { padding: 120px 20px 60px 20px; }
}