/* =========================================================
   OPEN MEDIA — STYLESHEET
   1. Design Tokens   2. Reset   3. Utilities   4. Typography
   5. Buttons   6. Header   7. Navigation   8. Breaking Ticker
   9. Homepage Hero   10. Magazine Flipbook  11. News Components
   12. Events   13. For You   14. IT  15. Business  16. Cybersecurity
   17. AI  18. Publisher  19. Article Reader  20. Search
   21. AI News Teller  22. Notifications  23. Ads  24. Newsletter
   25. Footer  26. Mobile Bottom Nav  27. Responsive  28. Accessibility
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --color-deep-navy: #0B1220;
  --color-navy-soft: #131B2C;
  --color-royal-blue: #2563EB;
  --color-royal-blue-dark: #1D4ED8;
  --color-electric-cyan: #B8B100;

  --color-white: #FFFFFF;
  --color-light-gray: #F4F7F9;
  --color-border-gray: #E2E8F0;
  --color-dark-gray: #475569;
  --color-text-dark: #0F172A;

  --color-business: #10B981;
  --color-cyber: #EF4444;
  --color-events: #7C3AED;
  --color-orange: #F59E0B;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 16px 32px rgba(11, 18, 32, 0.14);
  --shadow-3d: 0 12px 0 rgba(15, 23, 42, 0.1), 0 20px 30px rgba(232, 227, 0, 0.16);

  --container-w: 1280px;
  --transition-fast: 180ms ease;
  --transition-med: 300ms cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-light-gray);
  background-image: radial-gradient(circle at 8% 12%, rgba(232, 227, 0, .06), transparent 22%), radial-gradient(circle at 92% 42%, rgba(203, 213, 225, .12), transparent 25%);
  color: var(--color-text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
img.media-failed { opacity: 0; background: linear-gradient(135deg, #E0F2FE, #EDE9FE); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font-family: inherit; font-size: 0.95rem; }

/* ---------- 3. UTILITIES ---------- */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.text-blue { color: var(--color-royal-blue) !important; }
.text-cyan { color: var(--color-electric-cyan) !important; }
.text-emerald { color: var(--color-business) !important; }
.text-red { color: var(--color-cyber) !important; }
.text-purple { color: var(--color-events) !important; }
.text-orange { color: var(--color-orange) !important; }
.text-muted { color: var(--color-dark-gray); }
.text-danger { color: var(--color-cyber); }
.text-center { text-align: center; }
.eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-deep-navy); line-height: 1.15; letter-spacing: -0.01em; }
.section-header h2 { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.page-header-title h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.page-header-title p { color: var(--color-dark-gray); max-width: 640px; }
.page-header-title { padding: 32px 0 24px; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, #F2ED00, #DED700); color: #111827; box-shadow: 0 4px 0 #B8B100, 0 8px 18px rgba(184, 177, 0, .2); }
.btn-primary:hover { background: #DED700; }
.btn-outline { border: 1px solid var(--color-border-gray); color: var(--color-text-dark); background: var(--color-white); }
.btn-outline:hover { border-color: #CFC900; color: #8A8500; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-3d); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(15, 23, 42, .12); }
.btn svg { transition: transform var(--transition-fast); }
.btn:hover svg { transform: translateX(2px); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--color-dark-gray); position: relative; transition: background var(--transition-fast), transform var(--transition-fast);
}
.icon-btn:hover { background: var(--color-light-gray); color: #817C00; }
.icon-btn svg { width: 20px; height: 20px; transition: transform var(--transition-fast), filter var(--transition-fast); }
.icon-btn:hover svg { transform: translateY(-1px) scale(1.08); filter: drop-shadow(2px 3px 0 rgba(37, 99, 235, .25)); }
.badge-btn .badge-count {
  position: absolute; top: 2px; right: 2px; background: var(--color-cyber); color: #fff;
  font-size: 0.6rem; font-weight: 800; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 6. HEADER / TOP BAR ---------- */
.top-bar { background: linear-gradient(90deg, #07111F, #10213A 52%, #0C1C34); color: #CBD5E1; font-size: 0.75rem; box-shadow: inset 0 -1px 0 rgba(232,227,0,.16); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 50px; gap: 18px; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; min-width: 0; }
.top-bar-left { flex: 1 1 auto; }
.top-bar-right { flex: 0 0 auto; gap: 18px; }
.top-bar-datetime { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; flex-shrink: 0; white-space: nowrap; padding-left: 18px; border-left: 1px solid rgba(148,163,184,.42); }
.top-bar-date { display: flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.top-bar-date svg { width: 12px; height: 12px; flex: 0 0 12px; color: #38BDF8; }
#current-date { display: block; color: #E2E8F0; font-size: 0.95rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.live-indicator { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--color-electric-cyan); font-weight: 700; white-space: nowrap; }
.pulse-dot, .live-indicator > svg, .live-label, .live-update-divider { flex-shrink: 0; }
.live-indicator svg { width: 14px; height: 14px; color: #F2ED00; filter: drop-shadow(2px 2px 0 rgba(8,47,73,.8)); animation: live-icon-float 2.6s ease-in-out infinite; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-electric-cyan); box-shadow: 0 0 8px var(--color-electric-cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-label { text-shadow: 0 0 8px rgba(34,211,238,.42); }
.live-update-divider { width: 1px; height: 13px; background: rgba(148,163,184,.42); }
#live-update-message { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #E2E8F0; font-size: .7rem; font-weight: 500; }
.live-update-enter { animation: live-update-enter 420ms ease both; }
@keyframes live-icon-float { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-2px) rotateY(18deg); } }
@keyframes live-update-enter { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.edition-tag { border: 1px solid #33415580; padding: 2px 8px; border-radius: 20px; font-size: 0.68rem; }
.market-ticker-item b { color: var(--color-white); }
.sample-tag { opacity: 0.55; font-size: 0.65rem; }
.ist-clock {
  display: inline-flex; align-items: center; gap: 5px; color: #CBD5E1; margin-top: 4px;
  font-size: 0.875rem; font-weight: 600; line-height: 1; padding: 0;
  letter-spacing: 0.02em; white-space: nowrap;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.analog-clock { position: relative; display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid #38BDF8; border-radius: 50%; }
.analog-clock-hand { position: absolute; left: 50%; bottom: 50%; display: block; border-radius: 1px; transform-origin: center bottom; }
.analog-clock-hour { width: 1.4px; height: 3px; margin-left: -.7px; background: #38BDF8; }
.analog-clock-minute { width: 1px; height: 4px; margin-left: -.5px; background: #38BDF8; }
.analog-clock-second { width: 1px; height: 4.5px; margin-left: -.5px; background: #7DD3FC; }
.analog-clock-center { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: #38BDF8; transform: translate(-50%, -50%); }

.main-header {
  position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-gray); transition: padding var(--transition-fast);
}
.main-header.compact .header-inner { height: 60px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 86px; transition: height var(--transition-fast); }
.brand-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 68px; height: 68px; flex: 0 0 68px; background: #ECE900; border-radius: 50%; position: relative; overflow: hidden; }
.logo-icon img { position: absolute; width: 100%; height: 100%; max-width: none; left: 0; top: 0; object-fit: cover; }
.main-header.compact .logo-icon { width: 52px; height: 52px; flex-basis: 52px; }
.logo-wordmark { display: flex; flex-direction: column; align-items: center; color: var(--color-deep-navy); }
.logo-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; font-weight: 500; letter-spacing: -0.08em; line-height: 1; white-space: nowrap; }
.logo-tagline { margin-top: 5px; font-size: 0.48rem; line-height: 1; letter-spacing: 0.17em; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--color-deep-navy); }
.logo-text span { color: #C6C000; }
.footer-brand-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-lockup .logo-icon { width: 44px; height: 44px; flex-basis: 44px; }
.footer-brand-lockup .logo-text { margin: 0; color: #fff; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.mobile-menu-btn { display: none; }

.profile-dropdown-wrapper { position: relative; }
.profile-avatar-btn { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid var(--color-border-gray); margin-left: 6px; }
.profile-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.profile-menu {
  position: absolute; right: 0; top: 50px; width: 240px; background: var(--color-white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border-gray);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition-fast); z-index: 250;
}
.profile-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-header { padding: 10px 12px; }
.user-name { font-weight: 700; font-size: 0.9rem; }
.user-role { font-size: 0.75rem; color: var(--color-dark-gray); }
.profile-menu hr { border: none; border-top: 1px solid var(--color-border-gray); margin: 4px 0; }
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--color-text-dark); }
.profile-menu a:hover { background: var(--color-light-gray); color: var(--color-royal-blue); }
.profile-menu a svg { width: 16px; height: 16px; }

/* ---------- 7. NAVIGATION ---------- */
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 30px; flex: 1; }
.nav-link { position: relative; font-weight: 600; font-size: 0.9rem; color: #0B1220; padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: #E8E300; transition: width var(--transition-fast);
}
.nav-link:hover { color: var(--color-text-dark); }
.nav-link.active { color: #FFD100; }
.nav-link.active::after { width: 100%; }
.nav-link::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; border-radius: 50%; background: #E8E300; opacity: 0; transform: translateX(-50%) scale(0); transition: transform var(--transition-fast), opacity var(--transition-fast); }
.nav-link.active::after, .nav-link.active::before { background-color: #FFD100; }
.nav-link:hover::before, .nav-link.active::before { opacity: 1; transform: translateX(-50%) scale(1); }

.mobile-drawer-overlay {
  position: fixed; inset: 0; background: rgba(11,18,32,0.5); z-index: 300; opacity: 0; visibility: hidden; transition: opacity var(--transition-fast);
}
.mobile-drawer-overlay.show { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%; background: var(--color-white); z-index: 310;
  transition: right var(--transition-med); padding: 20px; overflow-y: auto;
}
.mobile-drawer.show { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link { padding: 13px 10px; font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm); min-height: 44px; display: flex; align-items: center; }
.mobile-nav-link:hover { background: #F8F6A8; color: #111827; }
.mobile-nav-link.active { background: #ECE900; color: #111827; }
.mobile-nav-link { transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast); }
.mobile-nav-link:hover, .mobile-nav-link.active { transform: translateX(4px); }
.mobile-auth-actions { display: none; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-border-gray); }
.mobile-auth-actions .btn { width: 100%; min-height: 44px; }

/* ---------- 8. BREAKING TICKER ---------- */
.ticker-wrapper { position: relative; background: linear-gradient(90deg, #080F1F 0%, #101A35 48%, #0C1C34 100%); border-bottom: 1px solid #1E293B; overflow: hidden; box-shadow: inset 0 -1px 0 rgba(232,227,0,.16); }
.ticker-wrapper::before { content: ""; position: absolute; top: -40px; left: -12%; width: 32%; height: 120px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.15), transparent); transform: skewX(-24deg); animation: ticker-shimmer 8s ease-in-out infinite; pointer-events: none; }
.ticker-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; height: 42px; }
.ticker-label {
  position: relative; display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #F2ED00, #DED700 62%, #C6C000); color: #111827; font-weight: 800;
  font-size: 0.7rem; padding: 5px 11px; border-radius: 5px; flex-shrink: 0; letter-spacing: 0.04em; transform: translateZ(0); box-shadow: 0 4px 0 #A7A100, 0 7px 16px rgba(184,177,0,.24); text-shadow: none;
}
.ticker-label::before { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(232,227,0,.45); border-radius: 8px; animation: ticker-ring 2.2s ease-out infinite; pointer-events: none; }
.ticker-label svg { width: 14px; height: 14px; filter: drop-shadow(1px 2px 0 rgba(136,19,55,.7)); animation: ticker-bolt 1.8s ease-in-out infinite; }
.ticker-content { position: relative; overflow: hidden; white-space: nowrap; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-content:hover .ticker-text { animation-play-state: paused; }
.ticker-text { display: inline-block; color: #E2E8F0; font-size: 0.82rem; padding-left: 100%; animation: ticker-scroll 38s linear infinite; }
.ticker-text b { color: #F2ED00; text-shadow: 0 0 9px rgba(232,227,0,.35); }
.ticker-story { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid rgba(232,227,0,.16); border-radius: 999px; background: rgba(15, 23, 42, .36); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.ticker-story:hover { background: rgba(184, 177, 0, .2); border-color: rgba(232,227,0,.45); transform: translateY(-1px); }
.ticker-story svg { width: 14px; height: 14px; color: #F2ED00; filter: drop-shadow(0 0 5px rgba(232,227,0,.4)); animation: ticker-story-icon 2.4s ease-in-out infinite; }
.ticker-story:nth-of-type(2n) svg { color: #C4B5FD; animation-delay: .45s; }
.ticker-story:nth-of-type(3n) svg { color: #86EFAC; animation-delay: .8s; }
.ticker-story b { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ticker-separator { display: inline-block; margin: 0 12px; color: #64748B; font-weight: 800; transform: rotate(18deg); animation: ticker-separator-pulse 1.8s ease-in-out infinite; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes ticker-shimmer { 0%, 58% { transform: translateX(-20%) skewX(-24deg); opacity: 0; } 72% { opacity: 1; } 100% { transform: translateX(390%) skewX(-24deg); opacity: 0; } }
@keyframes ticker-ring { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes ticker-bolt { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-12deg) scale(1.16); } }
@keyframes ticker-story-icon { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(8deg); } }
@keyframes ticker-separator-pulse { 0%, 100% { opacity: .45; transform: rotate(18deg) scale(1); } 50% { opacity: 1; transform: rotate(18deg) scale(1.2); } }

/* ---------- 9. HOMEPAGE HERO & GRIDS ---------- */
.hero-magazine-wrapper { display: grid; grid-template-columns: 66% 34%; gap: 20px; margin: 28px 0 16px; align-items: stretch; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; align-items: stretch; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }

.hero-main-card {
  background: var(--color-deep-navy); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg);
  min-width: 0; user-select: none; perspective: 1600px; perspective-origin: center;
}
.hero-page-content { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; transform-style: preserve-3d; }
.hero-turn-page { position: absolute; inset: 0; z-index: 4; overflow: visible; pointer-events: none; transform-style: preserve-3d; backface-visibility: hidden; }
.hero-turn-page::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, #eee9df, #fffdf7 45%, #e5dfd4); transform: rotateY(180deg); backface-visibility: hidden; box-shadow: inset 0 0 24px rgba(15,23,42,.12); }
.hero-turn-forward { transform-origin: left center; }
.hero-turn-backward { transform-origin: right center; }
.hero-turn-forward.is-turning { animation: hero-page-turn-forward 480ms cubic-bezier(.65,0,.35,1) forwards; }
.hero-turn-backward.is-turning { animation: hero-page-turn-backward 480ms cubic-bezier(.65,0,.35,1) forwards; }
@keyframes hero-page-turn-forward {
  0% { transform: rotateY(0); box-shadow: 0 0 0 rgba(0,0,0,0); }
  45% { transform: rotateY(-82deg); box-shadow: 16px 0 28px rgba(0,0,0,.3); }
  100% { transform: rotateY(-180deg); box-shadow: 0 0 0 rgba(0,0,0,0); }
}
@keyframes hero-page-turn-backward {
  0% { transform: rotateY(0); box-shadow: 0 0 0 rgba(0,0,0,0); }
  45% { transform: rotateY(82deg); box-shadow: -16px 0 28px rgba(0,0,0,.3); }
  100% { transform: rotateY(180deg); box-shadow: 0 0 0 rgba(0,0,0,0); }
}
.hero-image-box { position: absolute; inset: 0; height: 100%; width: 100%; transition: opacity 300ms ease; }
.hero-image-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-image-box::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.2) 0%, rgba(11,18,32,0.6) 50%, rgba(11,18,32,0.95) 100%);
}
.hero-top-bar {
  position: absolute; top: 20px; left: 24px; right: 24px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-top-right {
  display: flex; align-items: center; gap: 10px;
}
.hero-live-badge {
  display: inline-flex; align-items: center; gap: 6px; color: #fff;
  background: rgba(11,18,32,0.65); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 4px 10px; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; backdrop-filter: blur(8px);
}
.hero-live-badge span {
  width: 6px; height: 6px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.2); animation: pulse 1.6s infinite;
}
.hero-page-count {
  font-size: 0.75rem; font-weight: 800; color: #E2E8F0;
  background: rgba(11,18,32,0.65); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 4px 11px; backdrop-filter: blur(8px);
  letter-spacing: 0.05em;
}
.hero-body {
  position: relative; z-index: 2; margin-top: auto; padding: 24px 32px 14px;
  color: var(--color-white); display: flex; flex-direction: column; min-width: 0;
  transition: opacity 300ms ease, transform 300ms ease;
}
.hero-title {
  font-size: 2.3rem; font-weight: 800; margin: 8px 0 10px; letter-spacing: -0.02em;
  max-width: 650px; overflow-wrap: break-word; line-height: 1.22;
  transition: color var(--transition-fast);
}
.hero-title:hover { color: #93C5FD; }
.hero-desc { color: #CBD5E1; font-size: 0.98rem; max-width: 600px; margin-bottom: 6px; line-height: 1.5; overflow-wrap: break-word; }
.category-tag {
  display: inline-block; background: var(--color-royal-blue); color: #fff; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 11px; border-radius: 4px; width: fit-content;
}
.category-tag.cat-business { background: var(--color-business); }
.category-tag.cat-cyber-security { background: var(--color-cyber); }
.category-tag.cat-ai { background: var(--color-events); }
.category-tag.cat-it { background: var(--color-royal-blue); }
.hero-meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: #94A3B8; width: 100%; }
.hero-meta-row .icon-btn { color: #CBD5E1; }
.hero-meta-row .icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hero-actions { display: flex; align-items: center; gap: 8px; }

/* Hero Carousel Controls */
.hero-carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px 18px; gap: 12px; z-index: 6; position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, transparent 0%, rgba(11,18,32,0.45) 100%);
}
.hero-nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #F1F5F9; border-radius: var(--radius-sm); padding: 7px 15px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition-fast); backdrop-filter: blur(8px);
}
.hero-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.2); color: #fff;
  border-color: rgba(255,255,255,0.45); transform: translateY(-1px);
}
.hero-nav-btn:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.hero-nav-btn svg { width: 15px; height: 15px; }
.hero-dots {
  display: flex; align-items: center; gap: 7px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; padding: 0;
  cursor: pointer; transition: all var(--transition-fast);
}
.hero-dot:hover {
  background: rgba(255,255,255,0.65); transform: scale(1.25);
}
.hero-dot.active {
  width: 24px; border-radius: 4px; background: var(--color-royal-blue);
  box-shadow: 0 0 10px rgba(37,99,235,0.7);
}

.editor-picks-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 34px; align-items: stretch; }
.editor-picks-strip .horizontal-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; height: 100%; }

/* Generic article-card standard */
.article-card {
  display: flex; flex-direction: column; height: 100%; background: var(--color-white); border-radius: var(--radius-md);
  border: 1px solid var(--color-border-gray); overflow: hidden; isolation: isolate; transition: transform 0.2s ease, box-shadow var(--transition-med); min-width: 0;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3d); border-color: #BAE6FD; }
.article-card img { width: 100%; height: 160px; object-fit: cover; }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; gap: 10px; justify-content: space-between; min-width: 0; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border-gray); font-size: 0.78rem; color: var(--color-dark-gray); }

/* ---------- 10. SIDE WIDGET (TRENDING NEWS PANEL) ---------- */
.magazine-flip-card, .side-trending-card {
  --magazine-accent: #7C3AED; --magazine-accent-soft: #EDE9FE;
  background: linear-gradient(155deg, #ffffff 0%, #f8faff 50%, #f1f5f9 100%);
  border-radius: var(--radius-lg); border: 1px solid #D9E2EC;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(37, 99, 235, 0.04);
  display: flex; flex-direction: column; overflow: hidden; height: 100%; min-height: 520px;
  position: relative; min-width: 0;
}
.side-trending-header {
  padding: 18px 20px 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
}
.side-trending-header .eyebrow {
  color: var(--color-royal-blue); display: flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 0.88rem; letter-spacing: 0.02em;
}
.side-trending-header .eyebrow svg {
  width: 16px; height: 16px; animation: magazine-signal 2.2s ease-in-out infinite;
}
.side-trending-badge {
  display: inline-flex; align-items: center; gap: 5px;
  color: #047857; background: #ECFDF5; border: 1px solid #A7F3D0;
  border-radius: 12px; padding: 3px 9px; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.side-trending-badge span {
  width: 6px; height: 6px; border-radius: 50%; background: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation: pulse 1.6s infinite;
}
.side-trending-list {
  display: flex; flex-direction: column; padding: 12px 16px; gap: 10px;
  flex: 1; justify-content: space-between;
}
.side-trending-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px;
  background: rgba(255,255,255,0.75); border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 0.2s ease, box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.side-trending-item:hover {
  transform: translateX(4px); background: #ffffff;
  border-color: #93C5FD; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.09);
}
.side-trending-rank {
  font-size: 1.2rem; font-weight: 900; color: #3B82F6;
  min-width: 24px; line-height: 1.2;
}
.side-trending-content {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.side-trending-content .category-tag {
  font-size: 0.58rem; padding: 2px 6px; border-radius: 3px;
}
.side-trending-title {
  font-size: 0.86rem; font-weight: 700; line-height: 1.35;
  color: var(--color-charcoal); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-trending-meta {
  font-size: 0.72rem; color: var(--color-dark-gray);
}
.side-trending-footer {
  padding: 12px 18px 16px; border-top: 1px solid #E2E8F0;
  display: flex; justify-content: flex-end;
}
.side-trending-link {
  font-size: 0.78rem; font-weight: 700; color: var(--color-royal-blue);
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  transition: gap var(--transition-fast);
}
.side-trending-link:hover {
  gap: 8px; text-decoration: underline;
}
.side-trending-link svg {
  width: 14px; height: 14px;
}
@keyframes magazine-signal { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-8deg) scale(1.12); } }

/* ---------- 11. NEWS COMPONENTS (editorial patterns) ---------- */
.section-block { padding: 34px 0; border-top: 1px solid var(--color-border-gray); }
.section-block:first-of-type { border-top: none; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-header svg { width: 20px; height: 20px; transform-style: preserve-3d; filter: drop-shadow(2px 3px 0 rgba(37, 99, 235, .16)); animation: section-icon-float 4s ease-in-out infinite; }

.horizontal-scroll-container { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; align-items: stretch; }
.horizontal-scroll-container::-webkit-scrollbar { height: 6px; }
.horizontal-scroll-container::-webkit-scrollbar-thumb { background: var(--color-border-gray); border-radius: 4px; }
.horizontal-card {
  flex: 0 0 280px; background: var(--color-white); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--color-border-gray); cursor: pointer; transition: box-shadow var(--transition-med), transform 0.2s ease, border-color var(--transition-fast); scroll-snap-align: start; isolation: isolate;
  display: flex; flex-direction: column; min-width: 0;
}
.horizontal-card:hover { box-shadow: var(--shadow-3d); transform: translateY(-2px); border-color: #BAE6FD; }
.horizontal-card img { height: 155px; object-fit: cover; width: 100%; transition: transform var(--transition-med); flex-shrink: 0; }
.horizontal-card:hover img { transform: scale(1.03); }
.horizontal-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; gap: 8px; min-width: 0; }
.compact-title, .card-editorial-title { font-family: var(--font-heading); }

/* Asymmetric spotlight grid */
.grid-spotlight { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 18px; align-items: stretch; }
.grid-spotlight, .card-grid-3, .horizontal-scroll-container, .admin-table-wrapper, .news-grid, .hero-grid, .sidebar-card { isolation: isolate; }
.grid-spotlight .lead-story { grid-row: span 2; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.card-editorial {
  background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  border: 1px solid var(--color-border-gray); transition: box-shadow var(--transition-med), transform 0.2s ease, border-color var(--transition-fast); display: flex; flex-direction: column; height: 100%; isolation: isolate; min-width: 0;
}
.card-editorial:hover { box-shadow: var(--shadow-3d); transform: translateY(-2px); border-color: #C4B5FD; position: relative; z-index: 1; }
.card-editorial img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform var(--transition-med); flex-shrink: 0; }
.card-editorial:hover img { transform: scale(1.03); }
.card-editorial-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-between; min-width: 0; }
.card-editorial-title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; overflow-wrap: break-word; }

.lead-story .card-editorial-title { font-size: 1.5rem; line-height: 1.3; }
.lead-story img { aspect-ratio: 16/9; }

.story-category { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; width: fit-content; }
.story-title { font-family: var(--font-heading); font-weight: 700; overflow-wrap: break-word; }
.story-summary { font-size: 0.875rem; color: var(--color-dark-gray); line-height: 1.5; overflow-wrap: break-word; }
.story-meta { font-size: 0.75rem; color: var(--color-dark-gray); display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.card-footer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--color-dark-gray); margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.06); width: 100%; }

/* Horizontal / compact / most-read variants */
.story-horizontal { display: flex; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--color-border-gray); cursor: pointer; transition: transform var(--transition-fast), background var(--transition-fast), padding var(--transition-fast); border-radius: var(--radius-sm); align-items: center; }
.story-horizontal:hover { background: #F8FAFC; transform: translateX(4px); padding-left: 12px; }
.story-horizontal:last-child { border-bottom: none; }
.story-horizontal img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.story-horizontal .story-body { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-width: 0; flex: 1; }

.news-card-compact { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-border-gray); cursor: pointer; transition: transform 0.2s ease, padding var(--transition-fast); }
.news-card-compact:hover { transform: translateX(4px); padding-left: 4px; }
.news-card-compact:last-child { border-bottom: none; }
.news-card-compact img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.compact-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.compact-title { font-size: 0.88rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

.most-read-list { display: flex; flex-direction: column; }
.most-read-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--color-border-gray); cursor: pointer; }
.most-read-item:last-child { border-bottom: none; }
.most-read-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--color-border-gray); width: 42px; flex-shrink: 0; }
.most-read-item:hover .most-read-num { color: var(--color-royal-blue); }
.most-read-body h4 { font-size: 0.95rem; font-weight: 700; }

/* Cyber alert pattern */
.cyber-alert-card { border-left: 3px solid var(--color-cyber); }
.severity-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 4px; text-transform: uppercase;
}
.sev-critical, .sev-active-threat { background: #FEE2E2; color: #B91C1C; }
.sev-high { background: #FFEDD5; color: #C2410C; }
.sev-zero-day { background: #1F2937; color: #F87171; }
.sev-patch-available { background: #DCFCE7; color: #15803D; }

/* Opinion / author pattern */
.opinion-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--color-white); border: 1px solid var(--color-border-gray); border-radius: var(--radius-md); cursor: pointer; transition: transform var(--transition-med), box-shadow var(--transition-med); }
.opinion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3d); position: relative; z-index: 1; }
.opinion-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.empty-state { padding: 48px 24px; text-align: center; color: var(--color-dark-gray); background: var(--color-white); border: 1px dashed var(--color-border-gray); border-radius: var(--radius-md); }
.empty-state h4 { color: var(--color-text-dark); margin-bottom: 6px; }

/* ---------- 12. WEBINARS & EVENTS ---------- */
.webinar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 8px;
}

.webinar-card, .event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-gray);
  transition: transform 0.2s ease, box-shadow var(--transition-med);
  isolation: isolate;
  min-width: 0;
}
.webinar-card:hover, .event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d);
  position: relative;
  z-index: 1;
  border-color: #C4B5FD;
}
.webinar-banner, .event-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-deep-navy);
}
.webinar-banner img, .event-banner img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--transition-med);
}
.webinar-card:hover .webinar-banner img, .event-card:hover .event-banner img {
  transform: scale(1.03);
}
.event-type-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-events);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}
.webinar-card-body, .event-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}
.event-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 16px;
}
.webinar-date, .event-date {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-events);
  margin-bottom: 6px;
}
.webinar-title, .event-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
}
.webinar-speaker, .event-speaker {
  font-size: 0.82rem;
  color: var(--color-dark-gray);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.webinar-btn, .webinar-card-body .btn, .event-card-body .btn {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  padding: 9px 16px;
  min-height: 42px;
}

/* ---------- 13/14/15/16 THREE COLUMN PAGE LAYOUTS ---------- */
.three-column-layout { display: grid; grid-template-columns: 240px 1fr 280px; gap: 24px; align-items: flex-start; padding-bottom: 60px; }
.col-sidebar-left, .col-sidebar-right { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.col-main-feed { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.panel-box { background: rgba(255,255,255,.9); border: 1px solid var(--color-border-gray); border-radius: var(--radius-md); padding: 18px; box-shadow: 0 3px 0 rgba(15,23,42,.03); transition: box-shadow var(--transition-med), border-color var(--transition-fast), transform 0.2s ease; isolation: isolate; }
.panel-box:hover { border-color: #BFDBFE; box-shadow: 0 10px 24px rgba(37,99,235,.08); transform: translateY(-2px); }
.panel-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.panel-title svg { width: 17px; height: 17px; transform-style: preserve-3d; filter: drop-shadow(2px 2px 0 rgba(124,58,237,.2)); animation: panel-icon-float 3.8s ease-in-out infinite; }

.library-nav { display: flex; flex-direction: column; gap: 2px; }
.library-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--color-dark-gray); min-height: 40px; display: flex; align-items: center; }
.library-nav a:hover { background: var(--color-light-gray); }
.library-nav a.active { background: #EFF6FF; color: var(--color-royal-blue); }

.author-follow-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; min-width: 0; }
.author-follow-row:last-child { margin-bottom: 0; }
.author-follow-row > .btn { flex: 0 0 auto; white-space: nowrap; }
.author-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 0; }
.author-info img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-info > div { min-width: 0; flex: 1 1 0; }
.author-name { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-topic { font-size: 0.72rem; color: var(--color-dark-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.filter-chip-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 20px; }
.chip {
  flex-shrink: 0; padding: 9px 16px; border-radius: 20px; border: 1px solid var(--color-border-gray); font-size: 0.83rem;
  font-weight: 600; color: var(--color-dark-gray); background: var(--color-white); transition: all var(--transition-fast); min-height: 40px;
}
.chip:hover { border-color: var(--color-royal-blue); color: var(--color-royal-blue); }
.chip.active { background: var(--color-deep-navy); border-color: var(--color-deep-navy); color: #fff; }

.domain-tree { display: flex; flex-direction: column; }
.domain-group { margin-bottom: 6px; }
.domain-group-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-dark-gray); padding: 10px 4px 4px; }
.domain-item { padding: 9px 8px; font-size: 0.85rem; border-radius: var(--radius-sm); cursor: pointer; color: var(--color-text-dark); min-height: 38px; display: flex; align-items: center; }
.domain-item { transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast); }
.domain-item:hover { background: linear-gradient(90deg, #EFF6FF, #F5F3FF); color: var(--color-royal-blue); transform: translateX(4px); }
.domain-group-toggle { width: 100%; justify-content: space-between; text-align: left; font-weight: 800; }
.domain-group-toggle svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition-fast); }
.domain-subdomains { display: none; }
.domain-group.expanded .domain-subdomains { display: block; }
.domain-group.expanded .domain-group-toggle svg { transform: rotate(180deg); }
.domain-subitem { padding-left: 18px; font-size: 0.8rem; }

.market-widget { display: flex; flex-direction: column; gap: 10px; }
.market-row { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--color-border-gray); }
.market-row:last-child { border: none; padding: 0; }

