/*
Theme Name: Next G
Theme URI: https://nextg.com
Author: Next G Team
Author URI: https://nextg.com
Description: Bangladesh's #1 University Eligibility Finder - A modern WordPress theme for discovering universities based on SSC & HSC results.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nextg
Tags: education, university, eligibility, bangladesh, modern, responsive
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (controlled by Customizer)
   ============================================================ */
:root {
  --nextg-primary: #1e3068;
  --nextg-primary-light: #2d4a9e;
  --nextg-primary-dark: #111b45;
  --nextg-accent: #f5a623;
  --nextg-accent-light: #fef3d0;
  --nextg-background: #f4f6fb;
  --nextg-foreground: #111827;
  --nextg-card: #ffffff;
  --nextg-muted: #6b7280;
  --nextg-border: #e2e8f0;
  --nextg-success: #22c55e;
  --nextg-radius: 0.75rem;
  --nextg-font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --nextg-font-display: 'Space Grotesk', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--nextg-font-sans);
  background: var(--nextg-background);
  color: var(--nextg-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nextg-font-display);
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--nextg-accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

ul { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.nextg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.nextg-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.nextg-text-gradient-gold {
  background: linear-gradient(135deg, var(--nextg-accent) 0%, #f7d46a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nextg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--nextg-font-display);
}

.nextg-badge-accent {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  color: var(--nextg-accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.nextg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--nextg-radius);
  font-family: var(--nextg-font-display);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}

.nextg-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nextg-btn:active { transform: translateY(0); }

.nextg-btn-gold {
  background: linear-gradient(135deg, var(--nextg-accent) 0%, #e8960f 100%);
  color: var(--nextg-primary-dark);
}

.nextg-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

.nextg-btn-outline:hover { background: rgba(255,255,255,0.08); }

.nextg-btn-primary {
  background: var(--nextg-primary);
  color: #fff;
}

.nextg-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  height: 3rem;
}

.nextg-btn-full { width: 100%; }

.nextg-btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nextg-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 4rem;
  background: rgba(30, 48, 104, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}

.nextg-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nextg-navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nextg-navbar__logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--nextg-accent) 0%, #e8960f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nextg-navbar__logo-icon svg { width: 1.25rem; height: 1.25rem; }

.nextg-navbar__logo-name {
  font-family: var(--nextg-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* Desktop Nav Links */
.nextg-navbar__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nextg-navbar__links { display: flex; }
}

.nextg-navbar__links a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nextg-navbar__links a:hover,
.nextg-navbar__links a.active {
  color: var(--nextg-accent);
  background: rgba(245,166,35,0.1);
  opacity: 1;
}

/* Nav Actions */
.nextg-navbar__actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nextg-navbar__actions { display: flex; }
}

/* Mobile toggle */
.nextg-navbar__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
}

@media (min-width: 768px) {
  .nextg-navbar__mobile-toggle { display: none; }
}

