/* 
   BLOG DETAIL UI ENHANCEMENTS - CLEAN & PROFESSIONAL 
*/

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Ultimate Blog Content Styling */
.blog-content {
    font-size: clamp(1.18rem, 2vw, 1.35rem);
    line-height: 1.95;
    color: #1e293b;
    font-weight: 400;
    max-width: 820px;
    margin: 0 auto;
    letter-spacing: -0.011em;
}

.blog-content h1 { font-size: 2.8rem; font-weight: 900; margin: 4.5rem 0 2rem; color: #0f172a; letter-spacing: -2px; line-height: 1.1; }
.blog-content h2 { font-size: 2.2rem; font-weight: 850; margin: 4.5rem 0 1.5rem; color: #0f172a; letter-spacing: -1.5px; line-height: 1.1; position: relative; padding-bottom: 0.75rem; }
.blog-content h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: #3b82f6; border-radius: 2px; }
.blog-content h3 { font-size: 1.75rem; font-weight: 800; margin: 3.5rem 0 1.25rem; color: #1e293b; letter-spacing: -1px; line-height: 1.2; }
.blog-content h4 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 1rem; color: #1e293b; letter-spacing: -0.5px; }
.blog-content p { margin-bottom: 2rem; }

.blog-content ul, .blog-content ol { margin-bottom: 2.5rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.75rem; }
.blog-content ul li { list-style: none; position: relative; }
.blog-content ul li::before { content: '◈'; color: #3b82f6; position: absolute; left: -1.5rem; font-size: 0.8rem; top: 0.1rem; }
.blog-content ol li { list-style: decimal; color: #475569; }

.blog-content blockquote { background: #f8fafc; border-radius: 16px; border-left: 6px solid #0F2C59; padding: 2rem 2.5rem; margin: 3.5rem 0; font-style: italic; color: #334155; font-size: 1.35rem; font-weight: 500; }
.blog-content a { color: #3b82f6; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.blog-content a:hover { color: #0F2C59; }

/* Alignment Infrastructure */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }

/* Enhanced Media Handling */
.blog-content img { border-radius: 24px; margin: 2rem 0; max-width: 100%; height: auto; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.img-fluid { max-width: 100%; height: auto; }

/* Global Image Safety */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating Images */
.img-left { float: left; margin: 0.5rem 2rem 1.5rem 0 !important; max-width: 45%; border-radius: 16px !important; }
.img-right { float: right; margin: 0.5rem 0 1.5rem 2rem !important; max-width: 45%; border-radius: 16px !important; }

@media (max-width: 768px) {
    .img-left, .img-right { float: none !important; margin: 2rem 0 !important; max-width: 100% !important; }
}

/* Figure & Captions */
.blog-content figure { margin: 4rem 0; position: relative; }
.blog-content figure img { border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.08); margin-bottom: 1.25rem; }
.blog-content figcaption { 
    font-size: 0.95rem; 
    color: #64748b; 
    line-height: 1.5; 
    font-style: italic; 
    border-left: 3px solid #3b82f6;
    padding-left: 1.25rem;
    max-width: 90%;
    margin: 0 auto;
}

/* Feature Block */
.blog-feature-image { 
    margin: 5rem -4rem; 
    position: relative; 
    border-radius: 40px; 
    overflow: hidden; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}
@media (max-width: 1200px) { .blog-feature-image { margin: 4rem 0; border-radius: 24px; } }
.blog-feature-image img { border-radius: 0 !important; margin: 0 !important; width: 100%; }

/* Drop Cap Support */
.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding: 0.15em 0.15em 0 0;
    color: #0F2C59;
    font-weight: 800;
    margin-right: 0.5rem;
    text-shadow: 2px 2px 0px rgba(15, 44, 89, 0.1);
}

/* Detail Page Layout Elements */
.post-share {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}
.share-title { font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 3px; font-size: 0.75rem; }

.sidebar-cta-card {
    background: linear-gradient(135deg, #0F2C59 0%, #1e3a8a 100%);
    padding: 3rem 2rem;
    border-radius: 32px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(15, 44, 89, 0.15);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(15, 44, 89, 0.25);
}
.sidebar-cta-card h4 { font-size: 1.5rem; font-weight: 850; margin-bottom: 1.25rem; position: relative; z-index: 1; line-height: 1.25; letter-spacing: -0.5px; }
.sidebar-cta-card p { font-size: 0.95rem; opacity: 0.7; margin-bottom: 2.5rem; position: relative; z-index: 1; line-height: 1.5; }
.sidebar-cta-card .btn-premium { 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white; 
    border: 1px solid rgba(255,255,255,0.2); 
    width: 100%; 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    font-weight: 700;
}
.sidebar-cta-card .btn-premium:hover { background: white; color: #0F2C59; transform: translateY(-3px); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 3rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.back-link:hover { color: #3b82f6; transform: translateX(-10px); }

/* Premium Type Badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.type-badge.article { background: #eff6ff; color: #1d4ed8; }
.type-badge.event { background: #fef2f2; color: #dc2626; }
.type-badge.news { background: #f0fdf4; color: #15803d; }

/* Enhanced Event Brief Card */
.event-brief-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* --- PREMIUM ENGAGEMENT HUB (Two-Column) --- */
.eng-hub-section {
    padding: 4rem 0 5rem;
    background: #f0f4f8;
}

.eng-hub-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(15, 44, 89, 0.12);
}

/* LEFT panel */
.eng-hub-left {
    background: linear-gradient(145deg, #0F2C59 0%, #0a1f3d 100%);
    padding: 52px 48px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.eng-hub-left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -80px; right: -80px;
}
.eng-hub-left::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -60px; left: -40px;
}

.eng-hub-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
    display: block;
}
.eng-hub-heading {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}
.eng-hub-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin-bottom: 28px;
}

.eng-hub-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.eng-hub-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.eng-hub-bullets li i {
    color: #4ade80;
    font-size: 15px;
    flex-shrink: 0;
}

.eng-hub-social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.eng-hub-social-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.eng-hub-soc-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.eng-hub-soc-icon:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* RIGHT panel */
.eng-hub-right {
    background: #ffffff;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eng-hub-form-title {
    font-size: 20px;
    font-weight: 800;
    color: #0F2C59;
    margin-bottom: 4px;
}
.eng-hub-form-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.eng-hub-form {
    display: flex;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.eng-hub-form:focus-within {
    border-color: #0F2C59;
}

.eng-hub-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #1e293b;
}
.eng-hub-btn {
    height: 48px;
    padding: 0 22px;
    background: #0F2C59;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.eng-hub-btn:hover { background: #0a1f3d; }

.eng-hub-sep {
    height: 1px;
    background: #f1f5f9;
    margin: 28px 0;
}

/* Community Links in right panel */
.eng-hub-community-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
}

.eng-hub-community {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eng-community-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid #f1f5f9;
    background: #fafafa;
    text-decoration: none;
    transition: all 0.2s ease;
}
.eng-community-link:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    transform: translateX(3px);
}

.ecl-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ecl-icon-wrap.whatsapp { background: #dcfce7; color: #16a34a; }
.ecl-icon-wrap.facebook { background: #dbeafe; color: #2563eb; }

.ecl-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ecl-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.ecl-sub {
    font-size: 12px;
    color: #94a3b8;
}
.ecl-arrow {
    font-size: 22px;
    color: #cbd5e1;
}

/* ============================
   ENGAGEMENT HUB — RESPONSIVE 
   ============================ */

/* Tablet (768px–1024px) */
@media (max-width: 1024px) {
    .eng-hub-left, .eng-hub-right {
        padding: 44px 36px;
    }
    .eng-hub-heading { font-size: 24px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .eng-hub-section {
        padding: 2.5rem 0 3rem;
    }

    .eng-hub-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(15,44,89,0.10);
    }

    /* LEFT: compact on mobile */
    .eng-hub-left {
        padding: 32px 24px;
        text-align: center;
        align-items: center;
    }
    .eng-hub-left::before,
    .eng-hub-left::after { display: none; }

    .eng-hub-eyebrow { margin-bottom: 10px; }

    .eng-hub-heading {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .eng-hub-desc {
        font-size: 13.5px;
        margin-bottom: 20px;
    }

    .eng-hub-bullets {
        margin-bottom: 20px;
        text-align: left;
        width: 100%;
    }
    .eng-hub-bullets li { font-size: 13px; }

    .eng-hub-social-row {
        justify-content: center;
        padding-top: 20px;
    }

    /* RIGHT: full-width form stacked */
    .eng-hub-right {
        padding: 28px 24px;
    }

    .eng-hub-form-title { font-size: 18px; }
    .eng-hub-form-sub   { margin-bottom: 14px; }

    /* Stack email + button vertically */
    .eng-hub-form {
        flex-direction: column;
        border-radius: 10px;
        overflow: visible;
        border: none;
        gap: 10px;
    }
    .eng-hub-form:focus-within { border: none; }

    .eng-hub-input {
        width: 100%;
        height: 48px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        padding: 0 16px;
        font-size: 15px;
        background: #f8fafc;
    }
    .eng-hub-input:focus { border-color: #0F2C59; outline: none; }

    .eng-hub-btn {
        width: 100%;
        height: 50px;
        border-radius: 10px;
        justify-content: center;
        font-size: 14px;
    }

    .eng-hub-sep { margin: 20px 0; }

    /* Community links tighter on mobile */
    .eng-community-link {
        padding: 12px 14px;
        gap: 12px;
    }
    .ecl-icon-wrap {
        width: 36px; height: 36px;
        font-size: 16px;
    }
    .ecl-title { font-size: 13.5px; }
    .ecl-sub   { font-size: 11.5px; }
}

/* Very small phones (≤400px) */
@media (max-width: 400px) {
    .eng-hub-left  { padding: 28px 18px; }
    .eng-hub-right { padding: 22px 18px; }
    .eng-hub-heading { font-size: 20px; }
}

/* Legacy hub styles (kept for blog_detail sidebar) */
.engagement-hub {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 48px 56px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.hub-top {
    text-align: center;
    margin-bottom: 30px;
}

.hub-title {
    font-size: 34px;
    font-weight: 800;
    color: #0d2b5c;
    margin-bottom: 10px;
}

.hub-subtitle {
    color: #666;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

.hub-newsletter-row {
    margin-bottom: 0;
}

.hub-form-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-input {
    width: 380px;
    height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.hub-btn {
    height: 44px;
    padding: 0 18px;
    background: #0d2b5c;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.hub-btn:hover {
    background: #092147;
}

.hub-divider {
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

.hub-community-section {
    margin-top: 30px;
    text-align: left;
}

.hub-community-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.community-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.community-block:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-left i {
    font-size: 20px;
}

.cb-left span {
    font-weight: 500;
    font-size: 15px;
}

.cb-arrow {
    opacity: 0.5;
    font-size: 14px;
}

.community-block.whatsapp .cb-left i { color: #25D366; }
.community-block.whatsapp .cb-left span { color: #1a7f3c; }

.community-block.facebook .cb-left i { color: #1877f2; }
.community-block.facebook .cb-left span { color: #1a4fb3; }

.hub-micro-text {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 12px;
}

.hub-social-strip {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.hub-social-list {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.hub-social-link {
    font-size: 22px;
    color: #666;
    transition: all 0.2s ease;
}

.hub-social-link:hover {
    color: #0d2b5c;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    /* Hub form — full width, stacked */
    .hub-form-container {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    .hub-input {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    .hub-btn {
        width: 100% !important;
        height: 48px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }
    .hub-title { font-size: 26px; }

    /* Engagement hub card: reduce padding on mobile */
    .engagement-hub {
        padding: 28px 20px !important;
        margin: 0 !important;
        border-radius: 14px !important;
    }
}

.event-brief-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}
.event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.event-info-item i {
    font-size: 1.5rem;
    color: #dc2626;
    background: #fef2f2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.event-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.event-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}