/*
Theme Name: Meritcom Bangladesh Pratidin Pro V8
Theme URI: https://meritcom.shop
Author: Meritcom
Author URI: https://meritcom.shop
Description: Complete Bangladesh Pratidin Style News & Digital Products Portal Theme with 100% Working 1-Click Visual Page Builder (Auto-Installed & Deactivatable), Real WordPress Featured Thumbnails attached to every post, 12 Linked Categories with Icons, 12 Full 500-Word Bengali Articles, 5 Inner Ads per Post/Page, 1280x550 Leaderboard Ad Banner, Live BDT Currency Converter, Live DSEX Share Market Chart, File Attachment Uploader, and Section Dropdown Reordering.
Version: 8.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meritcom-bp
*/
:root {
  --deep-blue: #0A2463;
  --sky-blue: #00A8E8;
  --vibrant-green: #00A86B;
  --royal-gold: #FFB703;
  --vibrant-pink: #E63946;
  --pure-white: #FFFFFF;
  --soft-sky: #F0F8FF;
  --border-sky: #BAE6FD;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Hind Siliguri', sans-serif; background: var(--soft-sky); color: var(--deep-blue); line-height: 1.72; }
a { text-decoration: none; color: inherit; transition: 0.2s; }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(1.22) contrast(1.06) brightness(1.03);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.mc-news-card:hover img, .mc-mini-item:hover img {
  filter: saturate(1.32) contrast(1.08) brightness(1.05);
  transform: scale(1.015);
}

.mc-wrap { max-width: 1340px; margin: 0 auto; padding: 0 14px; }

/* Builder Studio Bar */
.mc-studio-bar { background: linear-gradient(90deg, #071947, #0A2463); color: var(--pure-white); padding: 9px 0; border-bottom: 3px solid var(--royal-gold); position: sticky; top: 0; z-index: 99999; box-shadow: 0 4px 12px rgba(10,36,99,0.25); }
.admin-bar .mc-studio-bar { top: 32px; }
.mc-studio-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.mc-btn-pill { border: none; padding: 6px 13px; border-radius: 7px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; }
.mc-bg-green { background: var(--vibrant-green); color: var(--pure-white); }
.mc-bg-pink { background: var(--vibrant-pink); color: var(--pure-white); }
.mc-bg-gold { background: var(--royal-gold); color: var(--deep-blue); }
.mc-bg-sky { background: var(--sky-blue); color: var(--pure-white); }

/* Section Order Dropdown Controller */
.mc-sec-dropdown-wrap { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; z-index: 20; }
.mc-sec-order-select { background: var(--deep-blue); color: var(--royal-gold); border: 1.5px solid var(--royal-gold); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.mc-sec-order-select option { background: var(--pure-white); color: var(--deep-blue); }

/* Topbar & Header */
.mc-topbar { background: var(--deep-blue); color: var(--pure-white); padding: 6px 0; font-size: 13px; border-bottom: 2px solid var(--sky-blue); }
.mc-topbar-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.mc-header { background: var(--pure-white); padding: 14px 0; border-bottom: 2px solid var(--border-sky); }
.mc-header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.mc-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mc-brand-icon { background: var(--vibrant-pink); color: var(--pure-white); padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 20px; border: 2px solid var(--royal-gold); line-height: 1.1; text-align: center; }
.mc-brand-title { font-size: 36px; font-weight: 800; color: var(--vibrant-pink); line-height: 1; }
.mc-brand-title span { color: var(--deep-blue); }

/* Category Navigation */
.mc-navbar { background: linear-gradient(90deg, #0A2463, #0077B6); padding: 7px 0; }
.mc-nav-list { display: flex; list-style: none; overflow-x: auto; gap: 5px; }
.mc-nav-list li a { color: var(--pure-white); padding: 6px 13px; border-radius: 7px; font-weight: 700; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.mc-nav-list li a:hover, .mc-nav-list li a.active, .mc-nav-list li.current-cat a { background: var(--royal-gold); color: var(--deep-blue); }

/* Breaking Ticker */
.mc-ticker { background: var(--pure-white); border: 2px solid var(--vibrant-pink); border-radius: 8px; margin: 12px 0; display: flex; align-items: center; overflow: hidden; }
.mc-ticker-label { background: var(--vibrant-pink); color: var(--pure-white); padding: 8px 16px; font-weight: 800; white-space: nowrap; font-size: 14px; }
.mc-ticker-scroll { padding: 7px 12px; width: 100%; font-weight: 700; font-size: 14px; }

/* 1280x550 Leaderboard Ad Banner */
.mc-leaderboard-1280 { width: 100%; max-width: 1280px; min-height: 240px; max-height: 550px; margin: 14px auto; background: linear-gradient(135deg, #0A2463 0%, #0077B6 55%, #00A86B 100%); border: 3px solid var(--royal-gold); border-radius: 14px; padding: 28px; color: var(--pure-white); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; overflow: hidden; }

/* Sections & Grids */
.mc-sec-wrapper { background: var(--pure-white); border: 1.5px solid var(--border-sky); border-radius: 12px; padding: 16px; margin-bottom: 20px; box-shadow: 0 3px 12px rgba(0,168,232,0.07); }
.mc-sec-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--deep-blue); padding-bottom: 8px; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.mc-sec-badge { background: var(--vibrant-pink); color: var(--pure-white); padding: 4px 14px; border-radius: 6px; font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }
.mc-sec-badge-blue { background: var(--deep-blue); color: var(--royal-gold); }
.mc-sec-badge-green { background: var(--vibrant-green); color: var(--pure-white); }
.mc-sec-badge-gold { background: var(--royal-gold); color: var(--deep-blue); }
.mc-divider { height: 4px; background: linear-gradient(90deg, var(--deep-blue), var(--sky-blue), var(--royal-gold), var(--vibrant-pink)); border-radius: 4px; margin: 16px 0; }

/* Ad Banner Slots */
.mc-ad-zone { background: linear-gradient(135deg, #E0F2FE, #FEF9C3); border: 2px dashed var(--sky-blue); border-radius: 10px; padding: 14px; text-align: center; margin: 14px 0; font-weight: 700; color: var(--deep-blue); overflow: hidden; }
.mc-ad-tag { background: var(--royal-gold); color: var(--deep-blue); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 5px; }

/* 3-Column Lead Grid */
.mc-top-grid { display: grid; grid-template-columns: 285px 1fr 315px; gap: 18px; margin: 18px 0; align-items: start; }
@media (max-width: 1120px) { .mc-top-grid { grid-template-columns: 1fr; } }

/* Responsive Aspect-Ratio Preserving Cards */
.mc-thumb-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; margin-bottom: 9px; background: #E0F2FE; position: relative; }
.mc-thumb-frame img { width: 100%; height: 100%; object-fit: cover; }
.mc-cat-chip { position: absolute; top: 8px; left: 8px; background: var(--royal-gold); color: var(--deep-blue); font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 5px; z-index: 5; }

.mc-news-card { background: var(--pure-white); border: 1.5px solid var(--border-sky); border-radius: 10px; padding: 12px; transition: 0.2s; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.mc-news-card:hover { border-color: var(--sky-blue); transform: translateY(-2px); }
.mc-news-card h3 { font-size: 16.5px; font-weight: 800; color: var(--deep-blue); line-height: 1.38; margin-bottom: 7px; }
.mc-card-excerpt { font-size: 13.8px; color: #1E3A8A; line-height: 1.56; margin-bottom: 8px; }
.mc-card-meta { font-size: 12px; color: var(--vibrant-green); font-weight: 700; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-sky); padding-top: 6px; gap: 6px; }

.mc-mini-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-sky); align-items: flex-start; }
.mc-mini-item:last-child { border-bottom: none; }
.mc-mini-thumb { width: 96px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; flex-shrink: 0; background: #E0F2FE; }
.mc-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-mini-item h4 { font-size: 14.5px; font-weight: 800; color: var(--deep-blue); line-height: 1.35; margin-bottom: 3px; }
.mc-mini-item p { font-size: 12.5px; color: #1D4ED8; line-height: 1.45; }

.mc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mc-grid-3-equal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mc-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 1100px) { .mc-grid-4 { grid-template-columns: repeat(2, 1fr); } .mc-grid-3-equal { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mc-grid-4, .mc-grid-2 { grid-template-columns: 1fr; } }

/* Showcase Band */
.mc-ent-band { background: linear-gradient(135deg, #0A2463 0%, #9D174D 55%, #E63946 100%); color: var(--pure-white); border-radius: 14px; padding: 20px; margin: 22px 0; border: 3px solid var(--royal-gold); }
.mc-ent-band .mc-news-card { background: rgba(255,255,255,0.97); color: var(--deep-blue); }

/* Live Currency & Stock Chart Widgets */
.mc-input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--sky-blue); border-radius: 7px; margin-bottom: 8px; font-size: 14px; color: var(--deep-blue); font-family: inherit; }
.mc-curr-box { background: var(--deep-blue); color: var(--royal-gold); padding: 9px; border-radius: 7px; text-align: center; font-weight: 800; font-size: 17px; }
.mc-chart-box { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 10px 6px; background: var(--soft-sky); border-radius: 8px; margin-top: 8px; border: 1px solid var(--border-sky); }
.mc-bar { flex: 1; border-radius: 4px 4px 0 0; transition: 0.3s; }

/* Full Article Reader View + 5 Inner Ads */
.mc-article-body p { margin-bottom: 18px; font-size: 17.5px; text-align: justify; }
.mc-inner-ad { background: linear-gradient(90deg, #E0F7FA, #FCE4EC); border: 2px dashed var(--vibrant-pink); border-radius: 9px; padding: 14px; margin: 16px 0; text-align: center; overflow: hidden; }

/* Category Directory Pills Bar */
.mc-cat-dir { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mc-cat-dir a { background: var(--pure-white); border: 1.5px solid var(--sky-blue); color: var(--deep-blue); padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.mc-cat-dir a:hover { background: var(--deep-blue); color: var(--royal-gold); border-color: var(--royal-gold); }

/* Footer */
.mc-footer { background: var(--deep-blue); color: var(--pure-white); padding: 38px 0 22px; margin-top: 28px; border-top: 5px solid var(--royal-gold); }
.mc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
@media (max-width: 800px) { .mc-footer-grid { grid-template-columns: 1fr; } }

/* 1-Click Builder Controls with Recommended Image Size Badge */
body.mc-edit-active [data-mc-edit] { outline: 2px dashed var(--sky-blue); position: relative; transition: 0.15s; cursor: pointer !important; }
body.mc-edit-active [data-mc-edit]:hover { outline: 3px solid var(--vibrant-pink); box-shadow: 0 0 0 4px rgba(255,183,3,0.28); }
body.mc-edit-active [data-mc-edit]::after {
  content: "✏️ এডিট • সাইজ: " attr(data-rec-size);
  position: absolute; top: 5px; right: 5px;
  background: var(--vibrant-pink); color: var(--pure-white);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px;
  opacity: 0; pointer-events: none; transition: 0.15s; z-index: 60;
}
body.mc-edit-active [data-mc-edit]:hover::after { opacity: 1; }

/* Builder Modal */
.mc-modal { display: none; position: fixed; inset: 0; background: rgba(10,36,99,0.84); z-index: 2147483647; align-items: center; justify-content: center; padding: 14px; }
.mc-modal-card { background: var(--pure-white); width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; border-radius: 14px; padding: 22px; border: 3px solid var(--royal-gold); }
.mc-modal-card label { display: block; font-weight: 700; margin: 10px 0 4px; color: var(--deep-blue); font-size: 13.5px; }
.mc-modal-card input[type="text"], .mc-modal-card textarea, .mc-modal-card select { width: 100%; padding: 8px 10px; border: 1.5px solid var(--sky-blue); border-radius: 7px; font-family: inherit; font-size: 14px; }
.mc-file-drop { border: 2px dashed var(--vibrant-green); background: #ECFDF5; padding: 12px; border-radius: 8px; text-align: center; margin-top: 6px; }
.mc-size-guide-banner { background: linear-gradient(90deg, #0A2463, #0077B6); color: #FFB703; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
