/*
Theme Name: AGT Magazine
Theme URI: https://example.com/agt-magazine
Author: AGT Theme Team
Author URI: https://example.com
Description: A stylish and powerful mobile-first WordPress theme crafted for America's Got Talent news, magazines, newspapers and personal blogs. Features a magazine homepage layout, 4 different blog listing styles, author details box, related posts, and full color customization.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agt-magazine
Tags: news, magazine, blog, mobile-first, responsive, custom-colors, custom-menu, featured-images, post-formats, translation-ready
*/

/* =========================================================
   AGT MAGAZINE THEME — MOBILE-FIRST STYLESHEET
   Brand Colors:
     Primary Red:   #CC0000
     Deep Red:      #990000
     Gold/Star:     #FFD700
     Dark BG:       #111111
     Light BG:      #F5F5F5
     White:         #FFFFFF
     Text Dark:     #1A1A1A
     Text Muted:    #666666
     Border:        #E0E0E0
   ========================================================= */

/* =========================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================= */
:root {
  --agt-primary:        #CC0000;
  --agt-primary-dark:   #990000;
  --agt-gold:           #FFD700;
  --agt-dark:           #111111;
  --agt-bg-light:       #F5F5F5;
  --agt-white:          #FFFFFF;
  --agt-text:           #1A1A1A;
  --agt-muted:          #666666;
  --agt-border:         #E0E0E0;
  --agt-accent:         #0057A8;

  --font-heading:       'Oswald', 'Arial Black', sans-serif;
  --font-body:          'Roboto', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:          4px;
  --radius-md:          8px;
  --radius-lg:          16px;

  --shadow-sm:          0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:          0 4px 16px rgba(0,0,0,0.14);
  --shadow-lg:          0 8px 32px rgba(0,0,0,0.18);

  --transition:         0.2s ease;
  --container-max:      1200px;
  --sidebar-width:      300px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--agt-text);
  background-color: var(--agt-bg-light);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--agt-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--agt-primary-dark); }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--agt-text);
  letter-spacing: 0.01em;
}

p { margin-bottom: 1rem; }

/* =========================================================
   3. LAYOUT CONTAINERS
   ========================================================= */
.agt-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

.agt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.agt-main-content {
  flex: 1 1 100%;
  min-width: 0;
}

.agt-sidebar {
  flex: 0 0 100%;
}

/* =========================================================
   4. HEADER
   ========================================================= */
#masthead {
  background: var(--agt-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.agt-top-bar {
  background: var(--agt-primary);
  padding: 6px 0;
  font-size: 0.75rem;
  color: var(--agt-white);
}

.agt-top-bar .agt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agt-top-bar a {
  color: var(--agt-white);
  opacity: 0.85;
}
.agt-top-bar a:hover { opacity: 1; }

.agt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.agt-site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.agt-site-logo img {
  height: 44px;
  width: auto;
}

.agt-site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--agt-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.agt-site-title span {
  color: var(--agt-gold);
}

.agt-site-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Hamburger Menu Button */
.agt-menu-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  color: var(--agt-white);
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--transition);
}
.agt-menu-toggle:hover { border-color: var(--agt-gold); }
.agt-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--agt-white);
  border-radius: 2px;
  transition: background var(--transition);
}
.agt-menu-toggle:hover span { background: var(--agt-gold); }

/* Search Toggle */
.agt-search-toggle {
  background: none;
  border: none;
  color: var(--agt-white);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  transition: color var(--transition);
}
.agt-search-toggle:hover { color: var(--agt-gold); }

/* =========================================================
   5. NAVIGATION
   ========================================================= */
#site-navigation {
  background: var(--agt-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: none;
}

#site-navigation.is-open {
  display: block;
}

.agt-primary-menu {
  padding: 8px 0;
}

.agt-primary-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.agt-primary-menu li:last-child {
  border-bottom: none;
}

.agt-primary-menu a {
  display: block;
  color: var(--agt-white);
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), color var(--transition);
}

.agt-primary-menu a:hover,
.agt-primary-menu .current-menu-item > a {
  background: var(--agt-primary);
  color: var(--agt-white);
}

/* Sub-menu */
.agt-primary-menu .sub-menu {
  background: rgba(255,255,255,0.04);
  display: none;
}
.agt-primary-menu .sub-menu.is-open { display: block; }
.agt-primary-menu .sub-menu a {
  padding-left: 32px;
  font-size: 0.82rem;
}

