/*
Theme Name: GeneratePress Newsroom Child
Theme URI: https://generatepress.com
Description: Mid-Slider & Native Swipe Child Theme
Author: Your Name
Template: generatepress
Version: 5.0.0
*/

:root {
    --primary-indigo: #480082;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
}

/* =========================================
   1. The Mid-Sized Hero Slider (Latest Posts)
   ========================================= */
.whatsapp-status-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .whatsapp-status-wrapper {
        max-width: 750px; /* Makes it mid-sized to leave space beside it */
    }
}

.nr-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain; /* Prevents screen from moving when swiping */
}
.nr-slider-track::-webkit-scrollbar { display: none; }

.whatsapp-card {
    position: relative;
    flex: 0 0 100%; /* PC: One slide at a time */
    height: 400px;
    scroll-snap-align: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.whatsapp-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.nr-slide-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 30px 20px 20px 20px;
    color: #fff;
    pointer-events: none;
}

.nr-slide-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
}

.nr-slide-meta {
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
}

/* Category Badge (Top Left of Slider) */
.nr-slide-cat {
    position: absolute;
    top: 20px; left: 20px;
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 10;
}
.nr-slide-cat svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Mobile Adaptations for Slider (Smart Swipe Cards) */
@media (max-width: 767px) {
    .whatsapp-status-wrapper { margin-bottom: 20px; }
    .nr-slider-track { gap: 15px; }
    .whatsapp-card { 
        flex: 0 0 88%; 
        height: 250px; /* Smart responsive height */
        border-radius: 5px; /* Rectangular post card */
    }
    .nr-slide-title { font-size: 1.15rem; }
    .nr-slide-cat { top: 10px; left: 10px; padding: 4px 8px; font-size: 0.75rem; }
    .nr-slide-content { padding: 20px 15px 15px 15px; }
}

/* =========================================
   2. Standard Vertical/Grid Sections
   ========================================= */
.modern-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .modern-scroll-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.nr-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex; flex-direction: column;
}

.nr-card-thumb { height: 180px; position: relative; }
.nr-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.nr-card-cat {
    position: absolute; bottom: 10px; left: 10px;
    display: flex; align-items: center; gap: 4px;
    background: #fff; color: var(--primary-indigo);
    padding: 4px 8px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nr-card-cat svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.nr-card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.nr-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.nr-card-title a { color: var(--text-dark); text-decoration: none; }

/* Global Meta Items */
.smart-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.85rem; cursor: pointer; text-decoration: none;
}
.smart-meta-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.smart-meta-item.liked svg { fill: var(--primary-indigo); stroke: var(--primary-indigo); }

.nr-meta {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 12px; margin-top: auto; color: var(--text-muted);
}
.nr-meta-left { display: flex; gap: 15px; }

/* Slider Meta Override */
.nr-slide-meta .smart-meta-item { color: #fff; }

/* =========================================
   3. Most Read / Instagram Style
   ========================================= */
.instagram-feed-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 15px;
    scrollbar-width: none;
}
.instagram-feed-wrapper::-webkit-scrollbar { display: none; }

.ig-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    flex-direction: row; 
    align-items: center;
    padding: 12px;
    gap: 15px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    display: flex;
}

.ig-card .smart-post-thumb { flex-shrink: 0; }
.ig-card .smart-post-thumb img {
    width: 65px; height: 65px;
    border-radius: 50%;
    border: 2px solid var(--primary-indigo);
    padding: 2px;
    object-fit: cover;
}

.ig-card .smart-post-content {
    padding: 0; border: none; justify-content: center; display: flex; flex-direction: column;
}

.ig-card .smart-category {
    font-size: 0.65rem; padding: 2px 6px; margin-bottom: 5px;
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--primary-indigo); font-weight: 700; text-transform: uppercase;
}
.ig-card .smart-category svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }

.ig-card .smart-post-title { font-size: 0.95rem; margin-bottom: 5px; color: var(--text-dark); font-weight: 700; line-height: 1.2;}

.ig-card .smart-post-meta {
    padding-top: 0; border-top: none; gap: 10px;
    display: flex; color: var(--text-muted);
}
.ig-card .smart-meta-item svg { width: 14px; height: 14px; }

/* =========================================
   4. Custom Bell Notification
   ========================================= */
.custom-bell-box {
    background-color: var(--primary-indigo);
    border-radius: 8px; padding: 40px 20px; text-align: center; margin: 20px 0;
}
.custom-bell-box h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 auto 20px auto; line-height: 1.3;}
.custom-bell-btn {
    display: inline-block; background: #000; color: #fff;
    padding: 14px 28px; border-radius: 5px; font-weight: 600; border: none; cursor: pointer;
}

/* =========================================
   5. Slider Navigation Arrows (PC Only)
   ========================================= */
.whatsapp-status-wrapper {
    position: relative; /* Ensure arrows position relative to the wrapper */
}

.nr-slider-nav {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    width: 45px; 
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.nr-slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.nr-slider-nav.prev { left: 15px; }
.nr-slider-nav.next { right: 15px; }

.nr-slider-nav svg { 
    width: 24px; 
    height: 24px; 
    stroke: currentColor; 
}

@media (max-width: 767px) {
    .nr-slider-nav { display: none; } /* Hide arrows on mobile for native swiping */
}