/* 1. அடிப்படை அமைப்புகள் */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    /* வெப்சைட்டை முழுமையாக வெள்ளை நிறமாக்க [cite: 2026-03-10] */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* மொத்த வெப்சைட்டையும் திரையின் நடுவில் வைக்கும் */
    transition: background 0.3s ease;
}

/* 2. மெயின் கண்டெய்னர் - Full Screen */
.main-wrapper {
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    box-shadow: none;
    min-height: 100vh;
    position: relative;
}

/* 3. மேல் பட்டை (Top Bar) */
.top-bar {
    background-color: #800000;
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 11px;
    border-bottom: 2px solid #ffcc00;
}

/* 4. செய்தி ஓடும் பகுதி - திருத்தப்பட்டது */
.news-container {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    height: 100%;
    margin: 0 10px;
}

.news-label {
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    color: black;
    padding: 3px 10px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 5;
    /* லேபிள் மேலேயே இருக்கும் */
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    color: white;
    font-size: 13px;
    /* அனிமேஷன் உடனே தெரிய 0% லிருந்து தொடங்குகிறது */
    animation: scroll-left-new 15s linear infinite !important;
}

@keyframes scroll-left-new {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 5. ஹெடர் அமைப்பு (Logo & Tools) */
.main-header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* இங்க தான் மாற்றம் செய்யணும் */
    padding: 5px 20px;
    /* 10px-ஐ 5px ஆக குறைத்தால் மேலேயும் கீழேயும் கேப் குறையும் */
    height: 70px;
    /* பேடிங் குறைக்கும் போது உயரத்தையும் (height) கொஞ்சம் குறைத்தால் இன்னும் கச்சிதமாக இருக்கும் */
    position: relative;
    border-bottom: 1px solid #eee;
}

.site-logo {
    height: 65px;
    width: auto;
    /* டெஸ்க்டாப்ல மட்டும் லோகோவை தள்ளி வைக்க */
    margin-left: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    /* ஐகான்களுக்கு இடையே இடைவெளி - இது பக்கத்துல பக்கத்துல வைக்க உதவும் */
    /* டெஸ்க்டாப்ல மட்டும் ஐகான்களை தள்ளி வைக்க */
    margin-right: 50px;
}

/* மொபைலில் (850px கீழ) ஐகான்கள் மேல கீழ வராம இருக்க இந்த பிக்ஸ் முக்கியம் */
@media (max-width: 850px) {
    .site-logo {
        margin-left: 0px;
        /* மொபைல்ல லோகோ ஓரமாகவே இருக்கட்டும் */
    }

    .header-right {
        margin-right: 0px;
        /* மொபைல்ல ஐகான்கள் ஓரமாக இருக்கட்டும் */
        gap: 10px;
        /* ஐகான்கள் பக்கத்துல பக்கத்துல வர குறைந்த இடைவெளி */
        display: flex;
        /* இது கண்டிப்பா இருக்கணும் */
        flex-direction: row;
        /* ஐகான்கள் வரிசையாக (Horizontal) வர இது உதவும் */
    }
}

/* 6. செர்ச் மற்றும் டார்க் மோட் பட்டன்கள் (அனைத்திற்கும் வட்ட பார்டர் சேர்க்கப்பட்டுள்ளது) */
.icon-btn {
    background: none;
    border: 1px solid #800000;
    /* எல்லா ஐகானுக்கும் மெரூன் பார்டர் */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* வட்டமாக மாற்ற */
    cursor: pointer;
    font-size: 18px;
    color: #800000;
    /* ஐகான் நிறம் மெரூன் */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    padding: 0;
}

.icon-btn:hover {
    background-color: rgba(128, 0, 0, 0.05);
    /* லேசான ஹோவர் எஃபெக்ட் */
}

/* 7. செர்ச் பாப்-அப் - இது அப்படியே இருக்கட்டும் */
.search-container {
    position: relative;
}

