/* ============================================
   RELAXMODAPK NEWS SECTION & CARD STYLES
   ============================================ */

/* News Archive Hero & Header */
.news-archive-hero {
    background: linear-gradient(135deg, var(--rm-bg-secondary) 0%, var(--rm-bg-primary) 100%);
    border-bottom: 1px solid var(--rm-border);
    padding: var(--rm-spacing-2xl) 0;
    margin-bottom: var(--rm-spacing-xl);
    position: relative;
    overflow: hidden;
}

.news-archive-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--rm-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.news-archive-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rm-text-primary);
    margin-bottom: var(--rm-spacing-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-archive-title i {
    color: var(--rm-accent);
}

.news-archive-subtitle {
    font-size: 1.05rem;
    color: var(--rm-text-secondary);
    max-width: 650px;
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rm-spacing-lg);
    margin-bottom: var(--rm-spacing-2xl);
}

/* News Card */
.news-card {
    background: var(--rm-bg-card);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none !important;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--rm-border-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.news-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: var(--rm-bg-secondary);
    overflow: hidden;
}

.news-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rm-accent);
    color: var(--rm-text-on-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--rm-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.news-card-content {
    padding: var(--rm-spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--rm-text-muted);
    margin-bottom: 10px;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rm-text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title {
    color: var(--rm-accent);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--rm-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--rm-spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--rm-spacing-md);
    border-top: 1px solid var(--rm-border-light);
    margin-top: auto;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--rm-text-secondary);
    font-weight: 500;
}

.news-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.news-card-readmore {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rm-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.news-card:hover .news-card-readmore {
    transform: translateX(4px);
}

/* ============================================
   SINGLE NEWS ARTICLE UI
   ============================================ */

.single-news-container {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--rm-spacing-xl) 16px;
}

.single-news-header {
    margin-bottom: var(--rm-spacing-lg);
}

.single-news-category {
    display: inline-block;
    background: var(--rm-accent-glow);
    color: var(--rm-accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--rm-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--rm-spacing-md);
    border: 1px solid var(--rm-border-accent);
}

.single-news-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--rm-text-primary);
    line-height: 1.3;
    margin-bottom: var(--rm-spacing-lg);
}

.single-news-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--rm-bg-secondary);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    margin-bottom: var(--rm-spacing-xl);
}

.single-news-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-news-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--rm-accent);
}

.single-news-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rm-text-primary);
    margin: 0;
}

.single-news-date {
    font-size: 0.82rem;
    color: var(--rm-text-muted);
    margin: 2px 0 0;
}

.single-news-share-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--rm-radius-sm);
    background: var(--rm-bg-card);
    border: 1px solid var(--rm-border);
    color: var(--rm-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.news-share-btn:hover {
    background: var(--rm-accent);
    color: var(--rm-text-on-accent);
    border-color: var(--rm-accent);
}

.single-news-hero-img-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--rm-radius-xl);
    overflow: hidden;
    margin-bottom: var(--rm-spacing-xl);
    border: 1px solid var(--rm-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.single-news-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.single-news-content {
    background: var(--rm-bg-secondary);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-xl);
    padding: var(--rm-spacing-2xl);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rm-text-secondary);
    margin-bottom: var(--rm-spacing-2xl);
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
    color: var(--rm-text-primary);
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.single-news-content p {
    margin-bottom: 1.5em;
}

.single-news-content a {
    color: var(--rm-accent);
    text-decoration: underline;
}

.single-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rm-radius-md);
    margin: 1.5em 0;
}

/* Author Bio Footer Box */
.single-news-author-box {
    background: var(--rm-bg-card);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    padding: var(--rm-spacing-xl);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: var(--rm-spacing-2xl);
}

.single-news-author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--rm-accent);
    flex-shrink: 0;
}

.single-news-author-box-info h4 {
    color: var(--rm-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.single-news-author-box-info p {
    color: var(--rm-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Related News Section */
.related-news-section {
    margin-top: var(--rm-spacing-3xl);
}

.related-news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rm-text-primary);
    margin-bottom: var(--rm-spacing-lg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-news-title i {
    color: var(--rm-accent);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-news-title {
        font-size: 1.9rem;
    }

    .single-news-content {
        padding: var(--rm-spacing-lg);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-archive-title {
        font-size: 1.7rem;
    }

    .single-news-title {
        font-size: 1.5rem;
    }

    .single-news-author-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-news-author-box {
        flex-direction: column;
        text-align: center;
    }

    .single-news-content {
        font-size: 0.98rem;
        padding: 18px;
    }
}
