/* ==========================================================================
   NovalCity Magazine - Premium Editorial & Modern Digital Design System
   ========================================================================== */

:root {
  /* Colors */
  --primary: #1b4332;
  --primary-hover: #2d5a27;
  --primary-dark: #0f281e;
  --primary-light: #e8f5e9;
  
  --secondary: #4f46e5;
  --secondary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-gold: #d97706;

  --bg-main: #fcfdfd;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f4f6f8;
  --bg-dark: #0f172a;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 22px 45px -10px rgba(27, 67, 50, 0.18);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-cyan));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trending-pill {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.topbar-ticker {
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 450px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-date {
  color: #cbd5e1;
  font-size: 12px;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-socials a {
  color: #94a3b8;
  font-size: 14px;
}

.topbar-socials a:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Main Navbar */
.main-navbar {
  padding: 16px 0;
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-search-trigger {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-search-trigger:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-subscribe {
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
  transition: var(--transition);
}

.btn-subscribe:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   Category Pill Badges
   ========================================================================== */
.category-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  transition: var(--transition);
}

.category-badge:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.badge-cat-fashion {
  background: #fdf2f8;
  color: #db2777;
}
.badge-cat-fashion:hover {
  background: #db2777;
  color: #fff;
}

.badge-cat-technology {
  background: #eef2ff;
  color: #4f46e5;
}
.badge-cat-technology:hover {
  background: #4f46e5;
  color: #fff;
}

.badge-cat-lifestyle {
  background: #ecfdf5;
  color: #059669;
}
.badge-cat-lifestyle:hover {
  background: #059669;
  color: #fff;
}

.badge-cat-culture {
  background: #fffbeb;
  color: #d97706;
}
.badge-cat-culture:hover {
  background: #d97706;
  color: #fff;
}

.badge-cat-travel {
  background: #f0fdfa;
  color: #0d9488;
}
.badge-cat-travel:hover {
  background: #0d9488;
  color: #fff;
}

/* ==========================================================================
   Hero Showcase Section (Doris + Ceris Hybrid)
   ========================================================================== */
.hero-magazine-section {
  padding: 40px 0 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Left Big Overlapping Card (Doris Style) */
.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e2e8f0;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-main-card:hover .hero-image {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-overlap-box {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  margin: 32px;
  padding: 36px 40px;
  border-radius: var(--radius-md);
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--primary);
}

.hero-overlap-box .category-badge {
  margin-bottom: 12px;
}

.hero-overlap-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-overlap-title a:hover {
  color: var(--primary);
}

.hero-overlap-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.post-meta .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta .author-name {
  font-weight: 600;
  color: var(--text-main);
}

.post-meta .dot-separator {
  width: 4px;
  height: 4px;
  background: var(--text-light);
  border-radius: 50%;
}

/* Floating Highlight Badge (Ceris/Doris Accent) */
.hero-floating-highlight {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 3;
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 220px;
}

.hero-floating-highlight h5 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.hero-floating-highlight a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a7f3d0;
}

/* Right Stacked Hero Cards */
.hero-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}

.hero-sub-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.hero-sub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hero-sub-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.hero-sub-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-sub-card:hover .hero-sub-thumb {
  transform: scale(1.05);
}

.hero-sub-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hero-sub-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 12px 0;
}

.hero-sub-title a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 3px;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* ==========================================================================
   Post Grid & Cards (Item 10)
   ========================================================================== */
.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.posts-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 67, 50, 0.2);
}

.post-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumb {
  transform: scale(1.06);
}

.post-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ==========================================================================
   Layout: Main Content + Sidebar
   ========================================================================== */
.main-layout-section {
  padding: 60px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

/* Sidebar Widgets */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.widget-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* Author Box Widget */
.author-widget {
  text-align: center;
}

.author-widget-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  border: 3px solid var(--primary);
  padding: 3px;
  object-fit: cover;
}

.author-widget-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.author-widget-role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.author-widget-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.author-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.author-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 13px;
}

.author-socials a:hover {
  background: var(--primary);
  color: #fff;
}

/* Mini Post List Widget */
.widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mini-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mini-post-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.mini-post-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-post-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.mini-post-title a:hover {
  color: var(--primary);
}

.mini-post-date {
  font-size: 12px;
  color: var(--text-light);
}

/* Category Pills Widget */
.widget-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Newsletter Widget Card */
.newsletter-widget-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
}

.newsletter-widget-card .widget-title {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   Single Post Page (Item 7)
   ========================================================================== */
.single-post-hero {
  padding: 40px 0 20px 0;
  text-align: center;
}

.single-post-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin: 16px auto 24px auto;
  max-width: 900px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-muted);
}

