/**
 * AI Notifier page — design language aligned with home & internal pages.
 * Uses same hero gradient, section bg, typography scale, and card styling.
 */
/* Hero: same gradient and center layout as Awareness / Syllabus pages */
.page-notifier .page-hero.notifier-hero {
  --page-hero-bg: linear-gradient(135deg, #0d3b4c 0%, #1a5f7a 40%, #0f3460 100%);
}

.page-notifier .notifier-hero .container {
  text-align: center;
}

.page-notifier .notifier-hero .page-hero-badge {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
}

.page-notifier .notifier-hero .page-hero-title {
  margin-left: auto;
  margin-right: auto;
}

.page-notifier .notifier-hero .page-hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Hero trust pills: high-contrast (solid pills, no faded look) */
.page-notifier .notifier-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.page-notifier .notifier-trust-item {
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  background: #fff;
  color: var(--primary, #0f3460);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-notifier .notifier-trust-item:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #0d2d52;
  border-color: rgba(255, 255, 255, 0.6);
}

.page-notifier .notifier-trust-dot {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

/* Sections: same bg and padding as home (e.g. CTET audit) */
.page-notifier .notifier-cards-section {
  padding: 2.5rem 0;
  background: var(--bg-light, #f8f9fa);
}

.page-notifier .notifier-cards-section:nth-child(even) {
  background: var(--bg-white, #fff);
}

/* Optional badge above heading — pill like home */
.page-notifier .notifier-cards-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary, #0f3460);
  background: rgba(15, 52, 96, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Heading scale to match home section titles */
.page-notifier .notifier-cards-heading {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--text-heading, #1a1a1a);
  line-height: 1.3;
}

.page-notifier .notifier-cards-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #555);
  margin: 0 0 1.25rem;
  max-width: 52ch;
  line-height: 1.55;
}

/* Tabs: pill design and colors like CTET Proof / home */
.page-notifier .notifier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: 1.25rem;
}

.page-notifier .notifier-tab-btn {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  background: var(--bg-white, #fff);
  color: var(--text-body, #1a1a1a);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-notifier .notifier-tab-btn:hover {
  background: var(--bg-light, #f5f5f5);
  border-color: var(--border-color, rgba(0, 0, 0, 0.15));
  color: var(--text-heading, #1a1a1a);
}

.page-notifier .notifier-tab-btn.active {
  background: var(--primary, #0f3460);
  border-color: var(--primary, #0f3460);
  color: #fff;
}

.page-notifier .notifier-tab-btn.active:hover {
  background: var(--primary, #0f3460);
  border-color: var(--primary, #0f3460);
  color: #fff;
}

@media (min-width: 640px) {
  .page-notifier .notifier-tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Cards: eye-catching, elegant styling */
.page-notifier .notifier-card {
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(15, 52, 96, 0.1);
  background: var(--bg-white, #fff);
  padding: 1.35rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.page-notifier .notifier-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary, #0f3460) 0%, #1a5f7a 100%);
  border-radius: 14px 0 0 14px;
  opacity: 0.85;
}

.page-notifier .notifier-card:hover {
  box-shadow: 0 12px 28px rgba(15, 52, 96, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(15, 52, 96, 0.22);
  transform: translateY(-3px);
}

.page-notifier .notifier-card:hover::before {
  opacity: 1;
  width: 5px;
}

.page-notifier .notifier-card-link {
  padding-left: 2px;
}

.page-notifier .notifier-card-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.page-notifier .notifier-card-meta {
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.45;
}

.page-notifier .notifier-card-meta strong {
  color: #1e293b;
}

/* Badges: vibrant, not faded */
.page-notifier .notifier-card-badge {
  background: linear-gradient(135deg, rgba(15, 52, 96, 0.14) 0%, rgba(15, 52, 96, 0.08) 100%);
  color: var(--primary, #0f3460);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(15, 52, 96, 0.2);
}

.page-notifier .notifier-card-badge.walk-in {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(21, 128, 61, 0.3);
}

/* Actions row: Apply link + Share icon button */
.page-notifier .notifier-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 52, 96, 0.08);
}

.page-notifier .notifier-card-apply {
  color: var(--primary, #0f3460);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.page-notifier .notifier-card-apply:hover {
  color: #0d2d52;
  text-decoration: underline;
}

/* Filter dropdowns: same as site inputs (radius, border, primary when active) */
.page-notifier .notifier-filter-btn {
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  background: var(--bg-white, #fff);
  color: var(--text-body, #333);
}

.page-notifier .notifier-filter-btn:hover {
  border-color: var(--primary, #0f3460);
  color: var(--primary, #0f3460);
}

.page-notifier .notifier-filter-btn.active,
.page-notifier select.notifier-filter-btn:focus {
  border-color: var(--primary, #0f3460);
  outline: none;
}

/* Subscribe button: same primary style as home CTAs */
.page-notifier .notifier-cta-end-btn,
.page-notifier .btn-primary.notifier-cta-end-btn {
  background: var(--primary, #0f3460);
  border: 2px solid var(--primary, #0f3460);
  color: #fff;
  border-radius: var(--radius-md, 12px);
  font-weight: 700;
}

.page-notifier .notifier-cta-end-btn:hover,
.page-notifier .btn-primary.notifier-cta-end-btn:hover {
  background: #0d2d52;
  border-color: #0d2d52;
  color: #fff;
  opacity: 1;
}

/* CTA strip section: same section bg as home */
.page-notifier .notifier-cta-strip {
  padding: 2.5rem 0;
  background: var(--bg-light, #f8f9fa);
}

/* CTA end card: same as home card style */
.page-notifier .notifier-cta-end-card {
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

/* Fallbacks when not scoped (e.g. if body class missing) */
.notifier-cards-section {
  padding: 2.5rem 0;
  background: var(--bg-light, #f8f9fa);
}

/* Tabs: mobile-first */
.notifier-tabs-section .notifier-cards-desc {
  margin-bottom: 1rem;
}

.notifier-tabs {
  display: flex;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(0,0,0,0.12));
  background: var(--bg-white, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1.25rem;
}

.notifier-tab-btn {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: none;
  background: var(--bg-white, #fff);
  color: var(--text-muted, #555);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.notifier-tab-btn:hover {
  background: var(--bg-page, #f0f1f3);
  color: var(--text-heading, #1a1a1a);
}

.notifier-tab-btn.active {
  background: var(--primary, #0f3460);
  color: #fff;
}

.notifier-tab-btn.active:hover {
  background: var(--primary, #0f3460);
  color: #fff;
}

.notifier-tab-panel {
  display: block;
}

.notifier-tab-panel.hidden {
  display: none;
}

@media (min-width: 480px) {
  .notifier-tab-btn {
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 640px) {
  .notifier-tab-btn {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

.notifier-cards-section:nth-child(even) {
  background: var(--bg-white, #fff);
}

.notifier-cards-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.notifier-cards-heading {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-heading, #1a1a1a);
  line-height: 1.3;
}

.notifier-cards-desc {
  font-size: 0.95rem;
  color: var(--text-muted, #555);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* Filter bar: mobile-first stacked, then row on larger screens */
.notifier-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.notifier-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.notifier-filters-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #555);
}

.notifier-filter-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.notifier-filter-group select.notifier-filter-btn {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  appearance: auto;
  -webkit-appearance: menulist;
}

.notifier-filter-btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color, rgba(0,0,0,0.15));
  border-radius: 6px;
  background: var(--bg-white, #fff);
  color: var(--text-body, #333);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.notifier-filter-btn:hover {
  border-color: var(--primary, #0f3460);
  color: var(--primary, #0f3460);
}

.notifier-filter-btn.active {
  background: var(--primary, #0f3460);
  border-color: var(--primary, #0f3460);
  color: #fff;
}

.notifier-filter-btn.active:hover {
  opacity: 0.9;
  color: #fff;
}

.notifier-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .notifier-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .notifier-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Single card: wrapper div with inner link + share button */
.notifier-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-height: 120px;
  -webkit-tap-highlight-color: transparent;
}

.notifier-card-link {
  display: block;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.notifier-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 52, 96, 0.08);
}

.notifier-card:hover {
  box-shadow: 0 6px 20px rgba(15, 52, 96, 0.12);
  transform: translateY(-2px);
  border-color: rgba(15, 52, 96, 0.25);
}

/* Share button: icon fills the whole button */
.notifier-card-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #0f3460) 0%, #1a5f7a 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 52, 96, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.notifier-card-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 52, 96, 0.35);
  opacity: 0.95;
}

.notifier-card-share:active {
  transform: translateY(0);
}

/* Icon fills button; invert so it’s visible on dark background (no brightness(0) to avoid white box) */
.notifier-card-share-icon {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  opacity: 0.95;
  filter: invert(1);
}

.notifier-card-share-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.notifier-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: var(--text-heading, #1a1a1a);
}

.notifier-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted, #555);
  margin: 0.25rem 0;
  line-height: 1.4;
}

.notifier-card-meta strong {
  color: var(--text-body, #333);
}

.notifier-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  background: rgba(15, 52, 96, 0.1);
  color: var(--primary, #0f3460);
}

.notifier-card-badge.walk-in {
  background: rgba(34, 139, 34, 0.12);
  color: #228b22;
}

.notifier-card-apply {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary, #0f3460);
  text-decoration: none;
}

.notifier-card-apply:hover {
  text-decoration: underline;
}

.notifier-cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted, #555);
  font-size: 0.95rem;
}

.notifier-cards-count {
  font-size: 0.85rem;
  color: var(--text-muted, #555);
  margin-top: 0.1rem;
}

/* Filters: horizontal layout on larger screens */
@media (min-width: 640px) {
  .notifier-filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .notifier-filters-header {
    flex: 1;
    min-width: 0;
    margin-right: 0.25rem;
  }

  .notifier-filter-group {
    width: auto;
  }

  .notifier-filter-group select.notifier-filter-btn {
    width: auto;
    min-width: 120px;
    min-height: 38px;
  }

  .notifier-cards-count {
    margin-left: auto;
    margin-top: 0;
  }
}

/* Subscribe CTA card at end of page */
.notifier-cta-end-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.notifier-cta-end-about {
  font-size: 0.95rem;
  color: var(--text-muted, #555);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.notifier-cta-end-price {
  margin-bottom: 1rem;
}

.notifier-cta-end-price .notifier-price-new {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading, #1a1a1a);
}

.notifier-cta-end-price .notifier-price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted, #555);
}

.notifier-cta-end-btn {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.notifier-cta-end-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
