/* Google Fonts import: Montserrat 800 (ExtraBold) + Inter 400/500 */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Inter:wght@400;500&display=swap");

/* Define the fixed height of the header components and colors */
:root {
  /* General Palette */
  --color-light-cream: #f2f2f2;
  --color-pale-gold: #f2f2f2;
  --color-med-orange: #cb6f4a;
  --color-accent-red: #f2f2f2;
  --color-deep-dark: #1a1a1a;
  --color-very-dark: #121212;

  /* RGB definitions for hover effects */
  --color-accent-red-rgb: 0, 0, 0;
  --color-deep-dark-rgb: 93, 31, 30;

  /* Fixed Heights */
  --top-bar-height: 35px; /* Used for JS logic */
  --navbar-height: 85px;

  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;

  /* Default DARK MODE Theme */
  --theme-bg: var(--color-very-dark);
  --theme-text: var(--color-light-cream);
  --theme-primary-accent: var(--color-accent-red);
  --theme-primary-accent-rgb: var(
    --color-accent-red-rgb
  ); /* Used for hover backgrounds */
  --theme-secondary-accent: var(--color-pale-gold);
  --theme-container-bg: var(--color-deep-dark);
  --theme-shadow: 0 4px 10px rgb(41, 41, 41, 0.1); /* Shadow effect */
}

/* LIGHT MODE Theme */
body.light-mode {
  --theme-bg: var(--color-light-cream);
  --theme-text: var(--color-very-dark);
  --theme-primary-accent: var(--color-deep-dark);
  --theme-primary-accent-rgb: var(
    --color-deep-dark-rgb
  ); /* Used for hover backgrounds */
  --theme-secondary-accent: var(--color-med-orange);
  --theme-container-bg: #eae6e1;
  --theme-shadow: 0 4px 10px rgba(93, 31, 30, 0.2);
  /* Adjust pale gold in light mode for contrast */
  --color-pale-gold: #885902;
}

/* Smooth rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====================================
            BASE STYLES
            ==================================== */
body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--font-body);
  transition: background-color 0.5s, color 0.5s;
  padding-top: 0;
}

/* Global Link Styles */
a {
  color: var(--theme-text);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* --- TOP BAR STYLES (Scrolls with content) --- */
.top-bar {
  position: relative;
  z-index: 1000;
  height: var(--top-bar-height);

  background-color: var(--theme-container-bg);
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.5s;
}

.top-bar .social-links a:hover {
  color: #3EAF37;
}

@media (max-width: 991px) {
  .top-bar {
    display: none !important;
  }
}

/* --- PULSING TEXT EFFECT (News Ticker) --- */
@keyframes text-pulse-glow {
  0% {
    text-shadow: 0 0 5px var(--color-pale-gold),
      0 0 10px rgba(238, 203, 136, 0.4);
  }
  50% {
    /* Fade the shadow and let it spread a bit */
    text-shadow: 0 0 15px rgba(238, 203, 136, 0.2),
      0 0 25px rgba(238, 203, 136, 0.1);
  }
  100% {
    text-shadow: 0 0 5px var(--color-pale-gold),
      0 0 10px rgba(238, 203, 136, 0.4);
  }
}

.pulse-text-glow {
  animation: text-pulse-glow 3s infinite ease-in-out;
  color: var(--color-pale-gold) !important;
  font-weight: bold;
}

/* --- MAIN NAVBAR STYLES (Flows naturally, becomes sticky on scroll) --- */
.navbar {
  position: relative;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--navbar-height);
  background-color: var(--theme-bg);
  border-bottom: 3px solid #3EAF37;
  transition: transform 0.3s ease-in-out, background-color 0.5s,
    border-color 0.5s;
}

/* --- STICKY / FIXED STATE (Applied by JS) --- */
.navbar.is-sticky {
  position: fixed;
  top: 0;
  box-shadow: var(--theme-shadow);
}

/* Class applied by JavaScript when scrolling down AND is-sticky is active */
.navbar-hidden {
  transform: translateY(calc(0px - var(--navbar-height)));
}

/* Better Vibe: Logo Style */
.navbar-brand {
  color: var(--theme-primary-accent) !important;
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.5s;
}

/* Better Vibe: Link Styles */
.navbar .nav-link {
  color: var(--theme-text) !important;
  padding: 8px 1.25rem !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
  border-radius: 4px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--theme-bg) !important;
  background-color: var(--theme-primary-accent) !important;
  box-shadow: var(--theme-shadow);
}

