/* =============================================
   TRIGRAPHY — MAIN STYLESHEET v2
   Creative Marketplace + Learning Hub
   Light & Clean — Freepik/Envato Style
   ============================================= */

/* --- CSS Variables --- */
:root {
  --primary:      #6C63FF;
  --primary-dark: #4F46E5;
  --secondary:    #FF6584;
  --accent:       #43CFBB;
  --educreate:    #10B981;    /* Educreate section brand colour */
  --premium:      #F59E0B;
  --free-color:   #10B981;
  --dark:         #111827;
  --text:         #1F2937;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --bg:           #FFFFFF;
  --bg-alt:       #F9FAFB;
  --bg-section:   #F3F4F6;
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-xs:    0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:    0 1px 6px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);
  --shadow-card:  0 2px 8px rgba(108,99,255,.08);
  --t:            .2s ease;
  --container:    1320px;
  --sidebar:      300px;
  --header-h:     68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
svg { display: block; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-family: 'Plus Jakarta Sans','Inter',sans-serif; font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(1.9rem,4vw,3rem); }
h2 { font-size: clamp(1.4rem,3vw,2.1rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Container --- */
.trig-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.trig-container--narrow { max-width: 860px; }

/* Top bar removed — no ads, no topbar */

/* =============================================
   SITE HEADER  (BEM: trig-header)
   Logo LEFT | Nav CENTER | Icons RIGHT
   Uses CSS Grid for true centering
   ============================================= */
.trig-header {
  background: #fff !important;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
  width: 100%;
}

.trig-header__inner {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
}

/* Logo — snaps to left */
.trig-logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
  grid-column: 1;
}
.trig-logo:hover { color: var(--primary-dark) !important; }

/* =============================================
   PRIMARY NAV — perfectly centered
   ============================================= */
.trig-nav {
  grid-column: 2;
  justify-self: center;
}

.trig-nav__list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 2px;
}

.trig-nav__item {
  display: list-item !important;
  float: none !important;
}

.trig-nav__link {
  display: block !important;
  padding: 8px 13px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.trig-nav__link:hover,
.trig-nav__link--active {
  color: var(--primary) !important;
  background: rgba(108,99,255,.07);
}

/* Freebies — green pill */
.trig-nav__item--free .trig-nav__link {
  color: var(--free-color) !important;
  background: rgba(16,185,129,.09) !important;
  border-radius: 50px !important;
}
.trig-nav__item--free .trig-nav__link:hover {
  background: rgba(16,185,129,.18) !important;
}

/* Educreate — teal accent */
.trig-nav__item--edu .trig-nav__link {
  color: var(--educreate) !important;
}
.trig-nav__item--edu .trig-nav__link:hover {
  background: rgba(16,185,129,.07) !important;
}

/* =============================================
   HEADER RIGHT — snaps to right
   ============================================= */
.trig-header__right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  justify-self: end;
  grid-column: 3;
}

/* Icon button */
.trig-btn-icon {
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
}
.trig-btn-icon:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--primary); }

/* Search panel */
.trig-search-panel {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--primary);
  padding: 16px 0;
}
.trig-search-panel[hidden] { display: none; }
.trig-search-panel__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.trig-search-panel form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 6px 8px 6px 16px;
}
.trig-search-panel form:focus-within { border-color: var(--primary); background: #fff; }
.trig-search-panel select {
  border: 0; background: transparent; font-size: .85rem; color: var(--muted); outline: none;
  cursor: pointer; padding-right: 8px; border-right: 1px solid var(--border);
}
.trig-search-panel input[type="search"] {
  flex: 1; border: 0; background: transparent; font-size: .95rem; outline: none; padding: 4px 8px;
}
.btn-search-close { border: 0; background: transparent; font-size: 1rem; color: var(--muted); cursor: pointer; }

/* Cart badge */
.trig-cart-wrap { position: relative; }
.trig-cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 16px; height: 16px;
  background: var(--secondary);
  color: #fff;
  font-size: .6rem; font-weight: 700;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

/* User avatar */
.trig-avatar {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.trig-user-wrap { padding: 2px; }

/* Mobile nav toggle */
.trig-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}
.trig-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t);
}

