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

/* Smooth Reader-Focused 4-Color Diagonal Gradient */
/* Reader-Focused Pink-Tone Diagonal Linear Gradient */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f5f6fa;
  background-color: #050505;
  background-image: linear-gradient(
    to bottom right,
    #2c0a17 0%,
    /* Rich Pink-Wine accent (Top-Left) */ #13040a 5%,
    /* Deep Rose-Charcoal transition */ #080808 10%,
    /* Matte Black central reading canvas */ #160209 100%
      /* Subtle Rose-Black finish (Bottom-Right) */
  );
  background-attachment: scroll;
  min-height: 100vh;
}

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

/* Modern Web Wrapper */
.container {
  width: 80%; /* Uses 80% of screen width on small screens */
  max-width: 1500px; /* Won't grow past 1500px on big monitors */
  margin: 0 auto;
}

/* Responsive Header Bar styled in Brand Pink & Gold */
.web-header {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0) 70%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    url("../Images/Transparent_Phoenix.png") no-repeat center 20%;
  background-size: cover;
  padding: 30px 20px;
  margin-bottom: 30px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-bottom: 3px solid #d4af37;
  border-top: 3px solid #d4af37;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand-title {
  font-family: "Great Vibes", cursive;
  font-size: 40pt;
  font-weight: normal;
  color: #e9166a;
  text-shadow:
    2px 2px 3px rgba(0, 0, 0, 0.95),
    0 0 8px #d4af37;
}

/* Main Article Post Title */
.post-title {
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #d4af37; /* Signature Gold */
  line-height: 1.3;
  margin: 10px 0 15px 0;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(234, 42, 111, 0.3);
}

