/*
Theme Name: Craft Samachar Pro Theme
Author: नितिश केशरी
Theme URI: https://craftsamachar.in/
Description: A responsive, fully customizable news portal theme with advanced dashboard controls.
Version: 1.0
Text Domain: craftsamachar
*/

:root {
    --primary-color: #e60000;
    --text-dark: #222222;
    --bg-light: #f4f4f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Mukta', sans-serif; background-color: var(--bg-light); color: var(--text-dark); }
a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Header CSS */
.top-bar { background: #111; color: #fff; padding: 5px 20px; font-size: 13px; display: flex; justify-content: space-between; }
.middle-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #fff; }
.main-navigation { background: var(--primary-color); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.main-navigation ul { display: flex; }
.main-navigation ul li a { color: #fff; padding: 15px 20px; display: block; font-weight: 600; }
.main-navigation ul li a:hover { background: rgba(0,0,0,0.1); }
.mobile-menu-toggle { display: none; color: #fff; font-size: 24px; cursor: pointer; padding: 10px; }
.news-ticker { background: #fff; border-bottom: 2px solid var(--primary-color); padding: 8px 20px; display: flex; font-size: 14px;}
.ticker-label { background: var(--primary-color); color: #fff; padding: 2px 10px; font-weight: bold; margin-right: 10px; }

/* Homepage CSS */
.main-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }
.section-title { border-bottom: 2px solid var(--primary-color); margin-bottom: 20px; }
.section-title h2 { background: var(--primary-color); color: #fff; display: inline-block; padding: 5px 15px; font-size: 18px; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.3s; }
.news-thumbnail img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-content { padding: 15px; }
.news-content h3 { font-size: 18px; margin: 0 0 10px; line-height: 1.4; }
.news-content h3 a { color: var(--text-dark); }
.news-content h3 a:hover { color: var(--primary-color); }

/* Single Post & Sidebar CSS */
.single-page-layout { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px; }
.post-content-area { flex: 7; background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.sidebar-area { flex: 3; }
.post-title { font-size: 28px; line-height: 1.3; margin-bottom: 15px; font-weight: 700; }
.post-meta-data { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; background: #f9f9f9; padding: 10px; border-left: 4px solid var(--primary-color); }
.post-meta-data span { margin-right: 15px; font-size: 14px; color: #444; }
.share-buttons a { padding: 5px 12px; color: #fff; border-radius: 3px; font-size: 13px; display: inline-block; margin-left: 5px; }
.btn-whatsapp { background: #25D366; }
.btn-facebook { background: #1877F2; }
.post-main-content { font-size: 18px; line-height: 1.6; color: #333; margin-top: 20px; }
.sidebar-widget { background: #fff; padding: 20px; margin-bottom: 25px; border-top: 4px solid #111; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.widget-title { background: #111; color: #fff; display: inline-block; padding: 5px 15px; margin: -20px 0 15px -20px; font-size: 16px; }

/* Footer CSS */
.site-footer { background: #222; color: #ccc; padding: 40px 20px 20px; margin-top: 40px; font-size: 14px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding-bottom: 20px; border-bottom: 1px solid #444; }
.footer-widget h3 { color: #fff; border-left: 3px solid var(--primary-color); padding-left: 10px; margin-bottom: 15px; }
.footer-bottom { text-align: center; padding-top: 20px; max-width: 1200px; margin: 0 auto; }

/* Mobile View */
@media (max-width: 768px) {
    .top-bar, .header-ad { display: none; }
    .middle-header { justify-content: center; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; background: #222; }
    .mobile-menu-toggle { display: block; }
    .main-navigation.active ul { display: flex; }
    .single-page-layout { flex-direction: column; }
    .post-content-area, .sidebar-area { flex: 100%; }
}