/* Breaking News Ticker */
.agt-breaking-news {
  background: var(--agt-primary);
  padding: 8px 0;
  overflow: hidden;
}

.agt-breaking-news .agt-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agt-breaking-label {
  background: var(--agt-gold);
  color: var(--agt-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.agt-ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.agt-ticker {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.agt-ticker a {
  color: var(--agt-white);
  font-size: 0.82rem;
  font-weight: 500;
}
.agt-ticker a:hover { color: var(--agt-gold); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   6. SEARCH BAR
   ========================================================= */
.agt-search-bar {
  background: var(--agt-dark);
  padding: 12px 0;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.agt-search-bar.is-open { display: block; }

.agt-search-form {
  display: flex;
  gap: 8px;
}

.agt-search-form input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--agt-white);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}

.agt-search-form input[type="search"]::placeholder {
  color: rgba(255,255,255,0.4);
}

.agt-search-form input[type="search"]:focus {
  border-color: var(--agt-gold);
}

.agt-search-form button {
  background: var(--agt-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--agt-white);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  text-transform: uppercase;
  transition: background var(--transition);
}

.agt-search-form button:hover {
  background: var(--agt-primary-dark);
}

/* =========================================================
   7. CATEGORY BADGE / LABEL
   ========================================================= */
.agt-cat-badge {
  display: inline-block;
  background: var(--agt-primary);
  color: var(--agt-white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: background var(--transition);
}
.agt-cat-badge:hover { background: var(--agt-primary-dark); color: var(--agt-white); }

.agt-cat-badge.gold {
  background: var(--agt-gold);
  color: var(--agt-dark);
}

/* =========================================================
   8. SECTION HEADINGS
   ========================================================= */
.agt-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--agt-text);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--agt-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.agt-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--agt-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =========================================================
   9. MAGAZINE HOMEPAGE LAYOUT
   ========================================================= */
.agt-magazine-homepage {
  padding: 20px 0;
}

/* Hero / Featured Story */
.agt-hero-section {
  margin-bottom: 24px;
}

.agt-hero-post {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.agt-hero-post .agt-post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.agt-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  padding: 20px 16px 16px;
}

.agt-hero-overlay .agt-cat-badge {
  margin-bottom: 8px;
}

.agt-hero-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--agt-white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.agt-hero-title a { color: var(--agt-white); }
.agt-hero-title a:hover { color: var(--agt-gold); }

.agt-hero-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

/* Magazine Grid — Featured Posts */
.agt-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Magazine Row — Category Sections */
.agt-category-section {
  margin-bottom: 28px;
}

.agt-cat-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* =========================================================
   10. POST CARD (Universal)
   ========================================================= */
.agt-post-card {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.agt-post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.agt-post-card .agt-card-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.agt-post-card .agt-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.agt-post-card:hover .agt-card-thumb {
  transform: scale(1.04);
}

.agt-post-card .agt-card-body {
  padding: 14px;
}

.agt-post-card .agt-card-cat {
  margin-bottom: 6px;
}

.agt-post-card .agt-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--agt-text);
}

.agt-post-card .agt-card-title a {
  color: var(--agt-text);
}
.agt-post-card .agt-card-title a:hover { color: var(--agt-primary); }

.agt-post-card .agt-card-excerpt {
  font-size: 0.85rem;
  color: var(--agt-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agt-post-card .agt-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--agt-muted);
  flex-wrap: wrap;
}

.agt-post-card .agt-card-meta .agt-meta-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.agt-post-card .agt-card-meta .agt-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.agt-post-card .agt-card-meta a { color: var(--agt-muted); }
.agt-post-card .agt-card-meta a:hover { color: var(--agt-primary); }

/* =========================================================
   11. BLOG LISTING LAYOUTS
   ========================================================= */

/* Layout 1: Classic List */
.agt-blog-layout-1 .agt-post-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.agt-blog-layout-1 .agt-card-thumb-wrap {
  flex: 0 0 120px;
  width: 120px;
}

.agt-blog-layout-1 .agt-card-thumb {
  width: 120px;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
}

.agt-blog-layout-1 .agt-card-body {
  flex: 1;
  padding: 12px;
}

.agt-blog-layout-1 .agt-card-title {
  font-size: 0.9rem;
}

.agt-blog-layout-1 .agt-card-excerpt {
  display: none;
}

/* Layout 2: Grid Cards */
.agt-blog-layout-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.agt-blog-layout-2 .agt-post-card .agt-card-thumb {
  aspect-ratio: 4/3;
}

.agt-blog-layout-2 .agt-card-title {
  font-size: 0.88rem;
}

.agt-blog-layout-2 .agt-card-excerpt { display: none; }

/* Layout 3: Large Overlay */
.agt-blog-layout-3 .agt-post-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.agt-blog-layout-3 .agt-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.agt-blog-layout-3 .agt-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  padding: 16px 14px 14px;
}

.agt-blog-layout-3 .agt-card-title,
.agt-blog-layout-3 .agt-card-title a {
  color: var(--agt-white);
}
.agt-blog-layout-3 .agt-card-title a:hover { color: var(--agt-gold); }

.agt-blog-layout-3 .agt-card-meta { color: rgba(255,255,255,0.7); }
.agt-blog-layout-3 .agt-card-meta a { color: rgba(255,255,255,0.7); }
.agt-blog-layout-3 .agt-card-excerpt { display: none; }

/* Layout 4: Magazine Style (Big + Small) */
.agt-blog-layout-4 .agt-layout4-big {
  margin-bottom: 14px;
}

.agt-blog-layout-4 .agt-layout4-small-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agt-blog-layout-4 .agt-layout4-small .agt-post-card {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.agt-blog-layout-4 .agt-layout4-small .agt-card-thumb-wrap {
  flex: 0 0 90px;
}

.agt-blog-layout-4 .agt-layout4-small .agt-card-thumb {
  width: 90px;
  height: 70px;
  aspect-ratio: unset;
}

.agt-blog-layout-4 .agt-layout4-small .agt-card-body {
  padding: 8px 10px;
}

.agt-blog-layout-4 .agt-layout4-small .agt-card-title {
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agt-blog-layout-4 .agt-layout4-small .agt-card-excerpt,
.agt-blog-layout-4 .agt-layout4-small .agt-card-meta { display: none; }

/* =========================================================
   12. SINGLE POST / ARTICLE
   ========================================================= */
.agt-single-article {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.agt-single-hero {
  position: relative;
}

.agt-single-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.agt-single-header {
  padding: 20px 16px 0;
}

.agt-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.agt-single-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--agt-text);
  margin-bottom: 14px;
}

.agt-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--agt-muted);
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--agt-border);
  margin-bottom: 0;
}