/* Search/Toggle Button Style */
.btn-outline-custom {
  color: var(--theme-primary-accent);
  border-color: var(--theme-primary-accent);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-outline-custom:hover {
  background-color: var(--theme-primary-accent);
  color: var(--theme-bg);
}

.form-control {
  background-color: var(--theme-container-bg);
  color: var(--theme-text);
  border-color: var(--theme-primary-accent);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}

.form-control::placeholder {
  color: var(--theme-text);
  opacity: 0.7;
}

/* ====================================
            DROPDOWN ON HOVER & MEGA MENU STYLES
            ==================================== */

/* 1. Show Dropdown on Hover (Desktop Only) */
@media all and (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: none;
  }
  .navbar .nav-item:hover .dropdown-menu {
    display: block;
  }
  .navbar .nav-item .dropdown-menu {
    margin-top: 0;
  }
}

/* 2. Mega-Menu Styling (Default Dropdown Styling) */
.navbar-nav .dropdown-menu {
  background-color: var(--theme-container-bg);
  border: 1px solid var(--theme-primary-accent);
  box-shadow: var(--theme-shadow);
  padding: 15px;
  min-width: 450px;
  z-index: 1029;
}

.navbar-nav .dropdown-item {
  color: var(--theme-text);
  padding: 5px 10px;
  transition: background-color 0.3s, color 0.3s;
  /* Ensure no list markers (dots) */
  list-style: none;
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--theme-primary-accent);
  color: var(--theme-bg);
}

/* Mega Menu Headers */
.mega-menu-header {
  color: var(--theme-secondary-accent);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
  letter-spacing: 1px;
}

.mega-menu-list a {
  color: var(--theme-text);
  padding: 3px 0;
  display: block;
  font-size: 0.9rem;
}

.mega-menu-list a:hover {
  color: var(--theme-primary-accent);
}

/* ====================================
            CAROUSEL/FEATURED STORY STYLES
            ==================================== */
.content-card {
  background-color: var(--theme-container-bg);
  border: none;
  border-radius: 8px;
  box-shadow: var(--theme-shadow);
  overflow: hidden;
  transition: background-color 0.5s, box-shadow 0.5s;
  padding: 15px;
}

h3,
h4,
h5,
h2,
h6 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h2 {
  font-size: 1.8rem !important;
}

