/* ==========================================================================
   KAVYAHUB - GLOBAL CENTRAL ARCHITECTURE STYLESHEET (AUDITED & SYNCED)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL TOKENS & DARK MODE LIFECYCLE HOOKS
   -------------------------------------------------------------------------- */
:root {
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --secondary: #7c3aed;
  --accent: #0891b2;
  --dark: #0f172a;

  --bg-main: #f8fafc;
  --header-bg: rgba(248, 250, 252, 0.86);
  --bg-card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --border-color: rgba(15, 23, 42, 0.09);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #475569;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --purple: #9333ea;

  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.dark-mode {
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --dark: #020617;

  --bg-main: #0b0f19;
  --header-bg: rgba(11, 15, 25, 0.86);
  --bg-card: rgba(17, 24, 39, 0.92);
  --card-solid: #111827;
  --border-color: rgba(255, 255, 255, 0.09);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.06), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.05), transparent 40%),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --------------------------------------------------------------------------
   2. CONTENT LAYOUT BLOCKS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
section {
  padding: 58px 8%;
}

.resources-hero {
  padding: 46px 8% 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  margin-bottom: 8px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
}

.section-heading p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION, COMPACT AVATAR, QUICK SEARCH & 1-CLICK PILLS
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 8% 36px;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  margin-bottom: 16px;
}

.profile-image-box {
  display: block;
  margin: 0 auto 14px;
  position: relative;
  width: fit-content;
}

.profile-image {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-image:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.38);
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 10px;
  line-height: 1.22;
  color: var(--text-main);
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 22px;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Direct Homepage Search Bar */
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  margin: 0 auto 16px;
  padding: 8px 8px 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hero-search-input-wrap .search-icon {
  color: var(--primary);
  font-size: 1rem;
}

.hero-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
}

.hero-search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  padding: 10px 22px !important;
  border-radius: 12px !important;
  flex-shrink: 0;
}

/* 1-Click Quick Filter Pills (Hero) */
.quick-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 740px;
  margin: 0 auto 24px;
}

.quick-filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.quick-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  transform: translateY(-1px);
}

.quick-pill.pill-govt {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.quick-pill.pill-private {
  border-color: rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.07);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   3B. DYNAMIC "HOW TO USE KAVYAHUB" ONBOARDING VIDEO SECTION
   -------------------------------------------------------------------------- */
.guide-video-section {
  padding: 10px 8% 45px;
}

.guide-video-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: center;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  margin-bottom: 12px;
}

.guide-video-info h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.guide-video-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.guide-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.guide-steps-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.guide-steps-list li i {
  color: var(--success);
  margin-top: 3px;
}

.guide-video-player-wrap {
  width: 100%;
}

.responsive-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.responsive-iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. GLOBAL BUTTONS & CHIPS
   -------------------------------------------------------------------------- */
.btn,
.small-btn,
.unlock-btn,
.continue-btn,
.video-watch-btn,
.read-more-btn,
.share-btn,
.trending-chip,
.watch-btn,
.sector-quick-btn,
.filter-toggle-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.primary-btn,
.unlock-btn,
.watch-btn,
.video-watch-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
}

.secondary-btn {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: var(--bg-card);
}

.primary-btn:hover,
.unlock-btn:hover,
.watch-btn:hover,
.video-watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(var(--primary-rgb), 0.35);
}

.secondary-btn:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
}

.small-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.unlock-btn,
.video-watch-btn {
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.share-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.share-btn:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

/* 1-Click Sector Switcher Bar (Resources, Videos, Calendar) */
.sector-quick-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sector-quick-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sector-quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sector-quick-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.25);
}

/* --------------------------------------------------------------------------
   5. STICKY HEADER NAVBAR
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
}

.logo a {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

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

.dark-mode .nav-links a.active,
.dark-mode .nav-links a:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.16);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
}

.menu-icon {
  display: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-main);
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   6. SEARCH SECTION, CALENDAR INPUT BAR & AUTOCOMPLETE
   -------------------------------------------------------------------------- */
.search-section {
  padding-top: 10px;
  padding-bottom: 22px;
}

