/*
Theme Name: Darpon News
Theme URI: https://www.darponnews.com
Author: Foysal Razu
Author URI: https://www.facebook.com/foysal.razu
Description: A professional Bengali news portal theme for Darpon News
Version: 1.1.2
License: GPL v2 or later
Text Domain: darponnews
*/

/* Root Variables */
:root {
    --primary-color: #114f83;
    --primary-dark: #0d3d66;
    --secondary-color: #e74c3c;
    --dark-bg: #121212;
    --light-bg: #ffffff;
    --text-dark: #212121;
    --text-light: #ffffff;
    --gray-border: #e0e0e0;
    --gray-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif Bengali', 'Kalpurush', 'SolaimanLipi', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.desktopHeaderDiv {
    background: var(--light-bg);
    border-bottom: 1px solid var(--gray-border);
    padding: 10px 0;
}

.bgRed {
    background-color: var(--primary-color) !important;
}

.navbar {
    min-height: 50px;
    margin-bottom: 0;
}

.headerMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.headerMenu ul li {
    margin: 0 12px;
}

.headerMenu ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    display: inline-block;
}

.headerMenu ul li a:hover {
    opacity: 0.9;
}

/* Logo */
.logoLight img, .logoDark img {
    max-height: 50px;
    width: auto;
}

/* Social Icons */
.topSocialIcon a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--gray-light);
    border-radius: 50%;
    margin: 0 3px;
    color: var(--text-dark);
    font-size: 14px;
}

.topSocialIcon a:hover {
    background: var(--primary-color);
    color: white;
}

/* Search Icon */
.desktopSearchIcon {
    cursor: pointer;
    font-size: 20px;
    margin-right: 10px;
    display: inline-block;
}

/* Mobile Header */
.mobileHeader {
    background: var(--primary-color);
    padding: 12px 0;
    color: white;
}

.sidebarIcon, .searchIcon {
    font-size: 22px;
    color: white;
}

/* Sidepanel */
.sidepanel {
    width: 0;
    position: fixed;
    z-index: 9999;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidepanel .closebtn {
    font-size: 36px;
    cursor: pointer;
    padding: 10px 15px;
}

.sidebarCatTitle {
    display: block;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-border);
    font-size: 16px;
}

.sidebarCatTitle:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* News Grid */
.desktopSectionTitle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.desktopSectionTitle a {
    color: var(--primary-color);
}

.title1 { font-size: 28px; font-weight: bold; }
.title8 { font-size: 18px; font-weight: bold; }
.title10 { font-size: 16px; font-weight: 600; }
.title11 { font-size: 14px; font-weight: 500; }
.title12 { font-size: 13px; }

.desktopSummary {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Media Objects */
.media {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.media-left {
    flex-shrink: 0;
    margin-right: 15px;
}

.media-object {
    border-radius: 5px;
    object-fit: cover;
}

.media-body {
    flex: 1;
}

.linkOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Thumbnails */
.thumbnail {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: auto;
}

.caption {
    padding: 10px 0;
}

.positionRelative {
    position: relative;
}

.borderRadius5 {
    border-radius: 5px;
}

/* Dividers */
.desktopDivider {
    border-top: 1px solid var(--gray-border);
    margin: 15px 0;
}

/* Footer */
.np-footer {
    background: #111827;
    color: #9ca3af;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.np-footer h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.np-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #1f2937;
    border-radius: 50%;
    margin-right: 10px;
    color: #9ca3af;
}

.np-social a:hover {
    background: var(--primary-color);
    color: white;
}

.np-divider {
    border-top: 1px solid #1f2937;
    margin: 25px 0;
}

/* Go to Top */
.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 99;
}

.go-to-top:hover {
    background: var(--primary-dark);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid var(--gray-border);
    background: white;
    color: var(--text-dark);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Post Meta */
.post-meta {
    padding: 10px 0;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    color: #666;
    font-size: 13px;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta i {
    margin-right: 5px;
}

/* Post Content */
.post-content {
    font-size: 16px;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    border-bottom: 1px solid var(--gray-border);
    padding: 15px 0;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-metadata {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-border);
}

.widget ul li a {
    color: var(--text-dark);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .desktopHeaderDiv, .hidden-xs {
        display: none !important;
    }
    
    .visible-xs {
        display: block !important;
    }
    
    .title1 { font-size: 22px; }
    .title3 { font-size: 18px; }
    .xs-title { font-size: 14px; }
}

@media (min-width: 769px) {
    .mobileHeader, .visible-xs {
        display: none !important;
    }
    
    .hidden-xs {
        display: block !important;
    }
}

/* ============================================ */
/* DARK MODE OVERRIDE - FORCE COLORS */
/* ============================================ */

/* Force dark mode background */
body.dark-mode,
body.dark-mode * {
    background-color: #121212 !important;
}

/* Force text to white */
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode li,
body.dark-mode td,
body.dark-mode th,
body.dark-mode label,
body.dark-mode .title1,
body.dark-mode .title8,
body.dark-mode .title10,
body.dark-mode .title11,
body.dark-mode .desktopSummary,
body.dark-mode .news-content,
body.dark-mode .caption,
body.dark-mode .media-body {
    color: #ffffff !important;
}

/* Force links - white by default, #114f83 on hover */
body.dark-mode a {
    color: #ffffff !important;
}

body.dark-mode a:hover {
    color: #114f83 !important;
}

/* Force button links to #114f83 */
body.dark-mode .read-more,
body.dark-mode .btn-link,
body.dark-mode .more-link {
    color: #114f83 !important;
}

body.dark-mode .read-more:hover {
    color: #ffffff !important;
}

/* Fix for specific elements that might have inline styles */
body.dark-mode .post-meta,
body.dark-mode .news-meta,
body.dark-mode .meta,
body.dark-mode .text-muted {
    color: #aaaaaa !important;
}

body.dark-mode .widget-title,
body.dark-mode .desktopSectionTitle {
    color: #ffffff !important;
    border-left-color: #114f83 !important;
}

body.dark-mode .widget ul li a {
    color: #ffffff !important;
}

body.dark-mode .widget ul li a:hover {
    color: #114f83 !important;
}

/* Utility Classes */
.marginT5 { margin-top: 5px; }
.marginT10 { margin-top: 10px; }
.marginT15 { margin-top: 15px; }
.marginT20 { margin-top: 20px; }
.marginT30 { margin-top: 30px; }
.marginT50 { margin-top: 50px; }
.marginT70 { margin-top: 70px; }
.marginB0 { margin-bottom: 0; }
.marginB5 { margin-bottom: 5px; }
.marginB10 { margin-bottom: 10px; }
.marginB15 { margin-bottom: 15px; }
.marginB20 { margin-bottom: 20px; }
.marginB30 { margin-bottom: 30px; }
.padding10 { padding: 10px; }
.padding15 { padding: 15px; }
.padding20 { padding: 20px; }
.paddingT10 { padding-top: 10px; }
.paddingT40 { padding-top: 40px; }
.paddingB40 { padding-bottom: 40px; }
.paddingLR0 { padding-left: 0; padding-right: 0; }
.paddingLR10 { padding-left: 10px; padding-right: 10px; }
.paddingLR20 { padding-left: 20px; padding-right: 20px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.colorWhite { color: white; }
.colorBlack { color: black; }
.bgWhite { background: white; }