.single-post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  max-height: 560px;
  width: 100%;
}

.single-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 18px 0;
  color: var(--text-main);
}

.article-content blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Post Share & Author Bio Box */
.post-author-box {
  display: flex;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 50px 0;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.post-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.post-author-info h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Related Posts */
.related-posts-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-light);
}

/* Comments Section */
.comments-area {
  margin-top: 60px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
}

.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Search Results Page & Loop (Item 8)
   ========================================================================== */
.search-header-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 30px 0 50px 0;
}

.search-header-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.search-header-meta {
  font-size: 16px;
  color: #a7f3d0;
}

.search-inline-form {
  max-width: 600px;
  margin: 24px auto 0 auto;
  display: flex;
  gap: 10px;
}

.search-inline-input {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  font-size: 15px;
}

.search-inline-btn {
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Error 404 Page (Item 9)
   ========================================================================== */
.error-404-container {
  padding: 80px 0;
  text-align: center;
}

.error-404-code {
  font-family: var(--font-heading);
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.error-404-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.error-404-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px auto;
}

/* ==========================================================================
   About Us Page (Item 5)
   ========================================================================== */
.about-hero {
  padding: 60px 0;
  text-align: center;
}

.about-hero-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 50px 0;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.team-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body {
  padding: 24px;
}

/* ==========================================================================
   Contact Us Page (Item 4)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin: 50px 0;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

/* ==========================================================================
   Privacy Policy Page (Item 6)
   ========================================================================== */
.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin: 50px 0;
}

.policy-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.policy-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.policy-toc a {
  font-size: 14px;
  color: var(--text-muted);
}

.policy-toc a:hover {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Footer (Item 3)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 70px 0 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
}

.btn-back-to-top {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-to-top:hover {
  background: var(--primary);
}

/* ==========================================================================
   Search Modal (Fullscreen Overlay)
   ========================================================================== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  display: flex;
  opacity: 1;
}

.search-modal-box {
  width: 100%;
  max-width: 700px;
  padding: 20px;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: -50px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.search-modal-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid var(--primary);
  padding: 16px 0;
  font-size: 28px;
  font-family: var(--font-serif);
  color: #fff;
  outline: none;
}

/* ==========================================================================
   Category Explorer / Pillars Section
   ========================================================================== */
.topic-explorer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 30px 0 50px 0;
}

.topic-explorer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.topic-explorer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  background: #fcfdfc;
}

.topic-explorer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}

.topic-explorer-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.topic-explorer-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}

/* ==========================================================================
   The Big Read / Spotlight Feature Banner
   ========================================================================== */
.big-read-banner {
  background: linear-gradient(135deg, #0f281e 0%, #1b4332 60%, #1e293b 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  margin: 60px 0;
  box-shadow: var(--shadow-lg);
}

.big-read-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.big-read-content {
  padding: 48px;
}

.big-read-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 18px;
}

.big-read-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.big-read-title a:hover {
  color: #a7f3d0;
}

.big-read-excerpt {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.big-read-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.big-read-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #e2e8f0;
}

.big-read-highlights li span {
  color: #34d399;
  font-weight: 800;
}

.big-read-image-wrap {
  height: 100%;
  min-height: 420px;
}

.big-read-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Multimedia / Podcasts & Video Section (Ceris Dark Theme Style)
   ========================================================================== */
.multimedia-section {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  margin: 60px 0;
  color: #fff;
}

.multimedia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.multimedia-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.multimedia-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.multimedia-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}

.multimedia-thumb-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.multimedia-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.multimedia-card:hover .multimedia-thumb {
  transform: scale(1.05);
}

.multimedia-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.6);
}

.multimedia-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.multimedia-body {
  padding: 20px;
}

.multimedia-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 8px 0;
}

/* ==========================================================================
   Editorial Pillars / Charter Cards
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Key Takeaways Box (For Single Posts)
   ========================================================================== */
.key-takeaways-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 30px 0;
}

