/* ==========================================================================
   COLLABOR8 DIGITAL - HEADER & NAVIGATION STYLES (MATCHING HEADER.ASTRO)
   ========================================================================== */
.custom-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 22px 36px;
  position: fixed;
  z-index: 1050;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.custom-header .custom-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.custom-header .brand-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-header .brand-logo img,
.header-logo-img {
  height: 56px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.custom-header .brand-logo:hover img {
  transform: scale(1.03);
}

.custom-header.active,
.custom-header.show-header,
.custom-header.menu-is-open,
body.menu-active .custom-header {
  background: rgba(8, 22, 58, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 14px 36px;
}

/* MENU BACKDROP OVERLAY */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  z-index: 1035;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* HAMBURGER MENU BUTTON */
.menu-button {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
  outline: 3.5px solid rgba(255, 255, 255, 0.38);
  outline-offset: 4px;
  border: none;
  box-sizing: border-box;
}

.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.42s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  box-sizing: border-box;
  will-change: transform, left, width, border-radius, border-color;
}

.menu-button::before {
  top: -8px;
  left: -8px;
  transform: translateX(0);
  border-top: 3.5px solid #ffffff;
  border-left: 3.5px solid #ffffff;
  border-right: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-top-left-radius: 18px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.menu-button::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 3.5px solid #ffffff;
  border-right: 3.5px solid #ffffff;
  border-top: 3.5px solid transparent;
  border-left: 3.5px solid transparent;
  border-bottom-right-radius: 18px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
}

.menu-button:hover {
  background: #2D5CFF;
}

.menu-button:hover::before {
  top: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 36px !important;
  height: 20px !important;
  border-top: 3.5px solid #ffffff !important;
  border-left: 3.5px solid transparent !important;
  border-right: 3.5px solid transparent !important;
  border-bottom: 3.5px solid transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.menu-button:hover::after {
  bottom: -8px !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 36px !important;
  height: 20px !important;
  border-bottom: 3.5px solid #ffffff !important;
  border-top: 3.5px solid transparent !important;
  border-left: 3.5px solid transparent !important;
  border-right: 3.5px solid transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.hamburger-bars {
  width: 22px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  pointer-events: none;
}

.hamburger-bars .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform-origin: center;
}

.menu-button.active .hamburger-bars .bar-1 {
  transform: translateY(7.75px) rotate(45deg);
}

.menu-button.active .hamburger-bars .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-button.active .hamburger-bars .bar-3 {
  transform: translateY(-7.75px) rotate(-45deg);
}

/* SIDE MENU DRAWER */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: radial-gradient(circle at top right, #1a2a6c 0%, #0c1228 60%, #050814 100%);
  padding: 120px 48px 40px;
  transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1040;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin !important;
  scrollbar-color: rgba(90, 133, 255, 0.5) rgba(255, 255, 255, 0.02) !important;
  scroll-behavior: smooth !important;
  box-sizing: border-box;
}

.side-menu.active {
  right: 0;
}

.side-menu .menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-menu .menu-item {
  position: relative;
}

.side-menu .menu-item a {
  text-decoration: none;
  color: #ffffff;
  display: inline-block;
  transition: color 0.3s ease;
}

.side-menu-cta {
  display: none;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.side-menu-cta .main-button {
  width: 100%;
  display: flex;
}

.side-menu-cta .main-button a {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
  box-sizing: border-box;
}

/* WAVE TEXT ANIMATION */
.wave-text {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: var(--c8-font-heading);
  cursor: pointer;
}

.wave-text a span,
.wave-text div span,
.wave-text .services-label span,
.wave-text .services-row span {
  display: inline-block;
  color: #ffffff;
  transition: color 0.3s ease;
}

.wave-text:hover span {
  color: #4f8cff !important;
  animation: textWave 0.75s ease-in-out 1;
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.04s; }
.wave-text span:nth-child(3) { animation-delay: 0.08s; }
.wave-text span:nth-child(4) { animation-delay: 0.12s; }
.wave-text span:nth-child(5) { animation-delay: 0.16s; }
.wave-text span:nth-child(6) { animation-delay: 0.20s; }
.wave-text span:nth-child(7) { animation-delay: 0.24s; }
.wave-text span:nth-child(8) { animation-delay: 0.28s; }
.wave-text span:nth-child(9) { animation-delay: 0.32s; }
.wave-text span:nth-child(10) { animation-delay: 0.36s; }

@keyframes textWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* SERVICES DROPDOWN */
.services-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  width: auto;
}

.services-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.toggle-icon-svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  transition: transform 0.35s ease;
  flex-shrink: 0;
  display: inline-block;
}

.toggle-icon-svg.rotate {
  transform: rotate(180deg);
}

.side-menu .sub-menu {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.side-menu .services-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-menu .service-sub-title a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: var(--c8-font-body);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.side-menu .service-sub-title a:hover {
  background: linear-gradient(90deg, rgba(45, 92, 255, 0.25) 0%, rgba(179, 38, 207, 0.25) 100%);
  border-color: rgba(90, 133, 255, 0.45);
  color: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(45, 92, 255, 0.2);
}

/* SIDE MENU CONTACT & SOCIAL */
.side-menu-contact-info {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.side-contact-group,
.side-social-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.side-contact-heading {
  font-family: var(--c8-font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c8-primary-light);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-contact-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(90, 133, 255, 0.3) 0%, transparent 100%);
}

.side-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.side-contact-link:hover {
  background: rgba(45, 92, 255, 0.15);
  border-color: rgba(90, 133, 255, 0.45);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(45, 92, 255, 0.2);
}

.side-contact-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(45, 92, 255, 0.15);
  border: 1px solid rgba(90, 133, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c8-primary-light);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.side-contact-link:hover .side-contact-icon-wrapper {
  background: linear-gradient(135deg, #2D5CFF 0%, #B326CF 100%);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(45, 92, 255, 0.4);
}

.side-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.side-contact-label {
  font-family: var(--c8-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.side-contact-val {
  font-family: var(--c8-font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  word-break: break-word;
}

.side-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.side-social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-social-link:hover {
  background: linear-gradient(135deg, #2D5CFF 0%, #7264FF 50%, #B326CF 100%);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(45, 92, 255, 0.45);
}

/* ==========================================================================
   FOOTER STYLES (MATCHING FOOTER.ASTRO)
   ========================================================================== */
.media-footer {
  position: relative;
  z-index: 20;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 50% 0%, #15275e 0%, #0c183d 60%, #060e26 100%);
  padding: 48px 0 0 0;
  font-family: var(--c8-font-body);
  width: 100%;
  margin-top: 80px;
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  box-sizing: border-box;
}

.cta-box {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 38px 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-sizing: border-box;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(50, 93, 254, 0.8), transparent);
}

.cta-left-content {
  flex: 1 1 auto;
  max-width: 760px;
}

.cta-box .prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c8-primary-light);
  margin-bottom: 10px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--c8-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--c8-primary);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

.cta-box h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  font-family: var(--c8-font-heading);
}

.cta-box h2 strong {
  background: linear-gradient(120deg, #5a85ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 0;
}

.footer-grid-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr;
  gap: 32px;
  width: 100%;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.footer-logo img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
}

.media-footer h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  font-family: var(--c8-font-heading);
  letter-spacing: -0.2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--c8-primary-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.25s ease;
}

.footer-contact-item a:hover {
  color: var(--c8-primary-light);
}

.hours-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.hours-title {
  color: #ffffff;
  font-weight: 700;
}

.hours-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-top: 2px;
}

.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-logo-social {
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--c8-primary);
  border-color: var(--c8-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(50, 93, 254, 0.4);
}

/* FOOTER COPYRIGHT */
.footer-copyright {
  width: 100%;
  border-top: none;
  padding: 24px 24px 20px;
  box-sizing: border-box;
}

.footer-copyright-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.copyright-text,
.footer-dba-center {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  transition: color 0.25s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.legal-dot {
  color: rgba(255, 255, 255, 0.45);
}

/* LOCATIONS STRIP */
.footer-locations-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 24px 34px;
}

.footer-locations-inner {
  max-width: 1360px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.locations-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-family: var(--c8-font-heading);
  background: var(--c8-gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.locations-inline-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.8;
}

.location-inline-link {
  color: #A3B5D1;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.location-inline-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.loc-divider {
  color: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

/* ==========================================================================
   BLOG ARCHIVE & LISTING LAYOUT
   ========================================================================== */
.c8-blog-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.c8-blog-hero {
  padding: 140px 0 50px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.35) 0%, rgba(5, 8, 20, 0) 70%);
}

.c8-blog-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.c8-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(45, 92, 255, 0.12);
  border: 1px solid rgba(90, 133, 255, 0.3);
  color: var(--c8-primary-light);
  font-family: var(--c8-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.c8-blog-hero-title {
  font-family: var(--c8-font-heading);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

.c8-blog-hero-title span {
  background: var(--c8-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c8-blog-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--c8-text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

/* SEARCH & FILTER CONTROLS */
.c8-blog-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.c8-search-form {
  width: 100%;
  max-width: 580px;
}

.c8-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(13, 24, 53, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px 8px 6px 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.c8-search-input-wrap:focus-within {
  border-color: var(--c8-primary-light);
  box-shadow: 0 0 25px rgba(45, 92, 255, 0.35);
}

.c8-search-icon {
  color: var(--c8-primary-light);
  margin-right: 12px;
  flex-shrink: 0;
}

.c8-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--c8-font-body);
  font-size: 15px;
}

.c8-search-input::placeholder {
  color: var(--c8-text-dim);
}

.c8-search-btn {
  background: var(--c8-gradient-brand);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: var(--c8-font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.c8-search-btn:hover {
  opacity: 0.9;
}

.c8-category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.c8-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--c8-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.c8-cat-pill:hover,
.c8-cat-pill.active {
  background: var(--c8-gradient-brand);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(45, 92, 255, 0.35);
}

.c8-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
}

/* ==========================================================================
   FEATURED POST CARD SPOTLIGHT
   ========================================================================== */
.c8-featured-post-card {
  margin: 30px 0 60px;
  background: radial-gradient(circle at 0% 0%, rgba(45, 92, 255, 0.15) 0%, rgba(13, 24, 53, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.c8-featured-post-card:hover {
  border-color: rgba(90, 133, 255, 0.5);
  transform: translateY(-4px);
}

.c8-featured-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

.c8-featured-thumb-link {
  display: block;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}

.c8-featured-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.c8-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.c8-featured-post-card:hover .c8-featured-img {
  transform: scale(1.04);
}

.c8-featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--c8-gradient-brand);
  color: #ffffff;
  font-family: var(--c8-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.c8-featured-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c8-card-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.c8-card-cat-tag {
  color: var(--c8-accent-cyan);
  font-family: var(--c8-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.c8-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c8-text-dim);
  font-size: 13px;
}

.c8-featured-title {
  font-family: var(--c8-font-heading);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}

.c8-featured-title a {
  transition: color 0.25s ease;
}

.c8-featured-title a:hover {
  color: var(--c8-primary-light);
}

.c8-featured-excerpt {
  color: var(--c8-text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.c8-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.c8-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c8-author-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(90, 133, 255, 0.4);
}

.c8-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c8-author-name {
  font-family: var(--c8-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.c8-post-date {
  font-size: 12.5px;
  color: var(--c8-text-dim);
}

/* ==========================================================================
   BLOG POSTS GRID
   ========================================================================== */
.c8-section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.c8-section-title {
  font-family: var(--c8-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.c8-section-count {
  font-size: 14px;
  color: var(--c8-text-dim);
}

.c8-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.c8-post-card {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.c8-post-card:hover {
  transform: translateY(-6px);
  border-color: var(--c8-border-hover);
  background: var(--c8-bg-card-hover);
  box-shadow: 0 18px 45px rgba(45, 92, 255, 0.2);
}

.c8-card-thumb-link {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #081126;
}

.c8-card-thumb {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.c8-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.c8-post-card:hover .c8-card-img {
  transform: scale(1.06);
}

.c8-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c183d 0%, #15275e 100%);
}

.c8-img-fallback img {
  max-width: 120px;
  opacity: 0.6;
}

.c8-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 18, 48, 0.85);
  border: 1px solid rgba(90, 133, 255, 0.4);
  backdrop-filter: blur(8px);
  color: var(--c8-accent-cyan);
  font-family: var(--c8-font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}

.c8-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c8-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c8-text-dim);
  font-size: 13px;
  margin-bottom: 12px;
}

.c8-meta-sep {
  opacity: 0.4;
}

.c8-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.c8-card-title {
  font-family: var(--c8-font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c8-card-title a {
  transition: color 0.25s ease;
}

.c8-card-title a:hover {
  color: var(--c8-primary-light);
}

.c8-card-excerpt {
  color: var(--c8-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c8-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: auto;
}

.c8-author-name-mini {
  font-size: 13px;
  color: var(--c8-text-dim);
  font-weight: 500;
}

.c8-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c8-primary-light);
  font-family: var(--c8-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  transition: gap 0.25s ease, color 0.25s ease;
}

.c8-read-more-link:hover {
  color: #ffffff;
  gap: 10px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.collabor8-pagination {
  margin: 50px 0 80px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.collabor8-pagination ul.page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.collabor8-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--c8-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.collabor8-pagination .page-numbers:hover,
.collabor8-pagination .page-numbers.current {
  background: var(--c8-gradient-brand);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(45, 92, 255, 0.4);
}

.collabor8-pagination .page-numbers.dots {
  background: transparent;
  border: none;
}

/* NO POSTS FOUND */
.c8-no-posts-box {
  padding: 80px 24px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 20px;
}

.c8-no-posts-icon {
  color: var(--c8-primary-light);
  margin-bottom: 18px;
}

.c8-no-posts-box h2 {
  font-family: var(--c8-font-heading);
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 12px;
}

.c8-no-posts-box p {
  color: var(--c8-text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ==========================================================================
   SINGLE ARTICLE TEMPLATE
   ========================================================================== */
.c8-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--c8-gradient-brand);
  z-index: 2000;
  box-shadow: 0 0 12px rgba(90, 133, 255, 0.8);
  transition: width 0.1s linear;
}

.c8-single-article {
  padding-top: 120px;
}

.c8-article-hero {
  padding: 30px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 48px;
}

.c8-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--c8-text-dim);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.c8-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.c8-crumb-sep {
  opacity: 0.4;
}

.c8-crumb-current {
  color: var(--c8-primary-light);
}

.c8-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.c8-cat-badge-pill {
  background: rgba(45, 92, 255, 0.15);
  border: 1px solid rgba(90, 133, 255, 0.4);
  color: var(--c8-accent-cyan);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--c8-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.c8-read-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c8-text-dim);
  font-size: 13px;
}

.c8-article-title {
  font-family: var(--c8-font-heading);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 28px;
  max-width: 1040px;
}

.c8-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
}

.c8-author-card-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}

.c8-author-avatar-wrap img {
  border-radius: 50%;
  border: 2px solid rgba(90, 133, 255, 0.4);
}

.c8-author-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.c8-author-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.c8-author-name strong {
  color: #ffffff;
}

.c8-author-dates {
  font-size: 13px;
  color: var(--c8-text-dim);
}

.c8-date-sep {
  margin: 0 4px;
}

.c8-hero-share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c8-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--c8-font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.c8-share-btn:hover {
  background: var(--c8-primary);
  border-color: var(--c8-primary);
  box-shadow: 0 4px 14px rgba(45, 92, 255, 0.35);
}

.c8-share-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
  text-decoration: none;
}

.c8-share-icon-btn:hover {
  background: var(--c8-primary);
  border-color: var(--c8-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(45, 92, 255, 0.35);
}

.c8-article-featured-media {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}

.c8-featured-banner-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

/* ==========================================================================
   ARTICLE LAYOUT (MAIN + SIDEBAR)
   ========================================================================== */
.c8-article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  margin-bottom: 70px;
}

.c8-article-main {
  min-width: 0;
}

/* ARTICLE GUTENBERG CONTENT TYPOGRAPHY */
.c8-entry-content {
  font-size: 17.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.c8-entry-content p {
  margin-bottom: 24px;
}

.c8-entry-content h2 {
  font-family: var(--c8-font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-top: 48px;
  margin-bottom: 18px;
  position: relative;
  padding-left: 18px;
}

.c8-entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  background: var(--c8-gradient-brand);
  border-radius: 4px;
}

.c8-entry-content h3 {
  font-family: var(--c8-font-heading);
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-top: 36px;
  margin-bottom: 14px;
}

.c8-entry-content h4 {
  font-family: var(--c8-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 28px;
  margin-bottom: 12px;
}

.c8-entry-content ul,
.c8-entry-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.c8-entry-content li {
  margin-bottom: 10px;
}

.c8-entry-content a {
  color: var(--c8-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.c8-entry-content a:hover {
  color: #ffffff;
}

.c8-entry-content blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  background: rgba(45, 92, 255, 0.08);
  border-left: 4px solid var(--c8-primary-light);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: #ffffff;
}

.c8-entry-content blockquote p {
  margin-bottom: 0;
}

.c8-entry-content img {
  border-radius: 16px;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.c8-entry-content pre,
.c8-entry-content code {
  background: #09122a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: 'Courier New', Courier, monospace;
}

.c8-entry-content code {
  padding: 2px 6px;
  font-size: 14px;
  color: var(--c8-accent-cyan);
}

.c8-entry-content pre {
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.c8-entry-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: #e2e8f0;
}

/* TAGS PILLS */
.c8-post-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.c8-tags-label {
  font-family: var(--c8-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--c8-text-dim);
  text-transform: uppercase;
}

.c8-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.c8-tag-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.c8-tag-pill:hover {
  background: rgba(45, 92, 255, 0.15);
  border-color: rgba(90, 133, 255, 0.4);
  color: #ffffff;
}

/* SHARE BOTTOM BAR */
.c8-share-bar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  padding: 20px 28px;
  border-radius: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.c8-share-title {
  font-family: var(--c8-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.c8-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* AUTHOR BIO BOX */
.c8-author-bio-box {
  display: flex;
  gap: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(45, 92, 255, 0.12) 0%, rgba(13, 24, 53, 0.75) 100%);
  border: 1px solid var(--c8-border);
  padding: 32px;
  border-radius: 20px;
  margin-bottom: 44px;
}

.c8-author-bio-avatar img {
  border-radius: 50%;
  border: 3px solid rgba(90, 133, 255, 0.4);
}

.c8-author-bio-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c8-author-bio-role {
  font-family: var(--c8-font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c8-primary-light);
}

.c8-author-bio-name {
  font-family: var(--c8-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.c8-author-bio-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c8-text-muted);
  margin-bottom: 8px;
}

.c8-author-all-posts-link {
  color: var(--c8-primary-light);
  font-family: var(--c8-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.c8-author-all-posts-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* POST NAVIGATION */
.c8-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.c8-nav-box {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c8-nav-box:hover {
  background: var(--c8-bg-card-hover);
  border-color: var(--c8-border-hover);
  transform: translateY(-3px);
}

.c8-prev-box {
  text-align: left;
}

.c8-next-box {
  text-align: right;
}

.c8-nav-direction {
  font-family: var(--c8-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c8-primary-light);
  letter-spacing: 0.05em;
}

.c8-nav-title {
  font-family: var(--c8-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

/* ==========================================================================
   STICKY SIDEBAR WIDGETS
   ========================================================================== */
.c8-article-sidebar {
  position: relative;
}

.c8-sidebar-sticky-inner {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.c8-sidebar-widget {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.c8-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c8-primary-light);
  margin-bottom: 18px;
}

.c8-widget-title {
  font-family: var(--c8-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* TABLE OF CONTENTS */
.c8-toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c8-toc-nav li {
  font-size: 14px;
}

.c8-toc-nav li.toc-level-3 {
  padding-left: 16px;
  font-size: 13px;
}

.c8-toc-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.45;
}

.c8-toc-nav a:hover,
.c8-toc-nav a.active {
  color: var(--c8-primary-light);
  transform: translateX(4px);
  font-weight: 600;
}

/* SIDEBAR SEARCH */
.c8-sidebar-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
  margin-top: 14px;
}

.c8-sidebar-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
}

.c8-sidebar-search-wrap button {
  background: var(--c8-primary);
  border: none;
  color: #ffffff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* RECENT POSTS LIST */
.c8-recent-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.c8-recent-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.c8-recent-item:hover {
  transform: translateX(4px);
}

.c8-recent-thumb {
  width: 68px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #081126;
}

.c8-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c8-recent-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.c8-recent-date {
  font-size: 11.5px;
  color: var(--c8-text-dim);
}

.c8-recent-title {
  font-family: var(--c8-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SIDEBAR CTA */
.c8-sidebar-cta {
  background: radial-gradient(circle at top right, rgba(45, 92, 255, 0.25) 0%, rgba(13, 24, 53, 0.9) 100%);
  border-color: rgba(90, 133, 255, 0.35);
  text-align: center;
}

.c8-cta-badge {
  font-family: var(--c8-font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c8-accent-cyan);
  letter-spacing: 0.1em;
}

.c8-sidebar-cta-title {
  font-family: var(--c8-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 10px;
  line-height: 1.3;
}

.c8-sidebar-cta-text {
  font-size: 13.5px;
  color: var(--c8-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.c8-sidebar-btn {
  width: 100%;
}

.c8-sidebar-btn a {
  width: 100%;
  padding: 0 16px !important;
  font-size: 14px !important;
}

/* ==========================================================================
   RELATED ARTICLES SECTION
   ========================================================================== */
.c8-related-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.c8-comments-area {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.c8-comments-title {
  font-family: var(--c8-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.c8-comments-count-pill {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 92, 255, 0.2);
  color: var(--c8-primary-light);
}

.c8-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c8-comment-item {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 16px;
  padding: 24px;
}

.c8-comment-body {
  display: flex;
  gap: 18px;
}

.c8-comment-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(90, 133, 255, 0.3);
}

.c8-comment-content-wrap {
  flex: 1;
}

.c8-comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.c8-comment-author {
  font-family: var(--c8-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.c8-comment-date {
  font-size: 12.5px;
  color: var(--c8-text-dim);
}

.c8-comment-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c8-text-muted);
  margin-bottom: 12px;
}

.c8-comment-reply a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--c8-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c8-primary-light);
  text-decoration: none;
}

.c8-comment-reply a:hover {
  color: #ffffff;
}

/* COMMENT FORM */
.comment-respond {
  background: var(--c8-bg-card);
  border: 1px solid var(--c8-border);
  border-radius: 20px;
  padding: 32px;
}

.comment-reply-title {
  font-family: var(--c8-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.c8-form-row {
  margin-bottom: 18px;
}

.c8-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.c8-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c8-form-group label {
  font-family: var(--c8-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.c8-form-group input,
.c8-form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--c8-font-body);
  font-size: 14.5px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.c8-form-group input:focus,
.c8-form-group textarea:focus {
  border-color: var(--c8-primary-light);
  box-shadow: 0 0 16px rgba(45, 92, 255, 0.35);
}

.c8-comment-submit-wrap {
  margin-top: 10px;
}

/* ==========================================================================
   DEFAULT PAGE & 404 STYLES
   ========================================================================== */
.c8-default-page {
  padding: 140px 0 80px;
}

.c8-page-header {
  margin-bottom: 36px;
}

.c8-page-title {
  font-family: var(--c8-font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
}

.c8-404-page {
  padding: 180px 0 120px;
  text-align: center;
}

.c8-404-content {
  max-width: 600px;
  margin: 0 auto;
}

.c8-404-title {
  font-family: var(--c8-font-heading);
  font-size: clamp(90px, 15vw, 160px);
  font-weight: 900;
  background: var(--c8-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 20px 0 10px;
}

.c8-404-sub {
  font-family: var(--c8-font-heading);
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 14px;
}

.c8-404-desc {
  color: var(--c8-text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .c8-featured-inner {
    grid-template-columns: 1fr;
  }
  .c8-featured-thumb-link {
    min-height: 300px;
    aspect-ratio: 16 / 9;
  }
  .c8-article-layout {
    grid-template-columns: 1fr;
  }
  .c8-sidebar-sticky-inner {
    position: static;
  }
  .footer-grid-row {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .custom-header {
    padding: 14px 24px;
  }
  .custom-header.active,
  .custom-header.show-header {
    padding: 10px 24px;
  }
  .custom-header .brand-logo img,
  .header-logo-img {
    height: 52px;
    max-height: 56px;
  }
  .menu-button {
    width: 52px;
    height: 52px;
  }
  .header-consultation-btn {
    display: none !important;
  }
  .side-menu-cta {
    display: block !important;
  }
  .side-menu {
    width: 440px;
    padding: 104px 30px 40px;
  }
  .wave-text {
    font-size: clamp(26px, 4.5vw, 32px);
  }
  .c8-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .cta-box {
    padding: 40px 30px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .custom-header {
    padding: 12px 18px;
  }
  .custom-header.active,
  .custom-header.show-header {
    padding: 9px 18px;
  }
  .custom-header .brand-logo img,
  .header-logo-img {
    height: 48px;
  }
  .menu-button {
    width: 50px;
    height: 50px;
  }
  .side-menu {
    width: 100vw;
    max-width: 100vw;
    padding: 100px 24px 36px;
    border-left: none;
  }
  .wave-text {
    font-size: clamp(23px, 5.5vw, 28px);
  }
  .c8-blog-grid {
    grid-template-columns: 1fr;
  }
  .c8-post-navigation {
    grid-template-columns: 1fr;
  }
  .c8-author-bio-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .c8-form-split {
    grid-template-columns: 1fr;
  }
  .footer-grid-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 50px;
  }
  .footer-copyright-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-legal-links {
    justify-content: center;
  }
}
