/**
 * NENO APP - Main Stylesheet
 * Theme colors are defined as CSS variables for easy customization
 */

/* =============================================================================
   CSS VARIABLES (Theme Colors from config)
   ============================================================================= */
:root {
    /* Primary Colors */
    --neno-primary: #479A1A;
    --neno-primary-dark: #3a7d15;
    --neno-primary-light: #5cb82e;
    --neno-secondary: #F3E15E;
    
    /* Neutral Colors */
    --neno-dark: #1a1a2e;
    --neno-gray-dark: #4a4a4a;
    --neno-gray: #6c757d;
    --neno-gray-light: #e9ecef;
    --neno-light: #f8f9fa;
    --neno-white: #ffffff;
    
    /* Status Colors */
    --neno-success: #28a745;
    --neno-danger: #dc3545;
    --neno-warning: #ffc107;
    --neno-info: #17a2b8;
    
    /* Shadows */
    --neno-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --neno-shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --neno-radius: 12px;
    --neno-radius-sm: 8px;
    --neno-radius-lg: 16px;
    
    /* Transitions */
    --neno-transition: all 0.3s ease;
}

/* =============================================================================
   GLOBAL STYLES
   ============================================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: var(--neno-dark);
    background-color: var(--neno-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile body padding for fixed bottom nav */
body.has-bottom-nav {
    padding-bottom: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--neno-primary);
    text-decoration: none;
    transition: var(--neno-transition);
}

a:hover {
    color: var(--neno-primary-dark);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    border-radius: var(--neno-radius-sm);
    padding: 10px 24px;
    transition: var(--neno-transition);
}

.btn-primary {
    background-color: var(--neno-primary);
    border-color: var(--neno-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--neno-primary-dark);
    border-color: var(--neno-primary-dark);
}

.btn-secondary {
    background-color: var(--neno-secondary);
    border-color: var(--neno-secondary);
    color: var(--neno-dark);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #e5d44d;
    border-color: #e5d44d;
    color: var(--neno-dark);
}

.btn-outline-primary {
    color: var(--neno-primary);
    border-color: var(--neno-primary);
}

.btn-outline-primary:hover {
    background-color: var(--neno-primary);
    border-color: var(--neno-primary);
}

/* =============================================================================
   CARDS
   ============================================================================= */
.card {
    border: none;
    border-radius: var(--neno-radius);
    box-shadow: var(--neno-shadow);
    transition: var(--neno-transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--neno-shadow-lg);
    transform: translateY(-2px);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 700;
    color: var(--neno-dark);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--neno-gray);
    font-size: 0.9rem;
}

/* Teaching Card Styles */
.teaching-card {
    cursor: pointer;
    position: relative;
}

.teaching-card .content-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.teaching-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.teaching-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* =============================================================================
   TEACHING LIST (News-style)
   ============================================================================= */
.teaching-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-radius: var(--neno-radius);
}

@media (max-width: 991.98px) {
    .teaching-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .teaching-list {
        grid-template-columns: 1fr;
    }
}