.agt-single-meta .agt-meta-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agt-single-meta .agt-meta-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--agt-primary);
}

.agt-single-meta .agt-meta-author-name {
  font-weight: 600;
  color: var(--agt-text);
}

.agt-single-meta .agt-meta-sep {
  color: var(--agt-border);
}

/* Post Content */
.agt-single-content {
  padding: 18px 16px 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--agt-text);
}

.agt-single-content h2 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: var(--agt-text);
  border-left: 4px solid var(--agt-primary);
  padding-left: 12px;
}

.agt-single-content h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--agt-text);
}

.agt-single-content p { margin-bottom: 1.1rem; }

.agt-single-content blockquote {
  background: var(--agt-bg-light);
  border-left: 4px solid var(--agt-gold);
  padding: 14px 16px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--agt-muted);
}

.agt-single-content ul, .agt-single-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}

.agt-single-content ol { list-style: decimal; }

.agt-single-content a {
  color: var(--agt-primary);
  text-decoration: underline;
}

.agt-single-content img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* Post Tags */
.agt-post-tags {
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.agt-post-tags .agt-tags-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--agt-muted);
  letter-spacing: 0.06em;
}

.agt-tag-link {
  display: inline-block;
  background: var(--agt-bg-light);
  border: 1px solid var(--agt-border);
  border-radius: 20px;
  color: var(--agt-muted);
  font-size: 0.78rem;
  padding: 3px 10px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.agt-tag-link:hover {
  background: var(--agt-primary);
  border-color: var(--agt-primary);
  color: var(--agt-white);
}

/* Share Buttons */
.agt-share-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--agt-border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agt-share-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--agt-muted);
  letter-spacing: 0.06em;
}

.agt-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  color: var(--agt-white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  transition: opacity var(--transition);
}
.agt-share-btn:hover { opacity: 0.85; color: var(--agt-white); }