.alert-panel .threat-stat { padding: 12px 0; border-bottom: 1px solid var(--color-border-gray); }
.alert-panel .threat-stat:last-child { border: none; }
.stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.78rem; color: var(--color-dark-gray); }

/* ---------- 17. AI PAGE ---------- */
.ai-page-hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; margin-bottom: 30px; }
.ai-secondary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#page-ai #ai-secondary-stories { grid-template-columns: minmax(0, 1fr); margin: 0; }
.ai-most-read-panel { background: var(--color-deep-navy); border-radius: var(--radius-lg); padding: 22px; color: #fff; }
.ai-most-read-panel .most-read-num { color: #334155; }
.ai-most-read-panel .most-read-item { border-bottom-color: #1E293B; }
.ai-most-read-panel .most-read-body h4 { color: #fff; }
.ai-most-read-panel:hover .most-read-num { color: var(--color-events); }

/* ---------- 18. PUBLISHER ---------- */
.publish-hero { padding: 34px 0 12px; }
.publish-hero h1 { font-size: 2.1rem; margin-bottom: 8px; }
.publish-hero p { color: var(--color-dark-gray); max-width: 560px; }
.publish-tabs { display: flex; gap: 4px; margin: 20px 0; border-bottom: 1px solid var(--color-border-gray); }
.publish-tab-btn { padding: 12px 18px; font-weight: 700; font-size: 0.88rem; color: var(--color-dark-gray); border-bottom: 2px solid transparent; min-height: 44px; }
.publish-tab-btn.active { color: var(--color-royal-blue); border-color: var(--color-royal-blue); }
.publish-panel { display: none; }
.publish-panel.active { display: block; }
@media (min-width: 861px) {
  #page-publish .publish-tabs { justify-content: space-between; gap: 12px; }
  #page-publish .publish-tab-btn { flex: 0 0 auto; white-space: nowrap; }
  #page-publish .publisher-submission-card {
    width: 100%; max-width: 960px; margin-left: auto; margin-right: auto;
  }
}

/* SPA page routing: only the active top-level page should render */
.page-view { display: none; }
.page-view.active { display: block; animation: pageFadeIn 0.25s ease; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes section-icon-float { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-3px) rotateY(14deg); } }
@keyframes panel-icon-float { 0%, 100% { transform: rotateX(0) rotateY(0); } 50% { transform: rotateX(12deg) rotateY(-16deg) scale(1.06); } }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.publish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 60px; align-items: flex-start; }

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--color-text-dark); }
.form-control {
  width: 100%; padding: 11px 13px; border: 1px solid var(--color-border-gray); border-radius: var(--radius-sm);
  font-size: 0.9rem; background: var(--color-white); transition: border-color var(--transition-fast); min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--color-royal-blue); box-shadow: 0 0 0 3px #DBEAFE; }