.nextg-navbar__mobile-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile Menu */
.nextg-mobile-menu {
  display: none;
  position: fixed;
  top: 4rem; left: 0; right: 0;
  background: rgba(30, 48, 104, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
  z-index: 49;
  flex-direction: column;
  gap: 0.5rem;
}

.nextg-mobile-menu.is-open { display: flex; }

.nextg-mobile-menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.nextg-mobile-menu a:hover,
.nextg-mobile-menu a.active {
  color: var(--nextg-accent);
  background: rgba(245,166,35,0.1);
  opacity: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.nextg-hero {
  background: linear-gradient(135deg, var(--nextg-primary-dark) 0%, var(--nextg-primary) 50%, var(--nextg-primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 4rem; /* navbar height */
}

.nextg-hero__decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.nextg-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: nextg-float 6s ease-in-out infinite;
}

.nextg-hero__orb--1 {
  top: -6rem; right: -6rem;
  width: 24rem; height: 24rem;
  background: rgba(245,166,35,0.06);
}

.nextg-hero__orb--2 {
  bottom: 0; left: 0;
  width: 18rem; height: 18rem;
  background: rgba(66,153,225,0.05);
  animation-delay: 1.5s;
}

@keyframes nextg-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.nextg-hero__content {
  position: relative;
  padding: 7rem 0 4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nextg-hero__content { padding: 9rem 0 6rem; }
}

.nextg-hero__eyebrow {
  margin-bottom: 1.25rem;
}

.nextg-hero__headline {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  max-width: 48rem;
  margin: 0 auto 1rem;
  line-height: 1.15;
}

@media (min-width: 640px) { .nextg-hero__headline { font-size: 2.5rem; } }
@media (min-width: 768px) { .nextg-hero__headline { font-size: 3rem; } }

.nextg-hero__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) { .nextg-hero__subtitle { font-size: 1.125rem; } }

.nextg-hero__form-wrap {
  margin-top: 2rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.nextg-stats {
  position: relative;
  z-index: 10;
  margin-top: -1.5rem;
  padding: 0 1.5rem 4rem;
}

.nextg-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nextg-stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.nextg-stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 24px rgba(30,48,104,0.08);
}

.nextg-stat-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(245,166,35,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nextg-stat-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--nextg-accent);
}

.nextg-stat-card__value {
  font-family: var(--nextg-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nextg-foreground);
  line-height: 1;
}

.nextg-stat-card__label {
  font-size: 0.75rem;
  color: var(--nextg-muted);
  margin-top: 0.15rem;
}

/* ============================================================
   ELIGIBILITY FORM
   ============================================================ */
.nextg-eligibility-form {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.nextg-form-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(17, 27, 69, 0.2);
  overflow: hidden;
}

.nextg-form-section {
  padding: 1.5rem;
}

.nextg-form-section + .nextg-form-section {
  border-top: 1px solid var(--nextg-border);
}

.nextg-form-section__title {
  font-family: var(--nextg-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nextg-foreground);
  margin-bottom: 1rem;
}

.nextg-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .nextg-form-grid { grid-template-columns: repeat(3, 1fr); }
}

.nextg-form-field { display: flex; flex-direction: column; gap: 0.375rem; }

.nextg-form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--nextg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nextg-form-field input,
.nextg-form-field select {
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--nextg-border);
  border-radius: calc(var(--nextg-radius) - 0.125rem);
  font-size: 0.875rem;
  font-family: var(--nextg-font-sans);
  color: var(--nextg-foreground);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.nextg-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.nextg-form-field input:focus,
