/*
Theme Name: GuardPress
Theme URI: https://saweria.co/rifanmuazin
Author: Rifan Muazin
Author URI: https://saweria.co/rifanmuazin
Description: A premium, ultra-fast, pixel-perfect editorial WordPress theme inspired by The Guardian International design, featuring rich typography, dynamic category segments, scrollable breaking news pills, responsive mega-menu, left/right sidebar single view, and complete customizable components.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guardpress
Tags: news, magazine, grid-layout, custom-menu, featured-images, theme-options, translation-ready
*/

/* -------------------------------------------------------------
 * 1. DESIGN TOKENS & CSS VARIABLES (Guardian Color & Type Palette)
 * ------------------------------------------------------------- */
:root {
  --gp-navy-dark: #041f4a;
  --gp-navy: #052962;
  --gp-navy-light: #506991;
  --gp-navy-subtle: #f1f8fc;
  --gp-yellow: #ffe500;
  --gp-yellow-hover: #ffd900;
  --gp-red: #c70000;
  --gp-red-dark: #ab0613;
  --gp-red-light: #fff4f2;
  --gp-sport-blue: #0077b6;
  --gp-sport-dark: #005689;
  --gp-culture-brown: #866d50;
  --gp-culture-gold: #a1845c;
  --gp-lifestyle-pink: #bb3b80;
  --gp-opinion-orange: #e05e00;
  --gp-opinion-bg: #fef9f5;
  --gp-green: #22874d;
  
  --gp-text-main: #121212;
  --gp-text-subdued: #333333;
  --gp-text-meta: #707070;
  --gp-text-inverse: #ffffff;
  
  --gp-bg-body: #ffffff;
  --gp-bg-card: #f6f6f6;
  --gp-bg-card-alt: #ededed;
  --gp-border-main: #dcdcdc;
  --gp-border-dark: #121212;
  --gp-border-subtle: #eaeaea;

  --gp-font-headline: "GH Guardian Headline", "Guardian Egyptian Web", "Merriweather", "Playfair Display", Georgia, serif;
  --gp-font-text: "Guardian Text Egyptian Web", "GuardianTextEgyptian", "Lora", Georgia, serif;
  --gp-font-sans: "Guardian Text Sans Web", "GuardianTextSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --gp-max-width: 1300px;
  --gp-container-pad: 16px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--gp-bg-body);
  color: var(--gp-text-main);
  font-family: var(--gp-font-sans);
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
}

.gp-container {
  max-width: var(--gp-max-width);
  margin: 0 auto;
  padding-left: var(--gp-container-pad);
  padding-right: var(--gp-container-pad);
}

.gp-section-rule {
  border-top: 1px solid var(--gp-border-main);
  margin-top: 24px;
  margin-bottom: 0;
}

/* -------------------------------------------------------------
 * 3. TOP UTILITY BAR & HEADER
 * ------------------------------------------------------------- */
.gp-header {
  background-color: var(--gp-navy);
  color: var(--gp-text-inverse);
  position: relative;
  z-index: 50;
}

.gp-top-bar {
  background-color: var(--gp-navy-dark);
  border-bottom: 1px solid rgba(80, 105, 145, 0.4);
  font-size: 0.8125rem;
  padding: 6px 0;
}

.gp-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gp-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #dcdcdc;
}

.gp-date-badge {
  font-weight: 500;
  letter-spacing: 0.2px;
}

.gp-edition-tag {
  color: #a0b6d6;
  border-left: 1px solid var(--gp-navy-light);
  padding-left: 14px;
}

