/*
Theme Name: GIA Press Light
Theme URI: https://giapress.com
Author: GIA Press Engineering
Author URI: https://giapress.com
Description: SpringerLink-inspired ultra-fast academic publishing platform for GIA Press. Built with semantic HTML5, pure CSS, zero page-builder bloat, and pristine typography (EB Garamond & IBM Plex Sans).
Version: 1.1.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: giapress-light
*/

/* ==========================================================================
   1. SPRINGERLINK DESIGN TOKENS & TYPOGRAPHY
   ========================================================================== */
:root {
  /* Typography */
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* SpringerLink Inspired Palette */
  --color-primary: #0f172a;        /* Deep Academic Navy / Charcoal */
  --color-primary-light: #1e293b;  /* Slate 800 */
  --color-springer-blue: #005580;  /* Springer Classic Scholarly Blue */
  --color-springer-blue-hover: #003853;
  --color-accent: #ff006e;         /* Vibrant Magenta / Coral Accent */
  --color-accent-hover: #e50063;
  --color-gold: #d97706;           /* Amber / Gold */
  --color-gold-bg: #fef3c7;
  --color-emerald: #166534;        /* Open Access Green */
  --color-emerald-bg: #dcfce7;
  
  /* Backgrounds & Neutrals */
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-card: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-hero-bg: #f1f5f9;
  
  /* Typography Colors */
  --color-text-main: #1e293b;
  --color-text-muted: #475569;
  --color-text-subtle: #64748b;
  --color-text-inverse: #ffffff;
  
  /* Borders & Shadows */
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  
  /* Sizing & Layout */
  --container-max: 1220px;
  --container-narrow: 840px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  font-size-adjust: from-font;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-springer-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Headings with EB Garamond */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.4rem, 2rem + 1.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.55rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }

p {
  margin-bottom: 1.2em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.gp-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.gp-container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   3. SPRINGERLINK STYLE HEADER & TOPBAR
   ========================================================================== */
.gp-top-meta-bar {
  background-color: var(--color-primary);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gp-top-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gp-top-meta-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.gp-top-meta-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.gp-top-meta-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.gp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.gp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.gp-brand-symbol {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-springer-blue) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
}

.gp-brand-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}

.gp-brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-springer-blue);
  font-weight: 700;
}

.gp-nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gp-main-nav {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.gp-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 6px;
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

.gp-nav-link:hover {
  color: var(--color-springer-blue);
}

.gp-header-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--color-springer-blue);
  color: var(--color-springer-blue) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.gp-header-btn-outline:hover {
  background-color: var(--color-springer-blue);
  color: #ffffff !important;
}

.gp-header-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: var(--color-accent);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.gp-header-btn-cta:hover {
  background-color: var(--color-accent-hover);
}

.gp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ==========================================================================
   4. SPRINGERLINK HERO SECTION (Home for all research + Search Bar - Image 2)
   ========================================================================== */
.sl-hero {
  background: #002b49 url('assets/images/hero-fluid.jpg') no-repeat right center / cover;
  position: relative;
  padding: 68px 0 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  overflow: hidden;
}

.sl-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #002b49 0%, rgba(0, 43, 73, 0.95) 45%, rgba(0, 43, 73, 0.4) 80%, rgba(0, 43, 73, 0.1) 100%);
  pointer-events: none;
}

.sl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.sl-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 2rem + 1.8vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sl-hero-subtitle {
  font-size: 1.12rem;
  color: #e2e8f0;
  margin-bottom: 22px;
  line-height: 1.5;
  font-weight: 400;
}

/* Big Search Bar (Image 2 style) */
.sl-search-container {
  max-width: 680px;
  margin-bottom: 14px;
}

.sl-search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.sl-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: #0f172a;
  background: transparent;
}

.sl-search-input::placeholder {
  color: #64748b;
}