.key-takeaways-box h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-takeaways-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-takeaways-box li {
  font-size: 15px;
  color: #14532d;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ==========================================================================
   Office Locations Grid (Contact Us)
   ========================================================================== */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.office-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.office-city {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

/* ==========================================================================
   Niche Landing Pages (Fashion, Beauty, Sport & Fitness, Lifestyle)
   ========================================================================== */
.niche-hero-banner {
  background: linear-gradient(135deg, #1b4332 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 60px 48px;
  margin: 30px 0 50px 0;
  position: relative;
  overflow: hidden;
}

.niche-hero-banner.fashion-theme {
  background: linear-gradient(135deg, #831843 0%, #1e1b4b 100%);
}

.niche-hero-banner.beauty-theme {
  background: linear-gradient(135deg, #701a75 0%, #1e293b 100%);
}

.niche-hero-banner.fitness-theme {
  background: linear-gradient(135deg, #065f46 0%, #0f172a 100%);
}

.niche-hero-banner.lifestyle-theme {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f281e 100%);
}

.niche-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.niche-hero-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 14px 0 18px 0;
  color: #fff;
}

.niche-hero-desc {
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 24px;
}

.niche-hero-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  max-height: 380px;
}

.niche-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature 4-Card Grid */
.feature-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 36px 0;
}

.feature-quad-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-quad-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.feature-quad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
}

.feature-quad-card.pink-accent::before {
  background: #db2777;
}

.feature-quad-card.cyan-accent::before {
  background: #06b6d4;
}

.feature-quad-card.gold-accent::before {
  background: #d97706;
}

.feature-quad-card.purple-accent::before {
  background: #7c3aed;
}

.feature-quad-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-quad-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-quad-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Visual Lookbook / Gallery Grid */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.lookbook-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-sm);
}

.lookbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.lookbook-card:hover .lookbook-img {
  transform: scale(1.08);
}

.lookbook-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 24px 20px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.lookbook-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a7f3d0;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.lookbook-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* Review / Product Rating Card */
.review-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.review-product-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.review-product-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Guide / Protocol Download Box */
.protocol-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.protocol-cta-content {
  max-width: 600px;
}

.protocol-cta-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .feature-quad-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .niche-hero-grid {
    grid-template-columns: 1fr;
  }
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .protocol-cta-box {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .feature-quad-grid,
  .lookbook-grid {
    grid-template-columns: 1fr;
  }
  .niche-hero-banner {
    padding: 36px 20px;
  }
}

/* ==========================================================================
   Mobile Menu Button & Slide Drawer Navigation
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  height: 100vh;
  background: #ffffff;
  z-index: 999999;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  left: 0 !important;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.mobile-menu-open .mobile-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Comprehensive Mobile & Touch Optimization (< 1024px, < 768px & < 480px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .topbar {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Layout Containers */
  .container {
    padding: 0 16px;
  }

  /* Typography */
  h1, .hero-overlap-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  h2, .section-title, .big-read-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }

  /* Header & Navigation */
  .header-main-row {
    padding: 12px 0;
  }

  .site-logo {
    font-size: 22px;
  }

  /* Hero Section Mobile */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .hero-main-card {
    min-height: 380px !important;
    height: auto !important;
  }

  .hero-overlap-box {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: -40px 12px 12px 12px !important;
    padding: 20px !important;
    width: auto !important;
  }

  .hero-floating-highlight {
    display: none;
  }

  .hero-sidebar-stack {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Grids & Explorer */
  .topic-explorer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .posts-grid-3,
  .latest-posts-grid,
  .featured-grid-3,
  .archive-posts-grid,
  .search-posts-grid,
  .footer-grid,
  .about-stats-grid,
  .team-grid,
  .contact-layout,
  .policy-layout,
  .big-read-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Main Layout & Sidebar */
  .main-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .site-sidebar {
    margin-top: 40px;
  }

  /* Big Read Banner */
  .big-read-content {
    padding: 24px 20px !important;
  }

  .big-read-image-wrap {
    height: 240px;
  }

  /* Video Masterclasses Grid (1 Column on Mobile) */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Single Article */
  .single-article-header {
    padding: 24px 0 16px 0;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .single-video-dispatch-box {
    margin: 20px 0 !important;
  }

  /* Footer */
  .site-footer {
    padding-top: 40px;
    margin-top: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .topic-explorer-grid {
    grid-template-columns: 1fr !important;
  }

  .category-pill-bar {
    gap: 6px;
  }

  .category-pill {
    font-size: 11px;
    padding: 6px 12px;
  }
}
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.video-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
  transition: var(--transition);
}

.video-modal-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.video-modal-body {
  padding: 0;
  background: #000;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-responsive-wrapper video,
.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Category Filter Tabs for Videos */
.video-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.video-tab-btn:hover,
.video-tab-btn.active {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Pulsing Play Button on Multimedia Cards */
.multimedia-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.multimedia-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.multimedia-play-btn {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

.multimedia-card:hover .multimedia-play-btn {
  transform: translate(-50%, -50%) scale(1.18);
  background: var(--primary);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}