.gp-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-support-btn {
  background-color: var(--gp-yellow);
  color: var(--gp-navy);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.gp-support-btn:hover {
  background-color: var(--gp-yellow-hover);
  color: #000000;
  transform: translateY(-1px);
}

.gp-search-toggle-btn {
  background: transparent;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s ease;
}

.gp-search-toggle-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* -------------------------------------------------------------
 * 4. HEADER BRAND & TITLE
 * ------------------------------------------------------------- */
.gp-brand-bar {
  padding: 16px 0 10px 0;
}

.gp-brand-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.custom-logo-link {
  display: inline-block;
  line-height: 1;
}

.custom-logo-link img,
.custom-logo,
.gp-brand-bar .custom-logo-link img {
  max-width: var(--gp-logo-max-width, 260px);
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.gp-site-title {
  font-family: var(--gp-font-headline);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 0.95;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) {
  .gp-site-title {
    font-size: 4.2rem;
  }
}

.gp-site-title a:hover {
  color: #f6f6f6;
}

.gp-site-tagline {
  font-size: 0.8125rem;
  color: #a0b6d6;
  margin-top: 4px;
  font-family: var(--gp-font-sans);
}

/* -------------------------------------------------------------
 * 5. TOP SCROLLABLE BREAKING / RANDOM NEWS PILLS
 * ------------------------------------------------------------- */
.gp-breaking-scroller {
  background-color: #03183b;
  border-top: 1px solid rgba(80, 105, 145, 0.4);
  border-bottom: 1px solid rgba(80, 105, 145, 0.4);
  padding: 12px 0;
  position: relative;
}

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

.gp-pill-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 6px 2px;
}

.gp-pill-track::-webkit-scrollbar {
  display: none;
}

.gp-pill-item {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 8px 18px 8px 8px !important;
  border-radius: 60px !important;
  width: 380px !important;
  max-width: 440px !important;
  min-height: 96px !important;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease !important;
}

.gp-pill-item:hover {
  background-color: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--gp-yellow) !important;
  transform: translateY(-2px) !important;
}

.gp-breaking-scroller .gp-pill-thumb,
.gp-pill-item img.gp-pill-thumb,
img.gp-pill-thumb {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 2.5px solid var(--gp-yellow) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
  display: block !important;
}

.gp-pill-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: center;
}

.gp-pill-kicker {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--gp-yellow);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.gp-pill-title {
  font-family: var(--gp-font-headline);
  font-size: 0.9375rem;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.gp-scroller-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: var(--gp-yellow);
  color: var(--gp-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.gp-scroller-btn:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.gp-scroller-left {
  left: 4px;
}

.gp-scroller-right {
  right: 4px;
}

/* -------------------------------------------------------------
 * 6. PRIMARY NAVIGATION BAR & MEGA MENU
 * ------------------------------------------------------------- */
.gp-main-nav {
  background-color: var(--gp-navy);
  border-top: 1px solid var(--gp-navy-light);
}

.gp-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.gp-nav-list {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.gp-nav-list::-webkit-scrollbar {
  display: none;
}

.gp-nav-item a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 12px 18px;
  color: #ffffff;
  font-family: var(--gp-font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  border-right: 1px solid rgba(80, 105, 145, 0.35);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gp-nav-item:first-child a {
  border-left: 1px solid rgba(80, 105, 145, 0.35);
}

.gp-nav-item a:hover,
.gp-nav-item.active a {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--gp-yellow);
}

.gp-mega-toggle {
  background-color: var(--gp-yellow);
  color: var(--gp-navy);
  font-size: 1.25rem;
  font-weight: 900;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
  min-width: 54px;
}

.gp-mega-toggle:hover {
  background-color: var(--gp-yellow-hover);
}

.gp-mega-toggle .gp-icon-close {
  display: none;
}

.gp-mega-toggle.is-open .gp-icon-burger {
  display: none;
}

.gp-mega-toggle.is-open .gp-icon-close {
  display: inline-block;
}

/* Secondary Sub-nav */
.gp-subnav {
  background-color: #03183b;
  border-top: 1px solid rgba(80, 105, 145, 0.3);
  padding: 6px 0;
  font-size: 0.8125rem;
}

.gp-subnav-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.gp-subnav-list::-webkit-scrollbar {
  display: none;
}

.gp-subnav-list a {
  color: #dcdcdc;
  white-space: nowrap;
  font-weight: 500;
}

.gp-subnav-list a:hover {
  color: var(--gp-yellow);
}

/* Mega Menu Overlay */
.gp-mega-menu-overlay {
  display: none;
  background-color: var(--gp-navy-dark);
  color: #ffffff;
  border-top: 2px solid var(--gp-yellow);
  padding: 32px 0 48px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gp-mega-menu-overlay.is-active {
  display: block;
}

.gp-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}

.gp-mega-col-title {
  font-family: var(--gp-font-headline);
  font-size: 1.25rem;
  color: var(--gp-yellow);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gp-navy-light);
  padding-bottom: 6px;
}

.gp-mega-links li {
  margin-bottom: 8px;
}

.gp-mega-links a {
  color: #dcdcdc;
  font-size: 0.875rem;
  display: block;
}

.gp-mega-links a:hover {
  color: var(--gp-yellow);
  padding-left: 4px;
}

/* -------------------------------------------------------------
 * 7. GENERAL ARTICLE CARDS & SECTION HEADERS
 * ------------------------------------------------------------- */
.gp-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--gp-border-dark);
  padding-top: 8px;
  margin-top: 36px;
  margin-bottom: 18px;
}

