/* ===========================================
   UNIFIED MASTER STYLES - PRODUCTION VERSION
   Apply to all JET sites for pixel-perfect consistency
   =========================================== */

:root {
  --color-primary: #1a1a1a;
  --color-secondary: #1a1a1a;
  --color-brown: #442c2c;
  --color-accent: #3B82F6;
  --color-accent-light: #93C5FD;
  --color-background: #FFFFFF;
  --color-background-alt: #F9FAFB;
  --color-border: #E5E7EB;
  
  --font-heading: Helvetica, Arial;
  --font-body: Helvetica, Arial;
  
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50%;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #FFFFFF !important;
  width: 100%;
  margin: 0;
  padding: 0;
  /* Force scrollbar to always be present */
  overflow-y: scroll;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-background);
  line-height: 1.5;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Main content wrapper */
.news-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: var(--spacing-4);
}

a {
  color: var(--color-primary) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  overflow: visible !important;
  position: relative;
}

/* ===========================================
   HEADER STYLES - UNIFIED FOR ALL SITES
   =========================================== */
.header {
  padding: 0;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: box-shadow var(--transition-normal);
  margin-bottom: 0;
  width: 100%;
}

.header .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4) 0;
}

/* Ensure consistent behavior across page types */
.news-content .header {
  width: 100%;
}

.news-content .header .container {
  max-width: 1280px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.news-content .header .logo-container {
  justify-content: center;
  align-items: center;
}

/* Clean logo positioning */
.header .logo-emblem {
  display: block;
  margin: 0;
}

/* ===========================================
   LOGO STYLES - CONSISTENT SIZING SYSTEM
   =========================================== */
.logo-emblem {
  height: 70px;
  width: auto;
  padding: 6px;
  background-color: transparent;
  border-radius: 0;
  display: block;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
  cursor: pointer;
  position: relative;
  left: 0;
  right: 0;
  transform: translateX(0);
}

/* Responsive logo scaling - UNIFIED */
@media screen and (max-width: 500px) {
  .logo-emblem { height: 70px; }
}

@media screen and (min-width: 576px) {
  .logo-emblem { height: 85px; font-size: 1.6rem; }
}

@media screen and (min-width: 768px) {
  .logo-emblem { height: 90px; font-size: 1.75rem; }
}

@media screen and (min-width: 992px) {
  .logo-emblem { height: 95px; font-size: 1.9rem; }
}

@media screen and (min-width: 1200px) {
  .logo-emblem { height: 100px; font-size: 2rem; }
}

@media screen and (min-width: 1400px) {
  .logo-emblem { height: 105px; font-size: 2.25rem; }
}

@media screen and (min-width: 1600px) {
  .logo-emblem { height: 115px; font-size: 2.5rem; }
}

@media screen and (min-width: 1920px) {
  .logo-emblem { height: 125px; font-size: 2.75rem; }
}

@media screen and (min-resolution: 2dppx) {
  .logo-emblem {
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .logo-emblem:hover {
    transform: scale(1.05);
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.05em;
}

.hero-date-tech {
  font-size: 12px !important;
}

/* ===========================================
   HERO SECTION - UNIFIED LAYOUT
   =========================================== */
.hero-section {
  padding: var(--spacing-8) 0;
  margin-bottom: var(--spacing-4);
  flex: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-12);
  }
  
  .hero-section {
    padding: var(--spacing-12) 0;
  }
}

@media (min-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-16);
  }
}

.hero-image-container {
  position: relative;
  aspect-ratio: 1/1; /* Default: Square */
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-normal);
  cursor: pointer;
}

.hero-image-container:hover {
  transform: translateY(-5px);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-normal);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

/* ===========================================
   RESPONSIVE IMAGE SYSTEM - UNIFIED
   =========================================== */
/* Mobile screens: Square format, small image */
@media screen and (max-width: 479px) {
  .hero-image-container { aspect-ratio: 1/1; }
  .hero-image[data-size="small"] { display: block; }
  .hero-image[data-size="medium"],
  .hero-image[data-size="large"],
  .hero-image[data-size="xlarge"] { display: none !important; }
}

/* Small mobile to tablet: Square format, medium image */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .hero-image-container { aspect-ratio: 1/1; }
  .hero-image[data-size="medium"] { display: block; }
  .hero-image[data-size="small"],
  .hero-image[data-size="large"],
  .hero-image[data-size="xlarge"] { display: none !important; }
}

/* Tablet: RECTANGULAR format starts here */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .hero-image-container { aspect-ratio: 16/9; }
  .hero-image[data-size="xlarge"] { display: block; }
  .hero-image[data-size="small"],
  .hero-image[data-size="medium"],
  .hero-image[data-size="large"] { display: none !important; }
}

