/*
Theme Name: Hira FM Islamic Tamil Radio
Theme URI: https://hirafm.com
Author: Hira FM
Author URI: https://hirafm.com
Description: Hira FM — Islamic Tamil Radio . Newspaper-style theme with live radio player, prayer times, Hijri calendar, and auto-refreshing news feed from WordPress REST API.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hirafm
Tags: news, radio, islamic, tamil, newspaper, custom-colors, custom-logo, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --ink: #0A0A0A;
    --ink-2: #1A1A1A;
    --ink-3: #2D2D2D;
    --paper: #F5F2EE;
    --paper-2: #EDE8E2;
    --paper-3: #E4DDD5;
    --green: #0D3B1F;
    --green-mid: #1A6B3A;
    --green-bright: #2D9A54;
    --gold: #B8860B;
    --gold-light: #D4A017;
    --gold-pale: #FFF8E1;
    --red: #C0392B;
    --red-light: #E74C3C;
    --white: #FFFFFF;
    --rule: rgba(13,59,31,0.15);
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 32px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
    --r: 4px;
    --r-md: 8px;
    --r-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans Tamil', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

.serif { font-family: 'Noto Serif Tamil', serif; }
.arabic { font-family: 'IBM Plex Sans Arabic', sans-serif; direction: rtl; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ═══════════════════════════════════════
   TOP TICKER
═══════════════════════════════════════ */
.top-ticker {
    background: var(--green);
    border-bottom: 2px solid var(--gold);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ticker-tag {
    background: var(--gold);
    color: var(--green);
    font-weight: 700;
    font-size: 0.65em;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}
.ticker-tag .blink-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 1s infinite;
}
.ticker-overflow { flex: 1; overflow: hidden; }
.ticker-track {
    display: flex;
    gap: 32px;
    animation: tickScroll 45s linear infinite;
    width: max-content;
    align-items: center;
    height: 36px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    font-size: 0.72em;
    color: rgba(240,240,235,0.9);
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.ticker-item:hover { color: var(--gold-light); }
.ticker-sep { color: var(--gold); font-size: 0.6em; opacity: 0.6; }
@keyframes tickScroll { 0%{transform:translateX(0);}100%{transform:translateX(-50%);} }
@keyframes blink { 0%,100%{opacity:1;}50%{opacity:0;} }

/* ═══════════════════════════════════════
   MASTHEAD
═══════════════════════════════════════ */
.masthead {
    background: var(--green);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.masthead-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 68px;
    gap: 20px;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    border: 2px solid var(--gold);
    object-fit: contain;
    box-shadow: 0 0 20px rgba(184,134,11,0.4);
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%,100% { box-shadow: 0 0 16px rgba(184,134,11,0.35); }
    50% { box-shadow: 0 0 32px rgba(184,134,11,0.65), 0 0 60px rgba(184,134,11,0.2); }
}
.logo-text-block { line-height: 1.2; }
.logo-name { display: block; font-size: 1.25em; font-weight: 700; color: var(--gold-light); font-family: 'Noto Serif Tamil', serif; letter-spacing: 0.5px; }
.logo-tagline { font-size: 0.62em; color: rgba(240,240,235,0.6); font-weight: 400; }

.masthead-nav { display: flex; gap: 2px; margin-left: auto; }
.masthead-nav a {
    color: rgba(240,240,235,0.75);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.masthead-nav a:hover,
.masthead-nav a.active { background: rgba(255,255,255,0.1); color: var(--gold-light); }

.hp-dot { width: 5px; height: 5px; background: #22C55E; border-radius: 50%; animation: blink 1.2s infinite; box-shadow: 0 0 5px #22C55E; }

.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(184,134,11,0.4);
    color: var(--gold-light);
    width: 38px; height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════
   DATE BAR
═══════════════════════════════════════ */
.date-edition-bar {
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    padding: 8px 20px;
    text-align: center;
    font-size: 0.72em;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.date-edition-bar span { color: var(--green); font-weight: 700; margin: 0 6px; }

/* ═══════════════════════════════════════
   SITE WRAPPER
═══════════════════════════════════════ */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ═══════════════════════════════════════
   NEWS STATUS STRIP
═══════════════════════════════════════ */
.news-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    margin: 16px 0;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: var(--shadow);
}
.nss-left { display: flex; align-items: center; gap: 10px; }
.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.66em;
    font-weight: 700;
    color: #15803D;
}
.live-dot { width: 5px; height: 5px; background: #22C55E; border-radius: 50%; animation: blink 1.2s infinite; box-shadow: 0 0 5px #22C55E; }
.live-dot.loading { background: var(--gold); box-shadow: 0 0 5px rgba(184,134,11,0.5); }
.live-dot.error { background: var(--red); }
.nss-status { font-size: 0.75em; color: #666; font-weight: 600; }
.nss-right { display: flex; align-items: center; gap: 12px; }
.nss-countdown { display: flex; align-items: center; gap: 6px; }
.nss-countdown-label { font-size: 0.66em; color: #888; }
.ring-wrap { position: relative; width: 28px; height: 28px; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--paper-2); stroke-width: 3; }
.ring-fill { fill: none; stroke: var(--green-mid); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.42em; font-weight: 700; color: var(--green); }
.nss-refresh {
    background: var(--green);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.nss-refresh:hover { background: var(--green-mid); }
.nss-refresh.spin i { animation: spinIcon 0.5s linear; }
@keyframes spinIcon { from{transform:rotate(0);}to{transform:rotate(360deg);} }

/* ═══════════════════════════════════════
   NEWS LAYOUT
═══════════════════════════════════════ */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 32px;
}
.news-main { display: flex; flex-direction: column; gap: 20px; }

/* LEAD CARD */
.lead-card {
    display: block;
    text-decoration: none;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    background: var(--ink);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rule);
    transition: all 0.3s;
}
.lead-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lead-img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform 0.6s; }
.lead-card:hover .lead-img { transform: scale(1.03); }
.lead-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,20,8,0.96) 0%, rgba(10,30,14,0.65) 40%, transparent 100%); }
.lead-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.breaking-pill {
    display: flex; align-items: center; gap: 5px;
    background: var(--red);
    color: white;
    font-size: 0.6em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}