.gp-section-title {
  font-family: var(--gp-font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gp-text-main);
  letter-spacing: -0.5px;
}

.gp-section-title a {
  color: inherit;
}

.gp-section-title a:hover {
  color: var(--gp-red);
}

.gp-section-more {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gp-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gp-section-more:hover {
  text-decoration: underline;
}

/* Section-specific color themes */
.gp-theme-sport .gp-section-header { border-top-color: var(--gp-sport-blue); }
.gp-theme-sport .gp-section-title { color: var(--gp-sport-dark); }
.gp-theme-opinion .gp-section-header { border-top-color: var(--gp-opinion-orange); }
.gp-theme-opinion .gp-section-title { color: var(--gp-opinion-orange); }
.gp-theme-culture .gp-section-header { border-top-color: var(--gp-culture-brown); }
.gp-theme-culture .gp-section-title { color: var(--gp-culture-brown); }
.gp-theme-lifestyle .gp-section-header { border-top-color: var(--gp-lifestyle-pink); }
.gp-theme-lifestyle .gp-section-title { color: var(--gp-lifestyle-pink); }

/* Card Kicker & Meta */
.gp-kicker {
  font-weight: 700;
  color: var(--gp-red);
  margin-right: 6px;
}

.gp-theme-sport .gp-kicker { color: var(--gp-sport-blue); }
.gp-theme-culture .gp-kicker { color: var(--gp-culture-brown); }
.gp-theme-lifestyle .gp-kicker { color: var(--gp-lifestyle-pink); }
.gp-theme-opinion .gp-kicker { color: var(--gp-opinion-orange); }

.gp-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--gp-text-meta);
  margin-top: 8px;
}

.gp-card-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* -------------------------------------------------------------
 * 8. HOMEPAGE SEGMENT 1: NEWS (10 LATEST ARTICLES)
 * Layout: 1st large thumb right, 2-5 grid 1/4 size, 6th large thumb right, 7-10 grid 1/4 size
 * ------------------------------------------------------------- */
.gp-news-block {
  margin-bottom: 24px;
}

/* Lead Feature Card (Story 1 & Story 6) */
.gp-lead-card {
  background-color: var(--gp-bg-card);
  border: 1px solid var(--gp-border-main);
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.gp-lead-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.gp-lead-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gp-lead-card-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.gp-lead-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gp-lead-headline {
  font-family: var(--gp-font-headline);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--gp-text-main);
  margin-bottom: 10px;
}

@media (min-width: 992px) {
  .gp-lead-headline {
    font-size: 2rem;
  }
}

.gp-lead-headline a:hover {
  color: var(--gp-red);
}

.gp-lead-excerpt {
  font-family: var(--gp-font-text);
  font-size: 0.9375rem;
  color: var(--gp-text-subdued);
  line-height: 1.45;
  margin-bottom: 14px;
}