.section-header {
  color: var(--theme-secondary-accent);

  text-transform: uppercase;

  padding-bottom: 5px;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #3EAF37;;
  font-family: var(--font-heading);
  font-weight: 800; /* Montserrat ExtraBold */
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

/* Carousel Specific Styles */
.featured-carousel .carousel-inner {
  border-radius: 8px; /* Match content-card border-radius */
  overflow: hidden;
}

.featured-post .post-image-container {
  height: 400px;
  position: relative;
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

/* Hover effect on the card containing the carousel */
.content-card:hover .featured-post img {
  transform: scale(1.02); /* Slight scale on hover of the parent card */
}

.featured-post .post-content {
  padding: 20px;
}

.featured-post .post-title a {
  color: var(--theme-text);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  transition: color 0.3s;
}

.featured-post .post-title a:hover {
  color: var(--theme-primary-accent);
}

/* Adjust carousel indicators to match theme */
.carousel-indicators [data-bs-target] {
  background-color: var(--theme-primary-accent);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
}

/* ====================================
            TRENDING NEWS STYLES
            ==================================== */

.trending-item {
  display: flex;
  padding: 10px 0;
  /* Border uses transparent white/black based on mode */
  border-bottom: 1px solid rgba(var(--theme-text-rgb, 255, 255, 255), 0.1);
  transition: background-color 0.3s;
}

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

.trending-item:hover {
  /* Use a slight hover background based on the primary accent color */
  background-color: rgba(var(--theme-primary-accent-rgb), 0.1);
  border-radius: 4px;
}

.trending-item .item-img-container {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-right: 15px;
  overflow: hidden;
  border-radius: 4px;
}

.trending-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- TRENDING ITEM TEXT FIX (Ensures equal height for all news items) --- */
.trending-item .item-info {
  display: flex; /* Enable flex for better control of content flow */
  flex-direction: column;
  justify-content: space-between; /* Space out title and date vertically */
  width: calc(100% - 95px); /* Allocate remaining width for content */
}

.trending-item .item-title {
  margin-bottom: 5px;
  height: 40px; /* **FIXED HEIGHT for two lines of text** */
  overflow: hidden; /* Hide any overflow if the title is too long */
  display: -webkit-box; /* Necessary for line-clamp to work in Webkit browsers */
  -webkit-line-clamp: 2; /* **Limit title to 2 lines** */
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.trending-item .item-title a {
  color: var(--theme-text);
  font-weight: 600;
  font-size: 1rem;
  display: block;
  line-height: 1.3;
}
/* --- END TRENDING ITEM TEXT FIX --- */

.trending-item .item-date {
  font-size: 0.8rem;
  color: var(--theme-secondary-accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .featured-post .post-image-container {
    height: 200px; /* Shorter image on mobile */
  }
  .featured-post .post-title a {
    font-size: 1.5rem;
  }

  .navbar-brand {
    color: var(--theme-primary-accent) !important;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    transition: color 0.5s;
  }
}

/* ====================================
            OFFERS/DEALS SECTION STYLES
            ==================================== */
.offers-container {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 15px;
}

.offer-card {
  display: inline-block;
  white-space: normal;
  flex-shrink: 0;
  width: 300px;
  margin-right: 20px;
  background-color: var(--theme-container-bg);
  border-radius: 8px;
  box-shadow: var(--theme-shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(var(--theme-primary-accent-rgb), 0.6);
}

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

/* Hide scrollbar for the offers container */
.offers-container::-webkit-scrollbar {
  height: 6px;
}
.offers-container::-webkit-scrollbar-thumb {
  background-color: var(--theme-primary-accent);
  border-radius: 3px;
}
.offers-container::-webkit-scrollbar-track {
  background-color: var(--theme-container-bg);
}

.reviews-section .section-title {
  font-weight: 700;
  border-bottom: 3px solid #dc3545;
  padding-bottom: 4px;
  display: inline-block;
}
.featured-review img {
  border-radius: 12px;
}
.sidebar-review img {
  object-fit: cover;
}
.sidebar-review h6 {
  line-height: 1.3;
}

.text-muted {
  color: var(--theme-secondary-accent) !important;
}

/* 3. CATEGORY NAVIGATION BAR */
.category-nav {
  height: var(--category-nav-height);
  background-color: var(--color-black);
}

/* Mobile specific adjustments */
@media (max-width: 991px) {
  body {
    padding-top: 0;
  }
  .fixed-header-wrapper {
    position: relative;
  }
  .category-nav .nav-link {
    font-size: 0.8rem;
  }
}

/* ====================================
            MAIN CONTENT STYLES (Dynamic Cards)
            ==================================== */

.content-card {
  background-color: var(--theme-container-bg);
  border: 1px solid #3EAF37;
  border-radius: 6px;
  box-shadow: var(--theme-shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%; /* Important for masonry effect on grid items */
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Custom Buttons */
.btn-custom {
  color: #fff;
  border: 1px solid var(--theme-primary-accent);
  font-weight: 600;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.btn-custom:hover {
  background-color: var(--color-deep-red);
  color: var(--color-light-text);
  border-color: var(--color-deep-red);
}

/* --- HERO FEATURE SECTION --- */
.hero-feature {
  background-color: var(--color-dark-gray);
  color: var(--color-light-text);
  position: relative;
  min-height: 400px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 3rem;
  background-image: url("https://placehold.co/1200x450/3A3D4D/B0C4DE?text=MAJOR+GAME+LAUNCH+HERO");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.1) 0%,
    rgba(26, 26, 26, 0.9) 100%
  );
  padding: 3rem;
  display: flex;
  align-items: flex-end;
}

.hero-title a {
  color: var(--color-light-text);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
}

/* --- CARD STYLES --- */
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title a {
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff !important;
}

.card-title {
  color: #ffffff !important;
}

/* --- CATEGORY HEADER STYLES --- */
.category-header {
  width: 100%;
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding: 10px 0;
  border-bottom: 4px solid var(--color-dark-gray);
  position: relative;
}

.category-header h2 {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark-gray);
  margin: 0;
}

.category-header .view-all {
  position: absolute;
  right: 0;
  bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-primary-accent);
}

/* Style for a tall/dark card */
.dark-card {
  background-color: var(--color-black);
  color: var(--color-light-text);
}

.dark-card .card-title a {
  color: var(--color-light-text);
}

/* Style for a small, quick-read fact card */
.fact-card {
  border: 4px solid var(--theme-primary-accent);
  background-color: var(--color-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fact-card .card-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--theme-primary-accent);
}

/* Video Card Specific Styles */
.video-card-body {
  position: relative;
  background-image: url("https://placehold.co/1000x500/000000/FFFFFF?text=LATEST+GAMEPLAY+TRAILER");
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
}

.video-card-body-large {
  min-height: 400px; /* New height for the main video */
}

.video-card-body-small {
  min-height: 200px; /* Height for the smaller videos */
  /* Default small video placeholder */
  background-image: url("https://placehold.co/600x300/404040/FFFFFF?text=VIDEO+THUMBNAIL");
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.video-play-icon {
  font-size: 4rem;
  color: var(--color-bright-red);
  opacity: 0.9;
  transition: transform 0.2s;
}

.video-card-body-small .video-play-icon {
  font-size: 3rem;
}

.video-overlay:hover .video-play-icon {
  transform: scale(1.1);
}

/* Style for Horizontal Scrolling Section (e.g., Stories/Reels) */
.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}

.short-reel-card {
  min-width: 150px; /* Fixed width for the reel effect */
  width: 150px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  background-color: var(--color-black);
  flex-shrink: 0; /* Prevent shrinking in flex container */
}

.short-reel-card:hover {
  transform: scale(1.05);
}

.reel-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  color: var(--color-light-text);
}

.reel-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.reel-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  color: var(--color-bright-red);
  font-size: 1.2rem;
}

/* ====================================
            INSTANT STORIES/REELS STYLES (Circular)
            ==================================== */

.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem; /* Increased gap for spacing */
  padding-bottom: 1rem; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: flex-start; /* Align elements to the top of the container */
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.story-icon-container {
  min-width: 90px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.story-ring-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* Gradient for a more vibrant 'new story' ring effect */
  background: linear-gradient(
    45deg,
    var(--color-bright-red),
    var(--color-deep-red)
  );
  padding: 3px;
  transition: transform 0.2s;
  cursor: pointer;
}

.story-ring-wrapper:hover {
  transform: scale(1.05);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-light-gray);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--color-white); /* Inner white border for contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-dark-text);
  font-size: 1.5rem;
  font-weight: 700;
}

.story-title {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark-text);
  line-height: 1.1;
}

/* Fullscreen Story Overlay */
.story-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column; /* Stack title and iframe */
}
.story-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Stylish Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}
.close-btn i {
  color: #333;
}