.teaching-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.teaching-list-item:hover {
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.teaching-list-thumb {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.teaching-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content type overlay on thumbnail */
.teaching-list-type-overlay {
    position: absolute;
    pointer-events: none;
}

/* Video: centered play button on thumbnail */
.teaching-list-type-overlay--video {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.teaching-list-type-overlay--video i {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Text / Audio / Photo: small icon badge on thumbnail */
.teaching-list-type-overlay--badge {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.teaching-list-type-overlay--badge i {
    font-size: 0.85rem;
}

.teaching-list-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.teaching-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teaching-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}

.teaching-list-meta i {
    font-size: 0.75rem;
}

.teaching-list-meta .meta-dot {
    width: 3px;
    height: 3px;
    background-color: #ccc;
    border-radius: 50%;
}

/* Infinite scroll sentinel: invisible trigger for Intersection Observer */
.infinite-scroll-sentinel {
    min-height: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

/* Load more area: visible when there are more items */
.infinite-scroll-load-more-wrap {
    min-height: 60px;
    margin-top: 1rem;
}
.infinite-scroll-load-more-wrap .btn {
    min-width: 200px;
}

/* =============================================================================
   FORMS
   ============================================================================= */
.form-control,
.form-select {
    font-family: 'Quicksand', sans-serif;
    border-radius: var(--neno-radius-sm);
    border: 2px solid var(--neno-gray-light);
    padding: 12px 16px;
    transition: var(--neno-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--neno-primary);
    box-shadow: 0 0 0 3px rgba(71, 154, 26, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neno-dark);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neno-gray);
    cursor: pointer;
    padding: 5px;
    transition: var(--neno-transition);
}

.password-toggle:hover {
    color: var(--neno-primary);
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.navbar {
    background-color: var(--neno-white);
    box-shadow: var(--neno-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--neno-primary) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--neno-gray-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--neno-radius-sm);
    transition: var(--neno-transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--neno-primary) !important;
    background-color: rgba(71, 154, 26, 0.1);
}

/* =============================================================================
   BOTTOM NAVIGATION (Mobile)
   ============================================================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--neno-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--neno-gray);
    padding: 8px 16px;
    border-radius: var(--neno-radius-sm);
    transition: var(--neno-transition);
    flex: 1;
    max-width: 80px;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--neno-primary);
    background-color: rgba(71, 154, 26, 0.1);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Hide bottom nav on desktop */
@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
    
    body.has-bottom-nav {
        padding-bottom: 0;
    }
}

/* Floating WhatsApp button – above bottom nav on mobile */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 82px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    z-index: 1040;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 1.75rem;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 24px;
    }
}

/* =============================================================================
   CATEGORY PILLS
   ============================================================================= */
.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    padding: 8px 20px;
    background-color: var(--neno-white);
    border: 2px solid var(--neno-gray-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neno-gray-dark);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--neno-transition);
}

.category-pill:hover,
.category-pill.active {
    background-color: var(--neno-primary);
    border-color: var(--neno-primary);
    color: var(--neno-white);
}

/* =============================================================================
   CONTENT TYPE FILTERS
   ============================================================================= */
.content-type-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neno-gray);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-link i {
    font-size: 1rem;
}

.filter-link:hover {
    color: var(--neno-primary);
    background-color: rgba(71, 154, 26, 0.08);
}

.filter-link.active {
    color: var(--neno-primary);
    background-color: rgba(71, 154, 26, 0.12);
}

/* =============================================================================
   SEARCH BOX
   ============================================================================= */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 45px;
    padding-right: 45px;
    border-radius: 50px;
    background-color: var(--neno-white);
}

.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neno-gray);
}

.search-box .filter-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neno-gray);
    padding: 8px;
    cursor: pointer;
    transition: var(--neno-transition);
}

.search-box .filter-btn:hover {
    color: var(--neno-primary);
}

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}

.badge-primary {
    background-color: var(--neno-primary);
}

.badge-secondary {
    background-color: var(--neno-secondary);
    color: var(--neno-dark);
}

/* =============================================================================
   AVATAR
   ============================================================================= */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-xl {
    width: 100px;
    height: 100px;
}

/* =============================================================================
   LIKE & COMMENT BUTTONS
   ============================================================================= */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--neno-gray);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--neno-transition);
    border-radius: var(--neno-radius-sm);
}

.action-btn:hover {
    background-color: var(--neno-gray-light);
}

.action-btn.liked {
    color: var(--neno-danger);
}

.action-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* =============================================================================
   TEACHING CONTENT
   ============================================================================= */
/* Teaching Description (HTML content) */
.teaching-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.teaching-description p {
    margin-bottom: 1rem;
}

.teaching-description h1,
.teaching-description h2,
.teaching-description h3,
.teaching-description h4,
.teaching-description h5,
.teaching-description h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--neno-dark);
}

.teaching-description ul,
.teaching-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.teaching-description li {
    margin-bottom: 0.5rem;
}

.teaching-description blockquote {
    border-left: 4px solid var(--neno-primary);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--neno-light);
    border-radius: 0 var(--neno-radius-sm) var(--neno-radius-sm) 0;
    font-style: italic;
    color: var(--neno-gray-dark);
}

.teaching-description a {
    color: var(--neno-primary);
    text-decoration: underline;
}