textarea.form-control { min-height: 120px; resize: vertical; }

.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { text-align: left; padding: 10px 12px; color: var(--color-dark-gray); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--color-border-gray); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--color-border-gray); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.status-approved, .status-published { background: #DCFCE7; color: #15803D; }
.status-pending, .status-under-review { background: #FEF9C3; color: #A16207; }
.status-changes-requested { background: #FFEDD5; color: #C2410C; }
.status-rejected { background: #FEE2E2; color: #B91C1C; }

.publisher-notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; display: flex; gap: 10px; }
.notice-approved { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.notice-changes { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }
.notice-rejected { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- 19. ARTICLE READER ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,18,32,0.6); z-index: 500; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity var(--transition-fast); padding: 24px;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.article-modal-card {
  background: var(--color-white); width: 100%; max-width: 900px; max-height: 92vh; overflow-y: auto; border-radius: var(--radius-lg);
  transform: translateY(16px); transition: transform var(--transition-med); box-shadow: var(--shadow-lg);
}
.modal-overlay.show .article-modal-card { transform: translateY(0); }
.article-reader-inner { max-width: 720px; margin: 0 auto; padding: 36px 32px 48px; }
.article-reader-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.article-reader-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); margin: 18px 0 26px; }
.article-reader-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.article-reader-subtitle { color: var(--color-dark-gray); font-size: 1rem; margin-bottom: 16px; }
.article-reader-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--color-dark-gray); padding-bottom: 18px; border-bottom: 1px solid var(--color-border-gray); margin-bottom: 22px; }
.article-body { font-size: 1.05rem; line-height: 1.85; color: #1E293B; }
.article-body p { margin-bottom: 18px; }
.pull-quote { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-deep-navy); border-left: 3px solid var(--color-royal-blue); padding: 4px 0 4px 20px; margin: 26px 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.article-tag { font-size: 0.75rem; font-weight: 600; padding: 6px 12px; background: var(--color-light-gray); border-radius: 20px; color: var(--color-dark-gray); }
.article-actions { display: flex; gap: 10px; padding-top: 22px; margin-top: 6px; border-top: 1px solid var(--color-border-gray); flex-wrap: wrap; }
.related-stories-block { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--color-border-gray); }
.related-stories-block h4 { font-size: 1rem; margin-bottom: 14px; }

