/* === GENERAL STYLES === */
:root {
    --primary-color: #d12027; /* Eenadu Red Default */
    --text-color: #333333;
    --bg-color: #f4f4f4;
    --header-bg-color: #d12027; /* Fallback */
}

body {
    font-family: 'Mandali', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === HEADER STYLES === */
.header-top-bar {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo Styles */
.logo-link { text-decoration: none; }
.logo-text { 
    font-family: 'Mallanna', sans-serif; 
    color: var(--primary-color); 
    font-size: 35px; 
    font-weight: bold; 
}
.header-center .logo-image { max-height: 60px; object-fit: contain; }

/* Search Icon */
.header-search-icon { color: #333; font-size: 20px; text-decoration: none; }
.header-search-icon:hover { color: var(--primary-color); }

/* Hamburger Menu Icon (PC లో కనబడదు, మొబైల్ లో కనబడుతుంది) */
.header-menu-toggle {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: none; /* Hidden on Desktop */
}

/* === PC HORIZONTAL MENU (Red Bar) === */
.header-bottom-bar {
    background-color: var(--header-bg-color, #d12027);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-bottom-nav {
    max-width: 1140px;
    margin: 0 auto;
}

.header-bottom-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.header-bottom-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    font-family: 'Mandali', sans-serif;
    transition: background 0.3s ease;
}

.header-bottom-nav ul li:first-child a {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header-bottom-nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* === MOBILE SIDE MENU STYLES === */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden off-screen */
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.active { left: 0; }

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.side-menu ul { list-style: none; padding: 0; margin: 0; }

.side-menu ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.side-menu ul li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.side-menu ul li a i {
    width: 25px;
    color: var(--primary-color);
    text-align: center;
}

/* Mobile Search Box in Side Menu */
.header-search-form-mobile {
    padding: 20px;
    display: flex;
    border-bottom: 1px solid #eee;
    margin-top: 30px;
}
.header-search-form-mobile input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.header-search-form-mobile button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1500;
    display: none;
}
.menu-overlay.active { display: block; }

/* === MAIN LAYOUT === */
.main-content-wrapper { max-width: 1200px; margin: 20px auto; padding: 0 15px; }
.newspaper-layout { display: flex; flex-wrap: wrap; gap: 20px; }
.main-content-column { flex: 1 1 70%; min-width: 300px; }
.sidebar-column { flex: 1 1 25%; min-width: 300px; }

/* === ARTICLE LIST STYLES (Category/Archive) === */
.article-list-item {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 15px;
    gap: 15px;
}
.article-list-image { width: 200px; flex-shrink: 0; }
.article-list-image img { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; }
.article-list-content { flex: 1; }
.article-list-content h2 { margin: 0 0 10px 0; font-size: 18px; line-height: 1.4; }
.article-list-content h2 a { color: #222; text-decoration: none; }
.article-list-content h2 a:hover { color: var(--primary-color); }
.article-meta { font-size: 12px; color: #777; margin-bottom: 10px; }
.article-excerpt { font-size: 14px; color: #555; margin: 0; }

/* === SINGLE ARTICLE STYLES === */
.full-article { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.full-article h1 { font-size: 28px; margin-top: 0; margin-bottom: 15px; line-height: 1.4; }
.full-article .article-meta { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.full-article .main-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.article-content { font-size: 18px; line-height: 1.8; color: #333; }
.article-content img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 4px; }

/* === FOOTER STYLES === */
.main-footer { background-color: #333; color: #fff; padding: 40px 0 20px 0; margin-top: 40px; }
.main-footer a { color: #ddd; }
.main-footer a:hover { color: #fff; }

/* === RESPONSIVE STYLES (MOBILE) === */
@media (max-width: 768px) {
    /* PC Menu ని దాచడం */
    .header-bottom-bar { display: none !important; }
    
    /* మొబైల్ Hamburger Menu బటన్ ని చూపించడం */
    .header-menu-toggle { display: block !important; }

    .logo-text { font-size: 26px !important; }
    .header-center .logo-image { height: 40px !important; }

    .newspaper-layout { flex-direction: column; }
    .sidebar-column { border-left: none; padding-left: 0; margin-top: 20px; }
    
    .article-list-item { flex-direction: column; padding: 10px; }
    .article-list-image { width: 100%; }
    .article-list-image img { height: 180px; }
    
    .full-article h1 { font-size: 22px; }
    .article-content { font-size: 16px; }
}
/* =================================
   --- Buttons Hotfix (e-Paper, Like, Share, Subscribe) ---
   ================================= */

/* === Like & Actions Container === */
.post-actions-container {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.like-btn {
    background-color: #007bff;
    box-shadow: 0 4px 0 0 #0056b3;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.like-btn:hover { background-color: #0069d9; }
.like-btn:active { transform: translateY(4px); box-shadow: 0 0 0 0; }
.like-btn:disabled {
    background-color: #28a745;
    box-shadow: 0 4px 0 0 #1e7e34;
    cursor: not-allowed;
}
.like-count {
    display: inline-block;
    background: #fff;
    color: #007bff;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    font-size: 16px;
}

/* === e-Paper Clip Button Style === */
.cm-button-wrapper {
    text-align: center;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.cm-view-clipping-btn {
    background-color: #e74c3c; 
    box-shadow: 0 4px 0 0 #c0392b; 
    color: white !important;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    display: inline-block;
}
.cm-view-clipping-btn:hover { background-color: #c0392b; }
.cm-view-clipping-btn:active { transform: translateY(4px); box-shadow: 0 0 0 0; }

.cm-view-clipping-btn.small-btn {
    background-color: #5bc0de;
    box-shadow: 0 4px 0 0 #31b0d5;
    padding: 8px 15px;
    font-size: 14px;
}
.cm-view-clipping-btn.small-btn:hover { background-color: #31b0d5; }

/* === Subscribe Button === */
.subscribe-btn {
    background-color: #007bff;
    box-shadow: 0 4px 0 0 #0056b3;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.subscribe-btn:hover { background-color: #0069d9; }
.subscribe-btn:active { transform: translateY(4px); box-shadow: 0 0 0 0; }

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.subscribe-form input[type="email"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    flex: 1;
}
@media (max-width: 768px) {
    .subscribe-form { flex-direction: column; }
}

/* === Download Button === */
.download-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
.download-btn:hover { background-color: #0056b3; }

/* === Social Share Buttons (Single Article) === */
.social-share-container {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.share-buttons-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    justify-content: flex-start;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white !important;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    transition: all 0.15s ease;
    cursor: pointer;
}
.share-btn i { margin-right: 8px; }
.share-btn:active { transform: translateY(2px); box-shadow: 0 0 0 0; }

.share-facebook { background-color: #3b5998; box-shadow: 0 2px 0 0 #2d4373; }
.share-x { background-color: #000000; box-shadow: 0 2px 0 0 #333; }
.share-whatsapp { background-color: #25D366; box-shadow: 0 2px 0 0 #1ebe58; }
.share-telegram { background-color: #0088cc; box-shadow: 0 2px 0 0 #006daa; }
.share-email { background-color: #777777; box-shadow: 0 2px 0 0 #555; }
.share-copy { background-color: #007bff; box-shadow: 0 2px 0 0 #0056b3; }

/* మొబైల్ లో సోషల్ ఐకాన్స్ (టెక్స్ట్ లేకుండా రౌండ్ గా) */
@media (max-width: 768px) {
    .share-btn {
        width: 40px; height: 40px; border-radius: 50%; padding: 0; font-size: 0; box-shadow: none;
    }
    .share-btn i { margin-right: 0; font-size: 18px; }
}
/* =================================
   --- 🚀 SINGLE.PHP FULL RESTORE & FIX 🚀 ---
   ================================= */

/* 1. Main Article Box (తెల్లటి బ్యాక్‌గ్రౌండ్ & షాడో) */
.full-article {
    background-color: #ffffff !important;
    padding: 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    margin-bottom: 30px !important;
    border: 1px solid #eaeaea !important;
}

/* 2. Article Title & Meta (టైటిల్ & రిపోర్టర్ వివరాలు) */
.full-article h1 {
    font-size: 32px !important;
    color: #d12027 !important; /* ఈనాడు ఎరుపు */
    font-weight: bold !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
}
.post-meta {
    background: #f9f9f9 !important;
    padding: 12px 15px !important;
    border-radius: 5px !important;
    border-left: 4px solid #d12027 !important;
    margin-bottom: 25px !important;
    font-size: 15px !important;
    color: #444 !important;
}
.post-meta span { margin-right: 15px !important; font-weight: bold !important; }
.post-meta i { color: #d12027 !important; margin-right: 5px !important; }

/* 3. Article Content (వార్త ఫాంట్స్ & లైన్ గ్యాప్) */
.article-content {
    font-size: 19px !important;
    line-height: 1.8 !important;
    color: #222222 !important;
    text-align: justify !important;
}
.article-content p { margin-bottom: 20px !important; }

/* 4. Action Buttons Panel (Like, ePaper బటన్ల వెనుక రంగు) */
.post-actions-container {
    background: #f0f5fa !important; /* లేత నీలం బ్యాక్‌గ్రౌండ్ */
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid #dce4ec !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 30px !important;
}

/* 5. Social Share Background (షేర్ బటన్ల వెనుక ఎఫెక్ట్) */
.social-share-container {
    background: #fff8f8 !important; /* లేత ఎరుపు బ్యాక్‌గ్రౌండ్ */
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px dashed #d12027 !important;
    margin-top: 25px !important;
    text-align: center !important;
}
.social-share-container h3 { 
    color: #d12027 !important; 
    margin-top: 0 !important; 
    font-size: 20px !important; 
    font-weight: bold !important;
}

/* 6. Tags Background & Hover (ట్యాగ్స్ రంగులు) */
.tags-container {
    background: #f4f4f4 !important;
    padding: 20px !important;
    border-radius: 5px !important;
    margin-top: 30px !important;
    border: 1px solid #ddd !important;
}
.tags-container h3 { margin-top: 0 !important; color: #333 !important; font-size: 18px !important; font-weight: bold !important; }
.tag-link {
    background-color: #ffffff !important;
    color: #d12027 !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline-block !important;
    border: 1px solid #d12027 !important;
    transition: 0.3s !important;
    margin: 5px 5px 0 0 !important;
}
.tag-link:hover {
    background-color: #d12027 !important;
    color: #ffffff !important;
}

/* 7. Subscribe Box (సబ్‌స్క్రైబ్ బాక్స్ కలర్స్) */
.subscribe-box-container {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%) !important;
    padding: 30px !important;
    border-radius: 8px !important;
    border: 1px solid #ccd1d9 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    margin-top: 30px !important;
    text-align: center !important;
}

/* 8. Related Posts Fixes (సంబంధిత వార్తల కార్డులు) */
.related-posts-container {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    margin-top: 30px !important;
    border: 1px solid #eee !important;
}
.related-posts-container h3 {
    border-bottom: 2px solid #d12027 !important;
    display: inline-block !important;
    padding-bottom: 5px !important;
    margin-bottom: 20px !important;
}
.related-post-item {
    background: #f9f9f9 !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    transition: 0.3s !important;
}
.related-post-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px) !important;
}
.related-post-content { padding: 15px !important; background: #fff !important; }

/* మొబైల్ ఫోన్లలో ప్యాడింగ్ అడ్జస్ట్‌మెంట్ */
@media (max-width: 768px) {
    .full-article { padding: 15px !important; }
    .full-article h1 { font-size: 24px !important; }
    .post-meta { flex-direction: column !important; gap: 8px !important; }
    .post-actions-container { flex-direction: column !important; }
}