.gp-lead-media {
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.gp-lead-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gp-lead-card:hover .gp-lead-media img {
  transform: scale(1.02);
}

/* Secondary 4-Column Grid (Stories 2-5 & 7-10) */
.gp-news-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .gp-news-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gp-news-subgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gp-sub-card {
  background-color: #ffffff;
  border-top: 1px solid var(--gp-border-main);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gp-sub-thumb-wrap {
  margin-bottom: 10px;
  overflow: hidden;
}

.gp-sub-thumb-wrap img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gp-sub-card:hover .gp-sub-thumb-wrap img {
  transform: scale(1.03);
}

.gp-sub-headline {
  font-family: var(--gp-font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gp-text-main);
  margin-bottom: 8px;
}

.gp-sub-headline a:hover {
  color: var(--gp-red);
}

/* -------------------------------------------------------------
 * 9. HOMEPAGE: SUNDAY READ & IN FOCUS
 * ------------------------------------------------------------- */
.gp-sunday-read-wrap {
  background-color: #fbfbfb;
  border: 1px solid var(--gp-border-main);
  padding: 24px;
  margin-bottom: 24px;
}

.gp-sunday-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .gp-sunday-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.gp-sunday-feature-title {
  font-family: var(--gp-font-headline);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.gp-sunday-feature-excerpt {
  font-family: var(--gp-font-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gp-text-subdued);
}

/* -------------------------------------------------------------
 * 10. HOMEPAGE: OPINION SEGMENT (Speech Bubbles & Cutout Avatars)
 * ------------------------------------------------------------- */
.gp-opinion-section {
  background-color: var(--gp-opinion-bg);
  border-top: 2px solid var(--gp-opinion-orange);
  border-bottom: 1px solid var(--gp-border-main);
  padding: 24px 0 32px;
  margin: 32px 0;
}

.gp-opinion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .gp-opinion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gp-opinion-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gp-opinion-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 12px;
  border-right: 1px solid var(--gp-border-subtle);
}

.gp-opinion-card:last-child {
  border-right: none;
}

.gp-opinion-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-opinion-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gp-opinion-orange);
}

.gp-opinion-author-name {
  font-family: var(--gp-font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gp-opinion-orange);
}

.gp-opinion-quote-mark {
  font-family: var(--gp-font-headline);
  font-size: 2.2rem;
  line-height: 0.8;
  color: var(--gp-opinion-orange);
  font-style: italic;
}

.gp-opinion-headline {
  font-family: var(--gp-font-headline);
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--gp-text-main);
}

.gp-opinion-headline a:hover {
  color: var(--gp-opinion-orange);
}

/* -------------------------------------------------------------
 * 11. HOMEPAGE: 4-BOX GRID (What to watch, listen, read, play)
 * ------------------------------------------------------------- */
.gp-four-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 576px) {
  .gp-four-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gp-four-box-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gp-box-card {
  background-color: var(--gp-bg-card);
  border: 1px solid var(--gp-border-main);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.gp-box-title {
  font-family: var(--gp-font-headline);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--gp-text-main);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gp-border-main);
  padding-bottom: 6px;
}

.gp-box-media {
  margin-bottom: 10px;
  height: 140px;
  overflow: hidden;
}

.gp-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-box-headline {
  font-family: var(--gp-font-headline);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* -------------------------------------------------------------
 * 12. HOMEPAGE: IN PICTURES (Full visual random post)
 * ------------------------------------------------------------- */
.gp-in-pictures-wrap {
  position: relative;
  background-color: #000000;
  color: #ffffff;
  overflow: hidden;
  margin: 32px 0;
}

.gp-in-pictures-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gp-in-pictures-wrap:hover .gp-in-pictures-img {
  opacity: 0.95;
}

.gp-in-pictures-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.95));
  padding: 40px 24px 20px;
}

