/*
Theme Name: Tamil Nation News
Theme URI: https://tamilnationnews.com
Author: Tamil Nation News
Description: A premium, modern Tamil news theme cloned from TamilWin and rebranded for Tamil Nation News.
Version: 1.0.0
Text Domain: tamilnation-news
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Mukta+Malar:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #FF6600;
    --primary-gradient: linear-gradient(135deg, #FF6600 0%, #FF9900 100%);
    --secondary-color: #FFCC00;
    --accent-color: #CC0000;
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --header-height: 80px;
    --nav-height: 50px;
    --max-width: 1200px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: #000;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.ticker-flex {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--accent-color);
    padding: 2px 10px;
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
}

/* Death Notices */
.obituary-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.obituary-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.obituary-info p {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.obituary-info span {
    font-size: 0.8rem;
    color: #888;
}

.view-all {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
}

/* Popular News Ranking */
.popular-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.popular-item .rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ddd;
    min-width: 30px;
}

.popular-item p {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

.popular-item:hover .rank {
    color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Mukta Malar', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.home .page-header,
.front-page .page-header {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--primary-gradient);
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: white;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-family: 'Mukta Malar', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: white;
}

.footer-about .logo-text {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.footer-about .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-about img {
    height: 50px;
    margin-bottom: 0;
}

.header-top-links {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.header-top-links a:hover {
    color: var(--secondary-color);
}

/* Nav Styles */
nav {
    background: var(--surface-color);
    height: var(--nav-height);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links li.active a {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Featured Main Section - Horizontal Layout */
.featured-main {
    margin-top: 20px;
    margin-bottom: 25px;
}

.main-featured-card.horizontal {
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.featured-img-wrap {
    flex: 0 0 250px;
    height: 180px;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content-wrap {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tag-row {
    margin-bottom: 15px;
}

.main-tag-pill {
    background: #e12727;
    color: white;
    padding: 3px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

.main-tag-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-right: 8px;
}

.featured-content-wrap h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: auto;
}

.featured-content-wrap h2 a:hover {
    color: var(--primary-color);
}

.news-meta-time {
    color: #888;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Webstories V3 (Updated for smaller size) */
.webstories-section {
    margin-bottom: 35px;
}

.section-header-wrap {
    margin-bottom: 20px;
    position: relative;
}

.section-title-alt {
    font-size: 1.25rem;
    font-weight: 700;
    padding-bottom: 8px;
}

.pink-text {
    color: #d81b60;
}

.title-underline-gradient {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #d81b60 20%, #448aff 80%);
    opacity: 0.6;
}

.webstories-container {
    position: relative;
    padding: 0 10px;
    /* Reduced padding */
}

.webstories-slider {
    display: flex;
    gap: 15px;
    /* Reduced gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.webstories-slider::-webkit-scrollbar {
    display: none;
}

.webstory-card-v3 {
    min-width: 200px;
    /* Reduced card width significantly */
    width: 200px;
    /* Fixed width */
    height: 320px;
    /* Adjusted height */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    background: #000;
}

.webstory-card-v3 .story-img-container {
    width: 100%;
    height: 100%;
}

.webstory-card-v3 .story-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.webstory-card-v3:hover .story-img-container img {
    transform: scale(1.05);
}

.webstory-card-v3 .story-content-v3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.webstory-card-v3 h4 {
    margin: 0;
}

.webstory-card-v3 h4 a {
    color: white;
    font-size: 1rem;
    /* Slightly smaller font */
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.short-story-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.play-btn-overlay {
    position: absolute;
    bottom: 80px;
    /* Adjusted position */
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.play-icon {
    color: white;
    font-size: 0.7rem;
    margin-left: 2px;
}

.story-content-v3 {
    padding: 12px;
    background: #0d1117;
}

.story-content-v3 h4 {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-content-v3 p {
    color: #8b949e;
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-arrow {
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-arrow {
    left: -12px;
}

.next-arrow {
    right: -12px;
}

.slider-arrow::after {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    display: inline-block;
}

.prev-arrow::after {
    transform: rotate(-135deg);
}

.next-arrow::after {
    transform: rotate(45deg);
}

/* Section Titles */
.section-title {
    padding: 8px 15px;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 700;
}

.pink-title {
    background: #E91E63;
}

.orange-title {
    background: #FF9800;
}

.red-title {
    background: #F44336;
}

/* Content Columns */
.content-columns {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* Left Column - News List */
.news-list {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.list-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.list-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.list-item h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Right Column - Grid */
.news-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-item-v2 {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.grid-item-v2:hover {
    transform: translateY(-5px);
}

.grid-item-v2 .img-wrap {
    height: 180px;
}

.grid-item-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-v2 h4 {
    padding: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.top-ad {
    margin-top: 10px;
}

.sidebar-ad {
    margin-top: 30px;
    height: 250px;
}

/* Sidebar News */
.sidebar-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-news-item h4 {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
/* Ad Banner */
.ad-banner {
    width: 100%;
    max-width: var(--max-width);
    margin: 30px auto;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-banner::before {
    content: 'Advertisement / விளம்பரம்';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.6rem;
    color: #bbb;
}

.ad-banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 50px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .content-columns {
        grid-template-columns: 1fr;
    }

    .featured-img-container {
        height: 300px;
    }

    .featured-text h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-columns {
        grid-template-columns: 1fr !important;
    }

    .featured-grid-layout {
        grid-template-columns: 1fr !important;
    }

    .small-news-item {
        margin-bottom: 25px !important;
    }

    .grid-news-card {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 600px) {
    .news-grid-v2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 1rem;
    }
}

/* =========================================
   SINGLE POST LAYOUT (New Premium Design)
   ========================================= */

.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.content-area {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.post-header-new h1 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Meta Row: Categories | Time */
.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.meta-category a {
    background: #e3f2fd;
    color: #1e88e5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
    text-transform: uppercase;
}

.meta-time {
    color: #777;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Author Bar (Gray Box) */
.author-bar {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.author-role {
    font-size: 0.8rem;
    color: #f39c12;
    /* Gold color for role */
    font-weight: 600;
}

.report-btn a {
    color: #e67e22;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: #f39c12;
    padding: 8px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 5px;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.share-icon:hover {
    transform: translateY(-3px);
}

.share-icon.fb {
    background: #1877f2;
}

.share-icon.tw {
    background: #1da1f2;
}

.share-icon.wa {
    background: #25d366;
}

.share-icon.email {
    background: #555;
}

.whatsapp-join-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #25d366;
    color: #25d366;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-join-btn a:hover {
    background: #25d366;
    color: #fff;
}

.whatsapp-join-btn i {
    font-size: 1.5rem;
}

.wa-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.wa-text span {
    font-size: 0.65rem;
    font-weight: 700;
}

.wa-text strong {
    font-size: 0.9rem;
    font-weight: 800;
}

/* Content Styles */
.post-thumbnail-wrapper-new img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
}

.post-content-new {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content-new p {
    margin-bottom: 20px;
}

.embedded-warning-box {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ffccbc;
    padding: 15px;
    border-radius: 8px;
    background: #fff5f2;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.05);
}

.warning-icon {
    flex-shrink: 0;
    width: 60px;
}

.warning-icon img {
    width: 100%;
    border-radius: 4px;
}

.embedded-warning-box .warning-text h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #d32f2f;
    font-weight: 700;
    line-height: 1.4;
}

/* Fact Check Section */
.fact-check-section {
    margin-top: 40px;
    background: #fdfdfd;
    border-left: 4px solid #333;
    padding: 20px;
}

.fact-check-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.fact-check-section p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .social-share-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Single Post Styles */
.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.post-header h1 {
    font-size: 1.8rem;
    margin: 15px 0;
    line-height: 1.3;
    font-weight: 700;
}

.post-meta-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-meta-wrapper span {
    margin-right: 15px;
}

.post-thumbnail-wrapper {
    margin-bottom: 30px;
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

/* Sidebar Death Notices */
.death-notices-sidebar {
    margin-top: 30px;
}

.death-notices-sidebar h3 {
    border-left-color: #333;
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-left: 4px solid #333;
}

/* =========================================
   EXPERT NEWS LAYOUT (V2) - Professional Port
   ========================================= */

.post-header-expert {
    margin-bottom: 30px;
}

.post-header-expert h1 {
    font-family: 'Mukta Malar', sans-serif !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #1a1a1a !important;
    margin: 0 0 20px 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .post-header-expert h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
}

.tags-list-v2 {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.pill-tag {
    background: #f0f2f5;
    color: #5d78ff;
    padding: 3px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.post-time-v2 {
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Author Bar Expert */
.author-bar-v2 {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.author-main-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-initials-avatar {
    width: 42px;
    height: 42px;
    background: #fdf2f2;
    color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.author-meta-v2 {
    display: flex;
    flex-direction: column;
}

.author-name-v2 {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.author-cat-v2 {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-style: italic;
}

.report-btn-v2 {
    color: #f39c12;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Share Bar Expert */
.share-bar-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.share-main-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label-v2 {
    background: #f39c12;
    color: #fff;
    padding: 10px 5px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-radius: 4px;
}

.share-icons-v2 {
    display: flex;
    gap: 10px;
}

.share-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.share-circle:hover {
    transform: translateY(-3px);
}

.wa-join-badge {
    background: #fff;
    border: 2px solid #25d366;
    border-radius: 50px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.wa-join-badge:hover {
    background: #25d366;
    color: #fff !important;
}

.wa-join-badge:hover .wa-badge-text span,
.wa-join-badge:hover .wa-badge-text strong,
.wa-join-badge:hover .wa-badge-icon {
    color: #fff !important;
}

.wa-badge-icon {
    font-size: 1.4rem;
    color: #25d366;
}

.wa-badge-text {
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.wa-badge-text span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #333;
}

.wa-badge-text strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #333;
}

/* Inline Related Box */
.inline-related-box {
    border: 1px dashed #ccc;
    padding: 15px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fafafa;
    border-radius: 8px;
}

.inline-rel-thumb {
    flex: 0 0 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.inline-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inline-rel-title {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 700;
    margin: 0;
}

.inline-rel-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.inline-rel-title a:hover {
    color: var(--primary-color);
}

/* Sidebar Astrology Widget */
.astrology-widget {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.astro-header {
    background: #8e1a1a;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.astro-header sup {
    background: #ffeb3b;
    color: #000;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    margin-left: 5px;
}

.astro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

.astro-card {
    border: 1px solid #f0f0f0;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s;
}

.astro-card:hover {
    transform: translateY(-3px);
    border-color: #8e1a1a;
}

.astro-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 10px;
    display: block;
}

.astro-name {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 5px 0;
    color: #333;
}

.astro-rating {
    font-size: 0.8rem;
    color: #f39c12;
    margin-bottom: 12px;
}

.astro-btn {
    background: #e74c3c;
    color: #fff;
    display: block;
    padding: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
}

/* Sidebar Day Grid */
.sidebar-days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.day-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.day-box:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Special Articles Box */
.special-articles-box {
    background: #1a5232;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.special-articles-box h3 {
    font-size: 1.15rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 800;
}

.side-featured-item img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
}

.side-featured-item h4 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
}

.side-featured-item h4 a {
    color: #fff;
    text-decoration: none;
}

.side-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* =====================================================
   SINGLE POST PAGE — VIZHITHTHIRAINEWS PROFESSIONAL STYLE
   ===================================================== */

.sp-page-wrapper {
    max-width: 1200px;
    margin: 22px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* POST CARD */
.sp-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* CATEGORY RIBBON */
.sp-cat-ribbon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px 0;
    flex-wrap: wrap;
}

.sp-cat-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-cat-badge:nth-child(even) {
    background: #1a5232;
}

.sp-date-top {
    margin-left: auto;
    font-size: 0.78rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* POST TITLE */
.sp-post-title {
    font-family: 'Mukta Malar', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.35;
    color: #111;
    padding: 14px 22px 10px;
}

@media (max-width: 600px) {
    .sp-post-title {
        font-size: 1.35rem;
        padding: 12px 14px 8px;
    }
}

/* META STRIP */
.sp-meta-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 22px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.sp-meta-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #666;
}

.sp-meta-chip i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.sp-author-chip {
    font-weight: 700;
    color: #333;
}

.sp-author-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #cc4400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
}

/* SHARE BAR */
.sp-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 12px;
}

.sp-share-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-share-label {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 4px;
    border-radius: 3px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sp-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sp-fb {
    background: #1877f2;
}

.sp-tw {
    background: #1da1f2;
}

.sp-wa {
    background: #25d366;
}

.sp-tg {
    background: #0088cc;
}

.sp-mail {
    background: #555;
}

.sp-wa-channel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    padding: 7px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.sp-wa-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.sp-wa-channel-btn i {
    font-size: 1.2rem;
}

.sp-wa-channel-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sp-wa-channel-text small {
    font-size: 0.6rem;
    opacity: 0.9;
}

.sp-wa-channel-text strong {
    font-size: 0.85rem;
    font-weight: 800;
}

/* FEATURED IMAGE */
.sp-featured-img {
    width: 100%;
    overflow: hidden;
}

.sp-featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* POST BODY */
.sp-post-body {
    padding: 24px 22px;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #2d2d2d;
}

.sp-post-body p {
    margin-bottom: 20px;
}

.sp-post-body h2,
.sp-post-body h3 {
    font-family: 'Mukta Malar', sans-serif;
    font-weight: 800;
    margin: 30px 0 12px;
    color: #111;
}

.sp-post-body h2 {
    font-size: 1.5rem;
}

.sp-post-body h3 {
    font-size: 1.25rem;
}

/* INLINE RELATED */
.sp-inline-related {
    border-left: 4px solid var(--primary-color);
    background: #fff8f3;
    padding: 14px 16px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.08);
}

.sp-inline-rel-label {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    text-transform: uppercase;
}

.sp-inline-rel-content {
    flex: 1;
}

.sp-inline-rel-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0;
}

.sp-inline-rel-content h4 a {
    color: inherit;
    text-decoration: none;
}

.sp-inline-rel-content h4 a:hover {
    color: var(--primary-color);
}

.sp-inline-rel-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.sp-inline-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FACT CHECK */
.sp-fact-check {
    background: #fdfdfd;
    border-left: 4px solid #333;
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
}

.sp-fact-check h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-fact-check h3 i {
    color: var(--primary-color);
}

.sp-fact-check p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* TAGS */
.sp-post-tags {
    padding: 16px 22px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sp-tags-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

.sp-tag-pill {
    background: #f0f2f5;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.sp-tag-pill:hover {
    background: var(--primary-color);
    color: #fff;
}

/* BOTTOM SHARE */
.sp-bottom-share {
    padding: 16px 22px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-bottom-share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
}

/* RELATED SECTION */
.sp-related-section {
    padding: 22px;
    border-top: 3px solid var(--primary-color);
}

.sp-related-title {
    font-family: 'Mukta Malar', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-related-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 3px;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sp-related-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.sp-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sp-related-card-img {
    height: 130px;
    overflow: hidden;
}

.sp-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sp-related-card:hover .sp-related-card-img img {
    transform: scale(1.05);
}

.sp-related-card-body {
    padding: 10px 12px 12px;
}

.sp-related-cat {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.sp-related-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

.sp-related-time {
    font-size: 0.72rem;
    color: #999;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== SIDEBAR ===== */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sp-widget {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sp-widget-header {
    padding: 12px 16px;
    font-family: 'Mukta Malar', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.sp-widget-header i {
    font-size: 0.9rem;
    opacity: 0.85;
}

.sp-orange {
    background: var(--primary-color);
}

.sp-red {
    background: #c00;
}

.sp-green {
    background: #1a5232;
}

.sp-dark {
    background: #1a1a2e;
}

.sp-widget-body {
    padding: 14px;
}

.sp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: auto;
}

.sp-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: spPulse 1s infinite;
}

@keyframes spPulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

/* TRENDING ITEMS */
.sp-trending-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    text-decoration: none;
}

.sp-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-trend-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: #e8e8e8;
    min-width: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.sp-trending-item:hover .sp-trend-num {
    color: var(--primary-color);
}

.sp-trend-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

.sp-trending-item:hover .sp-trend-title {
    color: var(--primary-color);
}

.sp-trend-time {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 3px;
}

/* SIDEBAR NEWS ENTRIES */
.sp-sn-entry {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.sp-sn-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-sn-thumb {
    flex: 0 0 72px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.sp-sn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sp-sn-entry:hover .sp-sn-thumb img {
    transform: scale(1.08);
}

.sp-sn-content {
    flex: 1;
}

.sp-sn-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
}

.sp-sn-entry:hover .sp-sn-title {
    color: var(--primary-color);
}

.sp-sn-time {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* AD WIDGET */
.sp-ad-widget {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.sp-ad-label {
    font-size: 0.62rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.sp-ad-placeholder {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f2f5, #e8eaed);
    margin: 10px;
    border-radius: 8px;
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* SOCIAL FOLLOW */
.sp-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sp-social-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    transition: transform 0.2s;
}

.sp-social-btn:hover {
    transform: translateY(-2px);
}

.sp-sfb {
    background: #1877f2;
}

.sp-syt {
    background: #ff0000;
}

.sp-swa {
    background: #25d366;
}

.sp-stg {
    background: #0088cc;
}

.sp-social-btn small {
    font-size: 0.65rem;
    opacity: 0.85;
    font-weight: 400;
}

.sp-social-btn span {
    font-size: 0.75rem;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sp-page-wrapper {
        grid-template-columns: 1fr;
    }

    .sp-sidebar {
        display: none;
    }

    .sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sp-page-wrapper {
        padding: 0 10px;
        margin: 14px auto;
        gap: 16px;
    }

    .sp-cat-ribbon {
        padding: 12px 14px 0;
    }

    .sp-post-title {
        font-size: 1.3rem;
        padding: 12px 14px 8px;
    }

    .sp-meta-strip,
    .sp-share-bar,
    .sp-post-body,
    .sp-post-tags,
    .sp-bottom-share {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sp-related-grid {
        grid-template-columns: 1fr;
    }

    .sp-related-section {
        padding: 16px 14px;
    }
}