/*
Theme Name: DinajpurNews
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.0
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
*/


/* 🌈 Variables */
:root {
  --category-color: #ff2c2c;
  --category-bg: #eaeaea;
  --category-hover-bg: #d0d0d0;
  --logo-height: 80px;
}

/* 🌍 Base */
body {
  margin: 0;
  font-family: 'Noto Sans Bengali', sans-serif;
  background-color: #f9f9f9;
}

/* 🧭 Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}
.site-logo img {
  max-height: var(--logo-height);
  width: auto;
}
.date-display {
  text-align: right;
  font-size: 14px;
  color: #333;
}
.date-display h1 {
  margin: 0 0 1px 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--category-color);
}
.date-display p {
  margin: 0;
  padding: 0;
  line-height: 1.25;
}
.date-display p:last-child {
  word-spacing: -2px;
  letter-spacing: -0.5px;
}

/* 🍽️ Menu */
.menu-bar {
  background-color: var(--category-color);
  color: #ffffff;
  border-bottom: 1px solid #cc0000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.mobile-menu-toggle {
  background: var(--category-color);
  color: #ffffff;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  width: 100%;
  display: none;
}
.main-menu-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.main-menu-container ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}
.main-menu-container li {
  display: flex;
}
.main-menu-container li a {
  color: #ffffff !important;
  text-decoration: none;
  padding: 6px 10px;
  display: inline-block;
  text-shadow: 1px 1px 1px #000000;
  background-color: transparent;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.main-menu-container li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.menu-clock {
  color: #f2f2f2;
  font-size: 14px;
}

/* 🗂️ Category Navigation */
.category-nav {
  text-align: center;
  background: #f2f2f2;
  padding: 10px;
}
.category-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.category-list li span {
  display: inline-block;
  font-size: 16px;
  color: var(--category-color);
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--category-bg);
}
.category-list li span:hover {
  background: var(--category-hover-bg);
}
.mobile-category-toggle {
  display: none;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

/* 📦 Content Area 1 */
.content-area-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
}
.box-1,
.box-2,
.sidebar {
  flex: 1 1 32%;
  min-width: 280px;
}
.sidebar {
  margin-top: 20px;
}

/* 📦 Content Area 2 */
.content-area-2 {
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  min-height: 150px;
  box-sizing: border-box;
}

/* 🧱 Footer */
.footer-area {
  background: #000 !important;   /* ✅ কুচকুচে কালো ব্যাকগ্রাউন্ড */
  color: #fff !important;        /* ✅ সাদা লেখা */
  font-weight: bold;             /* ✅ বোল্ড টেক্সট */
  display: flex;
  justify-content: space-between;
  padding: 20px 15px;            /* ✅ উপরে-নিচে 20px, ডানে-বামে 15px গ্যাপ */
}

.footer-area a {
  color: #fff !important;        /* ✅ সাদা লিংক */
  font-weight: bold;             /* ✅ বোল্ড লিংক */
  text-decoration: none;         /* ✅ আন্ডারলাইন সরানো */
}

.footer-area a:hover {
  color: #ffcc00 !important;     /* ✅ হোভার করলে হলুদ */
  text-decoration: underline;    /* ✅ হোভার আন্ডারলাইন */
}

