/* ============================================
   Shobdo - Custom Bootstrap Overrides
   ============================================ */

/* ============================================
   TYPOGRAPHY CONFIG - Change fonts here!
   ============================================

   HOW TO CHANGE TYPOGRAPHY:
   1. In this file: Uncomment ONE option block below, comment out the current one
   2. In index.html & solutions.html: Replace the Google Fonts <link> with the matching URL

   GOOGLE FONTS URLS (copy to HTML files):
   ----------------------------------------
   CURRENT (Inter only):
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">

   OPTION 1 - Classic Editorial:
   <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap" rel="stylesheet">

   OPTION 2 - Modern Tech:
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">

   OPTION 3 - Warm & Approachable:
   <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">

   OPTION 4 - Bold & Confident:
   <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">

   OPTION 5 - Refined Minimal:
   <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap" rel="stylesheet">

   ============================================ */

:root {
  /* Brand Colors */
  --bs-primary: #818cf8;
  --bs-secondary: #fcd34d;
  --color-dark: #2c3e50;
  --color-primary: #818cf8;
  --color-secondary: #fcd34d;

  /* Hero video tuning */
  --hero-video-brightness: 0.55;
  --hero-video-contrast: 1.15;

  /* ===========================================
       TYPOGRAPHY VARIABLES - Edit these to change fonts
       =========================================== */

  /* CURRENT: Option 2 - Modern Tech 
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --heading-weight: 700;
    --body-weight: 400;
    --body-size: 1.1rem;
    --body-line-height: 1.7;
    --heading-line-height: 1.2;*/

  /* OPTION 1: Classic Editorial */
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans 3", sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --body-size: 1.1rem;
  --body-line-height: 1.75;
  --heading-line-height: 1.15;

  /* OPTION 2: Modern Tech
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --heading-weight: 700;
    --body-weight: 400;
    --body-size: 1.05rem;
    --body-line-height: 1.7;
    --heading-line-height: 1.1;
    */

  /* OPTION 3: Warm & Approachable
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --heading-weight: 700;
    --body-weight: 400;
    --body-size: 1.1rem;
    --body-line-height: 1.65;
    --heading-line-height: 1.2;
    */

  /* OPTION 4: Bold & Confident
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --heading-weight: 800;
    --body-weight: 400;
    --body-size: 1.05rem;
    --body-line-height: 1.7;
    --heading-line-height: 1.15;
    */

  /* OPTION 5: Refined Minimal
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --heading-weight: 600;
    --body-weight: 400;
    --body-size: 1.1rem;
    --body-line-height: 1.7;
    --heading-line-height: 1.2;
    */
}

/* Typography - Uses variables from above */
body {
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  color: #34495e;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  color: var(--color-dark);
}

/* Section-level headings get indigo accent */
h2.fw-bold {
  color: #4f46e5;
}

/* Small step/process sub-headings */
h3.fw-bold {
  color: #4f46e5;
}

/* Card titles — slightly softer indigo */
.card-title {
  color: #6366f1;
}

p {
  font-family: var(--font-body);
  line-height: var(--body-line-height);
}

.lead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
}

/* Section subtitle - used below section headings */
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: #5d6d7e;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section description - longer paragraph below subtitle */
.section-description {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: #5d6d7e;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content container - constrained width for readability */
.content-narrow {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.card-text {
  font-family: var(--font-body);
  color: #5d6d7e;
}

/* Align buttons at bottom of cards */
.card-body {
  display: flex;
  flex-direction: column;
}

.card-body > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 1.25rem;
}

.text-muted {
  color: #5d6d7e !important;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
}

.navbar-nav .nav-item {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

/* Primary Button */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.btn-primary:focus,
.btn-primary:active {
  background-color: #6366f1;
  border-color: #6366f1;
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.btn-secondary:focus,
.btn-secondary:active {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

/* Outline buttons */
.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #fff;
}

/* Hero Gradient Background */
.hero-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #fffbeb 100%);
  position: relative;
  overflow: hidden;
}

/* Video background layer */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: brightness(var(--hero-video-brightness)) contrast(var(--hero-video-contrast));
}

.hero-video-bg video.active {
  opacity: 1;
}

/* Light dark overlay for extra text readability */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

/* Ensure hero content sits above video + overlay */
.hero-gradient > .container-fluid {
  position: relative;
  z-index: 2;
}

/* Hero Title - default (light background pages) */
.hero-title {
  line-height: 1.1;
}

.hero-through {
  font-size: 0.5em;
  color: var(--color-dark);
  opacity: 0.7;
  margin-top: 0.3em;
}

/* Hero with video background - dark theme overrides */
.hero-video .hero-title {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.4);
}

