/*
Theme Name: Media Mohalla
Theme URI: https://mediamohalla.com/
Author: Media Mohalla
Author URI: https://mediamohalla.com/
Description: A clean, image-led magazine theme for Media Mohalla — built for editorial/media content with a companion Media Mohalla Builder plugin for drag-and-drop style section editing on every page. Pairs with the Classic Editor for simple post management.
Version: 1.21.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: media-mohalla
Tags: custom-logo, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =====================================================
0. CSS VARIABLES (overridable live from Customizer)
===================================================== */
:root{
--mm-navy:#4B3C6E; /* primary — deep violet */
--mm-navy-light:#5E4C87;
--mm-violet-deep:#342B4E; /* darker violet, used sparingly for ribbons/overlays */
--mm-gold:#8E7BB5; /* accent — light violet */
--mm-gold-light:#A997CE;
--mm-lavender:#F5F3FA; /* very soft tint, used only behind contained thumbnails */
--mm-lavender-deep:#EDE8F5;
--mm-cream:#FFFFFF; /* page background — clean white, like the reference */
--mm-bg-soft:#F8F7FB; /* faint off-white for alternating sections */
--mm-ink:#15131B; /* near-black body/heading text */
--mm-grey:#6B6775;
--mm-border:#ECEAF1;
--mm-white:#FFFFFF;
/* Fraunces is a premium editorial display serif (used only for
headings, at weights that stay crisp and legible, not just for
decoration); Inter carries all body copy because it's one of
the most readable grotesques at small sizes on screen. */
--mm-font-heading:"Fraunces", Georgia, "Times New Roman", serif;
--mm-font-body:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--mm-radius:8px;
--mm-maxw:1240px;
--mm-ease:cubic-bezier(.22,1,.36,1);
}

/* =====================================================
1. RESET / BASE
===================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
margin:0;
font-family:var(--mm-font-body);
color:var(--mm-ink);
background:var(--mm-cream);
line-height:1.7;
font-size:16.5px;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
text-rendering:optimizeLegibility;
position:relative;
}
/* Background stays fully white — no tint, no ambient blobs. Motion
lives only in the marquee and the scroll-reveal transitions. */
img{max-width:100%;height:auto;display:block;}
a{color:var(--mm-navy);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--mm-gold);}
h1,h2,h3,h4,h5,h6{
font-family:var(--mm-font-heading);
color:var(--mm-ink);
line-height:1.2;
font-weight:600;
letter-spacing:-.005em;
margin:0 0 .5em;
}
/* Fraunces reads best, and most premium, a touch heavier at large
display sizes and lighter as headings get smaller. */
h1{font-weight:600;}
h2{font-weight:600;}
h3,h4,h5,h6{font-weight:600;letter-spacing:0;}
ul,ol{padding-left:1.2em;}
button,input,textarea,select{font-family:inherit;font-size:inherit;}
.screen-reader-text{position:absolute;left:-9999px;}
.container{max-width:var(--mm-maxw);margin:0 auto;padding:0 24px;}
.btn{
display:inline-block;
padding:13px 30px;
background:var(--mm-navy);
color:var(--mm-white)!important;
border:1px solid var(--mm-navy);
border-radius:var(--mm-radius);
font-size:14px;
letter-spacing:.04em;
text-transform:uppercase;
font-weight:700;
cursor:pointer;
transition:all .25s ease;
}
.btn:hover{background:var(--mm-gold);border-color:var(--mm-gold);color:var(--mm-white)!important;transform:translateY(-3px);box-shadow:0 12px 24px rgba(75,60,110,.2);}
.btn:active{transform:translateY(-1px);}
.btn--outline{background:transparent;color:var(--mm-navy)!important;}
.btn--outline:hover{background:var(--mm-navy);color:var(--mm-white)!important;}
a:focus-visible,.btn:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{
outline:3px solid var(--mm-gold);outline-offset:2px;
}
.eyebrow{
display:inline-block;
font-size:12px;
letter-spacing:.12em;
text-transform:uppercase;
color:var(--mm-gold);
font-weight:700;
margin-bottom:10px;
}

/* Entry meta: small avatar + author + date, used across card types */
.entry-meta{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mm-grey);margin:6px 0 12px;flex-wrap:wrap;}
.entry-meta__avatar{display:flex;}
.entry-meta__avatar img{width:22px;height:22px;border-radius:50%;object-fit:cover;}
.entry-meta__author{font-weight:600;color:var(--mm-ink);}
.entry-meta__dot{opacity:.5;}