.footer-area .widget {
  flex: 1;
  padding: 10px;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .content-area-1 {
    flex-direction: column;
  }
  .box-1,
  .box-2,
  .sidebar {
    flex: none;
    width: 100%;
  }

  .category-nav {
    display: none;
  }
  .category-nav.active {
    display: block;
  }
  .mobile-category-toggle {
    display: block;
  }
  .category-list {
    flex-direction: column;
    align-items: center;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .site-logo img {
    max-height: 50px;
    width: auto;
  }
  .date-display {
    text-align: center;
    font-size: 13px;
    margin-top: 5px;
  }
  .date-display h1 {
    font-size: 15px;
  }

  .mobile-menu-toggle {
    display: block;
  }
  .main-menu-container {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .main-menu-container.active {
    display: flex;
  }
  .main-menu-container ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .menu-clock {
    margin-top: 10px;
  }
}

/* ============================== */
/* 📄 Page & Single Post Styling */
/* ============================== */

.page-content {
  max-width: 960px;
  margin: 30px auto 50px auto;
  padding: 20px 15px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

/* 🟥 বড় পোস্ট টাইটেল */
.post-title-large {
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
  margin: 30px 0 20px 0;
  color: #111;
  line-height: 1.2;
}

/* 🖼️ বড় ফিয়েচার্ড ইমেজ */
.featured-image {
  text-align: center;
  margin-bottom: 30px;
}

.featured-image img,
.featured-large {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.featured-image img:hover {
  transform: scale(1.02);
}

/* 🔡 নিচের ছোট টাইটেল */
.post-title-small {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  margin: 10px 0;
  color: #444;
}

/* 🕒 পোস্ট তথ্য */
.post-meta {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
}

/* 📘 কনটেন্ট জাস্টিফাই */
.page-body,
.post-justify {
  text-align: justify;
  font-size: 16px;
  line-height: 1.75;
  color: #222;
  padding: 0 20px;
}

/* ✅ মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
  .page-content {
    margin: 20px 15px 40px 15px;
    padding: 15px 15px;
  }

  .post-title-large {
    font-size: 2rem;
  }

  .post-title-small {
    font-size: 1.1rem;
  }

  .post-meta {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .page-body {
    font-size: 15px;
    line-height: 1.6;
  }
}
/* ====ক্যাটাগোরি পেজ ===== */
.category-wrapper {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 20px; /* ডানে–বামে মার্জিন */
}

.category-post-box {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.category-post-box .thumb img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.category-post-box .post-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 8px;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

.category-post-box .post-meta {
  font-size: 0.9rem;
  color: #555;
}


/* === ক্যাটাগোরি পেজে নেভিগেশন === */

.pagination-nav {
  margin-top: 40px;
  text-align: center;
}

.pagination-nav .page-numbers {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  background: #f1f1f1;
  border-radius: 6px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.pagination-nav .page-numbers:hover {
  background: var(--category-color);
  color: #fff;
}

.pagination-nav .page-numbers.prev,
.pagination-nav .page-numbers.next {
  background-color: #eaeaea;
  color: #111;
  font-weight: bold;
  border: 1px solid #ccc;
}

.pagination-nav .page-numbers.prev:hover,
.pagination-nav .page-numbers.next:hover {
  background-color: var(--category-color);
  color: #fff;
  border-color: var(--category-color);
}

.pagination-nav .current {
  background: var(--category-color);
  color: #fff;
  font-weight: bold;
  border: 1px solid var(--category-color);
}



/* ===Box1 ও Box2 ওয়েজেড=== */
.dnews-cat-7post-widget {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dnews-cat-7post-widget .cat-title-wrap {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.dnews-cat-7post-widget .cat-title-wrap a {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.dnews-7post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dnews-7post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dnews-7post-item .thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.dnews-7post-item .info {
    flex: 1;
}

.dnews-7post-item .title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    cursor: pointer;
}

.dnews-7post-item .title:hover {
    text-decoration: underline;
}

.dnews-7post-item .meta {
    font-size: 13px;
    color: #666;
}

.more-link-wrap {
    text-align: right;
    margin-top: 10px;
}

.more-link {
    background: #ddd;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.more-link:hover {
    background: #ccc;
}

/* Responsive */
@media (max-width: 600px) {
    .dnews-7post-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dnews-7post-item .thumb img {
        width: 100%;
        height: auto;
    }

    .dnews-7post-item .info {
        width: 100%;
    }
}

/* ======নতুন কোড BOXJoy5================ */

.boxjoy5-widget {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Section Title */
.boxjoy5-widget .cat-title-wrap {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.boxjoy5-widget .cat-title-wrap a {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

/* 🔶 ১ম পোস্ট */
.boxjoy5-main-post .main-thumb-info {
    text-align: center;
    border: 1px solid #f55b5b33;
    padding: 12px;
    border-radius: 6px;
    background: #fcfcfc;
    margin-bottom: 15px;
}

.boxjoy5-main-post .main-thumb-info img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.boxjoy5-widget .main-info {
    margin-top: 10px;
}

.boxjoy5-widget .main-info .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.boxjoy5-widget .main-info .title a {
    color: #000;
    text-decoration: none;
}

.boxjoy5-widget .main-info .title a:hover {
    text-decoration: underline;
}

.boxjoy5-widget .main-info .excerpt {
    font-size: 14px;
    color: #444;
    margin-top: 5px;
}

.boxjoy5-widget .main-info .meta {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* 🔷 ২–৫ নম্বর পোস্ট */
.boxjoy5-side-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.boxjoy5-side-posts .side-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border: 1px solid #f55b5b33;
    border-radius: 6px;
    background: #fcfcfc;
}

.boxjoy5-side-posts .side-item .thumb img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.boxjoy5-side-posts .side-item .info {
    flex: 1;
}

.boxjoy5-side-posts .side-item .info .title {
    font-size: 17px;
    font-weight: bold;
}

.boxjoy5-side-posts .side-item .info .title a {
    color: #000;
    text-decoration: none;
}

.boxjoy5-side-posts .side-item .info .title a:hover {
    text-decoration: underline;
}

.boxjoy5-side-posts .side-item .info .excerpt {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
}

.boxjoy5-side-posts .side-item .info .meta {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* More link */
.more-link-wrap {
    text-align: right;
    margin-top: 10px;
}

.more-link {
    background: #ddd;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.more-link:hover {
    background: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .boxjoy5-main-post .main-thumb-info img {
        width: 300px;
        height: 200px;
    }

    .boxjoy5-side-posts .side-item {
        flex-direction: column;
        text-align: center;
    }

    .boxjoy5-side-posts .side-item .thumb img {
        width: 160px;
        height: 120px;
        margin: 0 auto;
    }
}
/* ====== Joyside5 ===== */

.joyside5-widget {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.joyside5-widget .cat-title-wrap {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.joyside5-widget .cat-title-wrap a {
    color: #fff;
    font-size: 21px;
    font-weight: bold;
    text-decoration: none;
}

.joyside5-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.joyside5-post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.joyside5-post-item .thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.joyside5-post-item .info .title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}

.joyside5-post-item .info .meta {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

.more-link-wrap {
    text-align: right;
    margin-top: 10px;
}

.more-link {
    background: #ddd;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.more-link:hover {
    background: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .joyside5-post-item {
        flex-direction: row;
    }
}


/* =======Mostwanted5==============*/
.joy-wanted5-widget {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.joy-wanted5-widget .cat-title-wrap {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.joy-wanted5-widget .cat-title-wrap a {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.joy-wanted5-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.left-big-post .big-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.left-big-post .title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
}

.left-big-post .meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.left-big-post .excerpt {
    font-size: 14px;
    color: #444;
    margin-top: 6px;
    line-height: 1.5;
}

.right-small-posts .small-post {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.right-small-posts .thumb {
    flex-shrink: 0;
}

.right-small-posts .thumb img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.right-small-posts .info {
    flex-grow: 1;
}

.right-small-posts .info .title {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 2px;
}

.right-small-posts .info .meta {
    font-size: 13px;
    color: #666;
}

.right-small-posts .info .excerpt {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
    line-height: 1.4;
}

.more-link-wrap {
    text-align: right;
    margin-top: 10px;
}

.more-link {
    background: #ddd;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.more-link:hover {
    background: #ccc;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .joy-wanted5-content {
        grid-template-columns: 1fr;
    }

    .right-small-posts .small-post {
        flex-direction: row;
        align-items: center;
    }

    .right-small-posts .thumb img {
        width: 100px;
        height: 70px;
    }
}


/* =====================*/