/* 
   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;
}

/* --- MODERN ENGAGEMENT HUB --- */
.engagement-hub {
    max-width: 600px;
    margin: 60px auto;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    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: 280px;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    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: 480px) {
    .hub-input { width: 100%; }
    .hub-btn { width: 100%; }
    .hub-title { font-size: 28px; }
}

.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);
}