/* =============================================
   BUTTONS — BEM trig-btn variants (header)
   ============================================= */
.trig-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 50px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--t); border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.trig-btn--primary   { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.trig-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff !important; }
.trig-btn--outline   { background: transparent; border-color: var(--primary); color: var(--primary) !important; }
.trig-btn--outline:hover { background: var(--primary); color: #fff !important; }
.trig-btn--ghost     { background: var(--bg-alt); border-color: var(--border); color: var(--text) !important; }
.trig-btn--ghost:hover { border-color: var(--primary); color: var(--primary) !important; }

/* =============================================
   BUTTONS — legacy .btn classes
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 50px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--t); border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline   { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost     { background: var(--bg-alt); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-premium   { background: var(--premium); color: #fff; border-color: var(--premium); }
.btn-premium:hover { background: #D97706; color: #fff; }
.btn-free      { background: var(--free-color); color: #fff; }
.btn-free:hover { background: #059669; color: #fff; }
.btn-dark      { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-white     { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--dark); color: #fff; }
.btn-sm  { padding: 7px 16px; font-size: .82rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-xl  { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* =============================================
   HERO SECTION
   ============================================= */
.trig-hero {
  background: linear-gradient(135deg, #FAFBFF 0%, #EEF0FF 45%, #F0FFF8 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.trig-hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,.07), transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%; pointer-events: none;
}
.trig-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.06), transparent 70%);
  bottom: -150px; left: -150px;
  border-radius: 50%; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 22px;
}
.trig-hero h1 { font-size: clamp(2.2rem,5vw,3.8rem); margin-bottom: 14px; letter-spacing: -.03em; }
.trig-hero h1 span { color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 580px; margin: 0 auto 36px; }

/* Hero Search Box */
.hero-search {
  max-width: 720px; margin: 0 auto 28px;
}
.hero-search__box {
  display: flex;
  background: #fff;
  border-radius: 60px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.hero-search__box:focus-within { border-color: var(--primary); }
.hero-search__box select {
  border: 0; border-right: 1px solid var(--border);
  padding: 0 18px; min-width: 140px;
  font-size: .85rem; color: var(--muted); cursor: pointer; outline: none;
  background: transparent;
}
.hero-search__box input {
  flex: 1; border: 0; padding: 16px 20px; font-size: 1rem; outline: none;
}
.hero-search__box button {
  background: var(--primary); border: 0; color: #fff;
  padding: 0 32px; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background var(--t); white-space: nowrap;
}
.hero-search__box button:hover { background: var(--primary-dark); }

/* Hero tags */
.hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.hero-tags > span { color: var(--muted); font-size: .85rem; align-self: center; }
.hero-tag {
  background: rgba(108,99,255,.09); color: var(--primary);
  padding: 5px 14px; border-radius: 50px; font-size: .82rem; font-weight: 500;
  transition: all var(--t);
}
.hero-tag:hover { background: var(--primary); color: #fff; }

/* Hero stats */
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.hero-stat span { font-size: .78rem; color: var(--muted); }

/* =============================================
   AD BANNERS
   ============================================= */
.trig-ad-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 0; background: var(--bg-section);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trig-ad-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.trig-ad-placeholder {
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .05em;
}
/* Sizes */
.ad-728x90  .trig-ad-placeholder { width: 728px; height: 90px; }
.ad-970x90  .trig-ad-placeholder { width: 970px; height: 90px; }
.ad-970x250 .trig-ad-placeholder { width: 970px; height: 250px; }
.ad-300x250 .trig-ad-placeholder { width: 300px; height: 250px; }
.ad-300x600 .trig-ad-placeholder { width: 300px; height: 600px; }
.ad-336x280 .trig-ad-placeholder { width: 336px; height: 280px; }
.ad-320x100 .trig-ad-placeholder { width: 320px; height: 100px; }
.ad-320x50  .trig-ad-placeholder { width: 320px; height: 50px; }

/* =============================================
   SECTIONS
   ============================================= */
.trig-section { padding: 64px 0; }
.trig-section--alt { background: var(--bg-alt); }
.trig-section--dark { background: var(--dark); }
.trig-section--compact { padding: 40px 0; }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; }
.section-header h2 { margin: 0; }
.section-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--primary); margin-bottom: 6px; }
.section-link { font-size: .88rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-link:hover { color: var(--dark); }

/* =============================================
   CATEGORY CARDS
   ============================================= */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.cat-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 14px;
  text-align: center; transition: all var(--t); cursor: pointer;
  color: var(--text); text-decoration: none;
  display: block;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--primary); }