.teaching-description a:hover {
    color: var(--neno-primary-dark);
}

.teaching-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--neno-radius-sm);
    margin: 1rem 0;
}

.teaching-description table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.teaching-description table th,
.teaching-description table td {
    padding: 0.75rem;
    border: 1px solid var(--neno-gray-light);
}

.teaching-description table th {
    background: var(--neno-light);
    font-weight: 600;
}

.teaching-description pre,
.teaching-description code {
    background: var(--neno-dark);
    color: #f8f8f2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.teaching-description pre {
    padding: 1rem;
    overflow-x: auto;
}

.teaching-description pre code {
    padding: 0;
    background: transparent;
}

/* Teaching Content (Full article body - HTML supported) */
.teaching-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.teaching-content p {
    margin-bottom: 1rem;
}

.teaching-content h1,
.teaching-content h2,
.teaching-content h3,
.teaching-content h4,
.teaching-content h5,
.teaching-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--neno-dark);
}

.teaching-content ul,
.teaching-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.teaching-content li {
    margin-bottom: 0.5rem;
}

.teaching-content blockquote {
    border-left: 4px solid var(--neno-primary);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--neno-light);
    border-radius: 0 var(--neno-radius-sm) var(--neno-radius-sm) 0;
    font-style: italic;
    color: var(--neno-gray-dark);
}

.teaching-content a {
    color: var(--neno-primary);
    text-decoration: underline;
}

.teaching-content a:hover {
    color: var(--neno-primary-dark);
}

.teaching-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--neno-radius-sm);
    margin: 1rem 0;
}

.teaching-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.teaching-content table th,
.teaching-content table td {
    padding: 0.75rem;
    border: 1px solid var(--neno-gray-light);
}

.teaching-content table th {
    background: var(--neno-light);
    font-weight: 600;
}

.teaching-content pre,
.teaching-content code {
    background: var(--neno-dark);
    color: #f8f8f2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.teaching-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.teaching-content pre code {
    padding: 0;
    background: transparent;
}

.teaching-content hr {
    border: none;
    border-top: 2px solid var(--neno-gray-light);
    margin: 2rem 0;
}

/* eBook reader: PDF viewer + download */
.ebook-reader-block {
    width: 100%;
}

.ebook-pdf-viewer {
    width: 100%;
    height: 0;
    padding-bottom: min(120%, 800px);
    position: relative;
    background: #f5f5f5;
}

.ebook-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
}

/* =============================================================================
   COMMENTS
   ============================================================================= */
.comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--neno-gray-light);
}

.comment:last-child {
    border-bottom: none;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 700;
    color: var(--neno-dark);
    margin-right: 8px;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--neno-gray);
}

.comment-text {
    margin: 8px 0;
    color: var(--neno-gray-dark);
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-actions a {
    font-size: 0.85rem;
    color: var(--neno-gray);
}

.comment-actions a:hover {
    color: var(--neno-primary);
}

/* Nested Comments */
.comment-replies {
    margin-left: 52px;
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid var(--neno-gray-light);
}

/* =============================================================================
   LOADER
   ============================================================================= */
.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--neno-gray-light);
    border-top-color: var(--neno-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    border: none;
    border-radius: var(--neno-radius-sm);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--neno-success);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--neno-danger);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--neno-info);
}

/* =============================================================================
   HERO SECTION (Teaching Detail)
   ============================================================================= */
.hero-media {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--neno-dark);
}

.hero-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

/* Video play overlay on teaching detail hero */
.hero-media-type-overlay {
    position: absolute;
    pointer-events: none;
}

.hero-media-type-overlay--video {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-type-overlay--video i {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: var(--neno-white);
}

.hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-media {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* =============================================================================
   RELATED TEACHINGS LIST
   ============================================================================= */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    margin: -8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.related-item:hover {
    background-color: #f8f9fa;
}

.related-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.8rem;
    color: #888;
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--neno-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    color: var(--neno-gray-light);
}

.empty-state h3 {
    font-weight: 700;
    margin-bottom: 8px;
}

/* =============================================================================
   RESPONSIVE UTILITIES
   ============================================================================= */
@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* =============================================================================
   FEATURED TEACHING
   ============================================================================= */
.featured-teaching {
    position: relative;
    height: 250px;
    border-radius: var(--neno-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
}

.featured-teaching::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--neno-white);
}