.gp-in-pictures-kicker {
  color: var(--gp-yellow);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gp-in-pictures-title {
  font-family: var(--gp-font-headline);
  font-size: 1.625rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

/* -------------------------------------------------------------
 * 13. HOMEPAGE: MOST POPULAR (Most Viewed & Deeply Read)
 * ------------------------------------------------------------- */
.gp-most-popular-section {
  background-color: var(--gp-bg-card);
  border-top: 1px solid var(--gp-border-dark);
  border-bottom: 1px solid var(--gp-border-main);
  padding: 24px 0 32px;
  margin: 32px 0;
}

.gp-popular-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .gp-popular-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.gp-numbered-list {
  counter-reset: gp-pop-counter;
}

.gp-numbered-item {
  counter-increment: gp-pop-counter;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--gp-border-main);
  padding: 12px 0;
}

.gp-numbered-item:last-child {
  border-bottom: none;
}

.gp-numbered-item::before {
  content: counter(gp-pop-counter);
  font-family: var(--gp-font-headline);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gp-red);
  line-height: 1;
  min-width: 24px;
}

.gp-numbered-headline {
  font-family: var(--gp-font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gp-text-main);
}

.gp-numbered-headline a:hover {
  color: var(--gp-red);
}

/* -------------------------------------------------------------
 * 14. SINGLE POST VIEW (`single.php`)
 * 3 Column / Sidebar Left + Main Content + Sidebar Right
 * ------------------------------------------------------------- */
.gp-single-article {
  padding-top: 24px;
  padding-bottom: 48px;
}

.gp-single-header {
  border-bottom: 1px solid var(--gp-border-main);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.gp-single-category {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gp-red);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.gp-single-title {
  font-family: var(--gp-font-headline);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--gp-text-main);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .gp-single-title {
    font-size: 3rem;
  }
}

.gp-single-standfirst {
  font-family: var(--gp-font-headline);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--gp-text-subdued);
  line-height: 1.4;
}

.gp-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .gp-single-layout {
    grid-template-columns: 220px 1fr 300px;
  }
}

/* Left Sidebar: Next/Prev Post, Author, Date, Share */
.gp-single-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.8125rem;
}

.gp-nav-post-box {
  background-color: var(--gp-bg-card);
  border: 1px solid var(--gp-border-main);
  padding: 12px;
  border-radius: 4px;
}

.gp-nav-post-label {
  font-weight: 800;
  color: var(--gp-red);
  text-transform: uppercase;
  font-size: 0.6875rem;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.gp-nav-post-title {
  font-family: var(--gp-font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.gp-nav-post-title a:hover {
  color: var(--gp-red);
}

.gp-nav-post-thumb {
  margin-top: 8px;
  height: 80px;
  overflow: hidden;
  border-radius: 2px;
}

.gp-nav-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-author-meta-box {
  border-top: 1px solid var(--gp-border-main);
  border-bottom: 1px solid var(--gp-border-main);
  padding: 14px 0;
}

.gp-author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.gp-author-name {
  font-weight: 700;
  color: var(--gp-text-main);
}

.gp-post-date {
  color: var(--gp-text-meta);
  margin-top: 4px;
}

.gp-reading-time {
  color: var(--gp-text-meta);
  margin-top: 2px;
}

/* Floating / Left Share Buttons */
.gp-share-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 992px) {
  .gp-share-buttons {
    flex-direction: column;
  }
}

.gp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--gp-border-main);
  background-color: #ffffff;
  color: var(--gp-text-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gp-share-btn:hover {
  background-color: var(--gp-navy);
  color: #ffffff;
  border-color: var(--gp-navy);
}

.gp-share-btn.gp-btn-copied {
  background-color: var(--gp-green);
  color: #ffffff;
}

/* Main Article Content Styling */
.gp-single-main {
  min-width: 0;
}

.gp-single-featured-media {
  margin-bottom: 24px;
}

.gp-single-featured-media img {
  width: 100%;
  border-radius: 2px;
}

.gp-media-caption {
  font-size: 0.75rem;
  color: var(--gp-text-meta);
  margin-top: 6px;
  line-height: 1.35;
  border-left: 2px solid var(--gp-border-main);
  padding-left: 8px;
}

.gp-article-body {
  font-family: var(--gp-font-text);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: #121212;
}

.gp-article-body p {
  margin-bottom: 1.35em;
}

.gp-article-body p:first-of-type::first-letter {
  font-family: var(--gp-font-headline);
  font-size: 3.5rem;
  line-height: 0.8;
  float: left;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 4px;
  font-weight: 800;
  color: var(--gp-red);
}

.gp-article-body h2, .gp-article-body h3, .gp-article-body h4 {
  font-family: var(--gp-font-headline);
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--gp-text-main);
}

.gp-article-body blockquote {
  border-left: 4px solid var(--gp-red);
  padding: 12px 20px;
  margin: 1.8em 0;
  background-color: var(--gp-bg-card);
  font-family: var(--gp-font-headline);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gp-text-main);
}