.search-box-wrapper {
  position: relative;
  max-width: 760px;
  margin: auto;
}

.search-box {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.94rem;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box i {
  color: var(--primary);
  font-size: 1.05rem;
}

.calendar-box input[type="date"] {
  width: auto;
  min-width: 155px;
  cursor: pointer;
  font-weight: 500;
}

.calendar-keyword-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  flex-shrink: 0;
}

.calendar-keyword-input {
  flex: 1;
}

.filter-toggle-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.filter-count-badge {
  background: #ffffff;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

.clear-search-btn:hover {
  color: var(--danger);
}

.search-suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
}

.autocomplete-suggestion-row {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
}

.autocomplete-suggestion-row:hover {
  background: rgba(var(--primary-rgb), 0.08);
}

.autocomplete-suggestion-row i {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.trending-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
  align-items: center;
}

.trending-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trending-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.trending-chip:hover,
.trending-chip.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. FILTER PILLS, SORT BAR & ADVANCED DRAWER
   -------------------------------------------------------------------------- */
.filter-section {
  padding-top: 8px;
  padding-bottom: 18px;
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-filter-btn.active,
.video-filter-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  border-color: transparent;
}

.sector-filter-container {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.sector-filter-label {
  font-weight: 600;
  color: var(--text-muted);
}

.sector-checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 999px;
}

.sector-checkbox-pill input {
  cursor: pointer;
  accent-color: var(--primary);
}

.filter-panel-section {
  padding-top: 0;
  padding-bottom: 26px;
}

.filter-panel {
  max-width: 760px;
  margin: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.filter-panel-header h3 {
  font-size: 1.05rem;
  color: var(--text-main);
}

.clear-filters-link {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.filter-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.filter-options-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-check-label {
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
}

.filter-check-label input {
  accent-color: var(--primary);
}

.active-filters-wrapper {
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.active-filter-chip {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.remove-chip-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Count Summary & Sort Bar */
.resource-count-section {
  padding: 10px 8% 12px;
}

.resource-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.resource-count-bar h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.resource-count-bar h3 span {
  color: var(--primary);
  font-weight: 700;
}

.resource-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.resource-sort-select {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

/* --------------------------------------------------------------------------
   7B. FEATURED RESOURCE & FEATURED 16:9 VIDEO CARDS
   -------------------------------------------------------------------------- */
.featured-resource {
  padding: 10px 8% 24px;
}

.featured-card {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(124, 58, 237, 0.07)), var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.featured-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.featured-card h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.featured-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.featured-card-actions,
.featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-card-actions .unlock-btn,
.featured-actions .video-watch-btn,
.featured-actions .unlock-btn {
  width: auto;
  padding: 10px 20px;
}

.featured-card-actions .read-more-btn,
.featured-actions .read-more-btn {
  margin-bottom: 0;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

/* Featured Video 16:9 Horizontal Layout */
.featured-video-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: center;
}

.featured-video-thumb-wrap {
  position: relative;
  width: 300px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.featured-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   8. BADGES, METADATA PILLS & STATUS
   -------------------------------------------------------------------------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  align-items: center;
}

.badge-pill {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: capitalize;
}

.neutral-pill {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
}

.primary-pill {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.govt-pill {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.private-pill {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.gold-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.purple-pill {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.green-pill {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active {
  background: #22c55e;
}

.status-dot.inactive {
  background: #ef4444;
}

/* --------------------------------------------------------------------------
   9. CARD GRIDS, RESOURCE CARDS, SOCIAL & OTHER ACCOUNTS
   -------------------------------------------------------------------------- */
.resources-grid-section {
  padding-top: 16px;
}

.resources-grid,
.latest-grid,
.category-grid,
.social-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.home-resources-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

.resource-card,
.category-card,
.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover,
.category-card:hover,
.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-hover);
}

.category-card i,
.social-card i {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.category-card h3,
.social-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.category-card p,
.social-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Other Accounts List (Homepage) */
.account-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}

.account-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.account-card > div {
  flex: 1;
  min-width: 0;
}

.account-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.account-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-title,
.resource-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

/* Strict 2-3 Line Text Clamping */
.resource-description-clamp,
.resource-description,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.resource-description-clamp,
.resource-description,
.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  text-align: left;
  align-self: flex-start;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.card-footer-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 14px;
  margin-top: auto;
}

.card-actions,
.card-footer-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.card-actions .unlock-btn,
.card-actions .open-resource-btn,
.card-actions .watch-btn {
  flex: 1;
  margin: 0;
}

/* Calendar Video Card 16:9 Thumbnail */
.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 12px;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
}

/* --------------------------------------------------------------------------
   10. YOUTUBE-STYLE HORIZONTAL VIDEO CARDS
   -------------------------------------------------------------------------- */
.youtube-video-list,
.home-video-horizontal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.youtube-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.youtube-video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-hover);
}

.youtube-thumb-wrapper {
  position: relative;
  width: 270px;
  min-width: 270px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  flex-shrink: 0;
}

.youtube-card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.youtube-video-card:hover .thumb-play-overlay {
  opacity: 1;
}

.youtube-content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.yt-actions {
  margin-top: 10px;
  max-width: 420px;
}

.center-btn {
  text-align: center;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   11. UNIVERSAL MODAL SYSTEM & STRUCTURED TEXT FORMATTING
   -------------------------------------------------------------------------- */
.description-modal-overlay,
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

.description-modal-box,
.popup-box {
  background: var(--card-solid);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 620px;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  color: var(--text-main);
}

.popup-box {
  max-width: 480px;
  text-align: center;
}

.popup-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 12px;
}

.popup-box h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.popup-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-close-btn,
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(var(--primary-rgb), 0.08);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover,
.popup-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-right: 36px;
}

#modalTitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.modal-meta-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-description-content {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 22px;
}

.formatted-section-heading {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary);
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.formatted-paragraph {
  margin-bottom: 10px;
  color: var(--text-main);
}

.formatted-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.04);
  color: var(--text-main);
  font-size: 0.92rem;
}

