/* ==========================================================================
   ১. সাইডবার কনটেইনার ও রেসপন্সিভ লেআউট
   ========================================================================== */
.mi-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* স্টিকি উইজেট (বড় স্ক্রিনের জন্য) */
@media (min-width: 992px) {
    .mi-sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

/* রেসপন্সিভ ব্রেকপয়েন্টস */
@media (max-width: 1024px) {
    .mi-sidebar {
        position: static;
    }  
}

@media (max-width: 768px) {
    .mi-sidebar {
      display: block !important;
    }

    .mi-main-wrapper {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   ২. স্ট্যান্ডার্ড উইজেট বক্স স্টাইল (ব্যাকগ্রাউন্ড ও বর্ডারসহ)
   ========================================================================== */
.mi-widget {
    background: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border: 0px solid #dadce0;
}

.mi-widget h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mi-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a73e8;
}


/* ==========================================================================
   ৩. নতুন: ফ্ল্যাট উইজেট স্টাইল ("বিজ্ঞানচিন্তা" এর জন্য - ব্যাকগ্রাউন্ড ছাড়া)
   ========================================================================== */
.mi-flat-widget {
    background: transparent; /* কোনো ব্যাকগ্রাউন্ড বা বাক্স থাকবে না */
    padding: 10px 0;
    font-family: 'SolaimanLipi', Arial, sans-serif;
}

/* উইজেটের ওপরের লম্বা চিকন বর্ডার */
.mi-widget-header-flat {
    border-top: 1px solid #c0c0c0; /* ছবির মতো ওপর দিয়ে চলে যাওয়া চিকন ধূসর দাগ */
    padding-top: 12px;
    margin-bottom: 18px;
    position: relative;
    display: flex;
}

.mi-category-flat {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}

/* "বিজ্ঞানচিন্তা" লেখার ঠিক নিচের লাল আন্ডারলাইন */
.mi-category-flat::after {
    content: '';
    position: absolute;
    bottom: -13px; /* বর্ডার-টপ ও প্যাডিংয়ের সাথে পজিশন ম্যাচ করার জন্য */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #dc3545; /* লাল রঙের বার */
}


/* ==========================================================================
   ৪. উইজেট কন্টেন্ট, লিস্ট এবং ইনার এলিমেন্টস স্টাইল
   ========================================================================== */
/* ফিচার্ড উইজেট কার্ড */
.mi-news-card-featured .mi-card-body h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 8px 0 0 0;
}

.mi-news-card-featured .mi-card-body h4 a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

/* উইজেট লিস্ট */
.mi-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mi-widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.mi-widget-list li:last-child {
    border-bottom: none;
}

.mi-widget-list li h4 {
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0;
}

/* লিস্টের ভেতরের সাধারণ লিংক স্টাইল (অ্যারো ইফেক্ট ছাড়া টেক্সট) */
.mi-widget-list li h4 a {
    color: #333;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s ease;
}

.mi-widget-list li h4 a:hover {
    color: #007bff;
}

/* মাঝখানের আড়াআড়ি ডিভাইডার দাগ */
.mi-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

/* "আরও" বাটনের স্টাইল */
.mi-widget-footer {
    text-align: center;
}

.mi-btn-more {
    background-color: #007bff;
    color: white !important;
    padding: 6px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s;
}

.mi-btn-more:hover {
    background-color: #0056b3;
}


/* ==========================================================================
   ৫. বিজ্ঞাপন প্লেসহোল্ডার স্টাইল
   ========================================================================== */
.mi-ad-placeholder {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 8px;
    padding: 2px 2px;
    text-align: center;
    color: #5f6368;
    font-size: 0.95rem;
    border: 2px dashed #dadce0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-ad-placeholder p {
    margin: 0;
    font-weight: 500;
}
/* ==========================================================================
   এলাকার খবর ফিল্টার উইজেট স্টাইল (s2.JPG অনুযায়ী)
   ========================================================================== */
.mi-area-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px; /* প্রতিটি ড্রপডাউন ও বাটনের মধ্যবর্তী দূরত্ব */
    margin-top: 5px;
}