.hero-video .hero-through {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-video .lead {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-video .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-video .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* Hero with background image - dark theme (matches hero-video treatment) */
.hero-image {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: none !important;
}

/* Background image layer with brightness/contrast filter (like video hero) */
.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(var(--hero-video-brightness)) contrast(var(--hero-video-contrast));
}

/* Light dark overlay matching video hero */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

.hero-image > .container-fluid {
  position: relative;
  z-index: 2;
}

.hero-image h1 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.4);
}

.hero-image .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Brighter gradient text on dark video background */
.hero-video .gradient-text {
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 50%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Rotating Text Animation */
.rotating-text {
  display: block;
  height: 1.4em;
  overflow: hidden;
  position: relative;
}

.rotate-phrase {
  display: block;
  opacity: 0;
  position: absolute;
  width: 100%;
  left: 0;
  color: #c7d2fe;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotate-phrase.active {
  opacity: 1;
  transform: translateY(0);
}

.rotate-phrase.exit {
  opacity: 0;
  transform: translateY(-100%);
}

/* Navbar adjustments */
.navbar {
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar-brand img {
  max-height: 50px;
  transition: filter 0.4s ease;
}

/* Navbar on hero video — transparent with white text */
.navbar.navbar-hero {
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.navbar-hero .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.navbar.navbar-hero .nav-link:hover {
  color: #fff !important;
}

.navbar.navbar-hero .navbar-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.navbar.navbar-hero .btn-primary {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}

.navbar.navbar-hero .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.35);
  border-color: #fff;
}

.navbar.navbar-hero .dropdown-menu {
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.navbar-hero .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
}

.navbar.navbar-hero .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.navbar.navbar-hero .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.navbar.navbar-hero .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar.navbar-hero .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Card hover effect */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Featured card styling */
.card-featured {
  border: 2px solid var(--bs-primary);
  transform: scale(1.02);
}

/* Coming Soon overlay for unavailable solution cards */
.coming-soon-wrap {
  position: relative;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bs-border-radius, 0.375rem);
  pointer-events: none;
  z-index: 2;
}

