* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Hind Siliguri", "Noto Sans Bengali", Arial, sans-serif; background: #f1f5f9; color: #111827; line-height: 1.45; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

.md-container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* টপ বার */
.md-topbar { background: #0f2d5e; color: #fff; font-size: 13px; padding: 6px 0; }
.md-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.md-date-weather, .md-top-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.md-sep { opacity: 0.45; }
.md-social-icons { display: inline-flex; gap: 5px; }
.md-social-icons a { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.soc-fb { background: #1877f2; }
.soc-yt { background: #ff0000; }
.soc-x { background: #111827; }
.soc-ig { background: #e1306c; }
.soc-rss { background: #f97316; }

/* হেডার ও লোগো */
.md-header { background: #fff; border-bottom: 1px solid #e2e8f0; }
.md-header-inner { display: grid; grid-template-columns: 320px 1fr; align-items: center; padding: 10px 12px; gap: 16px; }
.md-brand { display: flex; flex-direction: column; align-items: flex-start; }
.md-logo-words { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.md-logo-green { font-size: 54px; font-weight: 800; color: #007a3d; letter-spacing: -1px; }
.md-logo-red { font-size: 54px; font-weight: 800; color: #d61c1c; letter-spacing: -1px; }
.md-logo-sub { font-size: 16px; font-weight: 700; color: #1f2937; margin-top: 2px; padding-left: 65px; }

.md-header-banner { height: 96px; border-radius: 4px; overflow: hidden; border: 1px solid #cbd5e1; }
.md-header-banner img, .md-monument-art svg { width: 100%; height: 96px; display: block; }

/* নেভিগেশন মেনু */
.md-nav { background: #14499b; color: #fff; }
.md-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.md-menu-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.md-menu-list li.md-home-icon a { font-size: 20px; padding: 7px 14px; background: #0e3778; }
.md-menu-list li a { display: block; padding: 10px 12px; color: #fff; font-weight: 600; font-size: 15px; transition: background 0.15s; }
.md-menu-list li a:hover { background: #0d3575; }
.md-caret { font-size: 12px; opacity: 0.85; }
.md-search-form { display: flex; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.md-search-form input { border: none; background: transparent; color: #fff; padding: 6px 10px; width: 130px; outline: none; font-size: 13px; }
.md-search-form input::placeholder { color: rgba(255,255,255,0.8); }
.md-search-form button { border: none; background: transparent; color: #fff; padding: 6px 10px; cursor: pointer; }

/* ব্রেকিং নিউজ */
.md-breaking { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 7px 0; }
.md-breaking-inner { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.md-breaking-badge { background: #d61c1c; color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 3px; font-size: 14px; white-space: nowrap; }
.md-breaking-arrow { font-weight: 800; color: #1e293b; font-size: 18px; }
.md-breaking-items { display: flex; align-items: center; gap: 12px; overflow-x: auto; white-space: nowrap; }
.md-breaking-items a { font-size: 14px; font-weight: 600; color: #1e293b; }
.md-breaking-items a:hover { color: #d61c1c; }
.md-dot { color: #64748b; }

/* মূল কন্টেইনার */
.md-main { padding-top: 14px; padding-bottom: 24px; }
.md-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }

/* শীর্ষ ৪ হরিজন্টাল কার্ড */
.md-card-top { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; padding: 8px; }
.md-card-top a { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; }
.md-card-top img { height: 64px; border-radius: 3px; }
.md-card-top h3 { font-size: 13.5px; line-height: 1.3; font-weight: 700; color: #111827; }

/* হিরো সেকশন */
.md-hero-section { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin-bottom: 16px; }
.md-hero-main { position: relative; border-radius: 4px; overflow: hidden; min-height: 365px; background: #0f172a; }
.md-hero-main img { height: 100%; min-height: 365px; }
.md-hero-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,0.88)); display: flex; align-items: flex-end; padding: 18px; }
.md-hero-overlay h1 { color: #fff; font-size: 28px; line-height: 1.25; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }

.md-hero-side { display: flex; flex-direction: column; gap: 8px; justify-content: space-between; }
.md-side-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; padding: 6px; }
.md-side-item a { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; }
.md-side-item img { height: 70px; border-radius: 3px; }
.md-side-item h4 { font-size: 14.5px; line-height: 1.3; font-weight: 700; color: #111827; }

/* ৪ কলাম কার্ড */
.md-card-sm { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.md-card-sm img { height: 135px; }
.md-card-sm h3 { padding: 10px; font-size: 15px; line-height: 1.35; font-weight: 700; color: #111827; }
.md-card-sm a:hover h3, .md-card-top a:hover h3, .md-side-item a:hover h4 { color: #14499b; }

/* ভিডিও সেকশন */
.md-video-section { border: 1px solid #cbd5e1; border-radius: 4px; overflow: hidden; margin-bottom: 18px; background: #fff; }
.md-video-header { background: #14499b; color: #fff; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
.md-video-title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.md-vid-icon { background: #fff; color: #14499b; width: 24px; height: 18px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.md-video-more { font-size: 13.5px; font-weight: 600; color: #fff; }
.md-video-body { padding: 12px; }
.md-video-grid { margin-bottom: 0; }
.md-video-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.md-video-thumb { position: relative; }
.md-video-thumb img { height: 128px; }
.md-play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(15, 23, 42, 0.72); border: 2px solid #fff; color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.md-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.85); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 2px; }
.md-video-card h3 { padding: 9px 10px; font-size: 14.5px; line-height: 1.35; font-weight: 700; color: #111827; }

/* ৮টি রঙিন ক্যাটাগরি ব্লক */
.md-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.md-cat-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.md-cat-head { display: block; color: #fff; font-weight: 700; padding: 6px 12px; font-size: 16px; }
.md-cat-card { padding: 8px; }
.md-cat-card a { display: grid; grid-template-columns: 105px 1fr; gap: 10px; align-items: center; }
.md-cat-card img { height: 76px; border-radius: 3px; }
.md-cat-card h4 { font-size: 14px; line-height: 1.35; font-weight: 700; color: #111827; }

/* সিঙ্গেল ও আর্কাইভ পেজ */
.md-single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.md-single-article { background: #fff; padding: 20px; border-radius: 4px; border: 1px solid #e2e8f0; }
.md-single-cats { color: #d61c1c; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.md-single-title { font-size: 28px; line-height: 1.3; margin-bottom: 8px; }
.md-single-meta { color: #64748b; font-size: 13px; margin-bottom: 14px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.md-single-thumb img { max-height: 440px; border-radius: 4px; margin-bottom: 16px; }
.md-single-content { font-size: 17px; line-height: 1.8; }
.md-archive-header { background: #14499b; color: #fff; padding: 10px 16px; border-radius: 4px; margin-bottom: 14px; }
.md-archive-header h1 { font-size: 22px; }

/* ফুটার */
.md-footer { background: #0f2d5e; color: #fff; padding: 14px 0; font-size: 13px; margin-top: 16px; }
.md-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.md-footer-left, .md-footer-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
    .md-header-inner { grid-template-columns: 1fr; }
    .md-grid-4, .md-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .md-hero-section, .md-single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .md-grid-4, .md-cat-grid { grid-template-columns: 1fr; }
    .md-logo-green, .md-logo-red { font-size: 42px; }
}