/* Right side container to hold URL and Home Button together */
.header-controls {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.page-title {
  font-family: "Inter", sans-serif;
  font-size: 24pt;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 1px;
  color: #fcfaf2;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 1),
    0 0 8px #d4af37;
}

/* Clean, Elegant Home Button Style */
.home-btn,
.nav-btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  background-color: #ea2a6f;
  border: 2px solid #ea2a6f;
  padding: 10px 24px;
  border-radius: 20px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.home-btn {
  margin-top: 5px;
}

.home-btn:hover,
.nav-btn:hover {
  background-color: #000000;
  box-shadow: 0 0 15px rgba(234, 42, 111, 0.4);
  color: #ffffff;
}

.hero-image {
  float: left;
  width: 40%;
  max-width: 400px;
  margin: 10px 20px 10px 0;
  height: auto;
  border-radius: 8px;
}

/* Hero Container */
.article-hero {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Main Banner Image Style */
.main-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Image Attribution Line */
.image-credit {
  font-size: 1rem;
  color: var(--text-muted, #707070);
  margin-top: 0.4rem;
  text-align: right;
}

.image-credit a {
  color: inherit;
  text-decoration: underline;
}

.image-credit a:hover {
  color: var(--brand-accent, #c87d55);
}

/* Blockquote Formatting */
.article-blockquote {
  clear: both;
  margin: 35px 0;
  padding: 18px 22px;
  font-size: 22px;
  color: #ea2a6f;
  border-left: 5px solid #d4af37;
  background-color: rgba(234, 42, 111, 0.05);
  border-radius: 0 8px 8px 0;
}

.article-blockquote p {
  color: #ea2a6f !important;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
}

/* Ensure the article body clears floats */
.article-body {
  width: 100%;
  margin: 30px 0;
  padding-top: 20px;
}

.call-to-action p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #e9166a; /* Bright Brand Pink */
  text-align: center;
}

.main-title {
  font-family: "Inter", sans-serif;
  font-size: 22pt;
  font-weight: bold;
  color: #c5a028;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.subtitle {
  font-size: 13pt;
  color: #f5f6fa;
  margin: 0 0 30px 0;
  font-style: italic;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 12px;
}

/* Flexbox Grid Layout */
.content-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 30px;
}

/* Main Technical Content */
.left-col {
  flex: 1.6;
  min-width: 300px;
}

/* Sidebar Panels */
.right-col {
  color: #333333;
  font-weight: 500;
  flex: 1;
  min-width: 280px;
  background-color: #fafafa;
  border-top: 4px solid #ff6b8b;
  border-bottom: 4px solid #d4af37;
  padding: 25px;
  border-radius: 4px;
  height: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Styling Pillar Titles */
.pillar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e9166a;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.pillar-text {
  font-size: 1rem;
  color: #444444;
  font-style: italic;
  padding-left: 20px;
  position: relative;
  margin-bottom: 20px;
}

.pillar-text::before {
  content: "•";
  color: #d4af37;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

h2 {
  font-size: 13pt;
  color: #c5a028;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f2f6;
  padding-bottom: 5px;
}

h2 a {
  color: #c5a028;
  text-decoration: none;
  font-size: 0.85rem;
}
p {
  margin: 0 0 16px 0;
  text-align: left;
  color: #f9dbe6;
  line-height: 1.7;
}

p a {
  margin: 0 0 16px 0;
  text-align: left;
  color: #f9dbe6;
  line-height: 1.7;
  font-size: 0.75rem;
}
ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Stat Box Cards */
.stat-box {
  background-color: #ffffff;
  border: 1px solid #fce4ec;
  border-left: 4px solid #d4af37;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(255, 107, 139, 0.03);
}

.stat-number {
  font-size: 22pt;
  font-weight: bold;
  color: #e05370;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 9pt;
  color: #7f8c8d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Legal Disclaimer Panel */
.legal-notice {
  background-color: #fffdf3;
  border: 1px solid #e6cd61;
  padding: 15px;
  border-radius: 4px;
  margin-top: 25px;
  font-size: 11pt;
  color: #373d3f;
  line-height: 1.4;
}

.legal-title {
  font-weight: bold;
  color: #a9861b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact CTA Link */
.contact-cta-link {
  display: inline-block;
  margin-top: 15px;
  font-family: "Inter", sans-serif;
  font-size: 11pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ea2a6f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-cta-link:hover {
  color: #f5f6fa;
  text-shadow: 0 0 8px rgba(245, 246, 250, 0.4);
  transform: translateX(3px);
}

/* Featured Story Hero Section */
.featured-hero {
  display: flex;
  gap: 30px;
  background: #111;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.hero-img {
  width: 50%;
  max-width: 500px;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.hero-content {
  width: 40%;
  flex: 0 0 40%;
}

/* Stories Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.story-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.section-heading {
  color: #d4af37;
  margin-top: 40px;
  border-bottom: 2px solid #ea2a6f;
  padding-bottom: 10px;
}

.read-more-link {
  display: inline-block;
  color: #ea2a6f;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: #f5f6fa;
  text-shadow: 0 0 8px rgba(245, 246, 250, 0.4);
}

/* Back Links */
.back-link {
  display: inline-block;
  color: #f75691;

  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.back-link:hover {
  color: #f5f6fa;
  text-shadow: 0 0 8px rgba(245, 246, 250, 0.4);
}

.post-footer-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* Archive List Layout */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 0;
  padding-right: 0;
}

.archive-item {
  display: flex;
  gap: 25px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.archive-item:hover {
  border-color: #ea2a6f;
}

.archive-thumb {
  width: 180px;
  height: 120px;
  background-color: #111;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Container that bounds thumbnail and caption width */
.archive-thumb-container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Aligns container contents to the right */
  width: 100%;
  max-width: 150px; /* Matches archive-thumb image width */
}
.archive-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-meta {
  font-size: 0.85rem;
  color: #c5a028;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.archive-title {
  font-size: 14pt;
  margin: 0 0 8px 0;
}

.archive-title a {
  color: #ffffff;
  text-decoration: none;
}

.archive-title a:hover {
  color: #ea2a6f;
}

.archive-excerpt {
  font-size: 10.5pt;
  color: #b3b3b3;
  margin: 0;
}

.archive-header {
  margin-bottom: 30px;
}

/* Article Hero & Facebook Container Layouts */
.article-hero-flex {
  display: flex;
  gap: 30px;
  align-items: center !important;
  margin-bottom: 30px;
}

.fb-embed-container {
  width: 500px;
  max-width: 100%;
  flex-shrink: 0;
}

.fb-embed-container iframe {
  max-width: 100%;
}

.hero-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 498px;
}

.hero-image-box {
  float: left;
  width: 40%;
  max-width: 400px;
  margin: 0 25px 15px 0;
}

.hero-image-inline {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.image-credit-inline {
  font-size: 0.85rem;
  color: #888888;
  margin-top: 6px;
  text-align: right;
}

.image-credit-inline a {
  color: #ea2a6f;
  text-decoration: underline;
}

.image-credit-inline a:hover {
  color: #d4af37;
}
/* Scaled-down, right-aligned caption */
.image-caption-inline {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem; /* Smaller, subtle font size */
  color: #a0a0a0; /* Muted gray for non-link text */
  margin-top: 6px;
  line-height: 1.25;
  text-align: center; /* Right-aligned text under thumbnail */
  width: 100%;
}

/* Brand Pink Link Styling inside Caption */
.image-caption-inline a,
.image-caption-inline a:link,
.image-caption-inline a:visited {
  color: #ea2a6f; /* Signature Brand Pink */
  text-decoration: underline; /* Underline matching example style */
  font-weight: 500;
  transition: color 0.2s ease;
}

.image-caption-inline a:hover {
  color: #d4af37; /* Signature Metallic Gold on hover */
}
.meta-category {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f9dbe6;
  margin-bottom: 8px;
}

.meta-date {
  font-size: 0.85rem;
  color: #ff7dad;
  opacity: 0.8;
  margin-top: 6px;
  margin-bottom: 20px;
}

.comments-title {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  color: #e9166a;
  text-align: center;

  margin-bottom: 24px;
}

/* ==========================================
   SITE FOOTER STYLING (JS FOOTER COMPATIBLE)
   ========================================== */
.site-footer {
  width: 100%;
  background-color: #000000;
  border-top: 3px solid #d4af37;
  padding: 30px 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Row 1: Text Links */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-link {
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ea2a6f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #f5f6fa;
  text-shadow: 0 0 8px rgba(245, 246, 250, 0.4);
}

/* Row 2: Community Buttons (Centered Below Links) */
.footer-community-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

/* Shared Community Button Base Styling */
.forum-btn,
.discord-btn {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: none !important;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  vertical-align: middle;
}

/* Forum Button Specifics */
.forum-btn {
  color: #ffffff;
  background-color: #ea2a6f;
  border: 1px solid #ea2a6f;
}

.forum-btn:hover {
  color: #000000;
  background-color: #f5f6fa;
  border-color: #f5f6fa;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(245, 246, 250, 0.4);
}

/* Discord Button Specifics */
.discord-btn {
  gap: 8px;
  color: #ffffff;
  background-color: #5865f2;
  border: 1px solid #5865f2;
}

.discord-btn:hover {
  background-color: #ea2a6f;
  border-color: #ea2a6f;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.discord-icon {
  display: inline-block;
  vertical-align: middle;
}

.footer-copyright {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt;
  color: #707070;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

/* ==========================================
   RESPONSIVE MOBILE BREAKPOINTS
   ========================================== */
.mobile-analytics {
  display: none;
}

@media (max-width: 900px) {
  .article-hero-flex {
    flex-direction: column;
    align-items: center !important;
  }
  .fb-embed-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-text-block {
    height: auto;
  }
}

@media (max-width: 768px) {
  .post-title {
    font-size: 22px;
  }
  .content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .header-controls {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .web-header {
    background:
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.9) 100%
      ),
      url("../Images/Transparent Phoenix.png");
    background-size: cover;
    background-position: center;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brand-title {
    margin: 0 auto;
    display: block;
  }
  .page-title {
    font-size: 16px;
  }
  .mobile-analytics {
    display: block;
  }
  #sidebar-analytics {
    display: none;
  }

  .archive-item {
    flex-direction: column;
    gap: 15px;
  }
  .archive-thumb {
    width: 100%;
    height: auto; /* Clears fixed height lock */
    aspect-ratio: 16 / 9; /* Maintains consistent proportional scaling from 340px to 768px */
    object-fit: contain; /* Ensures the entire image remains 100% visible without cropping */
    background-color: rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }
  .footer-community-row {
    flex-direction: column;
    gap: 12px;
  }
  .hero-image-box {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
}

/* Footer 3-Column Copyright Row */
.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 15px;
  box-sizing: border-box;
}

.copyright-text {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt;
  color: #707070;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-copyright-row {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
  }
}
/* Consolidated Copyright Text Styling */
.copyright-text {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt;
  color: #707070;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}

.disclaimer-text {
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  color: #a0a0a0;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}

/* =================================== */
/* WHITE RESOURCE CARD CONTAINER       */
/* =================================== */

.resource-card {
  clear: both;
  background-color: #fafafa; /* Off-white background */
  border-top: 4px solid #ea2a6f; /* Signature Pink top border */
  border-bottom: 4px solid #d4af37; /* Metallic Gold bottom border */
  border-radius: 8px;
  padding: 35px 40px;
  margin: 25px 0 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Soft depth shadow against black page */
  color: #2b2b2b; /* Sharp off-black text color */
}

/* Section Titles inside the Card */
.resource-card h2 {
  font-family: "Inter", sans-serif;
  font-size: 1rem; /* Prominent heading scale */
  font-weight: 700;
  color: #000000; /* Warm Ochre Gold for high contrast */
  text-shadow:
    -0.3px -0.3px 0 #ea2a6f,
    0.3px -0.3px 0 #ea2a6f,
    -0.3px 0.3px 0 #ea2a6f,
    0.3px 0.3px 0 #ea2a6f; /* Subtle f0ld outline for definition */
  margin: 30px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0; /* Soft light divider */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resource-card h2:first-of-type {
  margin-top: 0; /* Flush fit for the top title */
}

/* List Items & Descriptions */
.resource-card ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

.resource-card li {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem; /* Matches link scale */
  line-height: 1.3;
  color: #2b2b2b; /* Dark, legible text on light card */
  margin-bottom: 12px;
}

.resource-card li strong {
  color: #111111;
}

/* Hyperlink Styling for Light Card Background */
.resource-card a,
.resource-card a:link {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #ca075f; /* Deep pink for accessibility on light background */
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Visited Links inside Card */
.resource-card a:visited {
  color: #9e7b12; /* Muted gold/bronze for visited state */
  text-decoration: underline;
}

/* Hover, Focus, and Active States inside Card */
.resource-card a:hover,
.resource-card a:focus,
.resource-card a:active {
  color: #182942; /* Dark blue shift on hover */
  text-shadow: none;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .resource-card {
    padding: 20px 18px;
  }
}
/* Floating Figure Container for Article Content */
.article-figure-float {
  float: left; /* Floats image to the left so text wraps around the right */
  width: 48%; /* Takes up less than half the body width */
  max-width: 500px; /* Prevents image from overwhelming desktop layout */
  margin: 6px 11px 12px 0; /* Breathing room on the right and bottom */
}

.article-figure-float img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Disclaimer text under floating image */
.article-figure-float .image-disclaimer {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #a0a0a0;
  margin-top: 6px;
  line-height: 1.3;
  text-align: left;
  font-style: italic;
}

/* Clear float on headings so the next section starts cleanly */
.article-body h2 {
  clear: both;
}

/* Mobile Responsiveness: Stacks image above text on small screens */
@media (max-width: 600px) {
  .article-figure-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
  }
}
/* Compact Floated Image Modifier */
.article-figure-float.small-float {
  width: 35%; /* Takes up around a third of the text width */
  max-width: 300px; /* Cap at 300px so it stays compact on desktop */
  margin: 4px 18px 10px 0;
}