.featured-content .badge {
    margin-bottom: 8px;
}

.featured-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.featured-content .btn {
    margin-top: 8px;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neno-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.learn-more-link:hover {
    color: var(--neno-white);
    text-decoration: underline;
}

.learn-more-link i {
    transition: transform 0.2s ease;
}

.learn-more-link:hover i {
    transform: translateX(4px);
}

/* =============================================================================
   LIST VIEW (News-style layout)
   ============================================================================= */
.teaching-list-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--neno-white);
    border-radius: var(--neno-radius);
    margin-bottom: 12px;
    box-shadow: var(--neno-shadow);
    transition: var(--neno-transition);
    cursor: pointer;
}

.teaching-list-item:hover {
    box-shadow: var(--neno-shadow-lg);
    transform: translateY(-2px);
}

.teaching-list-item .thumbnail {
    width: 100px;
    height: 80px;
    border-radius: var(--neno-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.teaching-list-item .content {
    flex: 1;
    min-width: 0;
}

.teaching-list-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--neno-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teaching-list-item .meta {
    font-size: 0.8rem;
    color: var(--neno-gray);
}

/* =============================================================================
   SOCIAL SHARE
   ============================================================================= */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neno-white);
    transition: var(--neno-transition);
}

.share-btn:hover {
    transform: scale(1.1);
    color: var(--neno-white);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.copy-link {
    background-color: var(--neno-gray);
}

/* =============================================================================
   PWA STYLES - Offline Indicator, Install Prompt, Safe Areas
   ============================================================================= */

/* iOS Safe Area Insets for notch and home indicator */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    body.has-bottom-nav {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--neno-warning);
    color: var(--neno-dark);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

@supports (padding-top: env(safe-area-inset-top)) {
    .offline-indicator {
        padding-top: calc(8px + env(safe-area-inset-top));
    }
}

/* PWA Install Prompt */
.pwa-install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--neno-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-install-prompt.show {
    transform: translateY(0);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pwa-install-prompt {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

body.has-bottom-nav .pwa-install-prompt {
    bottom: 70px;
}

@media (min-width: 992px) {
    body.has-bottom-nav .pwa-install-prompt {
        bottom: 0;
    }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--neno-radius-sm);
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--neno-dark);
}

.pwa-install-text .pwa-install-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--neno-gray);
}

@media (max-width: 380px) {
    .pwa-install-text .pwa-install-subtitle {
        display: none;
    }
}

.pwa-install-btn {
    flex-shrink: 0;
    background-color: var(--neno-primary);
    border-color: var(--neno-primary);
    padding: 8px 20px;
    font-weight: 600;
}

.pwa-install-btn:hover {
    background-color: var(--neno-primary-dark);
    border-color: var(--neno-primary-dark);
}

/* Icon-only install button for compact look */
.pwa-install-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--neno-radius-sm);
}

.pwa-install-btn-icon i {
    font-size: 1.25rem;
}

.pwa-install-close {
    flex-shrink: 0;
    opacity: 0.5;
}

.pwa-install-close:hover {
    opacity: 1;
}

/* Push notifications prompt (reuses .pwa-install-prompt layout) */
.push-prompt .push-prompt-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--neno-radius-sm);
    background: rgba(71, 154, 26, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.push-prompt .push-prompt-icon-wrap i {
    font-size: 1.5rem;
    color: var(--neno-primary);
}
.push-prompt .push-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Standalone PWA mode adjustments */
@media all and (display-mode: standalone) {
    .navbar {
        padding-top: 8px;
    }
    
    @supports (padding-top: env(safe-area-inset-top)) {
        .navbar {
            padding-top: calc(8px + env(safe-area-inset-top));
        }
        
        header.d-lg-none {
            padding-top: calc(12px + env(safe-area-inset-top));
        }
    }
}

/* Hide browser-specific elements in PWA mode */
@media all and (display-mode: standalone) {
    .pwa-hide-standalone {
        display: none !important;
    }
}