.event-modal-card { background: var(--color-white); width: 100%; max-width: 460px; border-radius: var(--radius-lg); padding: 30px; position: relative; transform: translateY(16px); transition: transform var(--transition-med); }
.modal-overlay.show .event-modal-card { transform: translateY(0); }
.close-event-btn { position: absolute; top: 14px; right: 14px; }
.legal-modal-card { max-width: 620px; max-height: 92vh; overflow-y: auto; }

/* ---------- 20. SEARCH ---------- */
.search-modal-card { background: var(--color-white); width: 100%; max-width: 640px; border-radius: var(--radius-lg); overflow: hidden; max-height: 80vh; display: flex; flex-direction: column; transform: translateY(-12px); transition: transform var(--transition-med); }
.modal-overlay.show .search-modal-card { transform: translateY(0); }
.search-input-wrapper { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--color-border-gray); }
.search-input-wrapper svg { width: 20px; height: 20px; color: var(--color-dark-gray); flex-shrink: 0; }
#search-input { flex: 1; border: none; font-size: 1.05rem; background: none; }
#search-input:focus { outline: none; }
.search-results-area { padding: 16px 20px; overflow-y: auto; }
.search-trending-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--color-dark-gray); margin-bottom: 12px; }
.search-trending-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-result-item { padding: 12px 8px; border-bottom: 1px solid var(--color-border-gray); cursor: pointer; border-radius: var(--radius-sm); }
.search-result-item:hover { background: var(--color-light-gray); }
mark { background: #FEF08A; color: inherit; border-radius: 2px; }

/* ---------- 21. AI NEWS TELLER ---------- */
.ai-drawer-overlay {
  position: fixed; inset: 0; background: rgba(11,18,32,0.5); z-index: 510; opacity: 0; visibility: hidden; transition: opacity var(--transition-fast);
  cursor: pointer;
}
.ai-drawer-overlay.show,
.ai-drawer-overlay.active { opacity: 1; visibility: visible; }

.ai-teller-drawer {
  position: fixed; right: 24px; bottom: 24px; width: 380px; max-height: 70vh; background: var(--color-white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border-gray);
  z-index: 520; display: flex; flex-direction: column; transform: translateY(24px) scale(0.97); opacity: 0; visibility: hidden;
  transition: all var(--transition-med);
}
.ai-teller-drawer.show,
.ai-teller-drawer.active { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.ai-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--color-border-gray); }
.ai-title { font-weight: 800; font-family: var(--font-heading); display: flex; align-items: center; gap: 8px; }
.ai-body { padding: 18px; overflow-y: auto; }
.ai-intro { font-size: 0.85rem; color: var(--color-dark-gray); margin-bottom: 14px; }
.ai-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ai-actions-grid .btn { justify-content: flex-start; }
.ai-input-row { display: flex; gap: 8px; margin-bottom: 14px; }
.ai-input-row .form-control { flex: 1; }
.ai-output-box { background: var(--color-light-gray); border-radius: var(--radius-sm); padding: 14px; font-size: 0.85rem; min-height: 70px; line-height: 1.6; }
.placeholder-text { color: var(--color-dark-gray); }