.sl-search-btn {
  background: transparent;
  color: #005580;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.sl-search-btn:hover {
  color: #003859;
  transform: scale(1.08);
}

.sl-search-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.sl-hero-advanced {
  margin-bottom: 34px;
}

.sl-hero-advanced a {
  color: #ffffff;
  font-size: 0.92rem;
  text-decoration: underline;
  font-weight: 600;
}

.sl-hero-advanced a:hover {
  color: #bae6fd;
}

/* 3 Hero Metric Counters (Image 2) */
.sl-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 680px;
}

.sl-stat-item {
  display: flex;
  flex-direction: column;
}

.sl-stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sl-stat-label {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.3;
}

/* ==========================================================================
   5. THREE OVERVIEW CARDS WITH REAL PHOTOS (Image 2)
   ========================================================================== */
.sl-overview-section {
  padding: 44px 0 54px 0;
  background-color: #ffffff;
}

.sl-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}

.sl-overview-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.sl-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.sl-overview-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #0f172a;
}

.sl-overview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.sl-overview-card:hover .sl-overview-thumb img {
  transform: scale(1.05);
}

.sl-overview-content {
  padding: 24px 24px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sl-overview-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
  line-height: 1.25;
}

.sl-overview-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.sl-overview-title a:hover {
  color: var(--color-springer-blue);
  text-decoration: underline;
}

/* ==========================================================================
   5B. OUR BRANDS ROW (Image 2)
   ========================================================================== */
.sl-brands-section {
  padding: 32px 0 44px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sl-brands-header {
  margin-bottom: 20px;
}

.sl-brands-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.sl-brands-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.sl-brand-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none !important;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sl-brand-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.sl-brand-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #005580;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

/* ==========================================================================
   6. CALL FOR PAPERS (SpringerLink Style)
   ========================================================================== */
.sl-section {
  padding: 70px 0;
}

.sl-section-alt {
  background-color: var(--color-surface);
}

.sl-section-header {
  margin-bottom: 36px;
}

.sl-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sl-section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.sl-cfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sl-cfp-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.sl-cfp-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-springer-blue);
  box-shadow: var(--shadow-md);
}

.sl-cfp-journal-badge {
  display: inline-block;
  padding: 3px 8px;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.sl-cfp-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.sl-cfp-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.sl-cfp-title a:hover {
  color: var(--color-springer-blue);
  text-decoration: underline;
}

.sl-cfp-deadline {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin-bottom: 18px;
}

.sl-cfp-deadline strong {
  color: var(--color-text-main);
}

.sl-cfp-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
}

/* ==========================================================================
   7. FEATURED JOURNALS (SpringerLink Grid)
   ========================================================================== */
.sl-journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sl-journal-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.sl-journal-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
}