.gp-article-body a {
  color: var(--gp-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gp-article-body a:hover {
  color: var(--gp-red-dark);
}

/* Post Tags */
.gp-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--gp-border-main);
}

.gp-tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--gp-bg-card);
  border: 1px solid var(--gp-border-main);
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--gp-text-subdued);
}

.gp-tag-pill:hover {
  background-color: var(--gp-navy);
  color: #ffffff;
}

/* Right Sidebar: Guardian Most Viewed / Numbered Blocks */
.gp-single-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gp-guardian-sidebar-block {
  background-color: var(--gp-bg-card);
  border-top: 3px solid var(--gp-red);
  border-bottom: 1px solid var(--gp-border-main);
  padding: 16px 18px 20px;
}

.gp-guardian-sidebar-block.gp-block-navy {
  border-top-color: var(--gp-navy);
}

.gp-guardian-sidebar-block.gp-block-orange {
  border-top-color: var(--gp-opinion-orange);
}

.gp-guardian-sidebar-title {
  font-family: var(--gp-font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gp-text-main);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.gp-guardian-numbered-list {
  counter-reset: gp-side-counter;
}

.gp-guardian-numbered-item {
  counter-increment: gp-side-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--gp-border-main);
  padding: 12px 0;
}

.gp-guardian-numbered-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gp-guardian-numbered-item:first-child {
  padding-top: 0;
}

.gp-guardian-numbered-item::before {
  content: counter(gp-side-counter);
  font-family: var(--gp-font-headline);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gp-red);
  line-height: 0.9;
  min-width: 24px;
  text-align: center;
}

.gp-block-navy .gp-guardian-numbered-item::before {
  color: var(--gp-navy);
}

.gp-block-orange .gp-guardian-numbered-item::before {
  color: var(--gp-opinion-orange);
}

.gp-guardian-numbered-content {
  flex: 1;
}

.gp-guardian-numbered-headline {
  font-family: var(--gp-font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gp-text-main);
}

.gp-guardian-numbered-headline a:hover {
  color: var(--gp-red);
}

.gp-sidebar-widget {
  background-color: var(--gp-bg-card);
  border: 1px solid var(--gp-border-main);
  padding: 16px;
}

.gp-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gp-red);
  margin-bottom: 14px;
}

.gp-tab-btn {
  flex: 1;
  background: transparent;
  padding: 8px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gp-text-meta);
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}

.gp-tab-btn.is-active {
  color: var(--gp-red);
  border-bottom-color: var(--gp-red);
  background-color: rgba(199, 0, 0, 0.05);
}

.gp-tab-pane {
  display: none;
}

.gp-tab-pane.is-active {
  display: block;
}

.gp-sidebar-list-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gp-border-main);
}

.gp-sidebar-list-item:last-child {
  border-bottom: none;
}

