/* ============================================================
   NEWS LISTING PAGE (latest-news.php) — nl-* prefix
   ============================================================ */

/* Hero Banner */
.nl-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 60px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}

.nl-hero__overlay {
    position: absolute;
    inset: 0;
    background: url('../images/gallery/yoga-rishikes-piyf-yttc-002.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.nl-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.nl-hero__subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 600px;
}

/* Breadcrumb */
.nl-breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.nl-breadcrumb li::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255,255,255,0.35);
}

.nl-breadcrumb li:last-child::after {
    display: none;
}

.nl-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.nl-breadcrumb a:hover {
    color: #ff9900;
}

.nl-breadcrumb .active {
    color: #ff9900;
}

/* Content Section */
.nl-content {
    background: #f9f6f1;
    padding: 3rem 0 4rem;
    min-height: 400px;
}

/* Filter Bar */
.nl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e0d5;
}

.nl-filter__tab {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #fff;
    border: 1px solid #e0d8cd;
    transition: all 0.25s ease;
}

.nl-filter__tab:hover {
    color: #ff9900;
    border-color: #ff9900;
    background: rgba(255,153,0,0.05);
}

.nl-filter__tab--active {
    color: #fff;
    background: #ff9900;
    border-color: #ff9900;
}

.nl-filter__tab--active:hover {
    color: #fff;
    background: #e68a00;
}

/* Results Count */
.nl-count {
    font-size: 0.8125rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* News Grid */
.nl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.nl-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* News Card — light variant */
.nl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275),
                box-shadow 0.35s ease;
}

.nl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.nl-card--featured {
    border: 2px solid rgba(255,153,0,0.3);
}

.nl-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nl-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.nl-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nl-card:hover .nl-card__image img {
    transform: scale(1.06);
}

.nl-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.nl-card__type--news { background: rgba(52,152,219,0.9); }
.nl-card__type--event { background: rgba(243,156,18,0.9); }
.nl-card__type--announcement { background: rgba(155,89,182,0.9); }

.nl-card__star {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ff9900;
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.nl-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.nl-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.nl-card__category {
    color: #ff9900;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nl-card__date {
    color: #999;
}

.nl-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-card__excerpt {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ff9900;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: gap 0.25s ease;
}

.nl-card:hover .nl-card__readmore {
    gap: 0.75rem;
}

/* Pagination */
.nl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
}

.nl-pagination__btn,
.nl-pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #fff;
    border: 1px solid #e0d8cd;
    transition: all 0.2s ease;
}

.nl-pagination__btn:hover,
.nl-pagination__num:hover {
    color: #ff9900;
    border-color: #ff9900;
}

.nl-pagination__num--active {
    background: #ff9900;
    color: #fff;
    border-color: #ff9900;
}

.nl-pagination__dots {
    padding: 0 0.25rem;
    color: #999;
}

/* Empty State */
.nl-empty {
    text-align: center;
    padding: 4rem 0;
    color: #999;
}

.nl-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.nl-empty h3 {
    font-family: 'Playfair Display', serif;
    color: #555;
    margin-bottom: 0.5rem;
}

/* CTA Button */
.nl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ff9900, #e68a00);
    box-shadow: 0 4px 15px rgba(255,153,0,0.3);
    transition: all 0.3s ease;
}

.nl-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,153,0,0.4);
    color: #fff;
}


/* ============================================================
   NEWS POST PAGE (news-post.php) — np-* prefix
   ============================================================ */

/* Post Hero */
.np-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 50px;
    overflow: hidden;
}

.np-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(4px);
}

.np-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.4) 0%, rgba(26,26,46,0.95) 100%);
}

.np-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.np-hero__badge {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.np-hero__badge--news { background: rgba(52,152,219,0.9); }
.np-hero__badge--event { background: rgba(243,156,18,0.9); }
.np-hero__badge--announcement { background: rgba(155,89,182,0.9); }

.np-hero__category {
    color: #ff9900;
    font-weight: 600;
    font-size: 0.875rem;
}

.np-hero__date {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.np-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    max-width: 800px;
}

/* Article Content */
.np-content {
    background: #f9f6f1;
    padding: 3rem 0;
}

.np-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.np-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.np-excerpt {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    font-weight: 600;
    border-left: 4px solid #ff9900;
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.np-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 2rem;
}

.np-body p {
    margin-bottom: 1.25rem;
}

.np-body h2, .np-body h3, .np-body h4 {
    font-family: 'Playfair Display', serif;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.np-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.np-body blockquote {
    border-left: 4px solid #ff9900;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255,153,0,0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

/* Video Embed */
.np-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.np-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tags */
.np-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid #e8e0d5;
    margin-bottom: 1.5rem;
}

.np-tags > i {
    color: #999;
    font-size: 0.875rem;
}

.np-tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    background: #f0ebe4;
    transition: all 0.2s ease;
}

.np-tag:hover {
    background: rgba(255,153,0,0.12);
    color: #ff9900;
}

/* Share Buttons */
.np-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e8e0d5;
    flex-wrap: wrap;
}

.np-share__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
}

.np-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.np-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}

.np-share__btn--fb { background: #1877f2; }
.np-share__btn--tw { background: #1da1f2; }
.np-share__btn--wa { background: #25d366; }
.np-share__btn--em { background: #ff9900; }

/* Related Articles */
.np-related {
    background: #fff;
    padding: 3rem 0;
    border-top: 1px solid #e8e0d5;
}

.np-related__heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 2rem;
}


/* ============================================================
   RESPONSIVE — News Pages
   ============================================================ */
@media (max-width: 991px) {
    .nl-grid,
    .nl-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .nl-hero__title,
    .np-hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .nl-grid,
    .nl-grid--3 {
        grid-template-columns: 1fr;
    }
    .nl-hero {
        padding: 100px 0 40px;
    }
    .nl-hero__title {
        font-size: 1.75rem;
    }
    .np-hero {
        padding: 100px 0 35px;
    }
    .np-hero__title {
        font-size: 1.5rem;
    }
    .nl-filter {
        gap: 0.375rem;
    }
    .nl-filter__tab {
        padding: 0.375rem 0.875rem;
        font-size: 0.8rem;
    }
    .nl-card__image {
        height: 180px;
    }
    .np-excerpt {
        font-size: 1rem;
    }
}