.source-pill {
    background: rgba(13,59,31,0.9);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.6em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
}
.lead-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 28px; }
.lead-section-label {
    font-size: 0.6em;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.lead-section-label::before { content:''; width: 20px; height: 2px; background: var(--gold-light); }
.lead-title { font-family: 'Noto Serif Tamil', serif; font-size: clamp(1.2em,2.5vw,1.7em); color: white; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.lead-excerpt { font-size: 0.82em; color: rgba(240,240,235,0.65); line-height: 1.7; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead-meta { display: flex; align-items: center; justify-content: space-between; }
.lead-meta-left { font-size: 0.65em; color: rgba(240,240,235,0.45); display: flex; gap: 12px; }
.lead-meta-left i { color: var(--gold-light); }
.lead-read-btn {
    background: var(--gold);
    color: var(--green);
    font-size: 0.75em;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 3px 12px rgba(184,134,11,0.4);
}
.lead-read-btn:hover { background: var(--gold-light); }

/* SUB-GRID */
.news-sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.sub-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: var(--shadow);
}
.sub-card:hover { border-color: var(--green-mid); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sub-card-img-wrap { width: 100%; height: 130px; overflow: hidden; position: relative; flex-shrink: 0; }
.sub-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.sub-card:hover .sub-card-img-wrap img { transform: scale(1.06); }
.sub-num {
    position: absolute; top: 8px; left: 8px;
    background: rgba(13,59,31,0.9);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    width: 22px; height: 22px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55em; font-weight: 700;
}
.sub-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.sub-title { font-family: 'Noto Serif Tamil', serif; font-size: 0.84em; color: var(--ink); font-weight: 700; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.sub-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--paper-2); padding-top: 8px; }
.sub-date { font-size: 0.58em; color: #999; display: flex; align-items: center; gap: 3px; }
.sub-date i { color: var(--green-mid); }
.sub-arrow { font-size: 0.6em; color: var(--green-mid); transition: transform 0.2s; }
.sub-card:hover .sub-arrow { transform: translateX(3px); }

/* SKELETON */
.skel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.skel-img { background: linear-gradient(90deg,var(--paper-2) 0%,var(--paper-3) 50%,var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skel-line { height: 10px; border-radius: 5px; margin-bottom: 8px; background: linear-gradient(90deg,var(--paper-2) 0%,var(--paper-3) 50%,var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%{background-position:-200% 0;}100%{background-position:200% 0;} }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.news-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-block {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.sb-header {
    background: var(--green);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-header h3 { font-size: 0.78em; color: var(--gold-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.sb-header i { color: var(--gold-light); font-size: 0.85em; }

/* Sidebar news list */
.sidebar-news-list { padding: 0; }
.snl-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--paper-2);
    text-decoration: none;
    transition: background 0.2s;
    align-items: flex-start;
}
.snl-item:last-child { border-bottom: none; }
.snl-item:hover { background: var(--paper); }
.snl-num-badge {
    min-width: 22px; height: 22px;
    background: var(--paper-2);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.58em; font-weight: 700; color: var(--green);
    flex-shrink: 0; margin-top: 2px;
}
.snl-img { width: 60px; height: 52px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.snl-body { flex: 1; min-width: 0; }
.snl-title { font-size: 0.75em; color: var(--ink); font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.snl-date { font-size: 0.58em; color: #999; margin-top: 3px; display: flex; align-items: center; gap: 3px; }
.snl-date i { color: var(--green-mid); }

/* RADIO PLAYER */
.radio-player-block {
    background: linear-gradient(160deg, var(--green) 0%, #0a2010 100%);
    border: 1px solid rgba(184,134,11,0.4);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(184,134,11,0.1);
}
.rp-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rp-title { font-size: 0.78em; color: var(--gold-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.rp-live { display: flex; align-items: center; gap: 5px; font-size: 0.62em; color: #4ADE80; font-weight: 700; }
.rp-body { padding: 20px 16px; text-align: center; }
.rp-logo-img {
    width: 64px; height: 64px;
    border-radius: 12px;
    border: 2px solid rgba(184,134,11,0.4);
    margin: 0 auto 12px;
    display: block;
    object-fit: contain;
}
.rp-station { font-size: 1em; color: white; font-weight: 700; margin-bottom: 3px; }
.rp-sub { font-size: 0.68em; color: rgba(240,240,235,0.5); margin-bottom: 18px; }
.rp-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 28px;
    margin-bottom: 18px;
}
.rp-bar {
    width: 3px;
    background: var(--gold-light);
    border-radius: 3px;
    opacity: 0.7;
    animation: wave var(--d,0.6s) ease-in-out infinite alternate var(--dl,0s);
}
.rp-bar.paused { animation: none; height: 4px !important; opacity: 0.3; }
@keyframes wave { from{height:4px;}to{height:var(--h,16px);} }
.rp-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.rp-play-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--gold);
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(192,57,43,0.5);
    position: relative;
}
.rp-play-btn::after { content:''; position:absolute; inset:-8px; border-radius:50%; border:2px solid var(--gold); opacity:0; animation: pulseRing 2.5s ease-out infinite; }
@keyframes pulseRing { 0%{opacity:0.7;transform:scale(0.9);}100%{opacity:0;transform:scale(1.4);} }
.rp-play-btn:hover { background: var(--red-light); transform: scale(1.05); }
.rp-vol { display: flex; align-items: center; gap: 8px; justify-content: center; }
.rp-vol i { color: rgba(240,240,235,0.5); font-size: 0.8em; }
.rp-vol input[type=range] { width: 110px; height: 3px; -webkit-appearance:none; appearance:none; background: rgba(255,255,255,0.15); border-radius: 3px; cursor: pointer; }
.rp-vol input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:14px; height:14px; background:var(--gold-light); border-radius:50%; cursor:pointer; }
.rp-vol-val { font-size: 0.65em; color: rgba(240,240,235,0.5); min-width: 30px; }
.rp-footer { padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.rp-footer a { font-size: 0.65em; color: var(--gold-light); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* PRAYER TIMES */
.prayer-grid-sb { padding: 12px; display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.prayer-mini {
    background: var(--paper);
    border-radius: var(--r);
    padding: 8px;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.prayer-mini.active { background: var(--green); border-color: var(--gold); }
.prayer-mini-name { font-size: 0.6em; color: #888; margin-bottom: 3px; font-weight: 600; }
.prayer-mini.active .prayer-mini-name { color: rgba(240,240,235,0.7); }
.prayer-mini-time { font-size: 0.88em; font-weight: 700; color: var(--green); }
.prayer-mini.active .prayer-mini-time { color: var(--gold-light); }

/* HIJRI */
.hijri-sb { padding: 16px; text-align: center; }
.hijri-sb-arabic { font-family: 'IBM Plex Sans Arabic', sans-serif; direction: rtl; font-size: 1.4em; color: var(--green); font-weight: 700; margin-bottom: 4px; }
.hijri-sb-sub { font-size: 0.7em; color: #888; font-weight: 600; }
.hijri-sb-chips { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.hijri-chip-sm {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    padding: 5px 10px;
    font-size: 0.65em;
    color: var(--green);
    font-weight: 700;
}

/* APP SIDEBAR */
.app-sb { padding: 14px; }
.app-sb-title { font-size: 0.8em; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.app-sb-sub { font-size: 0.68em; color: #888; margin-bottom: 12px; line-height: 1.6; }
.app-sb-badges { display: flex; flex-direction: column; gap: 8px; }
.app-badge-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: var(--r-md);
    font-size: 0.72em;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid rgba(184,134,11,0.3);
}
.app-badge-btn:hover { background: var(--green-mid); }
.app-badge-btn i { font-size: 1.2em; color: var(--gold-light); }
.app-badge-btn small { display: block; font-size: 0.75em; color: rgba(255,255,255,0.5); font-weight: 400; }

/* ═══════════════════════════════════════
   SECTION HEADINGS
═══════════════════════════════════════ */
.section-rule { border: none; border-top: 2px solid var(--rule); margin: 28px 0; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading-label { font-family: 'Noto Serif Tamil', serif; font-size: 1.15em; font-weight: 700; color: var(--green); }
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.section-heading-icon { color: var(--gold); }

/* MORE NEWS GRID */
.more-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.mnc {
    display: flex;
    gap: 10px;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 12px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
    align-items: flex-start;
}
.mnc:hover { border-color: var(--green-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mnc-img { width: 72px; height: 60px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; }
.mnc-num-label { width: 22px; height: 22px; background: var(--green); color: var(--gold-light); font-size: 0.55em; font-weight: 700; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.mnc-body { flex: 1; min-width: 0; }
.mnc-title { font-size: 0.8em; color: var(--ink); font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; font-family: 'Noto Serif Tamil', serif; }
.mnc-date { font-size: 0.58em; color: #999; display: flex; align-items: center; gap: 3px; }
.mnc-date i { color: var(--green-mid); }

/* VIEW ALL */
.view-all-wrap { text-align: center; margin: 8px 0 32px; }
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 0.88em;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(13,59,31,0.3);
    border: 1px solid rgba(184,134,11,0.3);
}
.view-all-btn:hover { background: var(--green-mid); box-shadow: 0 6px 24px rgba(13,59,31,0.4); }

/* EMERGENCY */
.emergency-strip {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.em-strip-header { background: var(--red); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.em-strip-header h3 { font-size: 0.78em; color: white; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.em-strip-header i { color: rgba(255,255,255,0.8); }
.em-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.em-item { padding: 14px; text-align: center; border-right: 1px solid var(--rule); }
.em-item:last-child { border-right: none; }
.em-item-name { font-size: 0.65em; color: #888; margin-bottom: 4px; font-weight: 600; }
.em-item-num { font-size: 1.6em; font-weight: 700; color: var(--red); }
.em-item-desc { font-size: 0.55em; color: #bbb; margin-top: 2px; }

/* APP FULL SECTION */
.app-section-full {
    background: linear-gradient(135deg, var(--green) 0%, #0a2515 100%);
    border-radius: var(--r-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(184,134,11,0.2);
    box-shadow: var(--shadow-md);
}
.app-full-text h2 { font-family: 'Noto Serif Tamil', serif; font-size: 1.4em; color: white; font-weight: 700; margin-bottom: 6px; }
.app-full-text h2 span { color: var(--gold-light); }
.app-full-text p { font-size: 0.8em; color: rgba(240,240,235,0.65); margin-bottom: 18px; line-height: 1.7; }
.app-full-badges { display: flex; gap: 10px; }
.app-full-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(184,134,11,0.4);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    transition: all 0.2s;
}
.app-full-badge:hover { background: rgba(255,255,255,0.18); border-color: var(--gold); }
.app-full-badge i { font-size: 1.4em; color: var(--gold-light); }
.app-full-badge small { display: block; font-size: 0.7em; color: rgba(255,255,255,0.5); font-weight: 400; }
.app-full-features { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.app-feature-pill { display: flex; align-items: center; gap: 5px; font-size: 0.68em; color: rgba(240,240,235,0.7); }
.app-feature-pill i { color: var(--gold-light); }
.app-mockup { display: flex; align-items: center; gap: 16px; }
.mockup-phone {
    width: 120px; height: 220px;
    border-radius: 20px;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid rgba(184,134,11,0.5);
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.mp-notch { width: 40px; height: 10px; background: rgba(0,0,0,0.4); border-radius: 0 0 8px 8px; margin: 0 auto 6px; }
.mp-screen { flex: 1; border-radius: 12px; background: linear-gradient(160deg,#0D2B1A,#1A3520); padding: 8px; }
.mp-logo-row { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.mp-logo-dot { width: 14px; height: 14px; border-radius: 3px; background: var(--green-mid); border: 1px solid var(--gold); }
.mp-logo-t { font-size: 0.4em; color: var(--gold-light); font-weight: 700; }
.mp-bars { display: flex; align-items: center; gap: 2px; height: 18px; margin: 6px 0; }
.mp-bar { width: 2px; background: var(--gold-light); border-radius: 1px; opacity: 0.7; animation: wave var(--d,0.6s) ease-in-out infinite alternate var(--dl,0s); }
.mp-prayer-rows { display: flex; flex-direction: column; gap: 2px; }
.mp-pr { display: flex; justify-content: space-between; font-size: 0.38em; color: rgba(240,240,235,0.6); padding: 2px 3px; border-radius: 3px; font-weight: 600; }
.mp-pr.hl { background: rgba(184,134,11,0.2); color: var(--gold-light); }
.mp-home-bar { width: 28px; height: 2px; background: rgba(255,255,255,0.15); border-radius: 1px; margin: 4px auto 0; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    background: var(--green);
    border-top: 3px solid var(--gold);
    padding: 40px 20px 24px;
    margin-top: 20px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: var(--gold-light); font-size: 0.88em; margin-bottom: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col a { color: rgba(240,240,235,0.65); font-size: 0.78em; line-height: 2; display: block; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-socials { display: flex; gap: 8px; margin-top: 12px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(184,134,11,0.3); display: flex; align-items: center; justify-content: center; color: rgba(240,240,235,0.6); font-size: 0.85em; transition: all 0.2s; }
.footer-socials a:hover { background: var(--gold); color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: rgba(240,240,235,0.4); font-size: 0.72em; }

/* WHATSAPP FLOAT */
#waBtn { position:fixed; bottom:24px; right:24px; z-index:9999; text-decoration:none; }
#waBtnInner { display:flex; align-items:center; gap:10px; background:linear-gradient(135deg,#25D366,#128C7E); padding:12px 18px 12px 14px; border-radius:40px; box-shadow:0 4px 20px rgba(37,211,102,0.5); transition:all 0.3s; animation:waGlow 2.5s ease-in-out infinite; }
#waLabel { font-size:0.82em; color:white; font-weight:700; white-space:nowrap; }
#waBtn:hover #waBtnInner { transform:scale(1.05); }
@keyframes waGlow { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.5);}50%{box-shadow:0 4px 32px rgba(37,211,102,0.75),0 0 0 8px rgba(37,211,102,0.08);} }

/* MOBILE NAV */
.mobile-nav-overlay { position:fixed; inset:0; z-index:1050; background:rgba(0,0,0,0.5); opacity:0; pointer-events:none; transition:opacity 0.3s; }
.mobile-nav-overlay.open { opacity:1; pointer-events:all; }
.mobile-nav-panel { position:fixed; top:0; right:-300px; width:280px; height:100vh; background:white; z-index:1060; transition:right 0.3s; overflow-y:auto; display:flex; flex-direction:column; }
.mobile-nav-panel.open { right:0; }
.mnp-header { background:var(--green); padding:16px; display:flex; align-items:center; justify-content:space-between; border-bottom:2px solid var(--gold); }
.mnp-header span { color:var(--gold-light); font-weight:700; }
.mnp-close { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:rgba(255,255,255,0.8); width:32px; height:32px; border-radius:6px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.mnp-links { padding:12px; }
.mnp-links a { display:flex; align-items:center; gap:10px; color:#444; text-decoration:none; padding:12px; border-radius:8px; font-size:0.88em; font-weight:600; transition:all 0.2s; margin-bottom:2px; }
.mnp-links a:hover { background:rgba(13,59,31,0.06); color:var(--green); }
.mnp-links a i { color:var(--green); width:16px; text-align:center; }

/* ANIMATIONS */
@keyframes fadeIn { from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);} }
.news-fade { animation:fadeIn 0.4s ease both; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width:1100px) {
    .news-layout { grid-template-columns:1fr 300px; }
    .news-sub-grid { grid-template-columns:repeat(3,1fr); }
    .more-news-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px) {
    .masthead-nav { display:none; }
    .mobile-menu-btn { display:flex; }
    .news-layout { grid-template-columns:1fr; }
    .news-sub-grid { grid-template-columns:repeat(2,1fr); }
    .news-sidebar { display:none; }
    .footer-grid { grid-template-columns:repeat(2,1fr); }
    .app-section-full { grid-template-columns:1fr; }
    .app-mockup { display:none; }
    .em-strip-grid { grid-template-columns:repeat(2,1fr); }
    .em-item:nth-child(2) { border-right:none; }
}
@media (max-width:600px) {
    .news-sub-grid { grid-template-columns:1fr; }
    #waLabel { display:none; }
    #waBtnInner { border-radius:50%; width:52px; height:52px; padding:0; justify-content:center; }
    .footer-grid { grid-template-columns:1fr; }
    .app-full-badges { flex-direction:column; }
}