.formatted-bullet .bullet-icon {
  color: var(--primary);
  margin-top: 4px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.formatted-spacer {
  height: 8px;
}

.modal-action-row,
.popup-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.modal-action-row .full-btn {
  flex: 1;
}

.popup-buttons {
  margin: 20px 0 14px;
}

.popup-social-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.youtube-btn {
  background: #ff0000;
}

.insta-btn {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.continue-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: var(--success);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.continue-btn:hover {
  filter: brightness(1.06);
}

/* --------------------------------------------------------------------------
   12. SHIMMER SKELETON LOADERS
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.05) 25%,
    rgba(var(--primary-rgb), 0.12) 50%,
    rgba(var(--primary-rgb), 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  min-height: 200px;
  pointer-events: none;
}

.skeleton-tag {
  width: 70px;
  height: 22px;
  margin-bottom: 12px;
}

.skeleton-title {
  width: 90%;
  height: 24px;
  margin-bottom: 10px;
}

.skeleton-text {
  width: 100%;
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-btn {
  width: 100%;
  height: 38px;
  margin-top: auto;
  border-radius: 10px;
}

.yt-skeleton-thumb {
  width: 270px;
  min-width: 270px;
  aspect-ratio: 16 / 9;
}

.yt-skeleton-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-skeleton-badge {
  width: 80px;
  height: 20px;
}

.yt-skeleton-title {
  width: 90%;
  height: 22px;
}

.yt-skeleton-text {
  width: 100%;
  height: 14px;
}

.yt-skeleton-actions {
  width: 200px;
  height: 36px;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   13. TOASTS & EMPTY STATES
   -------------------------------------------------------------------------- */
.kavyahub-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-solid);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: bottom 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.kavyahub-toast.show {
  bottom: 25px;
  opacity: 1;
}

.empty-state,
.empty-state-box {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.empty-state i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 50px 8% 30px;
  text-align: center;
}

.footer-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-content span {
  color: var(--primary);
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer-links {
  margin: 22px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Featured Card Clamping Fix */
.featured-description-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 1.6;
}

.featured-read-more {
  display: block;
  margin: 0 auto 15px auto;
}