/* ---------- 22. NOTIFICATIONS ---------- */
.notif-modal-card { background: var(--color-white); width: 100%; max-width: 420px; border-radius: var(--radius-lg); max-height: 80vh; display: flex; flex-direction: column; transform: translateY(-12px); transition: transform var(--transition-med); }
.modal-overlay.show .notif-modal-card { transform: translateY(0); }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--color-border-gray); }
.notif-list { overflow-y: auto; padding: 8px; }
.notif-item { display: flex; gap: 12px; padding: 12px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.notif-item:hover { background: var(--color-light-gray); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon svg { width: 17px; height: 17px; }
.notif-title-row { font-weight: 700; font-size: 0.78rem; margin-bottom: 3px; }
.notif-item p { font-size: 0.83rem; color: var(--color-dark-gray); }
.notif-time { font-size: 0.7rem; color: #94A3B8; margin-top: 3px; }

/* ---------- 23. ADS ---------- */
.ad-unit { border: 1px dashed var(--color-border-gray); border-radius: var(--radius-md); padding: 18px; background: var(--color-white); position: relative; }
.ad-tag { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; color: #94A3B8; margin-bottom: 10px; }
.ad-unit h4 { font-size: 0.95rem; margin-bottom: 6px; }
.ad-unit p { font-size: 0.82rem; color: var(--color-dark-gray); margin-bottom: 14px; }
.sidebar-ad { min-height: 194px; overflow: hidden; border-style: solid; border-color: #C7D2FE; background: linear-gradient(145deg, #EEF2FF 0%, #FFFFFF 48%, #ECFEFF 100%); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1); animation: sidebar-ad-in 500ms ease both; }
.sidebar-ad::before { content: ""; position: absolute; width: 86px; height: 86px; right: -30px; top: -30px; border-radius: 50%; background: #67E8F9; opacity: .28; box-shadow: -25px 22px 0 -12px #C4B5FD; pointer-events: none; }
.sidebar-ad .ad-tag { color: #4F46E5; }
.sidebar-ad h4, .sidebar-ad p, .sidebar-ad button { position: relative; z-index: 1; }
.sidebar-ad .btn { box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18); }
@keyframes sidebar-ad-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.media-ad { overflow: hidden; border: 1px solid #CBD5E1; border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .1); animation: sidebar-ad-in 500ms ease both; }
.media-ad + .media-ad { margin-top: 14px; }
.media-ad-tech { border-color: #A5F3FC; }
.media-ad-cyber { border-color: #FECDD3; }
.media-ad-foryou { border-color: #DDD6FE; }
.media-ad-tech .media-ad-label { background: #67E8F9; color: #164E63; }
.media-ad-cyber .media-ad-label { background: #FDA4AF; color: #4C0519; }
.media-ad-foryou .media-ad-label { background: #C4B5FD; color: #2E1065; }
.media-ad-visual { height: 148px; position: relative; overflow: hidden; background: var(--color-deep-navy); }
.media-ad-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, .72)); pointer-events: none; }
.media-ad-visual img, .media-ad-visual video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.media-ad:hover .media-ad-visual img, .media-ad:hover .media-ad-visual video { transform: scale(1.06); }
.media-ad-label { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 4px 7px; border-radius: 4px; background: #FDE047; color: #422006; font-size: .58rem; font-weight: 800; letter-spacing: .07em; }
.media-ad-play { position: absolute; z-index: 1; right: 12px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: rgba(14, 165, 233, .9); box-shadow: 0 0 0 5px rgba(14, 165, 233, .2); }
.media-ad-play svg { width: 14px; height: 14px; fill: currentColor; }
.media-ad-body { padding: 12px 14px 14px; }
.media-ad-body .ad-tag { margin-bottom: 6px; color: #0891B2; }
.media-ad-body h4 { font-size: 1rem; margin-bottom: 6px; }
.media-ad-body p { margin-bottom: 12px; }
.media-ad-body .btn { width: 100%; }
.ad-feed-insert { grid-column: 1 / -1; }

/* ---------- 24. NEWSLETTER ---------- */
.newsletter-section { background: var(--color-deep-navy); padding: 52px 0; margin-top: 20px; }
.newsletter-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-text h2 { color: #fff; font-size: 1.7rem; max-width: 460px; margin-bottom: 8px; }
.newsletter-text p { color: #94A3B8; max-width: 460px; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .form-control { background: rgba(255,255,255,0.06); border-color: #334155; color: #fff; min-width: 180px; }
.newsletter-form .form-control::placeholder { color: #64748B; }

/* ---------- 25. FOOTER ---------- */
.main-footer { background: #0B1220; color: #94A3B8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #1E293B; }
.footer-col .logo-text { color: #fff; margin-bottom: 12px; }
.footer-col.brand-col p { font-size: 0.85rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; font-size: 0.78rem; text-align: center; }

/* ---------- 26. MOBILE BOTTOM NAV ---------- */
.mobile-bottom-nav { display: none; }

/* ---------- 27. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .three-column-layout { grid-template-columns: 210px 1fr 250px; }
}

@media (max-width: 1024px) {
  .three-column-layout { grid-template-columns: 1fr; }
  .col-sidebar-left { order: 3; position: static; min-width: 0; }
  .col-sidebar-right { order: 2; position: static; }
  .grid-spotlight { grid-template-columns: 1fr 1fr; }
  .hero-magazine-wrapper { grid-template-columns: 1fr; }
  .magazine-flip-card { min-height: 340px; }
  .ai-page-hero { grid-template-columns: 1fr; }
  .publish-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-auth-actions { display: flex; }
  .top-bar-right { gap: 10px; }
  .top-bar-right .market-ticker-item { display: none; }
  .card-grid-3, .ai-secondary-grid { grid-template-columns: 1fr 1fr; }
  .grid-spotlight { grid-template-columns: 1fr; }
  .grid-spotlight .lead-story { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .editor-picks-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .top-bar, .top-bar-inner, .main-header, .header-inner, .ticker-wrapper, .ticker-inner { width: 100%; box-sizing: border-box; }
  .top-bar-inner {
    min-height: 50px; height: auto; padding: 6px 10px; gap: 6px;
    flex-wrap: nowrap; align-items: center;
  }
  .top-bar-left { flex: 1 1 auto; min-width: 0; width: auto; }
  .top-bar-left .live-indicator { gap: 4px; min-width: 0; font-size: 0.68rem; }
  .top-bar-left .live-indicator > svg { width: 13px; height: 13px; }
  .top-bar-left .live-label { font-size: 0.68rem; }
  .top-bar-right {
    flex: 0 0 auto; width: auto; min-width: 0; justify-content: flex-end; gap: 0;
  }
  .top-bar-right .edition-tag, .top-bar-right .market-ticker-item { display: none; }
  .top-bar-datetime { padding-left: 8px; }
  .top-bar-date { gap: 4px; }
  #current-date { font-size: 0.9rem; }
  .ist-clock { gap: 4px; font-size: 0.8125rem; }

  .header-inner { height: 64px; }
  .header-inner { gap: 0; }
  .logo-icon { width: 38px; height: 38px; flex: 0 0 38px; }
  .logo-title { font-size: 0.95rem; }
  .logo-tagline { margin-top: 3px; font-size: 0.38rem; }
  .brand-logo { flex: 1 1 0; min-width: 0; gap: 5px; overflow: hidden; }
  .logo-wordmark { min-width: 0; }
  .header-actions { flex: 0 0 auto; min-width: 0; gap: 0; }
  .header-actions .auth-guest { display: none; }
  .header-actions .btn-sm { padding: 6px 9px; font-size: 0.72rem; }
  .header-actions .icon-btn { width: 40px; height: 40px; min-width: 40px; padding: 0; flex: 0 0 40px; }
  .header-actions .icon-btn svg { width: 18px; height: 18px; }
  .header-actions .profile-dropdown-wrapper { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; }
  .header-actions .profile-avatar-btn { width: 36px; height: 36px; margin: 2px; }
  .hero-title { font-size: 1.7rem; }
  .hero-body { padding: 18px 18px 12px; }
  .hero-main-card { min-height: 380px; }
  .hero-top-bar { top: 12px; left: 14px; right: 14px; }
  .hero-carousel-controls { padding: 10px 16px 14px; gap: 8px; }
  .hero-nav-btn { padding: 6px 11px; font-size: 0.74rem; }
  .hero-dots { gap: 5px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 18px; }

  /* Webinar Mobile Alignment */
  .webinar-grid { grid-template-columns: 1fr; gap: 16px; }
  .webinar-card-body, .event-card-body { padding: 16px; }
  .webinar-btn, .webinar-card-body .btn, .event-card-body .btn { width: 100%; min-height: 44px; font-size: 0.9rem; justify-content: center; }

  .card-grid-3, .ai-secondary-grid, .editor-picks-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col h4 { margin-top: 10px; margin-bottom: 8px; }
  .newsletter-box { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-form .form-control, .newsletter-form .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .page-header-title h1 { font-size: 1.7rem; }
  #live-update-message, .live-update-divider { display: none; }
  .live-indicator { max-width: none; }

  .ai-teller-drawer {
    left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%;
    border-radius: 20px 20px 0 0; max-height: 85vh;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 460;
  }
  .modal-overlay { padding: 0; align-items: flex-end; z-index: 500; }
  .article-modal-card, .search-modal-card, .notif-modal-card, .event-modal-card, .legal-modal-card {
    max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .article-reader-inner { padding: 26px 18px 40px; }
  .event-modal-card { align-self: flex-end; }

  .mobile-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 62px; background: var(--color-white);
    border-top: 1px solid var(--color-border-gray); z-index: 150; padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bottom-nav .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--color-dark-gray); font-size: 0.62rem; font-weight: 700; min-height: 44px; }
  .mobile-bottom-nav .nav-item svg { width: 20px; height: 20px; }
  .mobile-bottom-nav .nav-item svg { transition: transform var(--transition-fast), filter var(--transition-fast); }
  .mobile-bottom-nav .nav-item:hover svg, .mobile-bottom-nav .nav-item.active svg { transform: translateY(-2px) rotateY(16deg); filter: drop-shadow(2px 3px 0 rgba(37,99,235,.2)); }
  .mobile-bottom-nav .nav-item.active { color: #817C00; }
  body { padding-bottom: 62px; }

  .filter-chip-bar { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .domain-tree-mobile-toggle { display: flex; }
  #page-publish > .container { min-width: 0; }
  #page-publish .publish-hero h1,
  #page-publish .publish-hero p { max-width: 100%; overflow-wrap: anywhere; }
  #page-publish .publish-tabs {
    width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden;
    gap: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  #page-publish .publish-tabs::-webkit-scrollbar { display: none; }
  #page-publish .publish-tab-btn {
    flex: 0 0 auto; white-space: nowrap; padding: 12px 14px;
  }
  #page-publish .publish-panel,
  #page-publish .publish-panel.active,
  #page-publish .publish-panel > .panel-box { min-width: 0; max-width: 100%; }
  #page-publish .publish-panel > .panel-box { width: 100%; box-sizing: border-box; }
  #page-publish .form-row { min-width: 0; }
  #page-publish .form-row > *,
  #page-publish .form-group,
  #page-publish .form-control { min-width: 0; max-width: 100%; box-sizing: border-box; }
  #page-publish #publish-tab-article form > .btn { width: 100%; max-width: 100%; white-space: normal; }
  .ticker-inner { gap: 8px; }
  .ticker-content {
    min-width: 0; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ticker-content::-webkit-scrollbar { display: none; }
}

@media (min-width: 1024px) {
  #page-ai > .container {
    width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; box-sizing: border-box;
  }
  #page-ai .ai-page-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: start;
  }
  #page-ai #ai-hero-story { height: auto; align-self: start; min-width: 0; }
  #page-ai #ai-secondary-stories {
    display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
    align-items: start; gap: 16px; min-width: 0;
  }
  #page-ai #ai-secondary-stories > .horizontal-card {
    width: 100%; min-width: 0; height: auto; min-height: 0; flex: 0 1 auto; align-self: start;
  }
  #page-ai #ai-secondary-stories > .horizontal-card img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  }
  #page-ai #ai-secondary-stories > .horizontal-card .horizontal-card-body { flex: 0 1 auto; }
  #page-ai #ai-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; min-width: 0;
  }
  #page-ai #ai-feed > .card-editorial { width: 100%; min-width: 0; height: auto; }
  #page-ai .section-block,
  #page-ai .section-block > *,
  #page-ai .horizontal-scroll-container { min-width: 0; }
  #page-ai .horizontal-scroll-container {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    overflow: visible; padding-bottom: 0; align-items: stretch;
  }
  #page-ai .horizontal-scroll-container > .horizontal-card {
    width: 100%; min-width: 0; height: auto; flex: none;
  }
  #page-ai .horizontal-scroll-container > .empty-state {
    width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  #page-ai .ai-most-read-panel { width: 100%; min-width: 0; box-sizing: border-box; }
}

@media (max-width: 360px) {
  .top-bar-inner { padding-right: 8px; padding-left: 8px; gap: 4px; }
  .top-bar-left .live-indicator, .top-bar-left .live-label { font-size: 0.62rem; }
  #current-date { font-size: 0.875rem; }
  .ist-clock { font-size: 0.8125rem; }
  .header-inner { padding-right: 10px; padding-left: 10px; }
  .logo-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-logo { gap: 4px; }
  .logo-title { font-size: 0.8rem; }
  .logo-tagline { font-size: 0.34rem; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .ticker-text { animation: none !important; padding-left: 0; }
}

/* Background scroll lock & mobile nav suppression when overlay is open */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}
body.modal-open .mobile-bottom-nav {
  pointer-events: none;
}

/* ---------- 28. ACCESSIBILITY / REDUCED MOTION ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-royal-blue); outline-offset: 2px; border-radius: 4px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ticker-text { animation: none; }
  .hero-turn-forward.is-turning, .hero-turn-backward.is-turning { animation: hero-page-turn-reduced 120ms ease-out forwards !important; }
  @keyframes hero-page-turn-reduced { from { opacity: 1; } to { opacity: 0; } }
}

/* ---------- TOASTS ---------- */
.toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: var(--color-deep-navy); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm); font-size: 0.85rem;
  box-shadow: var(--shadow-lg); animation: toast-in 220ms ease; pointer-events: auto;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .mobile-bottom-nav ~ .toast-container, .toast-container {
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-width: 420px;
  }
  body.modal-open .toast-container {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ---------- 29. ROLE BADGES ---------- */
.badge-admin { background: #FEE2E2; color: #991B1B; }
.badge-publisher { background: #FEF3C7; color: #92400E; }
.badge-user { background: #E0E7FF; color: #3730A3; }

/* ---------- 30. ADMIN REVIEW PANEL ---------- */
.admin-card { background: var(--color-white); border-radius: var(--radius-md); border: 1px solid var(--color-border-gray); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat-card { background: var(--color-white); border: 1px solid var(--color-border-gray); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-stat-card .stat-val { font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading); color: var(--color-deep-navy); }
.admin-stat-card .stat-lbl { font-size: 0.75rem; text-transform: uppercase; color: var(--color-dark-gray); font-weight: 600; }
.admin-table-wrapper { overflow-x: auto; border: 1px solid var(--color-border-gray); border-radius: var(--radius-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; text-align: left; }
.admin-table th { background: var(--color-light-gray); padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--color-border-gray); color: var(--color-deep-navy); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border-gray); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(248,250,252,0.8); }
.admin-actions-cell { display: flex; gap: 6px; }
.btn { align-items: center; justify-content: center; }
.btn svg { flex: 0 0 auto; width: 1em; height: 1em; overflow: visible; }

/* ---------- 31. ARTICLE COMMENTS ---------- */
.article-comments-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--color-border-gray); }
.comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.comments-header h3 { font-size: 1.1rem; font-weight: 700; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.comment-form textarea { width: 100%; min-height: 80px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border-gray); font-family: inherit; font-size: 0.9rem; resize: vertical; }
.comment-form textarea:focus { border-color: var(--color-royal-blue); outline: none; }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-card { background: var(--color-light-gray); border-radius: var(--radius-sm); padding: 12px 16px; }
.comment-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--color-dark-gray); margin-bottom: 6px; }
.comment-meta b { color: var(--color-deep-navy); }
.comment-content { font-size: 0.9rem; line-height: 1.5; color: var(--color-charcoal); }

/* ---------- 32. ENHANCED ADMIN SUITE & TABS ---------- */
.admin-nav-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid var(--color-border-gray); padding-bottom: 2px; }
.admin-tab-btn { background: none; border: none; padding: 10px 18px; font-size: 0.92rem; font-weight: 700; color: var(--color-dark-gray); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: all 0.2s ease; border-bottom: 3px solid transparent; margin-bottom: -4px; }
.admin-tab-btn:hover { color: var(--color-royal-blue); background: rgba(37,99,235,0.04); }
.admin-tab-btn.active { color: var(--color-royal-blue); border-bottom-color: var(--color-royal-blue); background: rgba(37,99,235,0.06); }

@media (max-width: 640px) {
  #page-admin > .container { min-width: 0; }
  #page-admin .publish-hero,
  #page-admin .publish-hero h1,
  #page-admin .publish-hero p { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  #page-admin .admin-nav-tabs {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
    width: 100%; min-width: 0; padding-bottom: 8px; border-bottom-width: 1px;
  }
  #page-admin .admin-tab-btn {
    width: 100%; min-width: 0; min-height: 44px; margin-bottom: 0; padding: 10px 12px;
    justify-content: flex-start; text-align: left; white-space: normal; overflow-wrap: anywhere;
    border: 1px solid var(--color-border-gray); border-radius: var(--radius-sm);
  }
  #page-admin .admin-tab-btn svg { flex: 0 0 auto; }
  #page-admin .admin-tab-btn.active { border-color: var(--color-royal-blue); }
  #page-admin .admin-tab-content, #page-admin .admin-card { min-width: 0; max-width: 100%; }
  #page-admin .admin-stats-grid { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; }
  #page-admin .admin-stat-card { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
}

.admin-batch-bar { display: flex; justify-content: space-between; align-items: center; background: #1E293B; color: #F8FAFC; padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); animation: fadeIn 0.2s ease; flex-wrap: wrap; gap: 10px; }
.batch-selected-count { font-weight: 700; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.batch-bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.badge-root-admin { background: #7C2D12; color: #FEF3C7; border: 1px solid #B45309; font-weight: 800; }

.credentials-display-box { background: #0F172A; color: #38BDF8; border-radius: var(--radius-sm); padding: 16px; font-family: monospace; font-size: 0.88rem; margin: 16px 0; border: 1px solid #1E293B; word-break: break-all; }
.credentials-display-box pre { margin: 0; white-space: pre-wrap; line-height: 1.6; color: #E2E8F0; }
.credentials-display-box .cred-key { color: #94A3B8; font-weight: 600; }
.credentials-display-box .cred-val { color: #38BDF8; font-weight: 700; }

.admin-modal-card { background: var(--color-white); border-radius: var(--radius-md); max-width: 650px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.admin-modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-border-gray); padding-bottom: 14px; margin-bottom: 18px; }
.admin-modal-header h3 { margin: 0; font-size: 1.25rem; font-family: var(--font-heading); color: var(--color-deep-navy); display: flex; align-items: center; gap: 8px; }
.admin-form-group { margin-bottom: 16px; }
.admin-form-group label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--color-deep-navy); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-input-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.password-input-wrapper .form-control { width: 100%; padding-right: 42px; }
.password-toggle-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; padding: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-dark-gray); border-radius: var(--radius-sm); transition: color 0.15s ease, background-color 0.15s ease; z-index: 2; }
.password-toggle-btn:hover { color: var(--color-deep-navy); background-color: rgba(0, 0, 0, 0.05); }
.password-toggle-btn svg, .password-toggle-btn i { width: 18px; height: 18px; pointer-events: none; }
.admin-editor-card { max-width: 900px; }
.admin-editor-heading { margin-bottom: 18px; }
.admin-editor-heading p, .muted { color: var(--color-dark-gray); font-size: .88rem; }
.admin-article-body { min-height: 280px; resize: vertical; }
.admin-editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .admin-form-row { grid-template-columns: 1fr; } }

/* ---------- 33. RESILIENCE, ISOLATION & FEEDBACK UI ---------- */
.news-grid, .hero-magazine-wrapper, .three-column-layout, .grid-spotlight, .card-grid-3, .admin-table-wrapper {
  isolation: isolate;
}

.publisher-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}
.publisher-notice.notice-changes {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.publisher-notice.notice-rejected {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-dark-gray);
}
.empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-deep-navy);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 0.88rem;
  color: var(--color-dark-gray);
  max-width: 420px;
  margin: 0 auto;
}

/* Modal and Overlay Z-Index Hierarchy */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: pointer;
}
.modal-overlay > * {
  cursor: default;
}
.modal-overlay.show,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-overlay {
  z-index: 480;
}
.mobile-drawer {
  z-index: 490;
}
.ai-drawer-overlay {
  z-index: 510;
}
.ai-teller-drawer {
  z-index: 520;
}

/* ---------- 34. AI NEWS TELLER HOME SECTION & ADVERTISE STYLES ---------- */
.ai-teller-home-section {
  padding: 24px 0;
}
.ai-home-banner {
  background: linear-gradient(135deg, #0B1220 0%, #1E1B4B 55%, #0F172A 100%);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-home-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.ai-home-banner-info {
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.ai-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.25);
  color: #C4B5FD;
  border: 1px solid rgba(196, 181, 253, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.ai-home-banner h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ai-home-banner p {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0;
}
.ai-home-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ai-home-banner-actions .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.ai-home-banner-actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.ai-home-summary-box {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #C4B5FD;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-3d);
}
.ai-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border-gray);
}
.ai-summary-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-deep-navy);
}
.ai-summary-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-dark);
}
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-events);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 0;
}

/* Advertise Page Styles */
.advertise-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}
.badge-tag {
  display: inline-block;
  background: #EFF6FF;
  color: var(--color-royal-blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #BFDBFE;
}

/* ---------- 35. ANIMATIONS & UTILITIES ---------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.w-full { width: 100%; }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }

@media (max-width: 768px) {
  .ai-home-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .ai-home-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .ai-home-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .advertise-metrics-grid {
    grid-template-columns: 1fr;
  }
}