.mi-filter-group {
    position: relative;
    width: 100%;
}

/* ড্রপডাউন সিলেক্ট বক্সের স্টাইল */
.mi-filter-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #757575; /* ছবির মতো স্পষ্ট বর্ডার */
    border-radius: 4px;
    appearance: none; /* ডিফল্ট ব্রাউজার অ্যারো লুকানোর জন্য */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.mi-filter-select:focus {
    border-color: #007bff;
}

/* খুঁজুন বাটনের স্টাইল */
.mi-btn-search {
    width: 100%;
    background-color: #0091ff; /* ছবির মতো চমৎকার উজ্জ্বল নীল রঙ */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    margin-top: 4px;
}

.mi-btn-search:hover {
    background-color: #0076cf; /* হোভার কালার */
}
/* ==========================================================================
   সাইডবার থাম্বনেইল লিস্ট উইজেট স্টাইল (s3.JPG অনুযায়ী)
   ========================================================================== */
.mi-sidebar-thumb-list {
    display: flex;
    flex-direction: column;
}

.mi-sidebar-thumb-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e0e0e0; /* খবরের মাঝখানের আড়াআড়ি চিকন ডিভাইডার */
    align-items: flex-start;
}

/* প্রথম আইটেমের ওপরের বাড়তি প্যাডিং রিসেট */
.mi-sidebar-thumb-list .mi-sidebar-thumb-item:first-child {
    padding-top: 0;
}

/* শেষ আইটেমের নিচের বর্ডার ও প্যাডিং রিমুভ */
.mi-sidebar-thumb-list .mi-sidebar-thumb-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* বামের ছোট ছবির স্টাইল */
.mi-sidebar-thumb-img img {
    width: 105px;
    height: 70px;
    object-fit: cover;
    border-radius: 2px; /* ছবির কোণাগুলো হালকা স্মুথ রাখার জন্য */
    display: block;
}

/* ডানের লেখার স্টাইল */
.mi-sidebar-thumb-text {
    flex: 1;
}

.mi-sidebar-thumb-text h4 {
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
}

.mi-sidebar-thumb-text h4 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mi-sidebar-thumb-text h4 a:hover {
    color: #007bff; /* হোভার করলে লিংক নীল হবে */
}
/* ==========================================================================
   আর্কাইভ ক্যালেন্ডার উইজেট স্টাইল
   ========================================================================== */
.mi-archive-calendar-wrapper {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ক্যালেন্ডার হেডার (মাস ও নেভিগেশন) */
.mi-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.mi-cal-month-year {
    font-size: 1.05rem;
    font-weight: bold;
    color: #333333;
}

.mi-cal-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #777777;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.mi-cal-btn:hover {
    color: #007bff;
}

/* ক্যালেন্ডার গ্রিড লেআউট */
.mi-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* সপ্তাহের ৭ দিনের জন্য ৭টি কলাম */
    gap: 6px;
    text-align: center;
}

/* বারের নাম (শনি-শুক্র) */
.mi-cal-day-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #666666;
    padding-bottom: 5px;
}

