/*
Theme Name: PD Online Lite
Theme URI: https://www.pdonline.com.bd
Author: PD Online Team
Description: Lightweight news theme with professional three-column footer and social icons.
Version: 1.6
License: GNU General Public License v2 or later
Text Domain: pd-online-lite
*/

/* Basic Reset & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'SolaimanLipi', Arial, sans-serif; line-height: 1.6; color: #333; background: #f4f4f4; padding-bottom: 0; }
a { text-decoration: none; color: #0066cc; }
img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* Header & Logo */
header { background: #fff; border-bottom: 4px solid #dc3545; padding: 20px 0; text-align: center; }
.logo-container img { max-height: 80px; width: auto; display: block; margin: 0 auto 10px auto; }
.logo-container h1 a { color: #dc3545; font-weight: bold; font-size: 32px; }
.date-bar { font-size: 15px; color: #444; margin-top: 8px; font-weight: bold; background: #f8f9fa; display: inline-block; padding: 5px 15px; border-radius: 20px; border: 1px solid #eee; }

/* Dropdown Navigation Menu */
nav { background: #333; color: #fff; position: relative; z-index: 999; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; }
nav ul li { position: relative; }
nav ul li a { display: block; padding: 12px 18px; color: #fff; font-size: 16px; font-weight: bold; transition: background 0.2s; }
nav ul li a:hover { background: #dc3545; }

/* Sub-menu (Dropdown) */
nav ul li ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #222; min-width: 180px; box-shadow: 0 4px 6px rgba(0,0,0,0.15); }
nav ul li ul.sub-menu li { width: 100%; }
nav ul li ul.sub-menu li a { padding: 10px 15px; font-size: 14px; border-bottom: 1px solid #333; }
nav ul li ul.sub-menu li a:hover { background: #dc3545; }
nav ul li:hover > ul.sub-menu { display: block; }

/* Main Layout */
.main-content { display: flex; flex-wrap: wrap; margin-top: 20px; }
main { flex: 3; min-width: 300px; padding-right: 20px; }
aside { flex: 1; min-width: 280px; background: #fff; padding: 15px; height: fit-content; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* News Grid & Posts */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.news-card { background: #fff; padding: 15px; border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.news-card h3 { font-size: 18px; margin: 10px 0; background: #e9ecef; padding: 10px; border-left: 4px solid #dc3545; }
.news-card h3 a { color: #222; display: block; }
.news-card h3 a:hover { color: #dc3545; }
.meta { font-size: 13px; color: #666; margin-bottom: 10px; }

/* Single Post View */
.single-post { background: #fff; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.single-post-title-block { display: block; width: 100%; background: #22252a; padding: 18px 20px; border-left: 6px solid #dc3545; margin-bottom: 15px; border-radius: 4px; }
.single-post-title-block h2 { font-size: 28px; color: #ffffff; line-height: 1.4; margin: 0; padding: 0; font-weight: bold; }
.entry-content { font-size: 18px; line-height: 1.9; color: #111111; text-align: justify; text-justify: inter-word; }
.entry-content p { margin-bottom: 18px; }

/* Share Buttons & Icons */
.share-box { margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; }
.share-box p { font-weight: bold; font-size: 14px; margin-bottom: 12px; color: #555; }
.share-btn { display: inline-flex; align-items: center; padding: 8px 15px; margin-right: 8px; margin-bottom: 8px; color: #fff; font-size: 13px; border-radius: 4px; font-weight: bold; text-decoration: none; }
.share-btn .dashicons, .footer-info .dashicons { margin-right: 6px; font-size: 16px; width: 16px; height: 16px; vertical-align: middle; }
.share-fb { background: #1877F2; }
.share-tw { background: #111111; }
.share-wa { background: #25D366; }
.share-em { background: #ea4335; }

/* Sidebar Widgets */
.widget { margin-bottom: 25px; }
.widget h4 { border-bottom: 2px solid #dc3545; padding-bottom: 5px; margin-bottom: 10px; font-size: 18px; }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #eee; }

/* ৩ কলামের প্রফেশনাল ফুটার ডিজাইন */
.site-footer { background: #22252a; color: #bbb; padding: 40px 0 20px 0; margin-top: 40px; font-size: 14px; border-top: 5px solid #dc3545; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-col { flex: 1; min-width: 250px; padding: 0 15px; margin-bottom: 25px; }
.footer-col h5 { font-size: 16px; color: #fff; margin-bottom: 15px; border-bottom: 2px solid #dc3545; display: inline-block; padding-bottom: 3px; }
.footer-info p { margin-bottom: 10px; display: flex; align-items: center; }
.footer-info a { color: #bbb; transition: color 0.2s; }
.footer-info a:hover { color: #dc3545; }
.footer-center-brand { font-size: 22px; color: #fff; font-weight: bold; margin-bottom: 5px; }
.footer-center-editor { font-size: 15px; color: #f8f9fa; line-height: 1.6; }

/* ফুটার কপিরাইট বার */
.footer-bottom { border-top: 1px solid #3a3f47; padding-top: 15px; margin-top: 15px; text-align: center; font-size: 13px; color: #888; }
.footer-bottom a { color: #888; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    main { padding-right: 0; margin-bottom: 20px; }
    .main-content { flex-direction: column; }
    nav ul { flex-direction: column; }
    nav ul li ul.sub-menu { position: relative; top: 0; width: 100%; box-shadow: none; padding-left: 15px; }
    .footer-row { flex-direction: column; text-align: center; }
    .footer-col { width: 100%; padding: 0; }
    .footer-col h5 { display: block; width: max-content; margin: 0 auto 15px auto; }
    .footer-info p { justify-content: center; }
}