/* ==========================================================================
   THEME 3: modern_minimal — Clean Editorial Magazine Card-Grid Design
   Warm Ivory (#fafaf7), Deep Teal (#0f766e), Amber Accent (#d97706)
   Same shared CMS DB, completely different modern magazine aesthetic
   ========================================================================== */
:root {
  --bg: #fafaf7;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #d97706;
  --ink: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans Telugu', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

.mm-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  padding: 8px 0;
  color: var(--muted);
}
.mm-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-switch a { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 11px; margin-left: 4px; }
.mm-switch a.active { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 700; }

.mm-header {
  background: var(--white);
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--border);
}
.mm-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mm-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 900; color: var(--teal-dark); }
.mm-tag { font-size: 13px; color: var(--muted); }
.mm-menu-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.mm-pills-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.mm-pills-row { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.mm-pills-row a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mm-pills-row a:hover, .mm-pills-row a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.mm-main { padding: 28px 0 56px; }
.mm-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 34px;
}
.mm-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.mm-feature-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.mm-feature-body h1 { font-family: 'Playfair Display', serif; font-size: 29px; margin: 8px 0; line-height: 1.25; }

.mm-sec-head { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 16px; }
.mm-sec-head h2 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 0; color: var(--teal-dark); }
.mm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mm-card img { width: 100%; height: 185px; object-fit: cover; }
.mm-card-body { padding: 16px; flex: 1; }
.mm-card h3 { font-family: 'Playfair Display', 'Noto Sans Telugu', serif; font-size: 17px; margin: 6px 0; line-height: 1.35; }
.mm-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.mm-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #ccfbf1; color: var(--teal-dark); }
.mm-badge.hot { background: #fef3c7; color: #b45309; }
.mm-badge.govt { background: #dcfce7; color: #166534; }
.mm-badge.private { background: #dbeafe; color: #1e40af; }

.kt-backdrop { position: fixed; inset: 0; background: rgba(28,25,23,0.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.kt-backdrop.open { opacity: 1; pointer-events: auto; }
.kt-drawer {
  position: fixed; top: 12px; bottom: 12px; left: 12px; width: 330px; max-width: calc(100vw - 24px);
  background: var(--white); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.2); z-index: 100;
  transform: translateX(-115%); transition: transform 0.25s; display: flex; flex-direction: column;
}
.kt-drawer.open { transform: translateX(0); }
.kt-drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--border); text-align: center; position: relative; }
.kt-drawer-close { position: absolute; top: 12px; right: 12px; background: var(--bg); border: 1px solid var(--border); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.kt-drawer-body { flex: 1; overflow-y: auto; padding: 10px 20px; }
.drawer-acc { border-bottom: 1px solid var(--border); }
.drawer-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13.5px; font-weight: 700; }
.drawer-chev { background: none; border: none; color: var(--teal); cursor: pointer; }
.drawer-sublist { display: none; padding: 0 0 10px 10px; }
.drawer-acc.expanded .drawer-sublist { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drawer-sublist a { font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.yt-thumb-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.yt-thumb-wrap img, .yt-thumb-wrap iframe { width: 100%; height: 100%; object-fit: cover; }
.yt-play-btn { position: absolute; inset: 0; margin: auto; width: 52px; height: 36px; border-radius: 8px; background: #dc2626; color: #fff; display: flex; align-items: center; justify-content: center; }

.mm-footer { background: var(--white); border-top: 1px solid var(--border); padding: 28px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .mm-feature, .mm-grid-3 { grid-template-columns: 1fr; } }