.gp-sidebar-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.gp-sidebar-headline {
  font-family: var(--gp-font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.gp-sidebar-headline a:hover {
  color: var(--gp-red);
}

/* Bottom Sections in Single: Related News, More from Category */
.gp-single-bottom-section {
  border-top: 1px solid var(--gp-border-dark);
  padding-top: 24px;
  margin-top: 40px;
}

/* -------------------------------------------------------------
 * 15. SEARCH & CATEGORY ARCHIVE PAGES
 * ------------------------------------------------------------- */
.gp-archive-header {
  background-color: var(--gp-bg-card);
  border-top: 2px solid var(--gp-navy);
  border-bottom: 1px solid var(--gp-border-main);
  padding: 24px 0;
  margin-bottom: 32px;
}

.gp-archive-title {
  font-family: var(--gp-font-headline);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gp-text-main);
}

.gp-archive-desc {
  font-size: 0.9375rem;
  color: var(--gp-text-subdued);
  margin-top: 6px;
}

.gp-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .gp-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gp-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pagination */
.gp-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.gp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gp-border-main);
  background-color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gp-text-main);
  border-radius: 4px;
}

.gp-pagination .page-numbers.current {
  background-color: var(--gp-navy);
  color: #ffffff;
  border-color: var(--gp-navy);
}

.gp-pagination .page-numbers:hover:not(.current) {
  background-color: var(--gp-yellow);
  color: var(--gp-navy);
}

/* -------------------------------------------------------------
 * 16. MEGA FOOTER (5 Boxes / Columns & Copyright)
 * ------------------------------------------------------------- */
.gp-footer {
  background-color: var(--gp-navy);
  color: #ffffff;
  margin-top: 64px;
  border-top: 1px solid var(--gp-navy-light);
}

.gp-footer-nav {
  border-bottom: 1px solid rgba(80, 105, 145, 0.4);
  padding: 14px 0;
}

.gp-footer-back-to-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.gp-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--gp-yellow);
  font-weight: 700;
}

.gp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0 48px;
}

@media (min-width: 576px) {
  .gp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gp-footer-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr) 1.2fr;
  }
}

.gp-footer-col-title {
  font-family: var(--gp-font-headline);
  font-size: 1.125rem;
  color: var(--gp-yellow);
  margin-bottom: 14px;
  font-weight: 700;
}

.gp-footer-links li {
  margin-bottom: 8px;
}

.gp-footer-links a {
  color: #dcdcdc;
  font-size: 0.8125rem;
  transition: color 0.15s ease;
}

.gp-footer-links a:hover {
  color: var(--gp-yellow);
  text-decoration: underline;
}

/* Box 1: Newsletter Subscribe */
.gp-newsletter-box p {
  font-size: 0.8125rem;
  color: #dcdcdc;
  margin-bottom: 12px;
  line-height: 1.4;
}

.gp-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-newsletter-input {
  background: #ffffff;
  color: #121212;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  width: 100%;
}

.gp-newsletter-btn {
  background-color: var(--gp-yellow);
  color: var(--gp-navy);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease;
}

.gp-newsletter-btn:hover {
  background-color: var(--gp-yellow-hover);
}

/* Box 5: Site Logo & Support CTA */
.gp-footer-brand-title {
  font-family: var(--gp-font-headline);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
}

.gp-footer-support-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 6px;
  margin-top: 12px;
}

.gp-footer-support-box p {
  font-size: 0.8125rem;
  color: #dcdcdc;
  margin-bottom: 10px;
}

/* Bottom Copyright Bar */
.gp-bottom-bar {
  background-color: var(--gp-navy-dark);
  border-top: 1px solid rgba(80, 105, 145, 0.4);
  padding: 20px 0;
  font-size: 0.75rem;
  color: #a0b6d6;
  text-align: center;
}

.gp-bottom-bar p {
  margin: 0;
}

/* -------------------------------------------------------------
 * 17. RESPONSIVE UTILITIES & ACCESSIBILITY
 * ------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 767px) {
  .gp-hide-mobile {
    display: none !important;
  }
}