.nextg-form-field select:focus {
  border-color: var(--nextg-accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.nextg-form-submit {
  padding: 0 1.5rem 1.5rem;
}

.nextg-form-submit button {
  width: 100%;
  height: 3rem;
  background: linear-gradient(135deg, var(--nextg-accent) 0%, #e8960f 100%);
  color: var(--nextg-primary-dark);
  border: none;
  border-radius: var(--nextg-radius);
  font-family: var(--nextg-font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.1s;
}

.nextg-form-submit button:hover { opacity: 0.9; transform: translateY(-1px); }
.nextg-form-submit button:active { transform: translateY(0); }
.nextg-form-submit button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.nextg-results-page {
  min-height: 100vh;
  padding: 5rem 0 4rem;
}

.nextg-results-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.nextg-results-header h1 {
  font-size: 1.75rem;
  color: var(--nextg-foreground);
  margin-bottom: 0.5rem;
}

.nextg-results-header p {
  color: var(--nextg-muted);
}

.nextg-results-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.nextg-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--nextg-border);
  background: #fff;
  color: var(--nextg-muted);
  transition: all 0.2s;
}

.nextg-filter-btn:hover,
.nextg-filter-btn.active {
  background: var(--nextg-primary);
  color: #fff;
  border-color: var(--nextg-primary);
}

.nextg-university-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .nextg-university-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   UNIVERSITY CARD
   ============================================================ */
.nextg-uni-card {
  background: #fff;
  border-radius: var(--nextg-radius);
  border: 1px solid var(--nextg-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.nextg-uni-card:hover {
  box-shadow: 0 8px 30px rgba(30,48,104,0.12);
  transform: translateY(-2px);
}

.nextg-uni-card__header {
  background: linear-gradient(135deg, var(--nextg-primary-dark) 0%, var(--nextg-primary) 100%);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nextg-uni-card__logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nextg-font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nextg-uni-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.nextg-uni-card__name {
  font-family: var(--nextg-font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
}

.nextg-uni-card__type {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

.nextg-uni-card__body {
  padding: 1rem;
}

.nextg-uni-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.nextg-uni-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--nextg-background);
  color: var(--nextg-muted);
  border: 1px solid var(--nextg-border);
}

.nextg-uni-card__gpa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--nextg-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--nextg-border);
}

.nextg-uni-card__gpa-value {
  font-weight: 700;
  color: var(--nextg-foreground);
}

.nextg-uni-card__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--nextg-border);
}

.nextg-uni-card__link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nextg-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.nextg-uni-card__link:hover { color: var(--nextg-accent); opacity: 1; }

/* ============================================================
   NOTICES PAGE
   ============================================================ */
.nextg-notices-page {
  min-height: 100vh;
  padding: 5rem 0 4rem;
}

.nextg-page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--nextg-primary-dark), var(--nextg-primary));
  text-align: center;
  margin-bottom: 3rem;
}

.nextg-page-header h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.nextg-page-header p { color: rgba(255,255,255,0.6); }

.nextg-notices-list { display: flex; flex-direction: column; gap: 1rem; }

.nextg-notice-card {
  background: #fff;
  border-radius: var(--nextg-radius);
  border: 1px solid var(--nextg-border);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.nextg-notice-card:hover { box-shadow: 0 4px 20px rgba(30,48,104,0.08); }

.nextg-notice-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(245,166,35,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nextg-notice-card__icon svg { width: 1.1rem; height: 1.1rem; color: var(--nextg-accent); }

.nextg-notice-card__content { flex: 1; }

.nextg-notice-card__title {
  font-family: var(--nextg-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nextg-foreground);
  margin-bottom: 0.35rem;
}

.nextg-notice-card__excerpt {
  font-size: 0.85rem;
  color: var(--nextg-muted);
  line-height: 1.6;
}

.nextg-notice-card__date {
  font-size: 0.75rem;
  color: var(--nextg-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   COUNTRIES PAGE
   ============================================================ */
.nextg-countries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) { .nextg-countries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .nextg-countries-grid { grid-template-columns: repeat(4, 1fr); } }

.nextg-country-card {
  background: #fff;
  border-radius: var(--nextg-radius);
  border: 1px solid var(--nextg-border);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.nextg-country-card:hover {
  box-shadow: 0 8px 30px rgba(30,48,104,0.12);
  transform: translateY(-2px);
}

.nextg-country-card__flag {
  font-size: 2.5rem;
  margin-bottom: 0.625rem;
}

.nextg-country-card__name {
  font-family: var(--nextg-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--nextg-foreground);
  margin-bottom: 0.25rem;
}

.nextg-country-card__count {
  font-size: 0.75rem;
  color: var(--nextg-muted);
}

/* ============================================================
   SINGLE UNIVERSITY PAGE
   ============================================================ */
.nextg-uni-detail {
  min-height: 100vh;
  padding-top: 4rem;
}

.nextg-uni-detail__hero {
  background: linear-gradient(135deg, var(--nextg-primary-dark), var(--nextg-primary));
  padding: 3rem 0;
}

.nextg-uni-detail__hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nextg-uni-detail__hero-logo {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nextg-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.nextg-uni-detail__hero-logo img { width: 100%; height: 100%; object-fit: contain; }

.nextg-uni-detail__hero-info h1 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.nextg-uni-detail__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nextg-uni-detail__hero-meta span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nextg-uni-detail__body { padding: 2rem 0; }

.nextg-uni-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nextg-uni-detail__grid { grid-template-columns: 2fr 1fr; }
}

.nextg-detail-card {
  background: #fff;
  border-radius: var(--nextg-radius);
  border: 1px solid var(--nextg-border);
  padding: 1.5rem;
}

.nextg-detail-card h2 {
  font-size: 1.1rem;
  color: var(--nextg-foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--nextg-border);
}

.nextg-detail-list { display: flex; flex-direction: column; gap: 0.75rem; }

.nextg-detail-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.nextg-detail-list__label { color: var(--nextg-muted); }
.nextg-detail-list__value { font-weight: 600; color: var(--nextg-foreground); }

/* ============================================================
   AUTH FORM
   ============================================================ */
.nextg-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 2rem;
  background: var(--nextg-background);
}

.nextg-auth-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid var(--nextg-border);
  padding: 2rem;
  width: 100%;
  max-width: 26rem;
  box-shadow: 0 8px 40px rgba(30,48,104,0.1);
}

.nextg-auth-card__header { text-align: center; margin-bottom: 1.75rem; }

.nextg-auth-card__logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--nextg-accent), #e8960f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.nextg-auth-card__logo svg { width: 1.5rem; height: 1.5rem; }

.nextg-auth-card h2 {
  font-size: 1.375rem;
  color: var(--nextg-foreground);
  margin-bottom: 0.35rem;
}

.nextg-auth-card p { font-size: 0.875rem; color: var(--nextg-muted); }

.nextg-auth-form { display: flex; flex-direction: column; gap: 1rem; }

.nextg-auth-form .nextg-form-field label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  color: var(--nextg-foreground);
  font-weight: 500;
}