/* Desktop and above: RECTANGULAR format continues */
@media screen and (min-width: 1024px) {
  .hero-image-container { aspect-ratio: 16/9; }
  .hero-image[data-size="xlarge"] { display: block; }
  .hero-image[data-size="small"],
  .hero-image[data-size="medium"],
  .hero-image[data-size="large"] { display: none !important; }
}

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

.hero-content {
  padding: var(--spacing-4);
}

.hero-meta {
  display: flex;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-4);
  font-size: 0.875rem;
  color: var(--color-secondary);
}

@media (max-width: 767px) {
  .hero-meta {
    justify-content: center !important;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-date-tech {
    display: block;
    text-align: center;
  }
}

.hero-category {
  position: relative;
  padding-left: var(--spacing-4);
}

.hero-category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-4);
  transition: color var(--transition-fast);
}

.hero-title a {
  color: var(--color-brown) !important;
  text-decoration: none;
}

.hero-title a:hover {
  color: #644c4c !important;
}

.hero-excerpt {
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-6);
  line-height: 1.6;
}

.hero-excerpt a {
  color: var(--color-primary) !important;
}

.hero-excerpt a:hover {
  color: var(--color-primary) !important;
}

.hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  color: var(--color-brown) !important;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-read-more a {
  color: var(--color-brown) !important;
}

.hero-read-more svg {
  transition: transform var(--transition-fast);
}

.hero-read-more:hover svg {
  transform: translateX(4px);
}

.hero-read-more:hover {
  transform: translateX(5px);
}

/* ===========================================
   SOCIAL LINKS - UNIFIED SYSTEM WITH FIXES
   =========================================== */
.social-links, .social-sharing {
  margin: var(--spacing-4) 0;
  padding: var(--spacing-2) 0;
}

.social-links-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.social-link, .author-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: var(--color-background-alt);
  color: white;
  transition: all var(--transition-normal);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
}

/* Author section - enhanced social links with proper spacing */
.author-info .social-links-container {
  display: flex;
  justify-content: flex-start;
  gap: 0.25rem !important;
  margin-top: 0.75rem;
  overflow: visible !important;
  padding: 0.75rem 0 1.25rem 0;
  position: relative;
  z-index: 1;
}