/* Modal background */
.reel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease forwards;
}

/* Video box */
.reel-modal-content {
  background: #000;
  padding: 10px;
  border-radius: 14px;
  max-width: 650px;
  width: 92%;
  position: relative;
  transform: scale(0.7);
  opacity: 0;
  animation: popUp 0.35s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popUp {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close Button */
.close-reel {
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  z-index: 5;
}

/* Navigation Arrows */
.reel-nav {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: #ffffff;
  cursor: pointer;
  padding: 8px 12px;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: 0.3s;
  z-index: 5;
}

.reel-nav:hover {
  opacity: 1;
}

.prev-reel {
  left: -45px;
}
.next-reel {
  right: -45px;
}

/* Smaller screens adjusts */
@media (max-width: 600px) {
  .prev-reel {
    left: -5px;
  }
  .next-reel {
    right: -5px;
  }
  .carousel-control-prev {
    left: -21px;
  }

  .carousel-control-next {
    right: -20px;
  }

  .carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -37px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 1rem;
    margin-left: 15%;
  }

  .mob-mb-3 {
    margin-top: 2rem;
  }

  .mob-mb-4 {
    margin-top: 4rem !important;
  }
}

/* ====================================
            FOOTER STYLES (New)
            ==================================== */

.main-footer {
  background-color: var(--color-very-dark); /* Always dark for deep contrast */
  color: var(--color-light-cream);
  padding: 3rem 0 1.5rem 0;
  margin-top: 5rem;
  border-top: 5px solid var(--theme-primary-accent);
}

.main-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.main-footer a:hover {
  color: var(--color-med-orange);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #f2f2f2;
}

.footer-copyright {
  color: #f2f2f2;
  font-size: 0.85rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f2f2f2;
}

.footer-social-icons a {
  color: var(--color-light-cream);
  margin-right: 15px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social-icons a:hover {
  color: var(--theme-primary-accent);
}

/* Category Nav Bar */
.category-nav {
  background-color: var(--bg-card-surface);
  height: 40px;
  display: none;
  align-items: center;
}
.category-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.category-nav a {
  color: var(--text-secondary);
  padding-bottom: 4px;
}
.category-nav a.active,
.category-nav a:hover {
  color: var(--accent-gold);
  border-bottom: 3px solid var(--accent-gold);
}

/* Mobile adjustment for padding */
@media screen and (max-width: 1023px) {
  body {
    padding-top: 100px;
  }
  .fixed-header-wrapper {
    box-shadow: var(--shadow-subtle);
  }
}

/* ====================================
           MAIN CONTENT LAYOUT 
           ==================================== */
.main-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-highlight);
  border-bottom: 2px solid var(--accent-bronze);
  padding-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Desktop Layout (lg breakpoint: 1024px) */
@media screen and (min-width: 1024px) {
  .desktop-nav,
  .category-nav {
    display: flex;
  }
  .main-grid {
    grid-template-columns: 350px 1fr; /* Fixed width sidebar, fluid content */
  }
}

/* ====================================
           SIDEBAR STYLES (ASIDE)
           ==================================== */
.sidebar-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--theme-container-bg);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2rem;
  border: var(--border-thin);
}

