/* ==========================================================================
   COGNIZA HIGHLIGHTS - BLOG, EVENTS & STORIES STYLESHEET
   ========================================================================== */

:root {
    --blog-primary: #9d00ff;
    --blog-secondary: #0084ff;
    --blog-dark: #0f172a;
    --blog-navy: #130f26;
    --blog-card-bg: #ffffff;
    --blog-text-main: #334155;
    --blog-text-muted: #64748b;
    --blog-border: rgba(0, 0, 0, 0.08);
    --blog-gradient: linear-gradient(135deg, #9d00ff 0%, #0084ff 100%);
    --blog-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --blog-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --blog-shadow-lg: 0 20px 45px rgba(157, 0, 255, 0.12);
}

/* Base Page Wrapper */
.blog-page {
    background-color: #f8fafc;
    color: var(--blog-text-main);
    overflow-x: hidden;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.blog-hero {
    position: relative;
    padding: 70px 20px 50px;
    background: radial-gradient(circle at 10% 20%, rgba(157, 0, 255, 0.07) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 132, 255, 0.07) 0%, transparent 40%),
                #ffffff;
    border-bottom: 1px solid var(--blog-border);
    text-align: center;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.1), rgba(0, 132, 255, 0.1));
    color: #7c3aed;
    border: 1px solid rgba(157, 0, 255, 0.2);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    animation: fadeInDown 0.6s ease;
}

.blog-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    color: var(--blog-navy);
    line-height: 1.18;
    margin: 0 auto 16px;
    max-width: 900px;
    letter-spacing: -0.5px;
}

.blog-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--blog-text-muted);
    max-width: 720px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

.blog-hero-quicknav {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-blog-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-blog-pill.primary {
    background: var(--blog-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
}

.btn-blog-pill.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 0, 255, 0.4);
}

.btn-blog-pill.secondary {
    background: #ffffff;
    color: var(--blog-navy);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-blog-pill.secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   TOP SHOWCASE BANNER: TEAM COGNIZA
   ========================================================================== */
.team-showcase-section {
    padding: 50px 0 25px;
}

.team-showcase-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(157, 0, 255, 0.12);
    box-shadow: var(--blog-shadow-md);
    padding: 36px 36px 32px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-showcase-card:hover {
    box-shadow: var(--blog-shadow-lg);
    border-color: rgba(157, 0, 255, 0.3);
}

.team-showcase-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}

.team-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.1), rgba(0, 132, 255, 0.1));
    color: var(--blog-primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.team-showcase-title {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 900;
    color: var(--blog-navy);
    line-height: 1.2;
    margin: 0 0 10px;
}

.team-showcase-desc {
    font-size: 1.05rem;
    color: var(--blog-text-muted);
    line-height: 1.6;
    margin: 0;
}

.team-showcase-photo {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: clamp(340px, 55vw, 560px);
    background: #0f172a;
    box-shadow: var(--blog-shadow-sm);
    cursor: pointer;
}

.team-showcase-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-showcase-photo:hover img {
    transform: scale(1.02);
}

.team-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 40%, transparent 100%);
    opacity: 0.9;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px 28px;
    transition: opacity 0.3s ease;
}

.team-showcase-photo:hover .team-photo-overlay {
    opacity: 1;
}

.team-photo-caption {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.team-photo-zoom {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.team-showcase-photo:hover .team-photo-zoom {
    transform: scale(1.1);
    background: var(--blog-primary);
}

@media (max-width: 768px) {
    .team-showcase-card {
        padding: 20px 16px 16px;
        border-radius: 18px;
    }
    .team-showcase-photo {
        height: 240px;
    }
    .team-photo-overlay {
        padding: 12px 14px;
    }
    .team-photo-caption {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   2. FEATURED SPOTLIGHT CARD
   ========================================================================== */
.featured-section {
    padding: 30px 0 30px;
}

.featured-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(157, 0, 255, 0.15);
    box-shadow: var(--blog-shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-shadow-lg);
}

.featured-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    background: #0f172a;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-img-wrap img {
    transform: scale(1.04);
}

.featured-spotlight-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: #facc15;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category-badge {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, #ff9933, #ff5722);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.featured-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--blog-navy);
    line-height: 1.25;
    margin: 0 0 14px;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--blog-primary);
}

