/*
Theme Name: DinajpurNews2
Theme URI: https://dinajpurnews.net
Author: Md Azad (Guru)
Author URI: https://www.facebook.com/profile.php?id=61573117237389
Description: DinajpurNews is a responsive WordPress theme designed for local news portals. Features include Bangla calendar integration, widgetized layouts, and optimized performance. Inspired by Dinajpur’s cultural rhythm.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: bangla, news, responsive, calendar, lightweight, widget-ready
Text Domain: dinajpurnews
*/

/* 🔤 বাংলা ফন্ট */
body {
  font-family: 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;
  margin: 0;
  padding: 0;
}
.dark-mode body {
  background-color: #121212;
  color: #e0e0e0;
}

/* 🧢 Header Basic */
#site-header {
  padding: 10px 15px;
  background-color: #ffffff !important;
  background-image: none !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

html.dark-mode #site-header {
  background-color: #000000 !important;
  background-image: none !important;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  max-width: 1440px;
  margin: auto;
}

.site-logo img {
  height: auto;
  max-height: 60px;
  width: auto;
}

.date-info {
  font-size: 14px;
  text-align: right;
  color: #444;
}

html.dark-mode .date-info {
  color: #ccc;
}

.header-ad {
  flex: 1 1 728px;
  text-align: center;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #ffffff;
  color: #000;
}

html.dark-mode body {
  background: #000000;
  color: #cccccc;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #000;
}

html.dark-mode #theme-toggle {
  color: #fff;
}

/* 🧭 মেনু বার */
.menu-bar {
  background-color: #000000;
  color: #ffffff;
  border-bottom: 2px double #cc0000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  margin: 0 auto;
}
.mobile-menu-toggle {
  display: none;
  background: #222;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}
.main-menu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.main-menu-container ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-menu-container li a {
  color: #ffffff !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
  text-shadow: 1px 1px 1px #000;
  transition: background 0.2s ease;
}
.main-menu-container li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 📰 পোস্ট বক্স */
.post-box {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.dark-mode .post-box {
  background-color: #1e1e1e;
  border-color: #333;
}

/* 📱 মোবাইল ডিভাইসের জন্য রেসপনসিভ */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .main-menu-container {
    display: none;
    width: 100%;
    margin-top: 10px;
  }
  .main-menu-container.active {
    display: block;
  }
  .main-menu-container ul {
    flex-direction: column;
    align-items: center;
  }
  .main-menu-container li {
    width: 100%;
    text-align: center;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 🔽 Footer Styling */
#site-footer {
  background: #000;
  color: #fff;
}
.footer-widgets h4,
.footer-box h4 {
  color: #fff;
  font-weight: bold;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}
.footer-box a {
  color: #ccc;
  text-decoration: none;
}
.footer-box a:hover {
  color: #fff;
}

/* 📜 Pagination */
.pagination {
  margin-top: 20px;
}
.pagination .page-numbers {
  background: #eee;
  padding: 8px 12px;
  margin: 0 4px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}
.pagination .current {
  background: #cc0000;
  color: #fff;
}
.dark-mode .pagination .page-numbers {
  background: #333;
  color: #ccc;
}
.dark-mode .pagination .current {
  background: #cc0000;
  color: #fff;
}



/* == JOYLOOPSLIDER Widget Styles == */

 .joyloopslider-widget {
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.joy-category-title {
    font-size: 21px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.joyloopSwiper .swiper-slide {
    text-align: center;
    box-sizing: border-box;
    padding: 5px;
}

.joyloopSwiper .swiper-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 5px;
}

.slider-title {
    text-align: center;
    margin-top: 8px;
}

.slider-title a {
    color: #000 !important;
    font-weight: bold;
    text-decoration: none;
    display: block;
    font-size: 16px;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.joy-more-news {
    text-align: right;
    margin-top: 8px;
}

.joy-more-news a {
    background: #ccc;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.joy-more-news a:hover {
    background: #aaa;
}

@media (max-width: 768px) {
    .slider-title a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .slider-title a {
        font-size: 14px;
    }
}


/* == পোষ্টের ছবি রেসপনসিভ == */

.page-body img,
.post-justify img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}