.author-info .social-link, .author-info .author-social-link {
  width: 2.75rem !important;
  height: 2.75rem !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-background-alt);
  color: var(--color-primary);
  transition: all var(--transition-normal);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0.375rem;
  padding: 0.5rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.author-info .social-link img, .author-info .author-social-link img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  transition: all var(--transition-normal);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .social-links-container {
    gap: var(--spacing-2);
  }
  
  .social-link, .author-social-link {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .author-info .social-link, .author-info .author-social-link {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin: 0.25rem !important;
    padding: 0.375rem !important;
  }
  
  .author-info .social-link img, .author-info .author-social-link img {
    width: 16px !important;
    height: 16px !important;
  }
  
  .author-info .social-links-container {
    gap: 0.125rem !important;
    padding: 0.5rem 0 0.75rem 0;
  }
  
  .author-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .author-name {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .author-info .social-link, .author-info .author-social-link {
    width: 2rem !important;
    height: 2rem !important;
    margin: 0.125rem !important;
    padding: 0.25rem !important;
  }
  
  .author-info .social-link img, .author-info .author-social-link img {
    width: 14px !important;
    height: 14px !important;
  }
}

.social-link svg, .author-social-link svg {
  transition: all var(--transition-normal);
}

/* Hover effects - Desktop only */
@media (hover: hover) and (pointer: fine) {
  .social-link:hover, .author-social-link:hover {
    background-color: var(--color-brown);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .author-info .social-link:hover, .author-info .author-social-link:hover {
    background-color: var(--color-brown);
    color: white;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15), 0 6px 8px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .social-link:hover svg, .author-social-link:hover svg {
    fill: white;
    stroke: white;
  }

  .social-link:hover svg path, .author-social-link:hover svg path {
    fill: white;
    stroke: white;
  }
  
  .social-link:hover img, .author-social-link:hover img {
    filter: brightness(0) saturate(100%) invert(1);
  }
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
  .social-link:active, .author-social-link:active {
    background-color: rgba(68, 44, 44, 0.1);
    transform: scale(0.95);
  }

  .social-link:active img, .author-social-link:active img {
    filter: none !important;
  }
  
  .social-link:hover, .author-social-link:hover {
    background-color: var(--color-background-alt) !important;
    color: var(--color-primary) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  .social-link:hover img, .author-social-link:hover img {
    filter: none !important;
  }
  
  .social-link:hover svg, .author-social-link:hover svg {
    fill: currentColor !important;
    stroke: currentColor !important;
  }
}

/* Special handling for Wellfound icon */
.author-info .social-link img[style*="width:36px"], 
.author-info .author-social-link img[style*="width:36px"] {
  width: 22px !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .author-info .social-link img[style*="width:36px"], 
  .author-info .author-social-link img[style*="width:36px"] {
    width: 20px !important;
  }
}

@media (max-width: 480px) {
  .author-info .social-link img[style*="width:36px"], 
  .author-info .author-social-link img[style*="width:36px"] {
    width: 18px !important;
  }
}

/* ===========================================
   FOOTER - UNIFIED FOR ALL SITES
   =========================================== */
.footer {
  margin-top: auto;
  margin-bottom: 0;
  padding: var(--spacing-4) 0 var(--spacing-4) 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-4);
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

/* ===========================================
   FOOTER LOGO RESPONSIVE SCALING - UNIFIED
   =========================================== */
.footer-logo-emblem {
  height: 70px;
  width: auto;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Small Mobile - 360px+ */
@media screen and (min-width: 360px) {
  .footer-logo-emblem {
    height: 80px;
    font-size: 1.1rem;
  }
}

/* Large Mobile - 414px+ */
@media screen and (min-width: 414px) {
  .footer-logo-emblem {
    height: 80px;
    font-size: 1.15rem;
  }
}

/* Mobile Landscape / Small Tablet - 481px+ */
@media screen and (min-width: 481px) {
  .footer-logo-emblem {
    height: 85px;
    font-size: 1.2rem;
  }
}

/* Small Tablet - 576px+ */
@media screen and (min-width: 576px) {
  .footer-logo-emblem {
    height: 70px;
    font-size: 1.25rem;
  }
}

/* Medium Tablet - 640px+ */
@media screen and (min-width: 640px) {
  .footer-logo-emblem {
    height: 75px;
    font-size: 1.3rem;
  }
}

/* Large Tablet - 768px+ */
@media screen and (min-width: 768px) {
  .footer-logo-emblem {
    height: 75px;
    font-size: 1.35rem;
  }
}

/* Small Desktop - 992px+ */
@media screen and (min-width: 992px) {
  .footer-logo-emblem {
    height: 80px;
    font-size: 1.4rem;
  }
}

/* Medium Desktop - 1200px+ */
@media screen and (min-width: 1200px) {
  .footer-logo-emblem {
    height: 80px;
    font-size: 1.45rem;
  }
}

/* Large Desktop - 1400px+ */
@media screen and (min-width: 1400px) {
  .footer-logo-emblem {
    height: 80px;
    font-size: 1.5rem;
  }
}

/* Extra Large Desktop - 1600px+ */
@media screen and (min-width: 1600px) {
  .footer-logo-emblem {
    height: 80px;
    font-size: 1.55rem;
  }
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: font-size 0.3s ease;
}

/* Progressive text scaling */
@media screen and (min-width: 360px) {
  .footer-logo-text {
    font-size: 1.05rem;
  }
}

@media screen and (min-width: 481px) {
  .footer-logo-text {
    font-size: 1.1rem;
  }
}

@media screen and (min-width: 576px) {
  .footer-logo-text {
    font-size: 1.15rem;
  }
}

@media screen and (min-width: 768px) {
  .footer-logo-text {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 992px) {
  .footer-logo-text {
    font-size: 1.3rem;
  }
}

@media screen and (min-width: 1200px) {
  .footer-logo-text {
    font-size: 1.35rem;
  }
}

/* ===========================================
   FOOTER LINKS - UNIFIED WITH PROPER SPACING
   =========================================== */
.footer-links {
  display: flex;
  gap: var(--spacing-4) !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-2) 0;
  transition: gap 0.3s ease;
}

.footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 0.875rem;
  white-space: nowrap;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
}

/* Ensure proper spacing on all screen sizes */
@media screen and (max-width: 480px) {
  .footer-links {
    gap: var(--spacing-3) !important;
    justify-content: center;
  }
  
  .footer-links a {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 481px) {
  .footer-links {
    gap: var(--spacing-4) !important;
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 768px) {
  .footer-links {
    gap: var(--spacing-6) !important;
    justify-content: flex-start;
  }
  
  .footer-links a {
    font-size: 1rem;
  }
}

@media screen and (min-width: 992px) {
  .footer-links {
    gap: var(--spacing-5) !important;
  }
}

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

/* Mobile-specific enhancements */
@media screen and (max-width: 320px) {
  .footer-logo-emblem {
    height: 40px;
    font-size: 0.9rem;
  }
  
  .footer-logo-text {
    font-size: 0.95rem;
  }
  
  .footer-links {
    gap: var(--spacing-1) !important;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
}

/* Mobile portrait optimization */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .footer-logo-emblem {
    margin-bottom: var(--spacing-2);
  }
  
  .footer-links {
    justify-content: center;
    text-align: center;
  }
}

/* Mobile landscape optimization */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .footer-logo-emblem {
    height: 90px!important;
    font-size: 1.1rem;
  }
}

.footer-copyright {
  font-size:0.8rem!important;
}

/* ===========================================
   ARTICLE STYLES
   =========================================== */
.article {
  padding: var(--spacing-12) 0;
}

.article-container {
  max-width: 800px;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.article-image-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-6);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-author {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-8);
  gap: var(--spacing-3);
  padding-bottom: var(--spacing-6);
  border-bottom: 1px solid var(--color-border);
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.author-image {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  position: relative;
  z-index: 1;
  padding-bottom: 0.5rem;
}

.author-name {
  font-weight: 600;
}

.article-date {
  font-size: 0.875rem;
  color: var(--color-secondary);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-primary);
}

.article-content p {
  margin-bottom: var(--spacing-6);
}

.article-main {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

/* ===========================================
   RESPONSIVE STYLES - UNIFIED
   =========================================== */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-excerpt {
    font-size: 1.25rem;
  }
  
  .container {
    padding: 0 var(--spacing-6);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-excerpt {
    font-size: 1.125rem;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    margin-bottom: var(--spacing-4);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-image-container {
    margin-left: var(--spacing-4);
    margin-right: var(--spacing-4);
  }
  
  .footer-content {
    align-items: center;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .article-content {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-3);
  }
}

/* ===========================================
   ANIMATIONS & TRANSITIONS
   =========================================== */
body {
  transition: opacity 0.3s ease-in-out;
}

.article-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.loading-overlay.show {
  opacity: 1;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-brown);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: var(--color-brown);
  font-family: var(--font-body);
  font-size: 16px;
  margin: 0;
}

.article-hero,
.article-featured-image,
.article-main {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.article-hero.fade-in,
.article-featured-image.fade-in,
.article-main.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.article-hero.fade-in { transition-delay: 0.1s; }
.article-featured-image.fade-in { transition-delay: 0.2s; }
.article-main.fade-in { transition-delay: 0.3s; }

/* Mobile optimizations for transitions */
@media (max-width: 768px) {
  .article-hero,
  .article-featured-image,
  .article-main {
    transform: translateY(15px);
  }
  
  body {
    transition: opacity 0.2s ease-in-out;
  }
  
  .loading-overlay {
    transition: opacity 0.2s ease-in-out;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  body,
  .article-hero,
  .article-featured-image,
  .article-main,
  .loading-overlay {
    transition: none;
    animation: none;
  }
  
  .loading-spinner {
    animation: none;
    border: 4px solid var(--color-brown);
  }
}

/* ===========================================
   FINAL CLEANUP - CONSISTENT SPACING
   =========================================== */
body > *:last-child {
  margin-bottom: 0;
}

section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.container {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Safari background wrapper fix */
#safari-bg-wrapper {
  margin: 0;
  padding: 0;
}






/* ===========================================
   JET SITES - SOCIAL MEDIA ICON SPACING FIX
   Add this to the bottom of your master.css file to override existing spacing
   =========================================== */

/* Tighten up horizontal spacing between social icons */
.author-info .social-links-container {
  display: flex;
  justify-content: flex-start;
  gap: 0.125rem !important;        /* Reduced from 0.25rem */
  margin-top: 0.75rem;
  overflow: visible !important;
  padding: 0.75rem 0 1.25rem 0;
  position: relative;
  z-index: 1;
}

/* Reduce individual icon margins for tighter spacing */
.author-info .social-link, .author-info .author-social-link {
  width: 2.75rem !important;
  height: 2.75rem !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-background-alt);
  color: var(--color-primary);
  transition: all var(--transition-normal);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0.125rem !important;     /* Reduced from 0.375rem */
  padding: 0.5rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Keep icon images the same size */
.author-info .social-link img, .author-info .author-social-link img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  transition: all var(--transition-normal);
}

/* Mobile adjustments - maintain compact spacing */
@media (max-width: 768px) {
  .author-info .social-links-container {
    gap: 0.0625rem !important;     /* Even tighter on mobile */
  }
  
  .author-info .social-link, .author-info .author-social-link {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin: 0.0625rem !important;  /* Minimal margin on mobile */
    padding: 0.375rem !important;
  }
  
  .author-info .social-link img, .author-info .author-social-link img {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 480px) {
  .author-info .social-links-container {
    gap: 0.0625rem !important;
  }
  
  .author-info .social-link, .author-info .author-social-link {
    width: 2rem !important;
    height: 2rem !important;
    margin: 0.0625rem !important;
    padding: 0.25rem !important;
  }
  
  .author-info .social-link img, .author-info .author-social-link img {
    width: 14px !important;
    height: 14px !important;
  }
}