/* প্রতিটি তারিখের ঘরের স্টাইল */
.mi-cal-date {
    font-size: 0.95rem;
    color: #333333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* যেসব তারিখে খবর আছে সেগুলোর হোভার ইফেক্ট */
.mi-cal-date:not(.mi-empty):hover {
    background-color: #f0f4f8;
    color: #007bff;
    font-weight: bold;
}

/* আজকের তারিখ (Highlighted) */
.mi-cal-date.mi-current {
    background-color: #007bff;
    color: #ffffff !important;
    font-weight: bold;
}

/* ফাঁকা ঘরের জন্য */
.mi-cal-date.mi-empty {
    cursor: default;
    background: none;
}
/* ==========================================================================
   প্রিমিয়াম ও ইউনিক কার্ড ট্যাবড নিউজ উইজেট
   ========================================================================== */
.mi-premium-tab-card {
    background: #ffffff;
    border-radius: 16px; /* মডার্ন রাউন্ডেড কোণা */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    margin-bottom: 24px;
}

/* মডার্ন ট্যাব বার */
.mi-modern-tabs {
    display: flex;
    background: #f8fafc; /* হালকা মিনিমাল ব্যাকগ্রাউন্ড */
    padding: 6px;
    gap: 4px;
    border-bottom: 1px solid #edf2f7;
}

/* ইউনিক ক্যাপসুল ডিজাইন ট্যাব বাটন */
.mi-modern-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 2px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.mi-tab-icon {
    font-size: 1rem;
}

/* একটিভ ট্যাবের আকর্ষণীয় গ্রেডিয়েন্ট লুক */
.mi-modern-tab-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mi-modern-tab-btn:not(.active):hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* কন্টেন্ট এরিয়া */
.mi-modern-tab-body {
    padding: 18px;
}

.mi-modern-pane {
    display: none;
}

.mi-modern-pane.active {
    display: block;
    animation: smoothEffect 0.4s ease;
}

/* মডার্ন লিস্ট এবং ট্রেন্ডিং নম্বর স্টাইল */
.mi-premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mi-premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.mi-premium-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ১, ২, ৩ নম্বরগুলোর জন্য ইউনিক ডিজাইন */
.mi-news-number {
    font-size: 0.95rem;
    font-weight: bold;
    color: #2563eb;
    background: #eff6ff;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.mi-premium-list li a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.2s;
}

.mi-premium-list li a:hover {
    color: #2563eb;
}

/* কমেন্ট কাউন্টার ব্যাজ */
.mi-comment-count {
    font-size: 0.8rem;
    background: #fee2e2;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

/* স্মুথ ট্রানজিশন অ্যানিমেশন */
@keyframes smoothEffect {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   নিউজ পোর্টাল মতামত ও বিশ্লেষণ উইজেট স্টাইল (হুবহু ইমেজ অনুযায়ী)
   ========================================================================== */
.mi-opinion-widget {
    background: transparent;
    font-family: 'SolaimanLipi', Arial, sans-serif;
    padding: 10px 0;
}

.mi-opinion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mi-opinion-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0; /* ইমেজের মতো নিচের চিকন দাগ */
}

.mi-opinion-list li:last-child {
    border-bottom: none; /* শেষ আইটেমের নিচে বর্ডার থাকবে না */
}

/* বাম পাশের গোল পেনসিল/ডামি আইকন */
.mi-author-avatar {
    width: 50px;
    height: 50px;
    background-color: #e6e6e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* আইকনের ভেতরের পেনসিল ডিজাইন (ফন্টঅসাম ব্যবহার না করলে সিএসএস দিয়েও পেনসিল বানানো যায়) */
.mi-author-avatar i, 
.mi-author-avatar::before {
    content: '✎'; /* ডামি পেনসিল ক্যারেক্টার */
    font-size: 24px;
    color: #ffffff;
}

.mi-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* টেক্সট এরিয়া */
.mi-opinion-content {
    flex: 1;
}

.mi-opinion-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 6px 0;
    color: #333333;
}

/* লাল রঙের ক্যাটাগরি ট্যাগ */
.mi-op-tag {
    color: #cc0000; /* ইমেজের মতো লাল রং */
    font-weight: bold;
}

.mi-opinion-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s;
}

.mi-opinion-title a:hover {
    color: #007bff;
}

/* লেখকের নাম (ছোট এবং হালকা ধূসর রঙের) */
.mi-op-author {
    font-size: 0.85rem;
    color: #666666;
    display: block;
}

.mi-op-author a {
    color: #555555;
    text-decoration: none;
}

.mi-op-author a:hover {
    text-decoration: underline;
}
