/*
Theme Name: Vizhiththirai News
Theme URI: https://vizhiththirainews.com
Author: Vizhiththirai Media Network
Description: A premium, modern Tamil news theme for Vizhiththirai News.
Version: 1.1.0
Text Domain: vizhiththirai-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: #0028a5;
    --primary-gradient: linear-gradient(135deg, #0028a5 0%, #1a4bd6 100%);
    --secondary-color: #ff0000;
    --accent-color: #d32f2f;
    --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: 100px;
    --nav-height: 50px;
    --max-width: 1200px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: #0d1117;
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-color);
}

.ticker-flex {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--secondary-color);
    color: white;
    padding: 4px 15px;
    font-weight: 800;
    margin-right: 20px;
    white-space: nowrap;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
}

.ticker-content marquee a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
}

.ticker-content marquee a:hover {
    color: var(--secondary-color);
}

.ticker-sep {
    color: #444;
    margin: 0 10px;
}

/* 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;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Mukta Malar', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


.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 */
.site-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: 180px;
    margin-top: -10px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    z-index: 10;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Mukta Malar', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1.1;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    margin-left: 15px;
}

.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 {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.header-top-links a:hover {
    color: #ffd700;
    /* Gold on hover */
    transform: translateY(-2px);
}

/* Nav Styles */
nav {
    background: transparent;
    height: auto;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.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;
    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;
    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;
    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;
}

.blue-title {
    background: var(--primary-color);
}

.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 DESIGN - MOBILE FIRST
   ========================================= */

/* Tablet & Medium Screens (992px and below) */
@media (max-width: 992px) {
    .content-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-img-container {
        height: 300px;
    }

    .featured-text h2 {
        font-size: 1.5rem;
    }

    .webstories-slider {
        gap: 15px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Small Screens (768px and below) */
@media (max-width: 768px) {

    /* Header Adjustments */
    .logo img {
        height: 80px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .header-top-links {
        display: none;
    }

    /* Layout Adjustments */
    .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;
    }

    /* Main Featured Card */
    .main-featured-card.horizontal {
        flex-direction: column;
    }

    .featured-img-wrap {
        width: 100%;
        height: 250px;
    }

    .featured-content-wrap {
        padding: 20px;
    }

    .featured-content-wrap h2 {
        font-size: 1.3rem;
    }

    /* Webstories */
    .webstories-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .webstory-card-v3 {
        scroll-snap-align: start;
        min-width: 150px;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Single Post Layout */
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .post-header-new h1 {
        font-size: 1.4rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Screens (600px and below) */
@media (max-width: 600px) {

    /* Container Padding */
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .logo img {
        height: 60px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    header {
        height: auto;
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Navigation Hidden on Mobile */
    .nav-links {
        display: none;
    }

    /* Ad Banner */
    .ad-banner {
        height: 80px;
        font-size: 0.85rem;
    }

    /* Featured Section */
    .main-featured-card {
        margin-bottom: 20px;
    }

    .featured-img-wrap {
        height: 200px;
    }

    .featured-content-wrap {
        padding: 15px;
    }

    .featured-content-wrap h2 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .main-tag-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .news-meta-time {
        font-size: 0.75rem;
    }

    /* Webstories Mobile */
    .webstories-slider {
        gap: 10px;
        padding: 0 5px;
    }

    .webstory-card-v3 {
        min-width: 140px;
        height: 220px;
    }

    .webstory-card-v3 h4 a {
        font-size: 0.85rem;
    }

    .short-story-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.1rem;
        padding: 8px 15px;
    }

    .section-title-alt {
        font-size: 1rem;
    }

    /* News Cards */
    .news-card {
        margin-bottom: 20px;
    }

    .news-card h3 {
        font-size: 1rem;
    }

    .news-card-img {
        height: 180px;
    }

    /* Small News List */
    .small-news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .small-news-img {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .small-news-content h4 {
        font-size: 0.95rem;
    }

    /* Grid News Cards */
    .grid-news-card {
        margin-bottom: 20px;
    }

    .grid-news-img {
        height: 160px;
    }

    .grid-news-card h4 {
        font-size: 0.95rem;
    }

    /* Single Post Mobile */
    .post-header-new h1 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
    }

    .post-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .author-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .social-share-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .social-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .content-area {
        padding: 15px;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Sidebar Mobile */
    .sidebar-section {
        margin-top: 30px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about img {
        height: 40px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .featured-content-wrap h2 {
        font-size: 1rem;
    }

    .webstory-card-v3 {
        min-width: 120px;
        height: 200px;
    }

    .section-title {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .news-card h3 {
        font-size: 0.9rem;
    }

    .post-header-new h1 {
        font-size: 1.1rem !important;
    }
}


/* =========================================
   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;
}

/* Professional Single Post Styles */
.post-header-pro {
    margin-bottom: 40px;
}

.post-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.post-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-meta-pro {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-top: 30px;
}

.post-content-pro {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.8;
}

.post-content-pro p {
    margin-bottom: 25px;
}

.post-content-pro h2,
.post-content-pro h3 {
    margin: 40px 0 20px 0;
    font-weight: 800;
    color: #1a1a1a;
}

.post-footer-pro {
    border-top: 3px solid #f0f0f0;
    margin-top: 60px;
    padding-top: 40px;
}

.post-tags span {
    display: inline-block;
    background: #f0f2f5;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    color: #555;
    transition: all 0.2s ease;
}

.post-tags span:hover {
    background: var(--primary-color);
    color: #fff;
}

.post-navigation-pro {
    margin-top: 40px;
}

.prev-post a,
.next-post a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card h4 a:hover {
    color: var(--secondary-color);
}

@media (max-width: 900px) {
    .single-post-layout {
        grid-template-columns: 1fr !important;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .post-header-pro h1 {
        font-size: 2rem !important;
    }

    .post-meta-pro {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation-pro {
        grid-template-columns: 1fr;
    }

    .next-post {
        text-align: left !important;
    }
}




/* =========================================
   ADVERTISEMENT GRID SECTION (6 Boxes)
   ========================================= */

.ads-grid-section {
    margin: 40px 0;
}

.ads-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.ads-3-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.ad-box {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
    position: relative;
}

.ad-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 40, 165, 0.1);
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-html-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.ad-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.ad-placeholder span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive Ads Grid */
@media (max-width: 992px) {
    .ads-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ads-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ad-box {
        min-height: 200px;
    }

    .ad-placeholder span {
        font-size: 0.85rem;
    }
}

/* Homepage Main Layout Responsive */
@media (max-width: 900px) {
    .homepage-main-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Professional Featured Grid */
.featured-grid-wrap {
    margin-bottom: 50px;
}

.featured-flex-container {
    display: flex;
    gap: 20px;
}

.featured-big {
    flex: 2;
    position: relative;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-big:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.featured-small {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-small:hover img {
    transform: scale(1.05);
}

.featured-small .featured-overlay {
    padding: 20px 15px;
}

@media (max-width: 768px) {
    .featured-flex-container {
        flex-direction: column;
    }

    .featured-big {
        height: 350px;
    }

    .featured-side-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .featured-small {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .featured-side-list {
        grid-template-columns: 1fr;
    }
}

/* Professional Footer Styles */
.footer-col h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-col h4 {
    position: relative;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-bottom: 5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col ul li a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.footer-col ul li a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* =========================================
   EXPERT NEWS LAYOUT (V2)
   ========================================= */

/* Pill Tags & Time Row */
.post-tags-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.tags-list-v2 {
    display: flex;
    gap: 8px;
}

.pill-tag {
    background: #f0f2f5;
    color: #5d78ff;
    padding: 2px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.post-time-v2 {
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Author Bar V2 */
.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: 0.95rem;
}

.author-cat-v2 {
    font-size: 0.8rem;
    color: var(--secondary-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 V2 */
.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: 10px;
}

.share-label-v2 {
    background: #f39c12;
    color: #fff;
    padding: 10px 4px;
    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: 8px;
}

.share-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.share-circle:hover {
    transform: translateY(-3px);
}

.wa-join-badge {
    background: #fff;
    border: 1px solid #25d366;
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.wa-badge-icon {
    font-size: 1.8rem;
    color: #25d366;
}

.wa-badge-text {
    line-height: 1;
}

.wa-badge-text span {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: #333;
}

.wa-badge-text strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: #333;
}

/* Inline Related Box */
.inline-related-box {
    border: 1px dashed #ccc;
    padding: 12px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.inline-rel-thumb {
    flex: 0 0 100px;
    height: 65px;
    overflow: hidden;
    border-radius: 4px;
}

.inline-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inline-rel-title {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.inline-rel-title a {
    color: #333;
    text-decoration: none;
}

/* Sidebar Astrology Widget */
.astrology-widget {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.astro-header {
    background: #8e1a1a;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.astro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
}

.astro-card {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.astro-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
}

.astro-name {
    font-size: 0.85rem;
    font-weight: 800;
    margin: 5px 0;
}

.astro-rating {
    font-size: 0.75rem;
    color: #f39c12;
    margin-bottom: 10px;
}

.astro-btn {
    background: #e74c3c;
    color: #fff;
    display: block;
    padding: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
}

/* Sidebar Day Grid */
.sidebar-days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.post-header-expert {
    background: transparent !important;
    height: auto !important;
    display: block !important;
    position: static !important;
    color: inherit !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
}

.post-header-expert h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Sidebar Refinements */
.sidebar-section h3 {
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
    margin-bottom: 20px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-news-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-news-item h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Death Notices Sidebar */
.death-notices-sidebar h3 {
    border-left: 4px solid #333;
    padding-left: 12px;
    margin-bottom: 20px;
}

.obituary-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}