.nextg-auth-divider {
  text-align: center;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--nextg-muted);
  position: relative;
}

.nextg-auth-divider::before,
.nextg-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--nextg-border);
}

.nextg-auth-divider::before { left: 0; }
.nextg-auth-divider::after { right: 0; }

/* ============================================================
   ALERTS & MESSAGES
   ============================================================ */
.nextg-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--nextg-radius);
  font-size: 0.875rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.nextg-alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #166534;
}

.nextg-alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #991b1b;
}

/* ============================================================
   FOOTER
   ============================================================ */
.nextg-footer {
  border-top: 1px solid var(--nextg-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--nextg-muted);
  font-size: 0.875rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.nextg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.nextg-pagination a,
.nextg-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--nextg-border);
  background: #fff;
  color: var(--nextg-foreground);
  text-decoration: none;
  transition: all 0.2s;
}

.nextg-pagination a:hover,
.nextg-pagination .current {
  background: var(--nextg-primary);
  color: #fff;
  border-color: var(--nextg-primary);
  opacity: 1;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.nextg-search-box {
  position: relative;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.nextg-search-box input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--nextg-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--nextg-font-sans);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nextg-search-box input:focus {
  border-color: var(--nextg-accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.nextg-search-box__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nextg-muted);
  pointer-events: none;
}

.nextg-search-box__icon svg { width: 1rem; height: 1rem; }

/* ============================================================
   NO RESULTS
   ============================================================ */
.nextg-no-results {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--nextg-muted);
}

.nextg-no-results svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

.nextg-no-results h3 {
  font-size: 1.1rem;
  color: var(--nextg-foreground);
  margin-bottom: 0.5rem;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.nextg-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nextg-spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes nextg-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes nextg-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nextg-animate-fade-in {
  animation: nextg-fade-in-up 0.6s ease forwards;
}

.nextg-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.nextg-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.nextg-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--nextg-radius); }

.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .nextg-hero__headline { font-size: 1.75rem; }
  .nextg-form-grid { grid-template-columns: 1fr; }
}