.featured-desc {
    font-size: 1.02rem;
    color: var(--blog-text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-meta i {
    color: var(--blog-primary);
}

.btn-read-featured {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blog-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(157, 0, 255, 0.25);
}

.btn-read-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(157, 0, 255, 0.35);
}

.btn-read-featured i {
    transition: transform 0.25s ease;
}

.btn-read-featured:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   3. CATEGORIES FILTER BAR & LIVE SEARCH
   ========================================================================== */
.filter-section {
    padding: 30px 0 20px;
    position: sticky;
    top: 70px;
    z-index: 90;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blog-border);
    margin-bottom: 40px;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.category-pills::-webkit-scrollbar {
    height: 4px;
}
.category-pills::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    user-select: none;
}

.filter-pill:hover {
    background: #f1f5f9;
    color: var(--blog-navy);
    border-color: rgba(0,0,0,0.18);
}

.filter-pill.active {
    background: var(--blog-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(157, 0, 255, 0.25);
}

.filter-pill .pill-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.filter-search {
    position: relative;
    min-width: 260px;
    flex-shrink: 0;
}

.filter-search input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-search input:focus {
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(157, 0, 255, 0.12);
}

.filter-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ==========================================================================
   4. EVENT & UPDATE CARDS GRID
   ========================================================================== */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.update-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-shadow: var(--blog-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.update-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--blog-shadow-md);
    border-color: rgba(157, 0, 255, 0.2);
}

.update-card.hidden {
    display: none !important;
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: #0f172a;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.update-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Color tags by category */
.card-category-tag.events { background: linear-gradient(135deg, #ff9933, #f59e0b); }
.card-category-tag.celebrations { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.card-category-tag.company-updates { background: linear-gradient(135deg, #9d00ff, #7c3aed); }
.card-category-tag.achievements { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card-category-tag.workshops { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.card-category-tag.team { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.card-category-tag.education { background: linear-gradient(135deg, #10b981, #059669); }
.card-category-tag.announcements { background: linear-gradient(135deg, #e11d48, #be123c); }
.card-category-tag.gallery { background: linear-gradient(135deg, #8b5cf6, #d946ef); }

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--blog-text-muted);
    margin-bottom: 12px;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta-item i {
    color: var(--blog-primary);
    font-size: 0.85rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blog-navy);
    line-height: 1.35;
    margin: 0 0 10px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--blog-primary);
}

.card-desc {
    font-size: 0.92rem;
    color: var(--blog-text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.card-location {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blog-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-card-read:hover {
    color: var(--blog-secondary);
    transform: translateX(4px);
}

/* Empty state message */
.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    grid-column: 1 / -1;
    display: none;
}
.no-results-box.show {
    display: block;
}
.no-results-box i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

/* ==========================================================================
   5. VISUAL GALLERY SECTION ("MOMENTS THAT MATTER")
   ========================================================================== */
.gallery-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid var(--blog-border);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.section-header .section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.1), rgba(0, 132, 255, 0.1));
    color: var(--blog-primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 800;
    color: var(--blog-navy);
    margin: 0 0 14px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--blog-text-muted);
    line-height: 1.65;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 270px;
    background: #0f172a;
    box-shadow: var(--blog-shadow-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1.1);
    background: var(--blog-primary);
}

.gallery-caption {
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.gallery-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.gallery-date {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0;
}

/* ==========================================================================
   6. LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-img-wrap {
    width: 100%;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090d16;
    overflow: hidden;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 20px 24px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lightbox-info h4 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
}

.lightbox-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-btn:hover {
    background: var(--blog-primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.prev { left: 16px; }
.lightbox-btn.next { right: 16px; }

/* ==========================================================================
   7. NEWSLETTER CTA SECTION
   ========================================================================== */
.newsletter-band {
    padding: 70px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-band::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-box {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-box h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 12px;
}

.newsletter-box p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin: 0 0 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 260px;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form input:focus {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.15);
}

.btn-newsletter-submit {
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    background: var(--blog-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(157, 0, 255, 0.3);
}

.btn-newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 0, 255, 0.45);
}

/* ==========================================================================
   8. INDIVIDUAL EVENT / BLOG POST DETAIL PAGE STYLES
   ========================================================================== */
.post-detail-header {
    padding: 40px 0 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--blog-border);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--blog-text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--blog-primary);
}

.breadcrumbs span.current {
    color: var(--blog-navy);
    font-weight: 600;
}

.post-header-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9933, #ff5722);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.post-main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--blog-navy);
    line-height: 1.2;
    margin: 0 0 20px;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
    color: var(--blog-text-muted);
    font-size: 0.92rem;
}

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta-left span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta-left i {
    color: var(--blog-primary);
}

.post-meta-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--blog-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Post Hero Image */
.post-featured-hero {
    margin: 30px 0 45px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-shadow-md);
    background: #0f172a;
}

.post-featured-hero img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

/* Post Layout Grid (Content + Sidebar) */
.post-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 45px;
    padding: 20px 0 70px;
}

.post-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.post-article-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--blog-navy);
    margin: 35px 0 16px;
    line-height: 1.3;
}

.post-article-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blog-navy);
    margin: 28px 0 12px;
}

.post-article-content p {
    margin: 0 0 20px;
}

.post-lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.7;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--blog-primary);
}