.sidebar-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--accent-bronze);
}

/* Trending Mini Article */
.trending-article {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.trending-article:hover {
  background-color: rgba(184, 134, 11, 0.1); /* Gold/10 */
  color: var(--text-highlight);
}
.trending-article-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-right: 1rem;
  width: 30px;
  flex-shrink: 0;
  text-align: center;
}
.trending-article h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.trending-article p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Filter Tags */
.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.filter-tag {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid var(--accent-bronze);
  background-color: transparent;
  color: var(--text-secondary);
}
.filter-tag:hover {
  background-color: var(--accent-bronze);
  color: var(--text-primary);
}
.active-filter {
  background-color: var(--accent-gold);
  color: var(--bg-deep-charcoal);
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Latest News Mini Article */
.latest-news-article {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.latest-news-article:hover {
  background-color: rgba(205, 127, 50, 0.1); /* Bronze/10 */
  color: var(--text-highlight);
}
.latest-news-article img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-bronze);
}
.latest-news-article h6 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.latest-news-article p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ====================================
           LISTING STYLES (Right Column)
           ==================================== */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--bg-card-surface);
  border: var(--border-thin);
}
.results-summary,
.sort-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.sort-select {
  background-color: var(--bg-deep-charcoal) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--accent-bronze) !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.listing-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Article Card V3 (Premium Look) */
.article-card-v3 {
  background-color: var(--bg-card-surface);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: var(--border-thin);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth ease-out */
}
.article-card-v3:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); /* Gold glow hover */
  transform: translateY(-8px);
  border-color: var(--accent-gold);
}

/* Layout for Image + Content */
.card-inner-layout {
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .card-inner-layout {
    flex-direction: row;
    height: 300px; /* Consistent card height */
  }
}

.article-card-v3-img-wrapper {
  flex-shrink: 0;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .article-card-v3-img-wrapper {
    width: 40%;
  }
}
.article-card-v3-img {
  width: 100%;
  height: 250px; /* Fallback height */
  object-fit: cover;
  display: block;
}
@media screen and (min-width: 768px) {
  .article-card-v3-img {
    height: 100%; /* Fill container height */
  }
}

.article-card-v3-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card-v3-topic {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}
.article-card-v3 h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.15;
  color: var(--text-highlight);
}
.article-card-v3 h2 a:hover {
  color: var(--accent-gold);
}

.article-card-v3-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.card-bottom-bar {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(205, 127, 50, 0.1); /* Lighter bronze divider */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.card-bottom-bar span {
  color: var(--text-secondary);
}
.card-bottom-bar i {
  margin-right: 0.4rem;
  color: var(--accent-bronze);
}
.article-card-v3-read-time {
  font-weight: 600;
  color: var(--accent-gold);
}

/* Pagination */
.pagination-nav {
  margin-top: 3rem;
}
.pagination-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
}
.pagination-link {
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  border: var(--border-thin);
  background-color: var(--bg-card-surface);
  color: var(--text-primary);
}
.pagination-link:hover:not(.active):not(.disabled) {
  background-color: var(--accent-bronze);
  border-color: var(--accent-gold);
  color: var(--text-highlight);
}
.pagination-link.active {
  background-color: var(--accent-gold);
  color: var(--bg-deep-charcoal);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.5);
  border-color: var(--accent-gold);
}
.pagination-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.navbar-brand img {
  width: 200px;
  height: auto;
}

