/* Digital Sarthi — theme v2
   Design tokens + components. Built on top of Bootstrap 5's grid/utilities.
   See README.md "Design system" section before adding new patterns here. */

:root {
  --color-cyan: #2fb6e8;
  --color-blue: #3457d5;
  --color-purple: #7a2fc4;
  --gradient-brand: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 55%, var(--color-purple) 100%);

  --color-accent: #3457d5;
  --color-accent-ink: #23409c;
  --color-ink: #1f1f25;
  --color-body: #45444d;
  --color-muted: #6b6a72;
  --color-faint: #9694a0;

  --color-surface: #ffffff;
  --color-surface-alt: #f6f5fb;
  --color-surface-ink: #14151c;
  --color-border: #e5e3f1;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(31, 31, 37, 0.07);
  --shadow-md: 0 12px 32px rgba(35, 33, 68, 0.10);
  --shadow-lg: 0 24px 56px rgba(52, 87, 213, 0.16);

  --container-max: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */

body {
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
}

.section {
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.section-head p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.container-xl {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-outline-brand:hover {
  border-color: var(--color-accent);
  color: var(--color-ink);
  transform: translateY(-2px);
}

/* Scroll reveal (replaces WOW.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Floating contact icons ---------- */

.floating-contacts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contacts a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.floating-contacts a:hover {
  transform: translateY(-3px) scale(1.05);
}

.floating-contacts a img {
  width: 24px;
  height: 24px;
}

.floating-contacts .fc-call {
  background: var(--color-surface);
}

.floating-contacts .fc-whatsapp {
  background: #25d366;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .navbar-brand img {
  height: 40px;
  width: auto;
}

.site-header .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink) !important;
  padding: 0.5rem 0.9rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-item.dropdown:hover .nav-link {
  color: var(--color-accent) !important;
}

.site-header .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
}

.site-header .dropdown-item {
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
  background: var(--color-surface-alt);
  color: var(--color-accent);
}

.site-header .btn-brand {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .site-header .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

/* Note: do not set `display` here — Bootstrap's carousel relies on
   .carousel-item's own display:none/block toggling to show only the
   active slide during transitions. Flex centering happens on the inner
   .container-xl instead so it never fights that mechanism. */
.hero .carousel-item {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 21, 28, 0.86) 0%, rgba(20, 21, 28, 0.55) 55%, rgba(20, 21, 28, 0.35) 100%);
}

.hero .carousel-item > .container-xl {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 560px;
}

.hero .slide-content {
  color: #fff;
  max-width: 620px;
  padding-block: 3rem;
}

.hero .slide-content img.slide-logo {
  height: 46px;
  margin-bottom: 1.5rem;
}

.hero h1, .hero h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero h1 span, .hero h2 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
}

.hero .carousel-indicators {
  position: absolute;
  bottom: 28px;
  z-index: 3;
  margin: 0;
  gap: 8px;
}

.hero .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  opacity: 1;
}

.hero .carousel-indicators .active {
  background: var(--gradient-brand);
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.service-card:hover img {
  transform: scale(1.08);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 28, 0.15) 0%, rgba(20, 21, 28, 0.78) 100%);
}

.service-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.25rem;
}

.service-card h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .service-card h2 { font-size: 0.9rem; }
}

/* ---------- About ---------- */