.search-popup {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background: white;
    border: 1px solid #800000;
    padding: 20px;
    z-index: 9999;
    width: 380px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-popup.active {
    display: block;
}

.up-arrow {
    position: absolute;
    top: -10px;
    right: 12px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #800000;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    outline: none;
}

.btn-red {
    background: #800000;
    color: white;
    border: none;
    padding: 0 15px;
    font-weight: bold;
    cursor: pointer;
}

/* 8. டார்க் மோட் செட்டிங்ஸ் (வட்ட பார்டர் நிறமும் இதில் மாறும்) */
body.dark-mode {
    background-color: #121212;
}

body.dark-mode .main-wrapper,
body.dark-mode .main-header,
body.dark-mode .search-popup {
    background-color: #1e1e1e;
    color: #ffffff;
    border-bottom-color: #333;
}

body.dark-mode .icon-btn {
    color: #ffffff;
    border-color: #ffffff;
    /* டார்க் மோடில் வெள்ளை பார்டர் */
}

body.dark-mode .search-form input {
    background: #2c2c2c;
    color: #fff;
    border-color: #444;
}

/* 9. தொடர்பு விவரங்கள் - டாப் பார் ஐகான் கலர் மாற்ற */
.contact-section {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    flex-shrink: 0;
    color: #ffffff;
    /* மெயில் மற்றும் போன் டெக்ஸ்ட் வெள்ளை */
}

.contact-section i {
    color: #ffd700 !important;
    /* மெயில் மற்றும் கால் ஐகான் மட்டும் தங்க நிறம் */
    margin-right: 5px;
    font-size: 14px;
}


/* மொபைல் மற்றும் டேப்லெட் வியூக்கான திருத்தம் */
@media (max-width: 850px) {

    /* 1. டாப் பாரில் தேவையில்லாதவற்றை மறைக்க */
    .hide-mobile {
        display: none !important;
    }

    /* 2. நியூஸ் மட்டும் வலதுபுறமிருந்து இடதுபுறம் ஓட வைக்க */
    .news-container {
        display: flex;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }

    .news-label {
        flex-shrink: 0;
        z-index: 5;
        margin-right: 10px;
    }

    .news-ticker {
        flex: 1;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .ticker-text {
        display: inline-block;
        white-space: nowrap;
        padding-left: 100%;
        /* செய்தியை வெளியிலிருந்து ஆரம்பிக்க */
        animation: scroll-left 15s linear infinite !important;
        position: relative;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    /* 3. செர்ச் பாக்ஸ் அளவை குறைத்து கச்சிதமாக வைக்க */
    .search-popup {
        display: none;
        width: 60vw !important;
        /* அகலத்தை 70-லிருந்து 60-க்கு குறைத்துள்ளேன் */
        max-width: 280px;
        /* மேக்ஸிமம் அளவையும் குறைத்துவிட்டேன் */
        position: absolute;
        right: -15px;
        /* ஸ்கிரீனை விட்டு வெளியே போகாமல் இருக்க அட்ஜஸ்ட்மென்ட் */
        padding: 10px;
        /* உட்புற இடைவெளி குறைப்பு */
        border: 1px solid #800000;
        background: white;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .search-popup.active {
        display: block;
    }

    /* அம்பு குறியை செர்ச் ஐகானுக்கு நேராக வைக்க */
    .up-arrow {
        right: 25px;
        border-bottom-color: #800000;
    }

    .search-form input {
        padding: 6px 10px;
        font-size: 13px;
    }

    .btn-red {
        padding: 0 10px;
        font-size: 11px;
    }
}

/* --- 6. அடிக்குறிப்பு (Footer Box Fix) --- */
.maroon-footer-simple {
    background: #8b0000;
    padding: 15px 0;
    margin-top: 40px;
    color: white;
    /* இதுதான் முக்கியம்: ஃபுட்டர் முழு திரையையும் எடுக்காமல் 1200px மட்டும் எடுக்கும் */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    /* கேப்பை நீக்க 0 மார்ஜின் */
    /* மேல மட்டும் சின்ன வளைவு (விருப்பமென்றால்) */
}

.maroon-footer-simple .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: transparent !important;
    box-shadow: none !important;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    /* லோகோ மற்றும் டெக்ஸ்ட்டை வலது பக்கம் நகர்த்த இந்த வரியைச் சேர்க்கவும் */
    margin-left: 50px;
    /* இந்த எண்ணை (50px) அதிகப்படுத்தினால் இன்னும் வலது பக்கம் நகரும் */
}


.mini-footer-logo {
    height: 35px;
    filter: none;
    object-fit: contain;
}

.copyright-text {
    font-size: 13px;
    white-space: nowrap;
}

/* சோஷியல் மீடியா வட்டங்கள் */
.footer-social-original {
    display: flex;
    gap: 12px;
    /* ஐகான்களை இடது பக்கம் தள்ள இந்த வரியைச் சேர்க்கவும் */
    margin-right: 60px;
    /* இந்த எண்ணை அதிகப்படுத்தினால் ஐகான்கள் இன்னும் இடது பக்கம் (லோகோ நோக்கி) நகரும் */
}

.footer-social-original a {
    color: #8b0000 !important;
    background: #ffffff !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social-original a:hover {
    background: #ffcc00 !important;
    transform: translateY(-3px);
}

/* மொபைல் வியூ - 850px (மொபைலில் ஃபுட்டரை மறைக்க) */
@media (max-width: 850px) {
    .maroon-footer-simple {
        display: none !important;
        /* இது ஃபுட்டரை மொபைலில் முழுமையாக மறைத்துவிடும் */
    }
}


/* --- 10. Navigation Bar (Desktop) --- */

.nav-bar {
    background-color: #800000;
    border-top: 1px solid #ffcc00;
    border-bottom: 3px solid #ffcc00;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 45px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    padding: 0 15px;
    margin: 0;
    gap: 8px;
    white-space: nowrap;
    height: 100%;
    align-items: center;
}

.nav-links li a {
    display: block;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s ease;
    border-radius: 4px;
}

.nav-home,
.nav-links a.active,
.nav-links li a:hover {
    background-color: #ffcc00;
    color: #000 !important;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- 11. Mobile Menu (Hamburger Animation) --- */
/* Logo-area kulla idhu irukardhala flex alignment mukkiyam */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    /* Desktop-la hide aagum */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2000;
    /* Menu drawer-kku mela irukka */
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #800000;
    /* Maroon color bars */
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Smooth bounce effect */
    border-radius: 5px;
}

/* 3 lines "X" mark-ah maara (Close animation) */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
    /* Side-la slide aagi hide aagum */
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 12. Mobile View Responsive (850px Breakpoint) --- */
@media (max-width: 850px) {
    .menu-toggle {
        display: flex;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 70vh;
        background-color: #111111;
        flex-direction: column;
        transition: 0.4s ease-in-out;
        box-shadow: 10px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1500;
        border: none;
    }

    .nav-bar.show {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        padding-top: 100px;
        justify-content: flex-start;
    }

    .nav-links li a {
        color: #ffffff;
        border-bottom: 1px solid #2a2a2a;
        padding: 18px 30px;
        width: 100%;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background-color: #8b0000 !important;
        color: #ffffff !important;
    }

    @media (max-width: 850px) {
        .nav-bar {
            height: 100% !important;
            min-height: 100vh;
            display: flex !important;
            flex-direction: column;
            background-color: #111111 !important;
            overflow-y: auto !important;
            padding-bottom: 80px;
        }

        .nav-links {
            height: auto !important;
            display: flex !important;
            flex-direction: column !important;
            padding-bottom: 50px;
        }

        .nav-links li {
            background-color: #111111;
            width: 100%;
        }
    }

    /* Dark Mode Fixes */
    body.dark-mode .nav-bar {
        background-color: #111111 !important;
    }

    body.dark-mode .nav-links li a {
        color: #ffffff !important;
        border-bottom-color: #2a2a2a !important;
    }

    body.dark-mode .bar {
        background-color: #ffffff !important;
    }
}

/* --- Variables --- */
:root {
    --primary-red: #cc0000;
    --text-dark: #333;
    --bg-white: #ffffff;
    --sidebar-bg: #f9f9f9;
    --border-color: #ddd;
    --max-width: 1200px;
}

/* Dark Mode Support */
body.dark-mode {
    --text-dark: #eee;
    --bg-white: #1a1a1a;
    --sidebar-bg: #2d2d2d;
    --border-color: #444;
}

/* --- Layout --- */
.post-container {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0 15px;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* --- Hero Section Fix --- */
.hero-section {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    /* Image border */
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    width: 100%;
    padding: 40px;
    background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
}

.category-badge {
    background-color: var(--primary-red);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.post-title {
    font-size: 32px;
    margin-bottom: 10px;
}

/* --- 2 Column Grid --- */
.content-grid {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.main-content {
    width: 100%;
    max-width: 100%;
}

.meta-info {
    display: flex;
    flex-wrap: nowrap;
    /* மொபைலிலும் ஒரே வரியில் இருக்க */
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    /* தகவல்களுக்கு இடையே உள்ள சரியான இடைவெளி */
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-top: 5px;
    /* படத்திற்கு மிக நெருக்கமாக கொண்டு வரும் */
    margin-bottom: 20px;
    font-size: 10px;
    /* மொபைலில் இடம் பத்த வேண்டும் என்பதால் சற்றே குறைக்கப்பட்டுள்ளது */
    overflow: visible;
    /* ஒருவேளை இடம் பத்தவில்லை என்றால் ஸ்க்ரோல் ஆகும், உடையாது */
    white-space: nowrap;
}

.meta-info {
    opacity: 1;
}

.meta-info > span:not(.share-btn) {
    opacity: 0.7;
}

/* ஐகான்களுக்கு மட்டும் ஒரு குட்டி கலர் */
.meta-info i {
    margin-right: 4px;
    color: var(--primary-red);
}

/* மொபைலில் இன்னும் கச்சிதமாக தெரிய */
@media (max-width: 768px) {
    .meta-info {
        gap: 10px;
        margin-top: 8px;
        /* மொபைலில் ஒட்டாம இருக்க ஒரு குட்டி கேப் */
        padding: 8px 5px;
    }
}

.share-btn {
    margin-left: auto;
    color: var(--primary-red);
    cursor: pointer;
    border: 0;
    background: transparent;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 6px;
}

.share-btn:hover,
.share-btn:focus-visible {
    background: rgba(220, 38, 38, 0.1);
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.article-body {
    font-family: 'Latha', sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.article-body p {
    line-height: 1.6;
    font-size: 12px;
    margin-bottom: 20px;
    font-family: 'Latha', sans-serif;
}

/* Content images - 500px size */
.content-images img {
    max-width: 400px;
    width: 400px;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Video embed sizing */
.video-container {
    width: 100%;
    max-width: 720px;
    margin: 30px auto;
}

.video-container > div {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 500px) {
    .content-images img {
        max-width: 500px;
    }
}

/* Sidebar */
.sidebar-card {
    background: var(--sidebar-bg);
    padding: 20px;
    border-radius: 8px;
}

.sidebar-title {
    border-left: 5px solid var(--primary-red);
    padding-left: 10px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin: 5px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
}

/* --- Variables & Layout --- */

:root {
    --primary-red: #cc0000;
    --dark-red: #8B0000;
    /* Sidebar headers-க்கு */
    --text-dark: #333;
    --bg-white: #ffffff;
    --sidebar-bg: #f9f9f9;
    --border-color: #ddd;
    --max-width: 1200px;
    /* உன் வெப்சைட் அகலம் [cite: 2026-02-06] */
}

/* Dark Mode Support [cite: 2026-02-12] */
body.dark-mode {
    --text-dark: #eee;
    --bg-white: #1a1a1a;
    --sidebar-bg: #2d2d2d;
    --border-color: #444;
}

/* --- Layout --- */
.post-container {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0 15px;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* --- New Sidebar Styles [cite: 2026-02-12] --- */
.news-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-box {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-red);
    padding-left: 10px;
}

.box-title {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.tag-item:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* --- RIP News Sidebar Cards --- */
.news-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 60px;
}

.rip-card-link {
    text-decoration: none;
    display: block;
}

.rip-card {
    background: #3d0000;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #8b0000;
}

.rip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

.rip-card-header {
    background: #8b0000;
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    padding: 7px 12px;
    letter-spacing: 0.5px;
}

.rip-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
}

.rip-card-text {
    flex: 1;
}

.rip-card-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 8px 0;
    font-family: 'Latha', sans-serif;
}

.rip-card-date {
    color: #a0b8cc;
    font-size: 11px;
    margin: 0;
}

.rip-card-date i {
    margin-right: 4px;
}

.rip-card-img-wrap {
    flex-shrink: 0;
}

.rip-card-img-wrap img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e05c2a;
    display: block;
}

.rip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #8b0000;
}

.rip-views {
    color: #a0b8cc;
    font-size: 11px;
}

.rip-views i {
    margin-right: 4px;
    color: #e05c2a;
}

.rip-read-btn {
    background: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Dark mode support */
body.dark-mode .rip-card {
    background: #2a0000;
    border-color: #8b0000;
}

body.dark-mode .rip-card-header {
    background: #6b0000;
}

/* Mobile - sidebar goes below content */
@media (max-width: 850px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-right-sidebar {
        position: static;
    }
}
.view-more-link {
    text-decoration: none !important;
    /* அண்டர்லைன் வராது */
    color: #ab6ed7;
    /* அந்த ஊதா நிறம் */
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    /* கிளிக் செய்ய கை சின்னம் காட்டும் */
    transition: 0.3s ease;
}

.view-more-link:hover {
    color: var(--primary-red);
    /* மவுஸ் கொண்டு செல்லும்போது ரெட் கலர் */
    text-decoration: none !important;
}

/* ஒருவேளை உன் HTML-ல் <a> டேக் இருந்தால் அதன் டீஃபால்ட் ஸ்டைலை நீக்க */
a.view-more-link {
    text-decoration: none;
}

/* Mini News List */
.mini-news {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mini-img-wrapper img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-details h6 {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: var(--text-dark);
}

.mini-details p {
    font-size: 11px;
    color: #888;
    margin: 0;
}

/* --- Mobile Bottom Navigation [cite: 2026-02-12] --- */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* மொபைலில் ஒரு காலம் [cite: 2026-02-12] */

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-item {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #888;
        /* Ash color [cite: 2026-02-12] */
        font-size: 12px;
        flex: 1;
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .nav-item.active,
    .nav-item:active {
        color: var(--dark-red);
    }

    /* Active dark red [cite: 2026-02-12] */

    /* மொபைலில் கன்டென்ட் மறைக்காமல் இருக்க */
    .post-container {
        padding-bottom: 80px;
    }
}

/* --- Pagination (Bottom Center) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px auto;
    /* மேல்/கீழ் இடைவெளி */
    max-width: 1200px;
    /* உங்கள் வெப்சைட் வித் [cite: 2026-02-06] */
    padding: 0 15px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    /* Light mode border */
    text-decoration: none;
    color: #333;
    /* Light mode text */
    background-color: #fff;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* மென்மையான அனிமேஷன் */
    cursor: pointer;
    user-select: none;
}

/* Hover & Click Effects (உங்க மெரூன்/ரெட் தீம்) */
.page-link:hover {
    background-color: #f8f8f8;
    border-color: #800000;
    color: #800000;
    transform: translateY(-2px);
    /* லேசாக மேலே எழும்பும் */
}

.page-link:active {
    transform: scale(0.95);
    /* கிளிக் செய்யும்போது லேசாக அமுங்கும் */
}

/* Active State */
.page-link.active {
    background-color: #800000 !important;
    /* Maroon Theme */
    color: #ffffff !important;
    border-color: #800000 !important;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

/* --- Dark Mode Support --- */
body.dark-mode .page-link {
    background-color: #2c2c2c !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .page-link:hover {
    background-color: #3d3d3d !important;
    border-color: #800000 !important;
    color: #fff !important;
}

body.dark-mode .page-link.active {
    background-color: #800000 !important;
    color: #fff !important;
}

/* --- Mobile Responsive Fix --- */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: 300px;
    }

    .post-title {
        font-size: 22px;
    }

    .pagination {
        gap: 8px;
        margin-bottom: 110px !important;
        /* மொபைல் பாட்டம் பார் மறைக்காமல் இருக்க */
    }

    .page-link {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* மொபைலில் மட்டும் தெரியும்படி மறைத்து வைப்போம் */
.mobile-bottom-nav {
    display: none;
}

/* மொபைல் வியூ (768px-க்கு கீழ்) வரும்போது மட்டும் காட்டும் */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        /* பின்புலம் வெள்ளை */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .nav-item {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #888888;
        /* நீ கேட்ட Ash Color (Default) */
        font-size: 12px;
        transition: 0.3s;
        flex: 1;
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    /* பட்டனை கிளிக் செய்யும்போது அல்லது ஆக்டிவ் ஆகும்போது மாறும் நிறம் */
    .nav-item:active,
    .nav-item.active {
        color: #8B0000;
        /* நீ கேட்ட Dark Red (Active) */
    }
}

/* டார்க் மோடு சப்போர்ட் */
body.dark-mode .mobile-bottom-nav {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

body.dark-mode .nav-item {
    color: #aaaaaa;
}

body.dark-mode .nav-item:active,
body.dark-mode .nav-item.active {
    color: #ff4d4d;
    /* டார்க் மோடில் இன்னும் கொஞ்சம் பிரகாசமான ரெட் */
}

/* FEEDBACK SECTION */
/* Feedback Section Base */
.feedback-section {
    margin: 40px auto 0;
    padding: 25px;
    background: #fdfdfd;
    /* சற்றே மென்மையான வெள்ளை */
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 900px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto 35px;
    max-width: 700px;
}

.previous-feedbacks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #333;
    border-left: 5px solid #800000;
    padding-left: 15px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

/* Input Styles */
.feedback-form input,
.feedback-form textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #800000;
    /* போக்கஸ் செய்யும்போது மெரூன் பார்டர் */
}

/* --- Submit Button Fixes & Animation --- */
.feedback-form .btn-red {
    width: fit-content;
    min-width: 160px;
    padding: 12px 28px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #800000;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-form .btn-red:hover {
    background-color: #a00000;
    transform: translateY(-3px);
    /* லேசான மேல்நோக்கிய அனிமேஷன் */
    box-shadow: 0 6px 12px rgba(128, 0, 0, 0.2);
}

.feedback-form .btn-red:active {
    transform: translateY(-1px);
}

/* --- Feedback Items (Box Design) --- */
.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.feedback-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ececec;
    /* பாக்ஸை பிரித்து காட்டும் பார்டர் */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.feedback-user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #333;
    font-weight: bold;
    border-bottom: 1px dashed #eee;
    /* பெயருக்கும் கருத்துக்கும் இடையே ஒரு சிறிய கோடு */
    padding-bottom: 8px;
}

.feedback-time {
    color: #999;
    font-weight: normal;
    font-size: 0.85rem;
}

.feedback-text {
    line-height: 1.6;
    color: #555;
}

/* --- Dark Mode Fixes (முழுமையாக வேலை செய்யும் வகையில்) --- */
.dark-mode .feedback-section {
    background: #1a1a1a;
    border-color: #333;
}

.dark-mode .section-title {
    color: #ffffff;
}

.dark-mode .feedback-form input,
.dark-mode .feedback-form textarea {
    background: #252525;
    border-color: #444;
    color: #eeeeee;
}

.dark-mode .feedback-item {
    background: #252525;
    border-color: #3d3d3d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .feedback-user-info {
    color: #ffffff;
    border-bottom-color: #444;
}

.dark-mode .feedback-text {
    color: #bbbbbb;
}

.dark-mode .feedback-time {
    color: #777;
}

.dark-mode .divider {
    border-color: #333;
}

/* --- Share Dropdown Styles --- */
.share-container {
    position: relative;
    margin-left: auto;
}

.share-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: min(360px, calc(100vw - 24px));
    background: #fff !important;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    z-index: 1001;
    opacity: 1;
}

.share-dropdown.show {
    display: block;
}

.share-dropdown-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.share-preview {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    white-space: normal;
}

.share-preview img {
    display: block;
    flex: 0 0 76px;
    width: 76px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    background: #e5e7eb;
}

.share-preview-copy {
    min-width: 0;
}

.share-preview-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.share-preview-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0;
    color: #4b5563;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.share-preview-copy span {
    color: #6b7280;
    font-size: 10px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-size: 22px;
    /* Slightly bigger */
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.share-link span {
    display: none;
}

.share-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-red) !important;
}

.share-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.share-link.wa i {
    color: #25D366;
}

.share-link.fb i {
    color: #1877F2;
}

.share-link.tg i {
    color: #0088cc;
}

.share-link.tw i {
    color: #1DA1F2;
}

.share-link.ln i {
    color: #0077b5;
}

/* Dark mode support */
.dark-mode .share-dropdown {
    background: #252525 !important;
    border-color: #4b5563;
}

.dark-mode .share-preview {
    background: #303030;
    border-color: #4b5563;
}

.dark-mode .share-preview-copy strong {
    color: #f9fafb;
}

.dark-mode .share-preview-copy p {
    color: #d1d5db;
}

.dark-mode .share-preview-copy span {
    color: #9ca3af;
}

.dark-mode .share-link:hover {
    background: #333;
}

@media (max-width: 768px) {
    .share-dropdown {
        position: absolute;
        right: 0;
        top: 100%;
        width: min(340px, calc(100vw - 24px));
        background: #fff !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid #d1d5db !important;
        margin-top: 8px;
    }

    .share-dropdown-inner {
        padding: 10px;
        gap: 6px;
    }

    .share-link {
        padding: 5px !important;
        width: 40px;
        height: 40px;
    }
}

/* === Mobile Global Font Size Reduction (850px and below) === */
@media (max-width: 850px) {
    body {
        font-size: 13px;
    }

    h1 { font-size: 18px !important; }
    h2 { font-size: 15px !important; }
    h3 { font-size: 13px !important; }
    h4 { font-size: 12px !important; }
    p  { font-size: 11px !important; }

    .post-title          { font-size: 18px !important; }
    .article-body        { font-size: 12px !important; }
    .article-body p      { font-size: 12px !important; }
    .meta-info           { font-size: 10px !important; }
    .rip-card-title      { font-size: 12px !important; }
    .rip-card-date       { font-size: 10px !important; }
    .rip-card-header     { font-size: 10px !important; }
    .mini-details h6     { font-size: 11px !important; }
    .mini-details p      { font-size: 10px !important; }
    .box-title           { font-size: 13px !important; }
    .tag-item            { font-size: 11px !important; }
    .ticker-text         { font-size: 11px !important; }
    .news-label          { font-size: 10px !important; }
    .page-number,
    .page-btn            { font-size: 12px !important; }
}