/* ====================================
           DETAIL LAYOUT STYLES
           ==================================== */
.article-header {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}
.article-header-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.article-header-meta span i {
  margin-right: 0.4rem;
  color: var(--accent-bronze);
}
.article-header-meta .topic {
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 1.5rem;
}
.article-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-highlight);
}
.article-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.author-info-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media screen and (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 2fr 350px; /* Content on left, Sidebar on right */
  }
}

/* Article Content Editor Box */
.editor-box {
  max-width: 800px; /* Optimal reading width */
  margin: 0 auto;
  color: var(--text-primary);
  font-size: 1.1rem;
}
.editor-box h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-highlight);
  border-left: 4px solid var(--accent-gold);
  padding-left: 1rem;
}
.editor-box h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}
.editor-box p {
  margin-bottom: 1.5rem;
}
.editor-box img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-subtle);
  border: var(--border-thin);
  display: block; /* Ensure image behaves as block for margin centering */
}
.editor-box figure {
  margin: 2rem 0;
  padding: 0;
}
.editor-box figcaption {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}
.editor-box blockquote {
  background-color: var(--bg-card-surface);
  border-left: 6px solid var(--accent-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-highlight);
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.editor-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--bg-card-surface);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}
.editor-box th,
.editor-box td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(205, 127, 50, 0.1);
}
.editor-box th {
  background-color: var(--accent-bronze);
  color: var(--bg-deep-charcoal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.editor-box tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}
.editor-box .iframe-sim {
  background-color: #101014;
  height: 350px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 2px dashed var(--accent-gold);
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: 500;
}

/* Image Gallery Styles */
.image-gallery-section {
  padding: 2.5rem 0;
  margin: 3rem auto;
  border-top: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  max-width: 100%;
}
.gallery-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gallery-item img:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
}

/* Author Card specifics */
.author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.author-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent-red);
  margin-bottom: 1rem;
}
.author-profile h6 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin: 0 0 0.5rem 0;
}
.author-profile p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
}
.author-bio {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.author-link {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-bronze);
  border-radius: 9999px;
  color: var(--accent-gold);
}
.author-link:hover {
  background-color: var(--accent-bronze);
  color: var(--bg-deep-charcoal);
  text-decoration: none;
}

/* Latest News Mini Article (Reused) */
.latest-news-article {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.latest-news-article:hover {
  background-color: rgba(205, 127, 50, 0.1);
  color: var(--text-highlight);
}
.latest-news-article img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-bronze);
}
.latest-news-article h6 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.latest-news-article p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Related Posts Section */
.related-posts {
  max-width: 1400px;
  margin: 5rem auto 0;
  padding: 0 2rem;
}
.related-posts h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-highlight);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media screen and (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background-color: var(--bg-card-surface);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: var(--border-thin);
  transition: transform 0.3s, box-shadow 0.3s;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.related-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.related-card-content {
  padding: 1.5rem;
}
.related-card-topic {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-bronze);
  text-transform: uppercase;
}
.related-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0 0;
  line-height: 1.3;
  color: var(--text-highlight);
}
.related-card a:hover h4 {
  color: var(--accent-gold);
}
.related-card-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ====================================
           AUTHOR PROFILE STYLES
           ==================================== */
.profile-container {
  background-color: var(--theme-container-bg);
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid rgba(205, 127, 50, 0.1);
}

@media (min-width: 768px) {
  .profile-container {
    flex-direction: row;
    text-align: left;
    padding: 4rem;
    align-items: flex-start;
  }
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--accent-gold);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .profile-avatar {
    margin-right: 2.5rem;
    margin-bottom: 0;
  }
}

.profile-details h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-highlight);
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
}

.profile-details h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-bronze);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-details p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.profile-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .profile-socials {
    justify-content: flex-start;
  }
}

.profile-socials a {
  font-size: 1.5rem;
  color: var(--text-secondary);
}
.profile-socials a:hover {
  color: var(--accent-gold);
}