.agt-share-btn.facebook { background: #1877F2; }
.agt-share-btn.twitter  { background: #1DA1F2; }
.agt-share-btn.whatsapp { background: #25D366; }
.agt-share-btn.copy     { background: var(--agt-muted); }

/* =========================================================
   13. AUTHOR BOX
   ========================================================= */
.agt-author-box {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  margin-bottom: 24px;
  border-top: 3px solid var(--agt-primary);
}

.agt-author-box-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.agt-author-avatar-wrap {
  flex-shrink: 0;
}

.agt-author-avatar-wrap img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--agt-primary);
}

.agt-author-info {
  flex: 1;
  min-width: 0;
}

.agt-author-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agt-primary);
  margin-bottom: 2px;
}

.agt-author-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--agt-text);
  margin-bottom: 6px;
}

.agt-author-name a { color: var(--agt-text); }
.agt-author-name a:hover { color: var(--agt-primary); }

.agt-author-bio {
  font-size: 0.85rem;
  color: var(--agt-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.agt-author-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.agt-author-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--agt-bg-light);
  border: 1px solid var(--agt-border);
  border-radius: var(--radius-sm);
  color: var(--agt-muted);
  font-size: 0.78rem;
  padding: 4px 10px;
  transition: background var(--transition), color var(--transition);
}

.agt-author-link:hover {
  background: var(--agt-primary);
  border-color: var(--agt-primary);
  color: var(--agt-white);
}

/* =========================================================
   14. RELATED POSTS
   ========================================================= */
.agt-related-posts {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  margin-bottom: 24px;
}

.agt-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.agt-related-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--agt-bg-light);
  transition: box-shadow var(--transition);
}

.agt-related-item:hover {
  box-shadow: var(--shadow-sm);
}

.agt-related-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.agt-related-item-body {
  padding: 8px 10px;
}

.agt-related-item-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--agt-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agt-related-item-title a { color: var(--agt-text); }
.agt-related-item-title a:hover { color: var(--agt-primary); }

.agt-related-item-date {
  font-size: 0.72rem;
  color: var(--agt-muted);
  margin-top: 4px;
}

/* =========================================================
   15. COMMENTS
   ========================================================= */
.agt-comments-section {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  margin-bottom: 24px;
}

.comment-list { padding: 0; }

.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--agt-border);
}
.comment:last-child { border-bottom: none; }

.comment-author-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  float: left;
  margin-right: 12px;
}

.comment-meta {
  font-size: 0.78rem;
  color: var(--agt-muted);
  margin-bottom: 6px;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--agt-text);
  font-size: 0.9rem;
}

.comment-content {
  font-size: 0.88rem;
  line-height: 1.6;
  clear: both;
}

/* Comment Form */
.comment-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--agt-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--agt-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  padding: 10px 12px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-body);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--agt-primary);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .submit {
  background: var(--agt-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--agt-white);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  text-transform: uppercase;
  transition: background var(--transition);
  width: 100%;
}

.comment-form .submit:hover {
  background: var(--agt-primary-dark);
}

/* =========================================================
   16. PAGINATION
   ========================================================= */
.agt-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.agt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--agt-white);
  border: 1px solid var(--agt-border);
  color: var(--agt-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.agt-pagination .page-numbers:hover,
.agt-pagination .page-numbers.current {
  background: var(--agt-primary);
  border-color: var(--agt-primary);
  color: var(--agt-white);
}

/* =========================================================
   17. SIDEBAR & WIDGETS
   ========================================================= */
.agt-widget {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  margin-bottom: 20px;
}

.agt-widget-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--agt-text);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--agt-primary);
}

/* Recent Posts Widget */
.agt-widget-recent-posts li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--agt-border);
}
.agt-widget-recent-posts li:last-child { border-bottom: none; }

.agt-widget-recent-posts img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.agt-widget-recent-posts .agt-rp-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--agt-text);
}
.agt-widget-recent-posts .agt-rp-title a { color: var(--agt-text); }
.agt-widget-recent-posts .agt-rp-title a:hover { color: var(--agt-primary); }

.agt-widget-recent-posts .agt-rp-date {
  font-size: 0.72rem;
  color: var(--agt-muted);
  margin-top: 3px;
}

/* Categories Widget */
.agt-widget-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--agt-border);
  font-size: 0.88rem;
}
.agt-widget-categories li:last-child { border-bottom: none; }
.agt-widget-categories a { color: var(--agt-text); }
.agt-widget-categories a:hover { color: var(--agt-primary); }
.agt-widget-categories .count {
  background: var(--agt-bg-light);
  border-radius: 20px;
  font-size: 0.72rem;
  padding: 2px 8px;
  color: var(--agt-muted);
}