.coming-soon-label {
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

/* Section spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Full viewport height sections with centered content */
.section-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Icon boxes */
.icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.icon-box-sm {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Value card number styling */
.value-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}

/* Footer styling — thin, light */
.footer-light {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.footer-light address {
  margin-bottom: 0;
}

.footer-light a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-light a:hover {
  color: var(--color-dark);
}

/* Legal page content styling */
.content-narrow h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-narrow ul {
  padding-left: 1.25rem;
}

.content-narrow li {
  margin-bottom: 0.35rem;
}

.footer-copy {
  color: #9ca3af;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Data center gallery */
.datacenter-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.datacenter-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.datacenter-gallery figure:first-child {
  grid-row: span 2;
}

.datacenter-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.datacenter-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.datacenter-gallery figure:hover figcaption {
  opacity: 1;
}

@media (max-width: 768px) {
  .datacenter-gallery {
    grid-template-columns: 1fr;
  }

  .datacenter-gallery figure:first-child {
    grid-row: span 1;
  }
}

/* CTA section gradient */
.cta-gradient {
  background: linear-gradient(135deg, #eef2ff 0%, #fffbeb 100%);
}

/* Capability cards */
.capability-card {
  border-left: 4px solid var(--bs-primary);
}

/* Tables */
.table thead {
  --bs-table-bg: var(--color-dark);
  --bs-table-color: #fff;
}

.table-hover {
  --bs-table-hover-bg: #eef2ff;
}

/* Ultrawide monitor support - expand container on large screens */
@media (min-width: 1400px) {
  .container-xl {
    max-width: 1400px;
  }
}

@media (min-width: 1800px) {
  .container-xl {
    max-width: 1600px;
  }
}

@media (min-width: 2200px) {
  .container-xl {
    max-width: 1900px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Scroll margin for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* First section after navbar needs extra top padding */
.section-first {
  padding-top: 120px !important;
}

/* Card list items - consistent small text */
.card-list {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #5d6d7e;
}

/* Link styling */
a {
  color: var(--bs-primary);
}

a:hover {
  color: #6366f1;
}

/* Footer link override */
.footer-light a {
  text-decoration: none;
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog post body — clearfix for floated media */
.blog-body::after {
  content: "";
  display: table;
  clear: both;
}

/* Video/embed blocks — always full-width, never floated */
.media-embed {
  clear: both;
  margin: 2rem 0;
}

/* Floated media inside blog posts */
.media-float-left,
.media-float-right {
  width: 45%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.media-float-left {
  float: left;
  margin: 0.25rem 1.75rem 1.25rem 0;
}

.media-float-right {
  float: right;
  margin: 0.25rem 0 1.25rem 1.75rem;
}

@media (max-width: 767px) {
  .media-float-left,
  .media-float-right {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

/* Blog index header */
.blog-index-header {
  background: linear-gradient(135deg, #eef2ff 0%, #fffbeb 100%);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  margin-bottom: 3rem !important;
}

.blog-index-header h1 {
  color: #4f46e5;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
  justify-content: center;
  gap: 2rem;
}

.blog-grid > a {
  display: flex;
}

.blog-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Gradient accent bar at top of every card */
.blog-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #818cf8 55%, #f59e0b 100%);
  flex-shrink: 0;
}

.blog-card .p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .p-4 p.text-muted {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.15);
}

/* Card title — override the inline style baked into generated HTML */
.blog-card h3 {
  color: #4f46e5 !important;
}

/* Image zoom on hover */
.blog-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.04);
}

/* Tag pills — replaces plain gray Bootstrap badges */
.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  margin-right: 0.3rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

/* ============================================
   Blog Sidebar Widgets
   ============================================ */

.blog-widget {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.07);
  overflow: hidden;
}

.blog-widget-title {
  background: linear-gradient(90deg, #4f46e5 0%, #818cf8 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.65rem 1.1rem;
}

.blog-widget-body {
  padding: 1rem 1.1rem;
}

/* Filter buttons (tags + archive) shared active state */
.blog-filter-btn.active {
  background: #4f46e5 !important;
  color: #fff !important;
  border-color: #4f46e5 !important;
}

.blog-filter-btn.active .blog-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Count badge inside filter buttons */
.blog-filter-count {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: #eef2ff;
  color: #6366f1;
  border-radius: 20px;
  padding: 0.1em 0.45em;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Tag filter buttons in sidebar — extend .blog-tag */
.blog-widget .blog-tag {
  cursor: pointer;
  background: none;
  border: 1px solid #c7d2fe;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-bottom: 0.35rem;
}

.blog-widget .blog-tag:hover {
  background: #eef2ff;
  border-color: #818cf8;
}

/* Rare tags — hidden by default, shown when widget has .show-rare */
.blog-tag-rare {
  display: none;
}

#topicsWidget.show-rare .blog-tag-rare {
  display: inline-block;
}

/* "Show all / Show less" toggle link */
.blog-tag-rare-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.4rem 0 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #818cf8;
  cursor: pointer;
  text-align: left;
  margin-top: 0.25rem;
}

.blog-tag-rare-toggle:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Archive year row */
.blog-archive-year {
  margin-bottom: 0.6rem;
}

.blog-archive-year-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #4f46e5;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.blog-archive-year-btn:hover {
  color: #6366f1;
}

.blog-archive-months {
  padding-left: 0.75rem;
  border-left: 2px solid #eef2ff;
  margin-top: 0.25rem;
  margin-left: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blog-archive-month-btn {
  background: none;
  border: none;
  padding: 0.15rem 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #5d6d7e;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0;
}

.blog-archive-month-btn:hover {
  color: #4f46e5;
}

/* Pygments code highlighting container (friendly light theme) */
.codehilite {
  background: #f0f0f0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Blog Post Content */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Blog post header section */
.blog-post-header {
  background: linear-gradient(135deg, #eef2ff 0%, #fffbeb 100%);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 2.5rem;
}

.blog-post-header h1 {
  color: #4f46e5;
}

.blog-post-header .text-muted {
  color: #818cf8 !important;
  font-weight: 500;
}

/* Body headings */
.blog-body h2 {
  color: #4f46e5;
  margin-top: 2rem;
}

.blog-body h3 {
  color: #6366f1;
  margin-top: 1.5rem;
}

.blog-body p {
  line-height: 1.8;
}
.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.blog-body code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-body pre {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-body .codehilite pre {
  background: transparent;
  padding: 0;
  margin: 0;
}

.blog-body pre code {
  background: none;
  padding: 0;
}

.blog-body blockquote {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #5d6d7e;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.blog-body th,
.blog-body td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: left;
}

.blog-body th {
  background: #f8f9fa;
  font-weight: 600;
}

/* ============================================
   Intent to Purchase (I2P) Page
   ============================================ */

/* Page header */
.i2p-page {
  background: #f8f8ff;
}

.i2p-header {
  background: linear-gradient(135deg, #eef2ff 0%, #fffbeb 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #e0e0ed;
}

/* GPU selector cards */
.gpu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}

.gpu-card {
  border: 2px solid #dee2e6;
  border-radius: .75rem;
  padding: .9rem 1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  position: relative;
}

.gpu-card:hover {
  border-color: var(--bs-primary);
  background: #f0f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.18);
}

.gpu-card.selected {
  border-color: var(--bs-primary);
  background: #f0f0ff;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22);
}

.gpu-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.gpu-card .gpu-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  color: var(--color-dark);
  margin-bottom: .15rem;
}
.gpu-card .gpu-meta {
  font-size: .78rem;
  color: #5d6d7e;
}
.gpu-card .gpu-price {
  font-weight: 700;
  font-size: .95rem;
  color: #4f46e5;
  margin-top: .35rem;
}
.gpu-card .gpu-term {
  font-size: .74rem;
  color: #9e9e9e;
}

.gpu-card .check-mark {
  position: absolute;
  top: .5rem;
  right: .6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bs-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.gpu-card.selected .check-mark {
  display: flex;
}
.check-mark svg {
  width: 10px;
  height: 10px;
  fill: #fff;
}

/* Hardware upgrade panel */
.hw-panel {
  background: #f8f8ff;
  border: 1.5px solid #dee2e6;
  border-radius: .75rem;
  padding: 1.1rem 1.3rem;
}

.hw-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  color: #5d6d7e;
  min-width: 80px;
}

.addon-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .5rem;
  border-radius: 20px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #818cf8;
  white-space: nowrap;
}

.addon-badge.zero {
  background: #f0f0f0;
  color: #9e9e9e;
  border-color: #e0e0e0;
}

/* Range slider row */
.range-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--bs-primary);
}

.range-num {
  min-width: 2.2rem;
  text-align: center;
  font-weight: 700;
  color: #4f46e5;
  font-size: .95rem;
  font-family: var(--font-body);
}

/* Form section label (small caps) */
.form-section-label {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bs-primary);
  border-bottom: 2px solid #eef2ff;
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}

/* Offer badge */
.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
}

.offer-pill.lease {
  background: #ebf5fb;
  color: #1a5276;
  border: 1px solid #aed6f1;
}
.offer-pill.buyhost {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.offer-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.offer-pill.lease .dot {
  background: #3498db;
}
.offer-pill.buyhost .dot {
  background: #4f46e5;
}

/* Summary strip */
.summary-strip {
  background: var(--color-dark);
  border-radius: .75rem;
  padding: 1.5rem 2rem;
  color: #fff;
}

.summary-strip .s-label {
  font-size: .72rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-body);
  margin-bottom: .2rem;
}
.summary-strip .s-value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}
.summary-strip .s-unit {
  font-size: .78rem;
  opacity: 0.6;
  margin-top: .1rem;
  font-family: var(--font-body);
}
.summary-strip .divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

/* Accordion — align with site typography */
.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
}
.accordion-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.7;
}

/* Breakdown table */
.breakdown-table td {
  font-size: .87rem;
  padding: .35rem .5rem;
}
.breakdown-table tr.total-row td {
  font-weight: 700;
  border-top: 2px solid #dee2e6;
}
.breakdown-table .desc {
  color: #9e9e9e;
  font-size: .78rem;
  margin-left: .3rem;
}

/* Info callout */
.info-callout {
  background: #ebf5fb;
  border-left: 4px solid #3498db;
  border-radius: 0 .5rem .5rem 0;
  padding: .65rem 1rem;
  font-size: .83rem;
  color: #1a5276;
  font-family: var(--font-body);
}

/* I2P form inputs */
.i2p-page .form-control,
.i2p-page .form-select {
  background-color: #f8f8ff;
}

.i2p-page .form-control:focus,
.i2p-page .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .2rem rgba(129, 140, 248, 0.25);
}