.sl-journal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sl-journal-acronym {
  padding: 4px 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sl-journal-badge-oa {
  padding: 3px 8px;
  background-color: var(--color-emerald-bg);
  color: var(--color-emerald);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.sl-journal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.sl-journal-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.sl-journal-title a:hover {
  color: var(--color-springer-blue);
  text-decoration: underline;
}

.sl-journal-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.sl-journal-meta {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.sl-journal-buttons {
  display: flex;
  gap: 10px;
}

.sl-btn-sm {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.sl-btn-blue {
  background-color: var(--color-springer-blue);
  color: #ffffff !important;
}

.sl-btn-blue:hover {
  background-color: var(--color-springer-blue-hover);
}

.sl-btn-accent {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

.sl-btn-accent:hover {
  background-color: var(--color-accent-hover);
}

.sl-btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-primary) !important;
  background: var(--color-surface);
}

.sl-btn-outline:hover {
  background: #ffffff;
  border-color: var(--color-springer-blue);
  color: var(--color-springer-blue) !important;
}

/* ==========================================================================
   8. BROWSE BY SUBJECT (SpringerLink 3-column list)
   ========================================================================== */
.sl-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
}

.sl-subject-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-springer-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

.sl-subject-link:hover {
  color: var(--color-accent);
}

.sl-subject-count {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  font-weight: normal;
}

/* ==========================================================================
   9. TRENDING RESEARCH / RECENT ARTICLES (SpringerLink Architecture)
   ========================================================================== */
.sl-trending-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sl-tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sl-tab-btn:hover {
  border-color: var(--color-springer-blue);
  color: var(--color-springer-blue);
}

.sl-tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.sl-tab-count {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
}

.sl-tab-btn.active .sl-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sl-journal-source-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.sl-trending-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sl-article-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.sl-article-item:hover {
  border-color: var(--color-springer-blue);
  box-shadow: var(--shadow-md);
}

.sl-article-main {
  flex: 1;
}

.sl-article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sl-article-type {
  color: var(--color-springer-blue);
}

.sl-article-oa-badge {
  color: var(--color-emerald);
}

.sl-article-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.sl-article-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.sl-article-title a:hover {
  color: var(--color-springer-blue);
  text-decoration: underline;
}

.sl-article-authors {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.sl-article-citation {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.sl-article-citation strong {
  color: var(--color-primary);
}

.sl-article-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
}

/* ==========================================================================
   10. SPRINGERLINK FOOTER
   ========================================================================== */
.sl-footer {
  background-color: var(--color-primary);
  color: #94a3b8;
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

.sl-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 48px;
}

.sl-footer-col h4 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.sl-footer-links {
  list-style: none;
}

.sl-footer-links li {
  margin-bottom: 10px;
}

.sl-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sl-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sl-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .sl-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sl-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .gp-mobile-toggle {
    display: block;
  }
  .gp-nav-wrap {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
  }
  .gp-nav-wrap.is-open {
    display: flex;
  }
  .gp-main-nav {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }
  .sl-subjects-grid {
    grid-template-columns: 1fr;
  }
  .sl-article-item {
    flex-direction: column;
  }
  .sl-footer-grid {
    grid-template-columns: 1fr;
  }
  .sl-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   12. MODERN GIA PRESS LOGIN MODAL (EDITORIAL PORTAL)
   ========================================================================== */
.gp-login-btn-trigger {
  color: var(--color-primary);
  font-weight: 700;
  transition: all 0.18s ease;
}
.gp-login-btn-trigger:hover {
  color: var(--color-accent);
  background: rgba(255, 0, 110, 0.06) !important;
}

.gp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gp-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  z-index: 1;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-modal.is-active .gp-modal-card {
  transform: scale(1) translateY(0);
}

.gp-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.gp-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.gp-modal-header {
  margin-bottom: 22px;
  text-align: left;
}

.gp-modal-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.gp-modal-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.gp-modal-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}

.gp-modal-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gp-modal-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.gp-modal-alert.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.gp-form-group {
  margin-bottom: 18px;
}

.gp-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.gp-form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.gp-form-label-row .gp-form-label {
  margin-bottom: 0;
}

.gp-link-forgot {
  font-size: 0.78rem;
  color: var(--color-springer-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.gp-link-forgot:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.gp-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gp-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.gp-input-field {
  width: 100%;
  padding: 11px 14px 11px 42px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-text-main);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.18s ease;
}

.gp-input-field:focus {
  background: #ffffff;
  border-color: var(--color-springer-blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 128, 0.15);
}

.gp-toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.18s ease;
}

.gp-toggle-pass:hover {
  color: var(--color-text-main);
}

.gp-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.gp-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.gp-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-springer-blue);
  cursor: pointer;
}

.gp-btn-submit {
  width: 100%;
  padding: 12px 20px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.gp-btn-submit:hover:not(:disabled) {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24);
}

.gp-btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.gp-btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-spinner-svg {
  animation: gp-spin 0.85s linear infinite;
}

@keyframes gp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gp-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
  text-align: center;
}