.cat-card__icon { font-size: 2rem; margin-bottom: 10px; display: block; line-height: 1; }
.cat-card__name { font-size: .88rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.cat-card__count { font-size: .72rem; color: var(--muted); }

/* =============================================
   RESOURCE CARDS
   ============================================= */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.resources-grid--5 { grid-template-columns: repeat(5, 1fr); }
.resources-grid--4 { grid-template-columns: repeat(4, 1fr); }

.resource-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: all var(--t); position: relative;
}
.resource-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(108,99,255,.2); }

.resource-card__thumb {
  position: relative; overflow: hidden;
  background: var(--bg-alt); aspect-ratio: 4/3;
}
.resource-card__thumb img { width:100%; height:100%; object-fit: cover; transition: transform .35s ease; }
.resource-card:hover .resource-card__thumb img { transform: scale(1.05); }

.card-actions {
  position: absolute; inset: 0;
  background: rgba(17,24,39,.55);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity var(--t);
}
.resource-card:hover .card-actions { opacity: 1; }
.card-actions .btn { background: #fff; color: var(--primary); border-radius: 50px; }
.card-actions .btn:hover { background: var(--primary); color: #fff; }
.btn-wishlist-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text); transition: all var(--t);
}
.btn-wishlist-icon:hover, .btn-wishlist-icon.active { background: var(--secondary); color: #fff; }

.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 9px; border-radius: 50px;
  line-height: 1;
}
.badge-free    { background: var(--free-color); color: #fff; }
.badge-premium { background: var(--premium); color: #fff; }
.badge-pro     { background: var(--primary); color: #fff; }
.badge-new     { background: var(--secondary); color: #fff; }
.badge-top     { background: var(--dark); color: #fff; }

.badge-tr { left: auto; right: 10px; }

.resource-card__body { padding: 14px 16px 16px; }
.resource-card__format { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.resource-card__title {
  font-size: .93rem; font-weight: 700; color: var(--dark); line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.resource-card__title a { color: inherit; }
.resource-card__title a:hover { color: var(--primary); }
.resource-card__footer { display: flex; align-items: center; justify-content: space-between; }
.resource-card__dl { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.resource-card__price { font-size: .9rem; font-weight: 800; }
.price-free    { color: var(--free-color); }
.price-premium { color: var(--premium); }

/* =============================================
   BLOG CARDS
   ============================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: all var(--t);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.blog-card__thumb img { width:100%; height:100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__body { padding: 18px 20px 20px; }
.blog-card__cat {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--primary);
  background: rgba(108,99,255,.08); padding: 3px 10px;
  border-radius: 50px; margin-bottom: 10px;
}
.blog-card__title {
  font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt {
  font-size: .83rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--border);
}
.blog-card__author { display: flex; align-items: center; gap: 7px; }
.blog-card__author img { width:24px; height:24px; border-radius:50%; object-fit:cover; }

/* =============================================
   EDUCATION (EDUCREATE) CARDS
   ============================================= */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.edu-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); padding: 22px 18px;
  transition: all var(--t); position: relative; display: block; color: var(--text);
}
.edu-card:hover { border-color: var(--educreate); box-shadow: 0 4px 20px rgba(16,185,129,.12); transform: translateY(-2px); }
.edu-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 12px;
}
.edu-icon-math     { background: #FEF3C7; }
.edu-icon-english  { background: #DBEAFE; }
.edu-icon-science  { background: #D1FAE5; }
.edu-icon-arabic   { background: #FCE7F3; }
.edu-icon-quiz     { background: #EDE9FE; }
.edu-icon-lesson   { background: #FEF9C3; }
.edu-icon-print    { background: #FFE4E6; }
.edu-icon-activity { background: #ECFDF5; }
.edu-card h4 { font-size: .92rem; margin-bottom: 4px; }
.edu-card p { font-size: .78rem; color: var(--muted); margin: 0; }
.edu-card__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; background: var(--bg-alt); color: var(--muted);
  padding: 2px 8px; border-radius: 50px; border: 1px solid var(--border);
}

/* =============================================
   PRICING CARDS
   ============================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 26px;
  border: 2px solid var(--border); text-align: center; position: relative;
  transition: all var(--t);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,.1); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 14px;
  border-radius: 50px; white-space: nowrap;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin: 16px 0 6px; line-height: 1; }
.pricing-price sup { font-size: 1.2rem; vertical-align: super; font-weight: 700; }
.pricing-price sub { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pricing-period { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .87rem;
}
.pricing-features li:last-child { border: 0; }
.feature-check { color: var(--free-color); font-weight: 700; flex-shrink: 0; }
.feature-x { color: #D1D5DB; flex-shrink: 0; }

/* =============================================
   NEWSLETTER
   ============================================= */
.trig-newsletter {
  background: linear-gradient(135deg, #EEF0FF 0%, #FDF4FF 100%);
  border: 1.5px solid rgba(108,99,255,.15);
  border-radius: var(--radius-xl); padding: 48px 40px; text-align: center;
  margin: 60px 0;
}
.trig-newsletter h3 { font-size: 1.5rem; margin-bottom: 8px; }
.trig-newsletter p { color: var(--muted); margin-bottom: 26px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; gap: 12px; }
.newsletter-form input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 50px;
  padding: 12px 20px; font-size: .92rem; outline: none; transition: border-color var(--t);
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-privacy { font-size: .75rem; color: var(--muted); margin-top: 10px; }

/* =============================================
   FEATURED / PROMO BANNER
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  border-radius: var(--radius-lg); padding: 36px 40px;
  color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  overflow: hidden; position: relative; margin-bottom: 48px;
}
.promo-banner::after {
  content: ''; position: absolute; width: 320px; height: 320px;
  background: rgba(255,255,255,.06); border-radius: 50%;
  right: -80px; top: -80px; pointer-events: none;
}
.promo-banner h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.promo-banner p { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }

/* =============================================
   SIDEBAR LAYOUT
   ============================================= */
.trig-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: 40px; align-items: start;
}
.trig-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.sidebar-widget__head {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 13px 16px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border); color: var(--dark);
}
.sidebar-widget__body { padding: 16px; }
.sticky-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 6px 16px; font-size: .82rem;
  font-weight: 500; color: var(--muted); cursor: pointer; transition: all var(--t);
  text-decoration: none;
}
.filter-chip:hover, .filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bar__sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.filter-bar__sort select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 12px; font-size: .83rem; color: var(--text); outline: none;
  background: #fff; cursor: pointer;
}
.results-count { font-size: .83rem; color: var(--muted); }

/* =============================================
   PAGINATION
   ============================================= */
.trig-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 48px; flex-wrap: wrap;
}
.trig-pagination a, .trig-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: .88rem; font-weight: 500; color: var(--text); transition: all var(--t);
}
.trig-pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.trig-pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =============================================
   BREADCRUMBS
   ============================================= */
.trig-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: .8rem; color: var(--muted); padding: 10px 0;
}
.trig-breadcrumb a { color: var(--muted); }
.trig-breadcrumb a:hover { color: var(--primary); }
.trig-breadcrumb .sep { opacity: .4; }
.trig-breadcrumb .current { color: var(--dark); font-weight: 500; }

/* =============================================
   CTA SECTION
   ============================================= */
.trig-cta { background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%); color: #fff; padding: 80px 0; text-align: center; }
.trig-cta h2 { color: #fff; margin-bottom: 12px; }
.trig-cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { font-size: 1.4rem; }
.footer-brand .logo-text span { color: var(--primary); }
.footer-brand p { font-size: .86rem; margin-top: 12px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .85rem; transition: all var(--t);
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: .88rem; margin-bottom: 16px; font-weight: 700; }
.footer-col li { margin-bottom: 9px; }
.footer-col li a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color var(--t); }
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; flex-wrap: wrap; gap: 10px; font-size: .8rem;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,.45); transition: color var(--t); }
.footer-bottom-links a:hover { color: #fff; }

/* =============================================
   POST CONTENT STYLES
   ============================================= */
.post-content { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.post-content h2, .post-content h3 { margin: 2em 0 .75em; }
.post-content p { margin-bottom: 1.25rem; }
.post-content img { border-radius: var(--radius-md); margin: 1.5em 0; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: .5em; }
.post-content blockquote {
  border-left: 3px solid var(--primary); background: var(--bg-alt);
  padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0; font-style: italic; color: var(--muted);
}
.post-content pre {
  background: var(--dark); color: #e2e8f0; padding: 20px;
  border-radius: var(--radius-md); overflow-x: auto; font-size: .88rem; margin: 1.5em 0;
}
.post-content code { background: rgba(108,99,255,.1); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* =============================================
   NOTICES
   ============================================= */
.notice { padding: 13px 16px; border-radius: var(--radius-sm); border-left: 3px solid; font-size: .9rem; margin-bottom: 14px; }
.notice-info    { background: #EFF6FF; border-color: #3B82F6; color: #1E40AF; }
.notice-success { background: #F0FDF4; border-color: var(--free-color); color: #065F46; }
.notice-warning { background: #FFFBEB; border-color: var(--premium); color: #92400E; }
.notice-error   { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }

/* =============================================
   ASSET INFO BOX (single asset)
   ============================================= */
.asset-box {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; position: sticky; top: calc(var(--header-h) + 16px);
}
.asset-box__price { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.asset-info-table { width: 100%; font-size: .85rem; margin: 14px 0; }
.asset-info-table tr td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.asset-info-table tr:last-child td { border: 0; }
.asset-info-table td:first-child { color: var(--muted); width: 45%; }
.asset-info-table td:last-child { font-weight: 600; }
.asset-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.asset-tag {
  background: var(--bg-alt); color: var(--muted); font-size: .74rem;
  padding: 4px 10px; border-radius: 50px; border: 1px solid var(--border);
  transition: all var(--t);
}
.asset-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =============================================
   404 PAGE
   ============================================= */
.error-page { text-align: center; padding: 100px 24px; }
.error-page .error-num { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .1; line-height: 1; }
.error-page h2 { margin-top: -2rem; margin-bottom: 10px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* =============================================
   SCROLL TO TOP
   ============================================= */
#trig-scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px; background: var(--primary); color: #fff;
  border: 0; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: all var(--t); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
#trig-scroll-top.visible { opacity: 1; pointer-events: auto; }
#trig-scroll-top:hover { background: var(--dark); }

/* =============================================
   WP CORE HELPERS
   ============================================= */
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .resources-grid--5 { grid-template-columns: repeat(4, 1fr); }
  .resources-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .mega-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mega-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .trig-with-sidebar { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Switch from grid to flex on mobile */
  .trig-header__inner {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 16px;
  }

  /* Hide desktop nav on mobile */
  .trig-nav { display: none !important; }
  .trig-nav.is-open {
    display: block !important;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    overflow-y: auto;
    z-index: 998;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
  }
  .trig-nav.is-open .trig-nav__list {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  .trig-nav.is-open .trig-nav__link {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
  }
  .trig-nav-toggle { display: flex !important; }
  .trig-header__right .trig-btn { display: none; }
  .trig-header__right .trig-btn-icon { display: flex; }
  .trig-topbar__links { display: none; }
  .hero-search__box { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .hero-search__box select { border-right: 0; border-bottom: 1px solid var(--border); width: 100%; border-radius: 0; }
  .hero-search__box button { width: 100%; padding: 14px; justify-content: center; }
  .hero-stats { gap: 20px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .resources-grid, .resources-grid--4, .resources-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ad-970x250 .trig-ad-placeholder, .ad-728x90 .trig-ad-placeholder, .ad-970x90 .trig-ad-placeholder { width: 320px; height: 100px; }
  .ad-300x600 .trig-ad-placeholder { width: 300px; height: 250px; }
  .trig-topbar { display: none; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid, .resources-grid--4, .resources-grid--5 { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .trig-hero { padding: 48px 0 36px; }
  .trig-newsletter { padding: 32px 20px; }
}