/* =====================================================
2. HEADER / NAVIGATION
===================================================== */
/* Slim utility bar above the main header — contact email and
social links, matching the convention already used across the
site's own post graphics ("info@mediamohalla.com | www.…"). Not
sticky itself: it scrolls away while the main nav below it stays
pinned. */
.topbar{background:var(--mm-navy);color:#fff;}
.topbar__inner{
display:flex;align-items:center;justify-content:space-between;
gap:16px;padding:9px 24px;font-size:12.5px;max-width:var(--mm-maxw);margin:0 auto;
}
.topbar a{color:#fff;opacity:.85;transition:opacity .2s ease;}
.topbar a:hover{opacity:1;color:#fff;}
.topbar__contact{display:flex;align-items:center;gap:10px;}
.topbar__social{display:flex;align-items:center;gap:14px;}
.topbar__social a{display:flex;}
.topbar__social svg{width:15px;height:15px;}
@media (max-width:640px){
.topbar__inner{justify-content:center;padding:8px 16px;gap:18px;}
}

.site-header{
background:var(--mm-white);
border-bottom:1px solid var(--mm-border);
position:sticky;top:0;z-index:999;
}
.site-header.is-stuck{box-shadow:0 2px 18px rgba(21,19,27,.06);}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;max-width:var(--mm-maxw);margin:0 auto;}
.site-branding{display:flex;align-items:center;}
.site-branding img{max-height:96px;width:auto;height:auto;image-rendering:-webkit-optimize-contrast;}
@media (max-width:640px){
.site-branding img{max-height:64px;}
}
.site-branding .site-title{font-family:var(--mm-font-heading);font-size:26px;margin:0;}
.site-branding .site-title a{color:var(--mm-navy);}
.main-navigation ul{list-style:none;display:flex;gap:30px;margin:0;padding:0;}
.main-navigation li{position:relative;}
.main-navigation a{
color:var(--mm-ink);font-weight:600;font-size:14px;letter-spacing:.02em;
padding:10px 0;display:inline-block;
}
.main-navigation a:hover,.main-navigation .current-menu-item>a{color:var(--mm-navy);}
.main-navigation .sub-menu{
list-style:none;position:absolute;top:100%;left:0;background:var(--mm-white);
min-width:220px;box-shadow:0 10px 30px rgba(21,19,27,.1);padding:10px 0;border:1px solid var(--mm-border);
opacity:0;visibility:hidden;transform:translateY(8px);transition:all .2s ease;flex-direction:column;gap:0;
}
.main-navigation li:hover>.sub-menu{opacity:1;visibility:visible;transform:translateY(0);}
.main-navigation .sub-menu a{display:block;padding:10px 20px;text-transform:none;font-weight:500;}
.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:6px;}
.menu-toggle span{display:block;width:26px;height:2px;background:var(--mm-ink);margin:6px 0;transition:.25s;}

/* Page hero: the one consistent title band used for every Page,
every archive/category/tag ("collection"), and search results —
so the site has a single title treatment instead of a different
one per template. */
.page-hero{
position:relative;overflow:hidden;
background:
radial-gradient(circle at 85% 15%,rgba(240,198,120,.18),rgba(0,0,0,0) 32%),
linear-gradient(135deg,#291D3A 0%,#59417D 60%,#6C4F91 100%);
color:#fff;padding:105px 0 85px;
}
.page-hero::before,.page-hero::after{
content:"";position:absolute;border:1px solid rgba(255,255,255,.14);border-radius:50%;pointer-events:none;
}
.page-hero::before{width:440px;height:440px;right:-140px;top:-200px;}
.page-hero::after{width:280px;height:280px;right:40px;bottom:-160px;}
.page-hero__inner{position:relative;z-index:1;max-width:var(--mm-maxw);margin:0 auto;padding:0 24px;}
.page-hero__eyebrow{
display:block;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
color:var(--mm-gold-light);margin-bottom:14px;
}
.page-hero h1{font-family:var(--mm-font-heading);font-size:48px;line-height:1.12;margin:0 0 16px;color:#fff;}
.page-hero__sub{font-size:17px;line-height:1.65;color:rgba(255,255,255,.82);max-width:620px;margin:0;}
@media (max-width:720px){
.page-hero{padding:48px 0 40px;}
.page-hero h1{font-size:32px;}
.page-hero__sub{font-size:15.5px;}
}

/* =====================================================
3. RIBBON (category tag) + OVERLAY CARDS
The full-bleed, image-led card style used for the trending strip,
the lead featured story and the Latest-News rows — a gradient
sits behind the text so a photo never needs a plain caption bar.
===================================================== */
.ribbon{
display:inline-block;position:relative;background:var(--mm-navy);color:#fff;
font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
padding:6px 14px 6px 12px;border-radius:3px 10px 10px 3px;margin-bottom:10px;
}
.ribbon a{color:#fff;}
.ribbon--inline{margin-bottom:8px;}

/*
Media Mohalla's post photos are branded graphics that already carry
their own baked-in caption bar (logo, email, social icons), unlike
plain stock photography. Floating a translucent gradient + our own
title over that would double up with text already in the image, so
the caption lives in its own solid panel BELOW the image instead of
overlaid on top of it — still a full-bleed, image-led "hero" card,
just without text-on-text collisions.
*/
.card.card--overlay{border:none;background:var(--mm-violet-deep);}
/* 16:9 matches the real post photos' native ratio, and contain (not
cover) shows the whole photo — nothing cropped off the sides or
top/bottom — on the trending, featured and secondary cards alike. */
.card--overlay .card__media{aspect-ratio:16/9;background:var(--mm-lavender-deep);}
.card--overlay .card__media img{object-fit:contain;}
.card--overlay .card__overlay-body{padding:20px;color:#fff;}
.card.card--overlay h3,.card.card--overlay h2{color:#fff;margin-bottom:8px;}
.card.card--overlay h3 a,.card.card--overlay h2 a{color:#fff;}
.card--overlay .entry-meta{color:#D8D2E4;}
.card--overlay .entry-meta__author{color:#fff;}
.card--overlay:hover .card__media img{transform:scale(1.06);}
/* Ribbon background now comes per-category from mm_ribbon()'s inline
style, so overlay cards no longer need a flat translucent override. */

.card--featured{aspect-ratio:auto;}
.card--featured .card__media{aspect-ratio:16/9;}
.card--featured h2{font-size:clamp(24px,3vw,34px);}
.card--featured .card__overlay-body{padding:26px 30px;}

/* Trending strip: a row of smaller overlay cards at the very top. */
.section--trending{padding:34px 0 10px;overflow:hidden;}
.section--trending .card--overlay{border-radius:var(--mm-radius);overflow:hidden;}
.section--trending .card__media{aspect-ratio:16/9;}
.section--trending .card__overlay-body{padding:16px;}
.section--trending .card--overlay h3{font-size:14px;margin-bottom:6px;}
.section--trending .entry-meta--date-only{font-size:12px;}

/* Full-bleed, continuously auto-scrolling marquee for the trending
strip. Breaks out of the .container to span the full viewport
width; the track renders the post set twice so it can loop from
the end of the first copy straight into the second with no seam.
Hover pauses it so headlines stay readable on demand. */
.marquee{
width:100vw;position:relative;left:50%;right:50%;
margin-left:-50vw;margin-right:-50vw;overflow:hidden;
}
.marquee__track{
display:flex;gap:20px;width:max-content;padding:0 20px;
animation:mm-marquee 40s linear infinite;
will-change:transform;
}
.marquee:hover .marquee__track{animation-play-state:paused;}
/* Exactly 4 cards visible at a time: viewport width minus the
track's side padding and the 3 gaps between them, split 4 ways. */
.marquee__track .card--overlay{
flex:0 0 calc((100vw - 40px - 60px) / 4);
width:calc((100vw - 40px - 60px) / 4);
}
@keyframes mm-marquee{
from{transform:translateX(0);}
to{transform:translateX(-50%);}
}
@media (max-width:900px){
.marquee__track .card--overlay{
flex-basis:calc((100vw - 40px - 20px) / 2);
width:calc((100vw - 40px - 20px) / 2);
}
}
@media (max-width:640px){
.marquee__track .card--overlay{flex-basis:calc(100vw - 72px);width:calc(100vw - 72px);}
}

/* =====================================================
4. CARDS / GRID (news, archive, builder content grid)
===================================================== */
.section{padding:70px 0;}
.section--tight{padding:40px 0;}
.section--alt{background:var(--mm-white);}
/* Alternating dark section backdrop: the category sections below
"The Latest News" alternate light/dark so the page reads with
some rhythm. Cards stay their own white tiles either way — they
already carry their own background — so they "float" nicely on
the dark backdrop with no further restyling needed. */
.section--dark{background:var(--mm-navy);color:#fff;}
.section--dark .section-head h2{color:#fff;}
.section--dark .section-head h2::after{background:var(--mm-gold-light);}
.section--dark .btn--outline{color:#fff!important;border-color:rgba(255,255,255,.45);}
.section--dark .btn--outline:hover{background:#fff;color:var(--mm-navy)!important;border-color:#fff;}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:34px;flex-wrap:wrap;gap:16px;}
.section-head h2{font-size:28px;margin:0;}
.section-head h2::after{content:"";display:block;width:46px;height:4px;background:var(--mm-navy);border-radius:4px;margin-top:10px;}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
.grid--2,.grid--cols-2{grid-template-columns:repeat(2,1fr);}
.grid--cols-3{grid-template-columns:repeat(3,1fr);}
.grid--cols-4{grid-template-columns:repeat(4,1fr);}
.card{background:var(--mm-white);border:1px solid var(--mm-border);border-radius:var(--mm-radius);overflow:hidden;transition:transform .35s var(--mm-ease),box-shadow .35s var(--mm-ease);}
.card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(21,19,27,.1);}
.card:hover .card__media img{transform:scale(1.04);}
/* Image on top, never cropped: a fixed-ratio stage with
object-fit:contain so the whole photo is always visible. */
.card__media{
/* 16:9 matches the real post photos' native ratio (branded
1536x864 cover graphics), so the contain-fit box shows no
letterbox gap above/below the image. */
aspect-ratio:16/9;overflow:hidden;background:var(--mm-lavender);display:flex;
align-items:center;justify-content:center;position:relative;
}
.card__media img{width:100%;height:100%;object-fit:contain;transition:transform .5s var(--mm-ease);}
.card__body{padding:22px;}
/* Now holds a colorful mm_ribbon() pill (same as the overlay cards)
instead of plain colored text, so every category label on the
site reads as a badge. */
.card__meta{display:flex;align-items:center;}
.card h3{font-size:19px;margin-bottom:4px;}
.card h3 a{color:var(--mm-ink);}
.card p{color:var(--mm-grey);font-size:15px;line-height:1.6;margin:0 0 10px;}
.card__readmore{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--mm-navy);display:inline-block;transition:transform .2s ease;}
.card__readmore:hover{transform:translateX(4px);}

/* Compact variant used in the "Most Popular" list — image still on
top, just smaller text, no cropping. */
.card--compact .card__body{padding:16px;}
.card--compact h3{font-size:16px;margin-bottom:6px;}
.card--compact p{font-size:13.5px;margin:0;}

/* Featured-story layout: big story + grid below, with a text list beside it. */
.feature-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px;align-items:start;}
/* The 2 secondary overlay cards now stack vertically in their own
column, to the right of the big featured thumbnail. */
.feature-grid__side-cards{display:flex;flex-direction:column;gap:24px;}
.feature-grid__side{display:flex;flex-direction:column;}
/* "More Stories" stays in view as the Latest News column scrolls
past it, parked just below the sticky header. */
.latest-grid .feature-grid__side{position:sticky;top:112px;}
.feature-grid__side-title{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:var(--mm-grey);margin-bottom:6px;}

/* "The Latest News" post-row list, with the "More Stories" text
list beside it on the right. */
.latest-grid{display:grid;grid-template-columns:2.2fr 1fr;gap:50px;align-items:start;}

/* Plain text list row (title + date, divider beneath) */
.list-item{padding:16px 0;border-bottom:1px solid var(--mm-border);}
.list-item:last-child{border-bottom:none;}
.list-item h4{font-size:15.5px;margin:0 0 4px;font-weight:700;}
.list-item h4 a{color:var(--mm-ink);}
.list-item h4 a:hover{color:var(--mm-navy);}
.list-item__date{font-size:12px;color:var(--mm-grey);}

/* "Latest News" style rows: image left, text right */
.post-row-list{display:flex;flex-direction:column;}
.post-row{display:grid;grid-template-columns:280px 1fr;gap:28px;padding:26px 0;border-bottom:1px solid var(--mm-border);align-items:center;}
.post-row:first-child{padding-top:0;}
.post-row:last-child{border-bottom:none;}
.post-row__media{aspect-ratio:16/10;overflow:hidden;border-radius:var(--mm-radius);background:var(--mm-lavender);display:flex;align-items:center;justify-content:center;}
.post-row__media img{width:100%;height:100%;object-fit:contain;transition:transform .5s var(--mm-ease);}
.post-row:hover .post-row__media img{transform:scale(1.04);}
.post-row__body h3{font-size:22px;margin-bottom:6px;}
.post-row__body h3 a{color:var(--mm-ink);}
.post-row__body p{color:var(--mm-grey);font-size:15.5px;line-height:1.6;margin:4px 0 0;}
/* Ribbon background now comes per-category from mm_ribbon(). */

/* Most Popular + blog sidebar */
.popular-grid{display:grid;grid-template-columns:2.4fr 1fr;gap:50px;align-items:start;}
.popular-list{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;}

.mm-newsletter{background:var(--mm-navy);color:#fff;text-align:center;padding:60px 24px;border-radius:var(--mm-radius);}
.mm-newsletter h3{color:#fff;font-size:26px;}
.mm-newsletter p{color:#D9D4E6;margin-bottom:22px;}
.mm-newsletter__form{display:flex;gap:10px;max-width:420px;margin:0 auto;}
.mm-newsletter__form input{flex:1;padding:12px 14px;border-radius:var(--mm-radius);border:none;font-size:14px;}
.mm-newsletter__form .btn{background:var(--mm-gold);border-color:var(--mm-gold);}
.mm-newsletter__form .btn:hover{background:var(--mm-gold-light);border-color:var(--mm-gold-light);}

/* =====================================================
5. SINGLE ARTICLE
===================================================== */
.article-head{max-width:760px;margin:0 auto;padding:52px 24px 0;text-align:center;}
.article-head .ribbon{margin:0 auto 20px;}
.article-head h1{font-size:clamp(30px,4vw,46px);line-height:1.15;}
.article-dek{font-family:var(--mm-font-body);font-size:19px;line-height:1.55;color:var(--mm-grey);max-width:620px;margin:16px auto 0;}
.article-meta{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--mm-grey);font-size:13.5px;margin:26px 0 0;}
.article-meta__avatar{display:flex;flex-shrink:0;}
.article-meta__avatar img{width:40px;height:40px;border-radius:50%;display:block;}
.article-meta__text{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:2px;}
.article-meta__author{font-family:var(--mm-font-heading);font-weight:600;color:var(--mm-ink);font-size:14.5px;}
.article-meta__sub{display:flex;align-items:center;gap:7px;color:var(--mm-grey);}
.article-meta__dot{opacity:.5;}

.article-cover{max-width:1040px;margin:34px auto 0;padding:0 24px;}
.article-cover img{border-radius:var(--mm-radius);box-shadow:0 20px 50px -20px rgba(21,19,27,.25);}
.article-cover figcaption{margin:12px 24px 0;font-size:13px;color:var(--mm-grey);text-align:center;}

.article-layout{max-width:900px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:56px 1fr;gap:34px;}
.article-rail{position:relative;}
.article-rail .share-bar--rail{position:sticky;top:132px;display:flex;flex-direction:column;gap:10px;margin:38px 0 0;}

.article-body{max-width:none;margin:0;padding:38px 0 60px;font-size:18.5px;line-height:1.75;color:#2a2a2a;}
.article-body > p:first-of-type{font-family:var(--mm-font-heading);font-size:21px;line-height:1.6;color:var(--mm-ink);}
.article-body p{margin:0 0 1.4em;}
.article-body h2,.article-body h3{margin-top:1.5em;}
.article-body a{color:var(--mm-navy);text-decoration:underline;text-decoration-color:var(--mm-border);text-underline-offset:3px;word-break:break-word;}
.article-body a:hover{text-decoration-color:currentColor;}
.article-body blockquote{border-left:3px solid var(--mm-gold);margin:1.8em 0;padding:6px 0 6px 24px;font-family:var(--mm-font-heading);font-style:italic;color:var(--mm-navy);font-size:23px;line-height:1.5;}
.article-body img{border-radius:var(--mm-radius);margin:1.6em 0;box-shadow:0 14px 34px -16px rgba(21,19,27,.22);}
.article-body hr{border:none;border-top:1px solid var(--mm-border);margin:2.4em 0;}

/* AtlasVoice "listen to this article" player — restyled to match the
site's brand (the plugin ships plain black-border/white defaults). */
.tts_play_button{display:block;margin:32px 0 38px;}
.tts_play_button::before{
content:"Audio";display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;
letter-spacing:.08em;color:var(--mm-navy);background:var(--mm-lavender);padding:5px 12px;
border-radius:20px;margin-bottom:12px;
}
.tts__listent_content{
display:flex!important;align-items:center;justify-content:space-between;width:100%;gap:16px;
padding:17px 22px!important;background:linear-gradient(135deg,var(--mm-navy) 0%,var(--mm-navy-light) 100%)!important;
border:none!important;border-radius:16px!important;color:#fff!important;font-family:var(--mm-font-body);
font-weight:600;font-size:15.5px;cursor:pointer;box-shadow:0 16px 32px -14px rgba(75,60,110,.5);
transition:transform .2s ease,box-shadow .2s ease;
}
.tts__listent_content:hover{transform:translateY(-2px);box-shadow:0 20px 40px -14px rgba(75,60,110,.62);}
.tts__listent_content .tts-button-left{display:flex;align-items:center;gap:14px;color:#fff!important;}
.tts__listent_content .tts-button-left svg{
width:16px!important;height:16px!important;flex-shrink:0;background:rgba(255,255,255,.2);
border-radius:50%;padding:11px;box-sizing:content-box;color:#fff!important;
}
.tts__listent_content .tts-button-left span{font-size:15.5px;letter-spacing:.01em;color:#fff!important;}
.tts__listent_content .tts-button-right{display:flex;align-items:center;}
.tts__listent_content .tts-settings-icon{
display:flex!important;align-items:center;justify-content:center;width:32px;height:32px;
border-radius:50%;color:#fff!important;opacity:.85;transition:background .2s ease,opacity .2s ease;
}
.tts__listent_content .tts-settings-icon:hover{background:rgba(255,255,255,.16);opacity:1;}
@media (max-width:480px){
.tts__listent_content{padding:14px 16px!important;}
.tts__listent_content .tts-button-left span{font-size:14.5px;}
}

.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 34px;padding-top:28px;border-top:1px solid var(--mm-border);}
.article-tags__item{font-size:13px;font-weight:600;color:var(--mm-navy);background:var(--mm-lavender);border-radius:20px;padding:6px 14px;}
.article-tags__item:hover{background:var(--mm-navy);color:#fff;}

.article-body__share{margin:0 0 36px;}
.article-body__share .share-bar{justify-content:flex-start;}

.author-box{display:flex;gap:18px;align-items:flex-start;background:var(--mm-bg-soft);border:1px solid var(--mm-border);border-radius:var(--mm-radius);padding:24px;}
.author-box__avatar img{width:72px;height:72px;border-radius:50%;display:block;}
.author-box__eyebrow{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--mm-grey);margin-bottom:2px;}
.author-box__name{margin:0 0 6px;font-size:18px;}
.author-box__bio{margin:0;font-size:15px;line-height:1.6;color:var(--mm-grey);}

.share-bar{display:flex;gap:10px;justify-content:center;margin:0;flex-wrap:wrap;align-items:center;}
.share-bar__label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--mm-grey);margin-right:4px;}
.share-bar a,.share-bar__copy{
width:38px;height:38px;border-radius:50%;border:1px solid var(--mm-border);background:var(--mm-white);
display:flex;align-items:center;justify-content:center;color:var(--mm-navy);cursor:pointer;padding:0;
transition:background .2s ease,color .2s ease,border-color .2s ease,transform .15s ease;
}
.share-bar svg{width:16px;height:16px;}
.share-bar a:hover,.share-bar__copy:hover{background:var(--mm-navy);border-color:var(--mm-navy);color:#fff;transform:translateY(-2px);}
.share-bar--rail a,.share-bar--rail .share-bar__copy{width:44px;height:44px;}
.share-bar__copy.is-copied{background:var(--mm-navy);color:#fff;border-color:var(--mm-navy);}

@media (max-width:760px){
.article-layout{grid-template-columns:1fr;}
.article-rail{display:none;}
.article-body{padding-top:28px;}
}

/* =====================================================
5b. STATIC CONTENT PAGES (About, Contact, legal pages —
plain WordPress Pages that don't go through the Builder plugin)
===================================================== */
.page-body{max-width:760px;margin:0 auto;padding:40px 24px 60px;font-size:17px;line-height:1.75;color:#2a2a2a;}
/* Richer pages (About Us) use the site's full content width instead of the
narrow reading column, so the layout scales with the screen like every
other template rather than sitting cramped in the middle. */
.page-body--wide{max-width:var(--mm-maxw);}
.page-body p{margin:0 0 1.3em;}
.page-body h2{font-size:24px;margin:1.6em 0 .6em;}
.page-body h3{font-size:18px;margin:1.4em 0 .5em;}
.page-body ul,.page-body ol{margin:0 0 1.3em;padding-left:22px;}
.page-body li{margin-bottom:8px;}
.page-body strong{color:var(--mm-ink);}
.page-body a{color:var(--mm-navy);text-decoration:underline;text-decoration-color:var(--mm-border);text-underline-offset:3px;}
.page-body a:hover{text-decoration-color:currentColor;}
.page-body hr{border:none;border-top:1px solid var(--mm-border);margin:2.2em 0;}

/* About Us: founder photo beside the intro copy */
.about-intro{display:grid;grid-template-columns:1fr 1.25fr;gap:44px;align-items:start;margin:0 0 10px;}
.about-intro__media,.about-intro__body{position:sticky;top:112px;}
.about-intro__media img{width:100%;border-radius:var(--mm-radius);box-shadow:0 20px 50px -24px rgba(21,19,27,.35);display:block;}
.about-intro__body h2{margin-top:0;}
@media (max-width:720px){
.about-intro{grid-template-columns:1fr;}
.about-intro__media,.about-intro__body{position:static;top:auto;}
}

/* About Us: lede under the H1, value-prop cards, closing CTA band */
.page-lede{font-family:var(--mm-font-heading);font-weight:400;font-size:22px;line-height:1.55;color:var(--mm-grey);max-width:760px;margin:0 0 46px;}

.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:56px 0;}
.value-card{background:var(--mm-bg-soft);border:1px solid var(--mm-border);border-radius:var(--mm-radius);padding:34px 28px;}
.value-card__num{display:block;font-family:var(--mm-font-heading);font-size:15px;font-weight:600;color:var(--mm-gold);letter-spacing:.06em;margin-bottom:14px;}
.value-card h3{font-family:var(--mm-font-heading);font-size:20px;margin:0 0 10px;color:var(--mm-ink);}
.value-card p{font-size:15px;color:var(--mm-grey);line-height:1.7;margin:0;}

.cta-band{background:linear-gradient(135deg,var(--mm-navy) 0%,var(--mm-navy-light) 100%);border-radius:20px;padding:56px 48px;text-align:center;color:#fff;margin:10px 0 20px;}
.cta-band h2{font-family:var(--mm-font-heading);font-size:30px;margin:0 0 14px;color:#fff;}
.cta-band p{font-size:17px;color:rgba(255,255,255,.85);max-width:560px;margin:0 auto 26px;}
.cta-band__btn{display:inline-block;background:#fff;color:var(--mm-navy);font-weight:700;padding:14px 34px;border-radius:30px;text-decoration:none!important;letter-spacing:.02em;transition:transform .2s ease,box-shadow .2s ease;}
.cta-band__btn:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(0,0,0,.25);text-decoration:none!important;}

@media (max-width:900px){
.value-grid{grid-template-columns:1fr;}
}
@media (max-width:720px){
.page-lede{font-size:19px;margin-bottom:34px;}
.value-grid{margin:40px 0;}
.cta-band{padding:40px 24px;border-radius:16px;}
.cta-band h2{font-size:24px;}
.cta-band p{font-size:15.5px;}
}

/* Contact Us: form + a sidebar of direct-line emails */
.contact-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:50px;align-items:start;margin-top:10px;}
.contact-sidebar{display:flex;flex-direction:column;gap:22px;}
.contact-sidebar__item{background:var(--mm-bg-soft);border:1px solid var(--mm-border);border-radius:var(--mm-radius);padding:20px 22px;}
.contact-sidebar__item h3{margin:0 0 6px;font-size:15.5px;}
.contact-sidebar__item p{margin:0 0 8px;font-size:14.5px;color:var(--mm-grey);}
.contact-sidebar__item a{font-weight:600;font-size:14.5px;}
@media (max-width:760px){
.contact-grid{grid-template-columns:1fr;}
}

/* Contact Form 7 — brand-matched inputs/button (the plugin ships unstyled) */
.wpcf7-form p{margin:0 0 16px;}
.wpcf7-form label{display:block;font-size:13.5px;font-weight:600;color:var(--mm-ink);margin-bottom:6px;}
.wpcf7-form input[type="text"],.wpcf7-form input[type="email"],.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],.wpcf7-form textarea,.wpcf7-form select{
width:100%;padding:12px 14px;border:1px solid var(--mm-border);border-radius:var(--mm-radius);
font-family:var(--mm-font-body);font-size:15px;color:var(--mm-ink);background:var(--mm-white);
transition:border-color .2s ease,box-shadow .2s ease;
}
.wpcf7-form textarea{min-height:140px;resize:vertical;}
.wpcf7-form input:focus,.wpcf7-form textarea:focus,.wpcf7-form select:focus{
outline:none;border-color:var(--mm-navy);box-shadow:0 0 0 3px rgba(75,60,110,.15);
}
.wpcf7-form .wpcf7-submit{
display:inline-block;padding:13px 32px;background:var(--mm-navy);color:#fff;border:1px solid var(--mm-navy);
border-radius:var(--mm-radius);font-size:14px;letter-spacing:.04em;text-transform:uppercase;font-weight:700;
cursor:pointer;transition:all .25s ease;
}
.wpcf7-form .wpcf7-submit:hover{background:var(--mm-gold);border-color:var(--mm-gold);transform:translateY(-3px);box-shadow:0 12px 24px rgba(75,60,110,.2);}
.wpcf7-form .wpcf7-spinner{margin-left:10px;}
.wpcf7-not-valid-tip{color:#B91C1C;font-size:13px;margin-top:5px;}
.wpcf7-response-output{border-radius:var(--mm-radius)!important;margin:16px 0 0!important;font-size:14px;}

/* =====================================================
6. BUILDER SECTIONS (rendered by Media Mohalla Builder plugin)
===================================================== */
.mm-section{padding:70px 0;}
.mm-section--alt{background:var(--mm-white);}
.mm-section--dark{background:var(--mm-navy);color:#fff;}
.mm-section--dark h2,.mm-section--dark h3{color:#fff;}
.mm-section__inner{max-width:var(--mm-maxw);margin:0 auto;padding:0 24px;}
.mm-hero{text-align:center;max-width:800px;margin:0 auto;}
.mm-cta{text-align:center;background:var(--mm-navy);color:#fff;border-radius:8px;padding:60px 30px;}
.mm-cta h2{color:#fff;}
.mm-columns{display:grid;gap:30px;grid-template-columns:repeat(var(--cols,3),1fr);}
.mm-testimonial{background:var(--mm-white);border:1px solid var(--mm-border);padding:26px;border-radius:var(--mm-radius);}
.mm-testimonial p{font-style:italic;color:var(--mm-navy);}
.mm-testimonial .name{font-weight:700;margin-top:12px;}
.mm-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.mm-gallery img{border-radius:var(--mm-radius);aspect-ratio:1/1;object-fit:cover;}
.mm-spacer{height:var(--h,40px);}
.mm-btn-wrap{text-align:center;margin-top:20px;}

/* =====================================================
7. FOOTER — light, clean, matching the reference's magazine footer
===================================================== */
.site-footer{
background:var(--mm-bg-soft);color:var(--mm-grey);padding:92px 0 0;margin-top:0;
border-top:1px solid var(--mm-border);font-size:15.5px;
}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:52px;}
.footer-brand .footer-logo{max-height:68px;width:auto;margin-bottom:20px;}
.footer-brand p{color:var(--mm-grey);font-size:15.5px;line-height:1.7;max-width:320px;}
.footer-social{display:flex;gap:12px;margin-top:22px;}
.footer-social a{
width:42px;height:42px;border-radius:50%;border:1px solid var(--mm-border);background:var(--mm-white);
display:flex;align-items:center;justify-content:center;color:var(--mm-navy);
transition:background .2s ease,transform .2s ease,color .2s ease;
}
.footer-social svg{width:18px;height:18px;}
.footer-social a:hover{background:var(--mm-navy);border-color:var(--mm-navy);color:#fff;transform:translateY(-3px);}
.footer-grid h4{color:var(--mm-ink);font-size:15px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:22px;}
.footer-grid a{color:var(--mm-grey);}
.footer-grid a:hover{color:var(--mm-navy);}
.footer-nav ul,.footer-contact ul{list-style:none;padding:0;margin:0;}
.footer-nav li,.footer-contact li{margin-bottom:15px;font-size:15.5px;}
.site-footer .widget ul{list-style:none;padding:0;margin:0;}
.site-footer .widget li{margin-bottom:9px;}
.footer-bottom{border-top:1px solid var(--mm-border);margin-top:58px;padding:28px 24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;align-items:center;font-size:14px;color:var(--mm-grey);}
.footer-bottom a{color:var(--mm-grey);}
.footer-bottom a:hover{color:var(--mm-navy);}
.back-to-top{
position:fixed;right:24px;bottom:24px;width:46px;height:46px;border-radius:50%;
background:var(--mm-navy);color:#fff;border:none;display:none;align-items:center;justify-content:center;
cursor:pointer;z-index:998;box-shadow:0 8px 20px rgba(21,19,27,.2);
}
.back-to-top.show{display:flex;}
.back-to-top:hover{background:var(--mm-gold);}

/* =====================================================
8. RESPONSIVE
===================================================== */
@media (max-width:960px){
.grid,.grid--2,.grid--cols-2,.grid--cols-3,.grid--cols-4{grid-template-columns:1fr 1fr;}
.footer-grid{grid-template-columns:1fr 1fr;}
.mm-columns{grid-template-columns:repeat(2,1fr);}
.mm-gallery{grid-template-columns:repeat(2,1fr);}
.feature-grid,.popular-grid,.latest-grid{grid-template-columns:1fr;}
.latest-grid .feature-grid__side{position:static;}
.post-row{grid-template-columns:1fr;}
.post-row__media{aspect-ratio:16/9;}
}
@media (max-width:780px){
.main-navigation{
position:fixed;top:0;left:0;height:100vh;width:280px;background:var(--mm-white);
transform:translateX(-100%);transition:transform .3s ease;z-index:1000;padding:90px 24px 24px;overflow-y:auto;
box-shadow:0 0 40px rgba(0,0,0,.15);
}
.main-navigation.is-open{transform:translateX(0);}
.main-navigation ul{flex-direction:column;gap:4px;}
.main-navigation .sub-menu{
position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;padding:0 0 0 14px;
display:flex;max-height:0;overflow:hidden;transition:max-height .35s var(--mm-ease);
}
.main-navigation li.is-expanded .sub-menu{max-height:600px;}
.menu-toggle{display:block;}
.grid,.grid--2,.grid--cols-2,.grid--cols-3,.grid--cols-4,.mm-columns{grid-template-columns:1fr;}
.footer-grid{grid-template-columns:1fr 1fr;}
.popular-list{grid-template-columns:1fr;}
.mm-newsletter__form{flex-direction:column;}
}
@media (max-width:520px){
.footer-grid{grid-template-columns:1fr;}
.mm-gallery{grid-template-columns:1fr 1fr;}
.footer-bottom{flex-direction:column;text-align:center;}
}

/* Mobile spacing + type-scale pass (added per site feedback: sections
felt over-padded and several headings ran too large for narrow
screens). Scoped to phones only; tablet/desktop untouched. */
@media (max-width:640px){
.section{padding:40px 0;}
.section--tight{padding:26px 0;}
.mm-section{padding:40px 0;}
.section-head{margin-bottom:22px;}
.section-head h2{font-size:22px;}
.grid,.grid--2,.grid--cols-2,.grid--cols-3,.grid--cols-4,.mm-columns{gap:18px;}
.mm-gallery{gap:10px;}
.card__body{padding:16px;}
.card h3{font-size:17px;}
.post-row{gap:14px;padding:18px 0;}
.post-row__body h3{font-size:19px;}
.post-row__body p{font-size:14.5px;}
.mm-newsletter{padding:40px 20px;}
.mm-newsletter h3{font-size:21px;}
.value-card{padding:24px 20px;}
.author-box{padding:18px;flex-direction:column;}
.author-box__avatar img{width:56px;height:56px;}
.article-body{font-size:16.5px;}
.cta-band h2{font-size:21px;}
}

/* =====================================================
9. SCROLL-REVEAL ANIMATION SYSTEM
Elements get `.reveal` added by main.js and `.is-visible`
once they enter the viewport via IntersectionObserver.
Everything here is skipped entirely for users who have
asked for reduced motion (see the media query below).
===================================================== */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--mm-ease),transform .7s var(--mm-ease);}
.reveal.is-visible{opacity:1;transform:none;}
.reveal--fade{transform:none;}
.reveal--left{transform:translateX(-30px);}
.reveal--left.is-visible{transform:none;}
.reveal--right{transform:translateX(30px);}
.reveal--right.is-visible{transform:none;}

/* Stagger helper applied by JS to siblings inside a revealed grid. */
.reveal-stagger > *{transition-delay:calc(var(--mm-i,0) * 70ms);}

@media (prefers-reduced-motion: reduce){
html{scroll-behavior:auto;}
.reveal,.reveal--left,.reveal--right{opacity:1!important;transform:none!important;transition:none!important;}
.card,.btn,.card__media img,.card__readmore,.post-row__media img{transition:none!important;}
.card:hover,.btn:hover{transform:none!important;}
.marquee__track{animation:none!important;overflow-x:auto;}
}

/* Safety net: nothing on the page should ever force a horizontal
scrollbar, however an image or animated element is sized. */
/* overflow-x:hidden on BOTH html and body turns body into its own
scroll container (the browser coerces its overflow-y to auto),
which breaks position:sticky — sticky elements stick to the
nearest scrolling ancestor, so they'd lock to body instead of the
real page scroll. Keep the horizontal clip on html only. */
html{overflow-x:hidden;}
.feature-grid,.popular-grid,.latest-grid{max-width:100%;}

/* =====================================================
8b. PAGINATION (archives, search results)
===================================================== */
.pagination,.navigation.pagination{margin:48px 0 10px;}
.pagination .nav-links{
display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;
}
.pagination .page-numbers{
display:inline-flex;align-items:center;justify-content:center;
min-width:42px;height:42px;padding:0 14px;
border:1px solid var(--mm-border);border-radius:30px;
font-family:var(--mm-font-body);font-size:14.5px;font-weight:600;color:var(--mm-navy);
background:var(--mm-white);text-decoration:none;
transition:all .2s ease;
}
.pagination .page-numbers.dots{
border-color:transparent;background:none;color:var(--mm-grey);min-width:auto;padding:0 2px;
}
.pagination .page-numbers:hover{border-color:var(--mm-navy);color:var(--mm-navy);transform:translateY(-2px);}
.pagination .page-numbers.current{
background:var(--mm-navy);border-color:var(--mm-navy);color:#fff;
box-shadow:0 10px 20px -10px rgba(75,60,110,.5);
}
.pagination .page-numbers.prev,.pagination .page-numbers.next{
padding:0 20px;font-weight:700;
}
@media (max-width:480px){
.pagination .page-numbers{min-width:38px;height:38px;padding:0 10px;font-size:13.5px;}
.pagination .page-numbers.prev,.pagination .page-numbers.next{padding:0 14px;}
}

/* =====================================================
9. THIRD-PARTY PLUGIN FIXES
===================================================== */
/* Media Mohalla Leadership Engagements plugin: its "View engagement"
link already has an arrow glyph in the markup, but the plugin's own
CSS also adds a duplicate "→" via ::after — neutralize the second one. */
.mmle-link::after{content:""!important;display:none!important;}

/* =====================================================
10. EVENTS LISTING PAGE (page-events.php)
Upcoming / Past grid of mm_event posts, pulled live from the
backend. Each card is itself the link straight to that event's
own landing page.
===================================================== */
.mm-events-page{padding:70px 0;}
.mm-events-section + .mm-events-section{margin-top:96px;}
/* A little extra room under "Upcoming Events" / "Past Events"
themselves, on top of the shared .section-head spacing, so each
heading reads clearly as its own section rather than sitting
right on top of the cards below. */
.mm-events-page .section-head{margin-bottom:44px;}
.mm-events-empty{color:var(--mm-grey);font-size:16px;}
.mm-event-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;}
.mm-event-card:hover{color:inherit;}
.mm-event-card h3{color:var(--mm-ink);transition:color .2s ease;}
.mm-event-card:hover h3{color:var(--mm-navy);}
.mm-event-card .card__readmore{color:var(--mm-navy);}
.mm-event-card__meta{display:flex;align-items:center;gap:8px;color:var(--mm-grey);font-size:13.5px;margin:4px 0 14px;flex-wrap:wrap;}
.mm-event-card__dot{opacity:.5;}
.mm-event-card__noimg{color:var(--mm-grey);font-weight:600;font-size:14px;}
/* Past events read as closed out: a muted grey badge instead of navy. */
.mm-events-section--past .mm-event-card .ribbon{background:var(--mm-grey);}

@media (max-width:640px){
	.mm-events-page{padding:40px 0;}
	.mm-events-section + .mm-events-section{margin-top:56px;}
	.mm-events-page .section-head{margin-bottom:28px;}
}

/* =====================================================
11. MOBILE NAV: SUB-MENU EXPAND ARROW
A small chevron on any top-level item that has a dropdown
("Media", "The Stage"), so it's clear it opens a sub-list
instead of navigating away. Rotates in place on tap, matching
the existing .is-expanded class main.js already toggles.
===================================================== */
@media (max-width:780px){
	.main-navigation li.menu-item-has-children > a{
		display:flex;align-items:center;justify-content:space-between;gap:10px;
	}
	.main-navigation li.menu-item-has-children > a::after{
		content:"";
		width:8px;height:8px;
		border-right:2px solid currentColor;
		border-bottom:2px solid currentColor;
		transform:rotate(45deg);
		transition:transform .25s ease;
		flex-shrink:0;
		opacity:.6;
	}
	.main-navigation li.is-expanded > a::after{
		transform:rotate(-135deg);
	}
}

/* =====================================================
12. MOBILE NAV: DARK DRAWER + HAMBURGER/CLOSE TOGGLE
The mobile menu panel itself uses a dark background instead of
white, and the hamburger icon morphs into a close (×) icon while
the drawer is open. Desktop horizontal menu is untouched.
===================================================== */
@media (max-width:780px){
	.main-navigation{background:var(--mm-violet-deep);}
	.main-navigation a{color:#fff;}
	.main-navigation a:hover,.main-navigation .current-menu-item>a{color:var(--mm-gold-light);}
	.main-navigation .sub-menu a{color:rgba(255,255,255,.8);}
	.main-navigation .sub-menu a:hover{color:var(--mm-gold-light);}
	.main-navigation .sub-menu{background:transparent;border-top:1px solid rgba(255,255,255,.12);}

	/* Hamburger → close (×), driven off the aria-expanded state that
	main.js already sets when the drawer opens — no JS change needed. */
	.menu-toggle span{background:var(--mm-ink);transition:transform .25s ease,opacity .2s ease,background .25s ease;}
	.menu-toggle[aria-expanded="true"] span{background:var(--mm-ink);}
	.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg);}
	.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
	.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
}