/* Tags Widget */
.agt-widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Ad Widget */
.agt-widget-ad img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* =========================================================
   18. FOOTER
   ========================================================= */
#colophon {
  background: var(--agt-dark);
  color: rgba(255,255,255,0.75);
  margin-top: 32px;
}

.agt-footer-widgets {
  padding: 36px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.agt-footer-widgets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.agt-footer-widget-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--agt-white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--agt-primary);
}

.agt-footer-about p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.agt-footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.agt-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--agt-white);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.agt-social-link:hover {
  background: var(--agt-primary);
  color: var(--agt-white);
}

.agt-footer-links li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.agt-footer-links li:last-child { border-bottom: none; }
.agt-footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.agt-footer-links a:hover { color: var(--agt-gold); }

.agt-footer-bottom {
  padding: 16px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.agt-footer-bottom a {
  color: rgba(255,255,255,0.6);
}
.agt-footer-bottom a:hover { color: var(--agt-gold); }

/* =========================================================
   19. UTILITY CLASSES
   ========================================================= */
.agt-btn {
  display: inline-block;
  background: var(--agt-primary);
  color: var(--agt-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
}
.agt-btn:hover { background: var(--agt-primary-dark); color: var(--agt-white); }

.agt-btn-outline {
  background: transparent;
  border: 2px solid var(--agt-primary);
  color: var(--agt-primary);
}
.agt-btn-outline:hover {
  background: var(--agt-primary);
  color: var(--agt-white);
}

.agt-load-more {
  display: block;
  text-align: center;
  margin: 20px auto 0;
  max-width: 200px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.agt-no-posts {
  text-align: center;
  padding: 40px 20px;
  color: var(--agt-muted);
  font-size: 0.95rem;
}

/* =========================================================
   20. TABLET BREAKPOINT (≥ 600px)
   ========================================================= */
@media (min-width: 600px) {
  .agt-featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agt-cat-posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agt-hero-title {
    font-size: 1.6rem;
  }

  .agt-single-title {
    font-size: 1.75rem;
  }

  .agt-blog-layout-1 .agt-card-thumb-wrap {
    flex: 0 0 150px;
    width: 150px;
  }

  .agt-footer-widgets-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agt-related-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =========================================================
   21. DESKTOP BREAKPOINT (≥ 900px)
   ========================================================= */
@media (min-width: 900px) {
  .agt-container { padding: 0 24px; }

  .agt-menu-toggle { display: none; }

  #site-navigation {
    display: block !important;
    border-top: none;
  }

  .agt-primary-menu {
    display: flex;
    padding: 0;
    gap: 0;
  }

  .agt-primary-menu li {
    border-bottom: none;
    position: relative;
  }

  .agt-primary-menu > li > a {
    padding: 14px 16px;
    font-size: 0.82rem;
  }

  .agt-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--agt-dark);
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: none;
  }

  .agt-primary-menu li:hover > .sub-menu { display: block; }

  .agt-primary-menu .sub-menu a {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .agt-row {
    flex-wrap: nowrap;
  }

  .agt-main-content {
    flex: 1 1 auto;
  }

  .agt-sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
  }

  .agt-featured-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .agt-cat-posts-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .agt-footer-widgets-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .agt-hero-title { font-size: 2rem; }
  .agt-single-title { font-size: 2rem; }
}

/* =========================================================
   22. ACCESSIBILITY & FOCUS
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--agt-gold);
  outline-offset: 2px;
}

/* =========================================================
   23. PRINT
   ========================================================= */
@media print {
  #masthead, .agt-sidebar, #colophon,
  .agt-share-bar, .agt-related-posts,
  .agt-breaking-news { display: none; }

  .agt-single-content { font-size: 12pt; }
}
/* =========================================================
   AGT MAGAZINE — EXTRA UI COMPONENTS
   Appended to main style.css during packaging
   ========================================================= */

/* =========================================================
   LAYOUT TOGGLE BAR
   ========================================================= */
.agt-layout-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--agt-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.agt-layout-label {
  font-size: 0.78rem;
  color: var(--agt-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.agt-layout-btn {
  background: none;
  border: 1px solid var(--agt-border);
  border-radius: var(--radius-sm);
  color: var(--agt-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 10px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.agt-layout-btn:hover,
.agt-layout-btn.active {
  background: var(--agt-primary);
  border-color: var(--agt-primary);
  color: var(--agt-white);
}

/* =========================================================
   POST FORMAT BADGE
   ========================================================= */
.agt-format-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: var(--agt-white);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

/* =========================================================
   POST NAVIGATION
   ========================================================= */
.agt-post-nav {
  background: var(--agt-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.agt-post-nav-inner {
  display: flex;
  flex-direction: column;
}

.agt-post-nav-item {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-bottom: 1px solid var(--agt-border);
  transition: background var(--transition);
}

.agt-post-nav-item:last-child { border-bottom: none; }
.agt-post-nav-item:hover { background: var(--agt-bg-light); }

.agt-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--agt-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.agt-nav-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--agt-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 600px) {
  .agt-post-nav-inner { flex-direction: row; }
  .agt-post-nav-item { flex: 1; border-bottom: none; }
  .agt-post-nav-prev { border-right: 1px solid var(--agt-border); }
}

/* =========================================================
   READING PROGRESS BAR
   ========================================================= */
#agt-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--agt-primary), var(--agt-gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* =========================================================
   STICKY HEADER ANIMATIONS
   ========================================================= */
#masthead {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#masthead.agt-hidden {
  transform: translateY(-100%);
}

#masthead.agt-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
#agt-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--agt-primary);
  border: none;
  border-radius: 50%;
  color: var(--agt-white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 500;
}

#agt-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#agt-back-to-top:hover {
  background: var(--agt-primary-dark);
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.agt-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--agt-dark);
  color: var(--agt-white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  padding: 10px 20px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}

.agt-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   NEWSLETTER FORM (Footer)
   ========================================================= */
.agt-newsletter-form input[type="email"]:focus {
  border-color: var(--agt-gold) !important;
  outline: none;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.agt-breadcrumbs {
  font-size: 0.78rem;
  color: var(--agt-muted);
  padding: 10px 0 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.agt-breadcrumbs a {
  color: var(--agt-muted);
  transition: color var(--transition);
}

.agt-breadcrumbs a:hover { color: var(--agt-primary); }

.agt-bc-sep {
  color: var(--agt-border);
  margin: 0 2px;
}

/* =========================================================
   ARCHIVE / CATEGORY PAGE DESCRIPTION
   ========================================================= */
.archive-description {
  font-size: 0.9rem;
  color: var(--agt-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* =========================================================
   PAGINATION WRAP
   ========================================================= */
.agt-pagination-wrap {
  margin-top: 8px;
}

.agt-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER NAV
   ========================================================= */
.agt-footer-nav {
  margin-top: 10px;
}

.agt-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
}

.agt-footer-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  transition: color var(--transition);
}

.agt-footer-nav a:hover { color: var(--agt-gold); }

/* =========================================================
   TOP BAR MENU
   ========================================================= */
.agt-topbar-menu {
  display: flex;
  gap: 14px;
  list-style: none;
}

.agt-topbar-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  transition: color var(--transition);
}

.agt-topbar-menu a:hover { color: var(--agt-white); }

/* =========================================================
   GUTENBERG BLOCK STYLES
   ========================================================= */
.wp-block-image img {
  border-radius: var(--radius-sm);
}

.wp-block-quote {
  background: var(--agt-bg-light);
  border-left: 4px solid var(--agt-gold);
  padding: 14px 16px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wp-block-pullquote {
  border-top: 4px solid var(--agt-primary);
  border-bottom: 4px solid var(--agt-primary);
  padding: 20px;
  text-align: center;
}

.wp-block-separator {
  border-color: var(--agt-border);
  margin: 24px 0;
}

/* =========================================================
   COMMENTS SECTION EXTRAS
   ========================================================= */
.comment-respond h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--agt-primary);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--agt-primary);
}

/* =========================================================
   ACCESSIBILITY: SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--agt-primary);
  color: var(--agt-white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--agt-white);
}

/* =========================================================
   DARK MODE SUPPORT (prefers-color-scheme)
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --agt-bg-light:  #1A1A1A;
    --agt-white:     #242424;
    --agt-text:      #F0F0F0;
    --agt-muted:     #999999;
    --agt-border:    #333333;
  }

  .agt-post-card,
  .agt-single-article,
  .agt-author-box,
  .agt-related-posts,
  .agt-comments-section,
  .agt-widget,
  .agt-post-nav {
    background: #242424;
  }

  .agt-layout-toggle {
    background: #242424;
  }

  .agt-tag-link {
    background: #333;
    border-color: #444;
    color: #ccc;
  }
}