.about-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.about-section .kicker {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-section p {
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.about-visual {
  position: relative;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual img {
  width: 100%;
  max-width: 280px;
}

@media (max-width: 900px) {
  .about-section { grid-template-columns: 1fr; }
  .about-visual { order: -1; padding: 2rem; }
}

/* ---------- Feature cards (competitive advantage) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
}

.feature-card .feature-icon img {
  width: 26px;
  height: 26px;
  /* icons ship as solid white SVGs, designed for a colored tile */
  filter: brightness(0) invert(1);
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Accomplishments ---------- */

.accomplishments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accomplishment-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.accomplishment-card .accom-media {
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

.accomplishment-card .accom-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accomplishment-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.accomplishment-card p {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

.accomplishment-card:nth-child(even) .accom-media {
  order: 2;
}

@media (max-width: 800px) {
  .accomplishment-card { grid-template-columns: 1fr; }
  .accomplishment-card:nth-child(even) .accom-media { order: 0; }
}

/* ---------- Newsletter ---------- */

/* Note: this element also carries the .container-xl class in the markup
   for its max-width + auto centering — don't set margin-inline here, it
   would override container-xl's centering and misalign this box against
   every other section on the page. */
.newsletter-section {
  background:
    radial-gradient(ellipse 60% 140% at 50% 50%, rgba(52, 87, 213, 0.4) 0%, rgba(52, 87, 213, 0) 70%),
    var(--color-surface-ink);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section h3 {
  color: #fff;
  position: relative;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.6rem;
}

.newsletter-section p {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.newsletter-form {
  position: relative;
  display: flex;
  max-width: 460px;
  margin-inline: auto;
  gap: 0.6rem;
}

.newsletter-form input {
  flex: 1;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 560px) {
  .newsletter-form { flex-direction: column; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-surface-ink);
  color: rgba(255, 255, 255, 0.65);
  padding-top: 4rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-logo {
  height: 36px;
  margin-bottom: 1rem;
}

.site-footer .footer-tagline {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.site-footer h6 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .copyright {
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 800px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Page hero (inner pages: title + breadcrumb) ---------- */

.page-hero {
  background:
    radial-gradient(ellipse 60% 140% at 50% 50%, rgba(52, 87, 213, 0.35) 0%, rgba(52, 87, 213, 0) 70%),
    var(--color-surface-ink);
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.page-hero .breadcrumb {
  justify-content: center;
  margin: 0;
  font-size: 0.9rem;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: #fff;
}

.page-hero .breadcrumb .breadcrumb-item.active {
  color: var(--color-cyan);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Feature grid variants (left-aligned, 2-column) ---------- */

.feature-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card--left {
  text-align: left;
}

.feature-card--left .feature-icon {
  margin-inline: 0;
}

/* ---------- Editorial product/content sections (alternating media+copy) ---------- */

.product-section {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--color-border);
}

.product-section:first-of-type {
  border-top: none;
}

.product-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 1rem;
}

.product-section p {
  color: var(--color-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.product-section img {
  width: 100%;
  border-radius: var(--radius);
}

.product-list {
  padding-left: 1.2rem;
  color: var(--color-body);
}

.product-list li {
  padding-left: 0.3rem;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.product-list li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 700px) {
  .feature-grid--2col { grid-template-columns: 1fr; }
}

/* ---------- Pricing tabs + cards ---------- */

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border: none;
  margin-bottom: 2.5rem;
}

.pricing-tabs .nav-link {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-body);
  background: var(--color-surface);
}

.pricing-tabs .nav-link.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card .badge-off {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-surface-alt);
  color: var(--color-accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.pricing-card .plan-name {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.pricing-card .plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1;
}

.pricing-card .plan-price-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.pricing-card .plan-price-actual {
  font-size: 0.85rem;
  color: var(--color-faint);
  margin-bottom: 1.5rem;
}

.pricing-card .plan-price-actual del {
  margin-left: 0.3rem;
}

.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  flex: 1;
}

.pricing-card .plan-features li {
  font-size: 0.87rem;
  color: var(--color-body);
  padding: 0.4rem 0;
  border-top: 1px solid var(--color-border);
}

.pricing-card .plan-features li:first-child {
  border-top: none;
}

.pricing-card .plan-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ---------- Simple pricing table (Graphic Design tab) ---------- */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-body);
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.pricing-table span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* ---------- Portfolio grid ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.portfolio-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

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

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

.portfolio-card .work_details {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(20, 21, 28, 0) 0%, rgba(20, 21, 28, 0.9) 100%);
  color: #fff;
}

.portfolio-card .work_details h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.portfolio-card .work_details p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* ---------- Forms ---------- */

.form-control,
.form-select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(52, 87, 213, 0.15);
}

.contact-panel {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

.contact-info-item a,
.contact-info-item span {
  color: var(--color-ink);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--color-accent);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

#overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 90%;
  text-align: center;
}

#overlay h2 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

#overlay .close-icon {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* ---------- Accordion (job listings) ---------- */

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-button {
  font-weight: 700;
  color: var(--color-ink);
  padding: 1.25rem 1.5rem;
  gap: 0.75rem;
}

.accordion-button img {
  width: 22px;
  height: 22px;
}

.accordion-button:not(.collapsed) {
  background: var(--color-surface-alt);
  color: var(--color-ink);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(52, 87, 213, 0.15);
}

.accordion-button::after {
  background-size: 1rem;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--color-body);
  line-height: 1.7;
}

.accordion-body h5 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

/* ---------- Modal ---------- */

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.blog-card__desc {
  color: var(--color-body);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-post-body {
  max-width: 760px;
  margin-inline: auto;
}

.blog-post-body img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.blog-post-body h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.blog-post-body .post-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.blog-post-body p {
  color: var(--color-body);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.blog-post-body h2,
.blog-post-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}