/* Key Event Highlights Box */
.highlights-card {
    background: linear-gradient(135deg, #fdf4ff 0%, #f0f9ff 100%);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 18px;
    padding: 30px;
    margin: 35px 0;
}

.highlights-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blog-navy);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlights-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.highlights-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.highlights-card li i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Event Gallery in Detail Post */
.post-gallery-section {
    margin: 40px 0;
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.post-gallery-item {
    border-radius: 14px;
    overflow: hidden;
    height: 220px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--blog-shadow-sm);
}

.post-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-gallery-item:hover img {
    transform: scale(1.06);
}

/* Quote Callout */
.post-quote {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 35px 0;
    position: relative;
    box-shadow: var(--blog-shadow-sm);
}

.post-quote::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(157, 0, 255, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.post-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: #1e293b;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.post-quote cite {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-primary);
    font-style: normal;
}

/* Bottom Event Pagination Navigation */
.post-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 50px 0 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-nav-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blog-navy);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-arrow:hover {
    color: var(--blog-primary);
    transform: translateX(4px);
}

.btn-nav-arrow.prev:hover {
    transform: translateX(-4px);
}

.btn-nav-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blog-primary);
    background: rgba(157, 0, 255, 0.08);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-hub:hover {
    background: var(--blog-primary);
    color: #ffffff;
}

/* Sidebar Widgets */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--blog-border);
    padding: 24px;
    box-shadow: var(--blog-shadow-sm);
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blog-navy);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--blog-primary);
}

.sidebar-event-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-event-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #475569;
}

.sidebar-event-details li i {
    color: var(--blog-primary);
    margin-top: 3px;
}

.sidebar-event-details strong {
    color: var(--blog-navy);
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-recent-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.sidebar-recent-item:hover {
    transform: translateX(4px);
}

.sidebar-recent-img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
}

.sidebar-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-recent-info h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blog-navy);
    margin: 0 0 4px;
    line-height: 1.3;
}

.sidebar-recent-info span {
    font-size: 0.78rem;
    color: var(--blog-text-muted);
}

.sidebar-cta-card {
    background: var(--blog-gradient);
    color: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(157, 0, 255, 0.25);
}

.sidebar-cta-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.sidebar-cta-card p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px;
    line-height: 1.5;
}

.btn-sidebar-cta {
    display: inline-block;
    background: #ffffff;
    color: var(--blog-navy);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Related Posts Section */
.related-posts-section {
    padding: 50px 0 80px;
    background: #f8fafc;
    border-top: 1px solid var(--blog-border);
}

/* Animations */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-img-wrap {
        min-height: 280px;
    }
    .post-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 50px 15px 35px;
    }
    .featured-content {
        padding: 24px;
    }
    .filter-section {
        top: 60px;
    }
    .filter-search {
        width: 100%;
        min-width: 100%;
    }
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .gallery-item {
        height: 200px;
    }
    .highlights-card ul {
        grid-template-columns: 1fr;
    }
    .post-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .post-pagination-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .btn-nav-arrow, .btn-nav-hub {
        justify-content: center;
    }
}