/* Stats Bar */
.profile-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(205, 127, 50, 0.3);
  border-bottom: 1px solid rgba(205, 127, 50, 0.3);
  margin-top: 1rem;
}
.stat-item-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
}
.stat-value-lg {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.stat-label-lg {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Post Tabs Navigation */
.post-tabs {
  display: flex;
  border-bottom: 2px solid var(--accent-bronze);
  margin-bottom: 3rem;
  overflow-x: auto;
  white-space: nowrap;
}
.tab-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s, border-bottom-color 0.3s;
  border-bottom: 2px solid transparent;
}
.tab-button.active {
  color: var(--accent-gold);
  border-bottom: 3px solid var(--accent-gold);
}
.tab-button:hover:not(.active) {
  color: var(--text-primary);
}

/* Post Card Listing */
.post-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  padding-bottom: 5rem;
}
@media screen and (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  background-color: var(--bg-card-surface);
  border-radius: 1rem;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(205, 127, 50, 0.1);
}
.post-content {
  padding: 1.5rem;
}
.post-tag {
  display: inline-block;
  background-color: rgba(184, 134, 11, 0.2);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.post-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}
.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}



.main-footer .navbar-brand img{
  width: 300px;
}

/* Default = DARK MODE */
.logo-light {
  display: none;
}

.logo-dark {
  display: block;
}

/* LIGHT MODE */
body.light-mode .logo-light {
  display: block;
}

body.light-mode .logo-dark {
  display: none;
}

.logo-light,
.logo-dark {
  transition: opacity 0.25s ease;
}

.related-card img {
    width: 350px;
    height: 350px;
    background-size: cover;
}

.search-header {
      padding: 40px 0 20px;
      border-bottom: 1px solid #1f2933;
    }

    .search-header h1 {
      font-size: 32px;
      font-weight: 700;
    }

    .search-header span {
      color: #38bdf8;
    }

    .result-count {
      color: #9ca3af;
      margin-top: 8px;
    }

    /* Search Card */
    .search-card {
      background: #151933;
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 30px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .search-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }

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

    .card-body {
      padding: 20px;
    }

    .post-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      font-size: 13px;
      color: #9ca3af;
      margin-bottom: 10px;
    }

    .post-meta i {
      color: #38bdf8;
      margin-right: 5px;
    }

    .categories a {
      background: #1e293b;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      color: #38bdf8;
      text-decoration: none;
    }

    .categories a:hover {
      background: #38bdf8;
      color: #0f1221;
    }

    .card-body h3 {
      font-size: 20px;
      font-weight: 700;
      margin: 10px 0;
    }

    .card-body h3 a {
      color: #f9fafb;
      text-decoration: none;
    }

    .card-body h3 a:hover {
      color: #38bdf8;
    }

    .excerpt {
      font-size: 14px;
      color: #d1d5db;
      line-height: 1.6;
    }

    /* Sidebar */
    .sidebar {
      background: #151933;
      border-radius: 16px;
      padding: 25px;
      position: sticky;
      top: 20px;
    }

    .sidebar h4 {
      font-size: 18px;
      margin-bottom: 20px;
    }

    .sidebar ul {
      list-style: none;
      padding: 0;
    }

    .sidebar ul li {
      margin-bottom: 12px;
    }

    .sidebar ul li a {
      color: #9ca3af;
      text-decoration: none;
    }

    .sidebar ul li a:hover {
      color: #38bdf8;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .search-header h1 {
        font-size: 26px;
      }
    }

    /* ===============================
   AUTHOR IGN CARD
================================= */
.author-ign-card {
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, #1c1f26, #23272f);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Label */
.ign-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9aa4b2;
  margin-bottom: 6px;
}

/* Main IGN */
.ign-main {
  margin-bottom: 14px;
}

.ign-tag {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg,var(--text-primary), #3EAF37);
  border-radius: 999px;
  box-shadow: 0 4px 12px #3a8d36;
}

/* Alternative IGNs */
.ign-alt {
  margin-top: 10px;
}

.ign-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* IGN CHIP */
.ign-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.ign-chip:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Game name badge */
.ign-game {
  font-size: 11px;
  font-weight: 800;
  color: #3a8d36;
  text-transform: uppercase;

  padding: 4px 8px;
  border-radius: 6px;
}

/* IGN text */
.ign-name {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}
