/* =========================================================================
   Gleam Publishing - Premium Design System (Black & Gold Theme)
   ========================================================================= */

/* Variables */
:root {
  /* Colors */
  --clr-primary: #111111; /* True Black/Dark */
  --clr-primary-light: #222222;
  --clr-accent: #c5a059; /* Muted Gold */
  --clr-accent-secondary: #e2c686; /* Lighter Gold */
  
  --clr-bg: #0a0a0a;
  --clr-surface: #1a1a1a;
  --clr-surface-glass: rgba(17, 17, 17, 0.85);
  
  --clr-text: #cccccc;
  --clr-text-light: #999999;
  --clr-heading: #ffffff;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(197, 160, 89, 0.15);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--clr-heading);
  line-height: 1.2;
  margin-top: 0;
}

p {
  text-align: justify;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem; /* Increased padding for more premium look and coordination */
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-accent-secondary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary, .btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-secondary));
  color: #111;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
}

.btn-primary:hover, .btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--clr-accent-secondary), var(--clr-accent));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--clr-accent);
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--clr-accent);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--clr-accent);
  color: #111;
}

.btn-black-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent);
  color: #111;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-black-sm:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(5px);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background: var(--clr-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: padding 0.3s ease;
}

body.admin-bar .navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

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

.logo img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--clr-text);
  letter-spacing: 0.5px;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #111; /* Darker black for better contrast */
  min-width: 250px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  border: 1px solid var(--clr-accent);
  border-radius: 8px;
  z-index: 1000;
  padding: 0.5rem 0;
  overflow: hidden;
  animation: dropdownIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Pseudo-bridge to prevent losing hover in small gaps */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
  color: var(--clr-text) !important;
  padding: 0.8rem 1.2rem !important;
  text-decoration: none;
  display: block !important;
  font-size: 0.85rem !important;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent !important;
  box-shadow: none !important;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-secondary)) !important;
  color: #111 !important;
  padding-left: 1.5rem !important;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links a:not(.btn-primary-sm) {
  font-weight: 500;
  color: var(--clr-text);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.btn-primary-sm)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary-sm):hover::after {
  width: 100%;
}

.nav-links a:not(.btn-primary-sm):hover {
  color: var(--clr-accent);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px; /* Offset for navbar */
  overflow: hidden;
  background-color: var(--clr-bg);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.8; /* Increased lightness for the hero background figure */
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.glass-panel {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 4rem;
  border-radius: var(--radius-lg);
  max-width: 650px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  animation: fadeUp 1s ease forwards;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--clr-accent-secondary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: white;
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--clr-text-light);
  margin-bottom: 2.5rem;
  max-width: 650px;
  line-height: 1.8;
  opacity: 0.9;
  text-align: justify;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-actions .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.2);
}
.hero-actions .btn-secondary:hover {
  background: white;
  color: var(--clr-primary);
  border-color: white;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Sections Base
   ========================================================================= */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 1000px; /* Increased to align better with main containers while keeping text readable */
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--clr-text-light);
  font-size: 1.15rem;
}

/* =========================================================================
   Journals Section
   ========================================================================= */
.journals-section {
  background: var(--clr-primary);
}

.journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.journal-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.journal-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(197, 160, 89, 0.3);
}

.journal-cover-link {
  display: block;
  width: 100%;
  overflow: hidden;
}

.journal-cover {
  aspect-ratio: 1 / 1.414; /* True A4 Cover Aspect Ratio */
  width: 100%;
  background-color: var(--clr-primary-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.journal-card:hover .journal-cover {
  background-color: rgba(197, 160, 89, 0.05);
}

/* Uses contain so the entire cover is visible, properly padded within the block */
.cover-1 { background: url('../assets/jcq-cover.png') center/contain no-repeat; }
.cover-2 { background: url('../assets/aicp-cover.jpg') center/contain no-repeat; }
.cover-3 { background: url('../assets/crm-cover.webp') center/contain no-repeat; }

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--clr-accent);
  color: var(--clr-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.journal-info {
  padding: 2.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.journal-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.journal-info p {
  color: var(--clr-text-light);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.journal-link {
  font-weight: 600;
  color: var(--clr-accent);
  display: inline-flex;
  align-items: center;
}

.journal-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.journal-card:hover .journal-link {
  color: var(--clr-accent-secondary);
}

.journal-card:hover .journal-link::after {
  transform: translateX(5px);
}

/* =========================================================================
   News Section
   ========================================================================= */
.news-section {
  background: var(--clr-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.news-header {
  padding-right: 2rem;
}

.news-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.news-header p {
  color: var(--clr-text-light);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.btn-text {
  font-weight: 600;
  color: var(--clr-accent);
  font-size: 1.1rem;
}

.btn-text:hover {
  color: var(--clr-accent-secondary);
}

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

.news-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.02);
}

.news-item:hover {
  transform: translateX(10px);
  border-left-color: var(--clr-accent);
  background: var(--clr-primary-light);
}

.news-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--clr-accent);
  font-size: 0.95rem;
  min-width: 100px;
}

.news-title {
  font-weight: 500;
  color: var(--clr-heading);
  font-size: 1.1rem;
}

.news-item:hover .news-title {
  color: var(--clr-accent-secondary);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: #050505;
  color: #888888;
  padding-top: 4rem; /* Reduced from 6rem */
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}

/* Removed padding override to maintain coordination with header */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 350px;
  text-align: left;
}

.footer-logo img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-links h4, .footer-contact h4, .footer-address h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
}

.footer-bottom p {
  text-align: center !important;
  margin: 0 auto;
}

/* Journal Grid Architectures */
.journal-layout {
  display: grid; 
  grid-template-columns: 320px 1fr; 
  gap: 4rem; 
  align-items: start; 
  margin-top: 2rem;
}
.journal-list-layout {
  display: grid; 
  grid-template-columns: 250px 1fr; 
  gap: 3rem; 
  align-items: start;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .glass-panel { padding: 3rem 2rem; }
  
  .news-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .news-header { padding-right: 0; text-align: center; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .journal-layout, .journal-list-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journal-thumbnail {
    max-width: 250px;
    margin: 0 auto 1.5rem auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
  }
  .mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--clr-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--clr-bg);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    display: block;
    margin-top: 1rem;
  }

  /* Mobile Typography Scaling */
  body, .page-content, .journal-details { font-size: 15px; }
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.6rem !important; }
  h3 { font-size: 1.3rem !important; }
  p { font-size: 15px !important; text-align: left !important; }
  
  /* Mobile Button Scaling */
  .btn-primary, .btn-primary-sm, .btn-black-sm, .btn-secondary {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.2rem !important;
  }
  
  .journal-meta-info {
    flex-direction: column;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Mobile Container Padding Corrections */
  .container { padding: 0 1.5rem !important; }
  .policies-content { padding: 1.5rem !important; }
  
  /* Work With Us Tweaks */
  .work-grid { grid-template-columns: 1fr !important; }
  .work-apply-box { padding: 1.5rem !important; }
  
  .hero-title { font-size: 2.4rem; }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.content-area p {
  text-align: justify;
}

/* Work With Us Specific */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.work-apply-box { padding: 4rem; }

/* Journal Metadata Components */
.journal-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--clr-accent);
}

/* =========================================================================
   WordPress.com / Jetpack Overrides
   ========================================================================= */
#jp-relatedposts,
.jp-relatedposts,
div.sharedaddy.sd-related-posts {
  display: none !important;
}
