/* Bhu Bharathi Telangana — shared styles */
:root {
  --header-height: 4.5rem;
  --header-offset: 5.75rem;
  --scroll-offset: 5.75rem;
  --gold: #f4c430;
  --gold-dark: #c9a020;
  --maroon: #7b1e1e;
  --maroon-dark: #5c1414;
  --green: #1a6b3c;
  --green-light: #e8f5e9;
  --navy: #0d2847;
  --navy-light: #1a3d6b;
  --cream: #fdf8e8;
  --cream-card: #faf6eb;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(13, 40, 71, 0.08);
  --page-bg: #f4f6f9;
  --radius: 16px;
  --font-en: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-te: "Noto Sans Telugu", "Nirmala UI", "Gautami", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, var(--header-offset));
}

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.55;
}

/* Language separation */
.lang-en .i18n-te {
  display: none !important;
}

.lang-te .i18n-en {
  display: none !important;
}

html.lang-te body {
  font-family: var(--font-te);
}

html.lang-te .navbar-nav .nav-link,
html.lang-te .bb-btn,
html.lang-te .lang-select {
  font-family: var(--font-te), var(--font-en);
}

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

a {
  color: var(--navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header (Bootstrap navbar) */
.site-header {
  z-index: 1030;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header .container {
  max-width: 1200px;
}

/* Mobile: logo + nav toggler on one row; menu collapses below */
@media (max-width: 991.98px) {
  .site-header > .container {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-header .navbar-brand.logo-block {
    flex: 1 1 0;
    min-width: 0;
    margin-right: 0.35rem;
  }

  .site-header .logo-text {
    min-width: 0;
  }

  .site-header .navbar-toggler {
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
  }

  .site-header .navbar-collapse {
    flex: 0 0 100%;
    order: 3;
    width: 100%;
  }

  .logo-main.i18n-en {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  html.lang-te .logo-main.i18n-te {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .page-home .site-logo {
    width: 48px;
    height: 48px;
  }
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo-block:hover,
.navbar-brand:hover {
  text-decoration: none;
  color: inherit;
}

.site-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-home .site-logo {
  width: 60px;
  height: 60px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-te {
  font-family: var(--font-te);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
}

.logo-en {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.logo-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.navbar-nav .nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0.85rem 0.65rem !important;
  text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  background: transparent;
  text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--navy-light);
}

.navbar-nav .nav-link.active {
  color: var(--navy);
  font-weight: 700;
}

.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(201, 160, 32, 0.35);
}

.nav-services-dropdown > .dropdown-toggle.active {
  box-shadow: inset 0 -3px 0 0 var(--gold);
}

.nav-services-dropdown .dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: 0.12em;
}

.nav-services-menu {
  min-width: 13rem;
  padding: 0.35rem;
  border: 1px solid rgba(13, 40, 71, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 40, 71, 0.12);
}

.nav-services-menu .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.nav-services-menu .dropdown-item:hover,
.nav-services-menu .dropdown-item:focus-visible,
.nav-services-menu .dropdown-item.active {
  background: var(--green-light);
  color: var(--navy);
}

.nav-services-menu .dropdown-item:focus:not(:focus-visible) {
  background: transparent;
  color: var(--navy);
}

.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown .dropdown-toggle {
  color: var(--white);
}

.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown .dropdown-toggle:hover,
.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown .dropdown-toggle:focus,
.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown .dropdown-toggle.show,
.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown .dropdown-toggle.active {
  color: var(--gold);
}

.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown .dropdown-toggle::after {
  filter: brightness(0) invert(1);
}

.page-home .site-header--glass:not(.site-header--solid) .nav-services-dropdown > .dropdown-toggle.active {
  box-shadow: inset 0 -3px 0 0 var(--gold);
}

.site-header .navbar-toggler {
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.site-header .navbar-toggler:hover,
.site-header .navbar-toggler:focus {
  border: none;
  background: transparent;
  box-shadow: none;
}

.site-header .navbar-toggler:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lang-switcher {
  flex-shrink: 0;
}

.lang-select {
  padding: 0.45rem 2rem 0.45rem 0.5rem;
  border: none;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230d2847' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
}

.lang-select option {
  color: var(--navy);
  background-color: var(--white);
}

.lang-select:hover,
.lang-select:focus,
.lang-select:focus-visible,
.lang-select:active {
  border: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
  color: var(--navy-light);
}

.site-header .form-select.lang-select,
.site-header .form-select.lang-select:hover,
.site-header .form-select.lang-select:focus,
.site-header .form-select.lang-select:focus-visible,
.site-header .form-select.lang-select:active {
  border: none;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.2;
}

html.lang-te .logo-main.i18n-te {
  font-family: var(--font-te);
  font-size: 1.35rem;
}

html.lang-en .logo-main.i18n-en {
  color: var(--navy);
}

.service-card h4.i18n-te {
  font-family: var(--font-te);
  color: var(--maroon);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.category-title h3.i18n-te {
  font-family: var(--font-te);
  color: var(--maroon);
  font-size: 1rem;
  margin: 0.15rem 0 0;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--maroon) 100%);
  color: var(--white);
  padding: 2.5rem 1.25rem 3rem;
}

/* Home: shared rural-fields background for header + hero */
.home-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(32rem, 82vh, 52rem);
  display: flex;
  flex-direction: column;
}

.home-banner-shared-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

.home-banner-shared-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(13, 40, 71, 0.5) 0%,
    rgba(13, 40, 71, 0.28) 22%,
    rgba(13, 40, 71, 0.12) 55%,
    rgba(13, 40, 71, 0.05) 85%,
    transparent 100%
  );
}

/* Hero carousel (welcome + brochure slides) */
.home-hero-carousel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  z-index: 2;
  min-height: 0;
}

.home-hero-carousel__inner {
  position: relative;
  flex: 1;
}

.home-hero-carousel__item {
  position: relative;
  min-height: clamp(18rem, 55vh, 28rem);
}

.home-hero-carousel__item--welcome {
  min-height: 100%;
}

.home-hero-carousel__item--welcome .hero-home {
  min-height: clamp(18rem, 55vh, 28rem);
  flex: 1;
  width: 100%;
}

.home-hero-carousel__item--welcome .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-carousel__item--welcome .hero-welcome-layout {
  align-items: center;
}

.hero-welcome-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
}

.hero-welcome-intro {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 0.85rem;
  text-align: center;
}

.hero-welcome-intro .hero-sub-en,
.hero-welcome-intro .hero-sub-te {
  margin-left: auto;
  margin-right: auto;
}

.hero-welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.home-hero-carousel__item--welcome .hero-welcome-copy h1,
.home-hero-carousel__item--welcome .hero-welcome-copy p {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-welcome-copy .hero-sub-en,
.hero-welcome-copy .hero-sub-te {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

.hero-welcome-copy .hero-badges {
  justify-content: center;
  width: 100%;
}

.hero-welcome-copy .hero-cta {
  justify-content: center;
  width: 100%;
}

.hero-welcome-actions {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.hero-welcome-actions .hero-cta {
  justify-content: flex-end;
  width: auto;
  margin: 0;
}

.hero-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.hero-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, var(--cream-card) 100%);
  box-shadow:
    0 4px 14px rgba(13, 40, 71, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.hero-service-card:hover,
.hero-service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(26, 107, 60, 0.45);
  box-shadow:
    0 10px 26px rgba(13, 40, 71, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  outline: none;
}

.hero-service-card__visual {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: 7rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-light) 0%, #d4e8d8 100%);
}

.hero-service-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(13, 40, 71, 0.18) 100%
  );
}

.hero-service-card__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-service-card__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero-service-card[data-slide-id="loans"] .hero-service-card__bg,
.hero-service-card[data-slide-id="mutation"] .hero-service-card__bg,
.hero-service-card[data-slide-id="digital-sign-pending-clearance"] .hero-service-card__bg {
  object-position: center top;
}

.hero-service-card__label {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 3.75rem;
  margin: 0;
  padding: 0.5rem 0.4rem;
  border-radius: 0;
  border-top: 1px solid rgba(26, 107, 60, 0.25);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  line-height: 1.25;
}

.hero-service-card__label-en,
.hero-service-card__label-te {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-service-card__label-en {
  font-family: var(--font-en);
  color: var(--white);
}

.hero-service-card__label-te {
  font-family: var(--font-te);
  color: var(--gold);
  font-size: 0.8rem;
}

html.lang-te .hero-service-card__label-te {
  font-size: 0.76rem;
}

@media (min-width: 768px) {
  .home-hero-carousel__item--welcome .hero-home .hero-inner {
    max-width: min(1280px, calc(100vw - 3.5rem));
    width: 100%;
  }

  .hero-welcome-layout {
    gap: 1.25rem;
  }

  .hero-welcome-copy .hero-sub-en,
  .hero-welcome-copy .hero-sub-te {
    margin-bottom: 0.85rem;
  }

  .hero-service-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .hero-welcome-actions {
    margin-top: 0.75rem;
  }

  .hero-service-card {
    border-radius: 11px;
  }

  .hero-service-card__visual {
    height: 8rem;
  }

  .hero-service-card__label {
    height: 4rem;
    padding: 0.5rem 0.45rem;
  }

  .hero-service-card__label-en,
  .hero-service-card__label-te {
    font-size: 0.88rem;
  }

  html.lang-te .hero-service-card__label-te {
    font-size: 0.82rem;
  }
}

@media (min-width: 992px) {
  .home-hero-carousel__item--welcome .hero-home .hero-inner {
    max-width: min(1680px, calc(100vw - 5.5rem));
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .home-hero-carousel__item--welcome .hero-welcome-layout,
  .home-hero-carousel__item--welcome .hero-welcome-actions {
    width: 100%;
    max-width: 100%;
  }

  .home-hero-carousel__item--welcome .hero-service-cards {
    width: 100%;
    max-width: min(1080px, 88%);
  }

  .hero-welcome-layout {
    gap: 0.85rem;
  }

  .hero-welcome-intro {
    margin-bottom: 0.55rem;
  }

  .hero-service-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-welcome-actions {
    margin-top: 0.55rem;
    max-width: min(1080px, 88%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-service-card {
    border-radius: 12px;
    box-shadow:
      0 5px 14px rgba(13, 40, 71, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .hero-service-card:hover,
  .hero-service-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13, 40, 71, 0.28);
  }

  .hero-service-card__visual {
    height: 5.85rem;
  }

  .hero-service-card__label {
    height: 3.35rem;
    padding: 0.38rem 0.28rem;
  }

  .hero-service-card__label-en,
  .hero-service-card__label-te {
    font-size: 0.7rem;
    line-height: 1.22;
  }

  html.lang-te .hero-service-card__label-te {
    font-size: 0.66rem;
  }
}

@media (min-width: 1200px) {
  .home-hero-carousel__item--welcome .hero-home .hero-inner {
    max-width: min(1760px, calc(100vw - 6rem));
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .home-hero-carousel__item--welcome .hero-service-cards,
  .home-hero-carousel__item--welcome .hero-welcome-actions {
    max-width: min(1140px, 86%);
  }

  .hero-service-cards {
    gap: 0.55rem;
  }

  .hero-service-card__visual {
    height: 6.15rem;
  }

  .hero-service-card__label {
    height: 3.5rem;
    padding: 0.4rem 0.3rem;
  }

  .hero-service-card__label-en,
  .hero-service-card__label-te {
    font-size: 0.74rem;
    line-height: 1.24;
  }

  html.lang-te .hero-service-card__label-te {
    font-size: 0.7rem;
  }
}

@media (min-width: 1400px) {
  .home-hero-carousel__item--welcome .hero-home .hero-inner {
    max-width: min(1840px, calc(100vw - 6.5rem));
  }

  .home-hero-carousel__item--welcome .hero-service-cards,
  .home-hero-carousel__item--welcome .hero-welcome-actions {
    max-width: min(1180px, 84%);
  }

  .hero-service-cards {
    gap: 0.6rem;
  }

  .hero-service-card__visual {
    height: 6.35rem;
  }

  .hero-service-card__label {
    height: 3.6rem;
  }

  .hero-service-card__label-en,
  .hero-service-card__label-te {
    font-size: 0.76rem;
  }

  html.lang-te .hero-service-card__label-te {
    font-size: 0.72rem;
  }
}

@media (max-width: 767.98px) {
  .home-hero-carousel__item--welcome .hero-home .hero-inner {
    margin-top: 2rem;
    padding: 1.5rem 1rem 3rem;
  }

  .hero-welcome-layout {
    gap: 1rem;
    width: 100%;
  }

  .hero-welcome-intro {
    max-width: 40rem;
    padding: 0 0.25rem;
  }

  .hero-welcome-intro .hero-sub-en,
  .hero-welcome-intro .hero-sub-te {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    line-height: 1.45;
  }

  .home-hero-carousel__item--welcome .hero-service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .home-hero-carousel__item--welcome .hero-service-card {
    min-height: auto;
    border-radius: 10px;
  }

  .home-hero-carousel__item--welcome .hero-service-card__visual {
    height: 5.5rem;
  }

  .home-hero-carousel__item--welcome .hero-service-card__label {
    height: 3.35rem;
    padding: 0.4rem 0.25rem;
  }

  .home-hero-carousel__item--welcome .hero-service-card__label-en,
  .home-hero-carousel__item--welcome .hero-service-card__label-te {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  html.lang-te .home-hero-carousel__item--welcome .hero-service-card__label-te {
    font-size: 0.66rem;
  }

  .home-hero-carousel__item--welcome .hero-service-card__bg {
    object-fit: cover;
    object-position: center top;
  }

  .home-hero-carousel__item--welcome .hero-welcome-actions {
    margin-top: 0.75rem;
    justify-content: flex-end;
    width: 100%;
  }

  .home-hero-carousel__item--welcome .hero-welcome-actions .hero-cta {
    justify-content: flex-end;
    width: auto;
  }
}

.home-hero-carousel__indicators {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  z-index: 4;
  margin: 0;
  justify-content: center;
  gap: 0.4rem;
}

.home-hero-carousel__indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  opacity: 1;
}

.home-hero-carousel__indicators .active {
  background-color: var(--gold);
  border-color: var(--gold);
}

.home-hero-carousel__control {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  bottom: auto;
  width: auto;
  padding: 0;
  transform: translateY(-50%);
  z-index: 4;
  opacity: 1;
}

.home-hero-carousel__control-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(13, 40, 71, 0.55);
  color: var(--gold);
  font-size: 0;
  line-height: 0;
  border: 1px solid rgba(244, 196, 48, 0.45);
  text-shadow: none;
}

.home-hero-carousel__control-icon::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-sizing: border-box;
}

.carousel-control-prev.home-hero-carousel__control .home-hero-carousel__control-icon::before {
  transform: rotate(-135deg);
}

.carousel-control-next.home-hero-carousel__control .home-hero-carousel__control-icon::before {
  transform: rotate(45deg);
}

.carousel-control-prev.home-hero-carousel__control {
  left: 0.65rem;
}

.carousel-control-next.home-hero-carousel__control {
  right: 0.65rem;
}

.home-hero-carousel .hero-home .hero-inner {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-hero-carousel .hero-home .hero-sub-en,
.home-hero-carousel .hero-home .hero-sub-te {
  color: rgba(255, 255, 255, 0.95);
}

/* Service slides: image area left, text right */
.hero-slide-service .home-hero-slide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-slide-service .home-hero-slide-layout {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: center;
  }

  .home-hero-carousel__item--service {
    min-height: 100%;
  }

  .home-hero-carousel__item--service .hero-home {
    min-height: clamp(20rem, 58vh, 34rem);
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .home-hero-carousel__item--service .hero-home .hero-inner {
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
  }

  .hero-slide-service .home-hero-slide-visual {
    display: block;
    justify-content: flex-start;
    align-items: stretch;
  }

  .hero-slide-service .home-hero-slide-copy {
    padding-top: 0.75rem;
  }
}

.home-hero-slide-visual {
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-hero-slide-visual {
    min-height: 14rem;
    justify-content: center;
    align-items: center;
  }
}

.home-hero-slide-visual__img {
  width: 100%;
  max-height: min(320px, 42vh);
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

@media (min-width: 768px) {
  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-visual__img {
    border-radius: 0;
    filter: none;
  }
}

.home-hero-slide-visual__mobile-hero {
  display: none;
}

.home-hero-slide-copy {
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .home-hero-slide-copy {
    padding-right: 0.5rem;
  }
}

.home-hero-slide-copy__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

html.lang-te .home-hero-slide-copy__title .i18n-te {
  font-family: var(--font-te);
}

.home-hero-slide-copy__points {
  margin: 0;
  padding-left: 1.15rem;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
}

.home-hero-slide-copy__points > li {
  margin-bottom: 0.2rem;
}

html.lang-te .home-hero-slide-copy__points .i18n-te {
  font-family: var(--font-te);
  line-height: 1.55;
}

.home-hero-slide-copy__actions {
  margin-top: 1rem;
}

.home-hero-slide-copy__portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.home-hero-slide-visual__img--contain,
.home-hero-carousel__item--image-contain .home-hero-slide-visual__img {
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.96);
}

.home-hero-carousel__item--portal.home-hero-carousel__item--mobile-card .home-hero-slide-visual__img,
.home-hero-carousel__item--portal[data-desktop-rich-bg="true"] .home-hero-slide-visual__img {
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.96);
}

.home-hero-slide-copy__subtitle {
  margin: 0 0 0.75rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  max-width: 36rem;
}

html.lang-te .home-hero-slide-copy__subtitle .i18n-te {
  font-family: var(--font-te);
}

.home-hero-slide-copy__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.home-hero-slide-copy__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 196, 48, 0.35);
  background: rgba(13, 40, 71, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html.lang-te .home-hero-slide-copy__tag .i18n-te {
  font-family: var(--font-te);
  font-size: 0.74rem;
}

.home-hero-slide-visual__label {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(244, 196, 48, 0.45);
  background: linear-gradient(135deg, rgba(13, 40, 71, 0.88) 0%, rgba(26, 107, 60, 0.75) 100%);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html.lang-te .home-hero-slide-visual__label .i18n-te {
  font-family: var(--font-te);
  text-transform: none;
  font-size: 0.68rem;
}

/* Centered document card with side papers */
.home-hero-rich-visual {
  display: none;
}

@media (min-width: 768px) {
  .home-hero-slide-visual--rich-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: min(360px, 46vh);
    padding: 0.5rem;
    overflow: visible;
    border-radius: 0;
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"]
    .home-hero-slide-visual--rich-card::before,
  .home-hero-carousel__item[data-desktop-rich-bg="true"]
    .home-hero-slide-visual--rich-card::after {
    display: none;
  }

  .home-hero-rich-visual {
    display: block;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
  }

  .home-hero-rich-visual__canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(300px, 40vh);
    margin: 0 auto;
    border-radius: 18px;
    background:
      repeating-conic-gradient(
        from 220deg at 88% 12%,
        rgba(160, 130, 90, 0.07) 0deg 8deg,
        transparent 8deg 16deg
      ),
      linear-gradient(145deg, #f8f2e4 0%, #efe6d4 48%, #e8decb 100%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    overflow: visible;
  }

  .home-hero-carousel__item[data-slide-id="survey"] .home-hero-rich-visual__canvas {
    background:
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 18px,
        rgba(26, 107, 60, 0.05) 18px,
        rgba(26, 107, 60, 0.05) 19px
      ),
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 18px,
        rgba(26, 107, 60, 0.05) 18px,
        rgba(26, 107, 60, 0.05) 19px
      ),
      repeating-conic-gradient(
        from 200deg at 85% 15%,
        rgba(72, 130, 100, 0.06) 0deg 10deg,
        transparent 10deg 20deg
      ),
      linear-gradient(145deg, #f2f0e8 0%, #e6ece4 50%, #dce8df 100%);
  }

  .home-hero-rich-visual__side {
    position: absolute;
    top: 50%;
    width: 42%;
    aspect-ratio: 0.82 / 1;
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfaf5 0%, #f3ece0 100%);
    border: 1px solid rgba(13, 40, 71, 0.07);
    box-shadow: 0 10px 28px rgba(13, 40, 71, 0.14);
    z-index: 0;
  }

  .home-hero-carousel__item[data-slide-id="survey"] .home-hero-rich-visual__side {
    background: linear-gradient(180deg, #f8faf8 0%, #e8efe9 100%);
  }

  .home-hero-rich-visual__side--left {
    left: -6%;
    transform: translateY(-50%) rotate(-9deg);
  }

  .home-hero-rich-visual__side--right {
    right: -6%;
    transform: translateY(-50%) rotate(9deg);
  }

  .home-hero-rich-visual__side::after {
    content: "";
    position: absolute;
    inset: 0.65rem;
    border-radius: 8px;
    border: 1px dashed rgba(13, 40, 71, 0.08);
    opacity: 0.65;
  }

  .home-hero-rich-visual__card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 72%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  .home-hero-rich-visual__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .home-hero-carousel__item[data-slide-id="survey"] .home-hero-rich-visual__img {
    object-position: center center;
  }

  .home-hero-rich-visual__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(13, 40, 71, 0.55) 0%,
      transparent 28%,
      transparent 62%,
      rgba(13, 40, 71, 0.62) 100%
    );
  }

  .home-hero-rich-visual__topbar,
  .home-hero-rich-visual__bottombar {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
  }

  .home-hero-rich-visual__topbar {
    top: 0;
  }

  .home-hero-rich-visual__bottombar {
    bottom: 0;
    align-items: flex-end;
  }

  .home-hero-rich-visual__govt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  html.lang-te .home-hero-rich-visual__govt .i18n-te {
    font-family: var(--font-te);
    text-transform: none;
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }

  .home-hero-rich-visual__govt-dot {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: #e05252;
    flex-shrink: 0;
  }

  .home-hero-rich-visual__ref {
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .home-hero-rich-visual__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .home-hero-rich-visual__dept {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.46rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  html.lang-te .home-hero-rich-visual__dept .i18n-te {
    font-family: var(--font-te);
    text-transform: none;
    font-size: 0.44rem;
  }

  .home-hero-rich-visual__card-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
  }

  html.lang-te .home-hero-rich-visual__card-title .i18n-te {
    font-family: var(--font-te);
    font-size: 0.72rem;
  }

  .home-hero-rich-visual__slide {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }

  .home-hero-rich-visual__slide-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.44rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .home-hero-rich-visual__slide-no {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
  }
}

/* Rich desktop hero slides — rural-fields photo background */
@media (min-width: 768px) {
  .home-banner.home-banner--rich-desktop {
    background: transparent;
  }

  .home-banner.home-banner--rich-desktop .home-banner-shared-bg {
    opacity: 1;
    visibility: visible;
  }

  .home-banner.home-banner--rich-desktop .home-banner-shared-overlay {
    background:
      linear-gradient(
        102deg,
        rgba(13, 40, 71, 0.78) 0%,
        rgba(13, 40, 71, 0.48) 42%,
        rgba(13, 40, 71, 0.32) 68%,
        rgba(13, 40, 71, 0.22) 100%
      );
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-visual {
    position: relative;
    display: block;
    height: min(360px, 46vh);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: none;
    box-shadow: 0 14px 36px rgba(13, 40, 71, 0.2);
    line-height: 0;
    font-size: 0;
    isolation: isolate;
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-visual::before,
  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-visual::after {
    content: none;
    display: none;
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-visual__img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    background: #fff;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    transform: scale(1.06);
    transform-origin: center center;
    vertical-align: top;
  }

  .home-hero-carousel__item[data-slide-id="mutation"][data-desktop-rich-bg="true"] .home-hero-slide-visual__img {
    object-position: center top;
    transform-origin: center top;
  }

  .home-hero-carousel__item[data-slide-id="digital-sign-pending-clearance"][data-desktop-rich-bg="true"] .home-hero-slide-visual__img {
    object-position: center top;
    transform-origin: center top;
    transform: scale(1.12);
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(244, 196, 48, 0.35));
    box-shadow: 0 0 12px rgba(244, 196, 48, 0.35);
  }

  .home-hero-carousel__item[data-slide-id="notary"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, #6b9fd4, rgba(72, 118, 198, 0.35));
    box-shadow: 0 0 12px rgba(72, 118, 198, 0.3);
  }

  .home-hero-carousel__item[data-slide-id="sada-bainama"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, #8b7355, rgba(107, 83, 45, 0.35));
    box-shadow: 0 0 12px rgba(107, 83, 45, 0.28);
  }

  .home-hero-carousel__item[data-slide-id="survey"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, #5cb88a, rgba(26, 107, 60, 0.35));
    box-shadow: 0 0 12px rgba(26, 107, 60, 0.28);
  }

  .home-hero-carousel__item[data-slide-id="building"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, #3cb371, rgba(26, 107, 60, 0.35));
    box-shadow: 0 0 12px rgba(26, 107, 60, 0.28);
  }

  .home-hero-carousel__item[data-slide-id="mutation"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, var(--gold), rgba(201, 160, 32, 0.35));
    box-shadow: 0 0 12px rgba(244, 196, 48, 0.3);
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-copy {
    position: relative;
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-copy::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    right: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 196, 48, 0.14) 0%, transparent 70%);
    pointer-events: none;
  }

  .home-hero-carousel__item[data-desktop-rich-bg="true"] .home-hero-slide-copy__tag {
    border-color: rgba(244, 196, 48, 0.42);
    background: rgba(13, 40, 71, 0.52);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .home-hero-carousel__item[data-slide-id="loans"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, #e8b820, rgba(244, 196, 48, 0.35));
    box-shadow: 0 0 14px rgba(244, 196, 48, 0.32);
  }

  .home-hero-carousel__item[data-slide-id="land-issues"][data-desktop-rich-bg="true"] .home-hero-slide-copy__title::after {
    background: linear-gradient(90deg, #c45c5c, rgba(123, 30, 30, 0.35));
    box-shadow: 0 0 12px rgba(123, 30, 30, 0.28);
  }
}

@media (max-width: 767.98px) {
  .home-hero-carousel__inner {
    overflow: hidden;
  }

  .home-hero-carousel__control {
    display: none;
  }

  /* Service slides without any image: text only */
  .hero-slide-service .home-hero-slide-visual:not(:has(.home-hero-slide-visual__img)):not(:has(.home-hero-slide-visual__mobile-hero)) {
    display: none;
    min-height: 0;
  }

  .home-hero-carousel__item--service:not(.home-hero-carousel__item--mobile-card) .home-hero-slide-layout {
    justify-items: end;
    align-content: start;
    min-height: clamp(14rem, 48vh, 22rem);
  }

  .home-hero-carousel__item--service:not(.home-hero-carousel__item--mobile-card) .home-hero-slide-copy {
    width: min(100%, 19rem);
    padding-top: 0.25rem;
  }

  /* Mobile service slides: same card image as desktop */
  .home-banner.home-banner--mobile-service .home-banner-shared-bg {
    opacity: 1;
    visibility: visible;
  }

  .home-banner.home-banner--mobile-service .home-banner-shared-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(13, 40, 71, 0.72) 0%,
        rgba(13, 40, 71, 0.42) 38%,
        rgba(13, 40, 71, 0.28) 100%
      );
  }

  .home-hero-carousel__item--mobile-card .hero-home {
    align-items: stretch;
    min-height: auto;
  }

  .home-hero-carousel__item--mobile-card .hero-inner {
    padding: 0.75rem 1rem 2.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-layout {
    display: flex;
    flex-direction: column;
    justify-items: stretch;
    align-content: stretch;
    min-height: auto;
    gap: 1rem;
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-visual {
    display: block;
    order: 1;
    width: 100%;
    margin: 0;
    min-height: 0;
    height: min(280px, 52vw);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: none;
    box-shadow: 0 10px 28px rgba(13, 40, 71, 0.22);
    line-height: 0;
    font-size: 0;
    isolation: isolate;
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-visual::before,
  .home-hero-carousel__item--mobile-card .home-hero-slide-visual::after {
    content: none;
    display: none;
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-visual__img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    transform: scale(1.06);
    transform-origin: center center;
  }

  .home-hero-carousel__item--mobile-card[data-slide-id="mutation"] .home-hero-slide-visual__img {
    object-position: center top;
    transform-origin: center top;
  }

  .home-hero-carousel__item--mobile-card[data-slide-id="digital-sign-pending-clearance"] .home-hero-slide-visual__img {
    object-position: center top;
    transform-origin: center top;
    transform: scale(1.12);
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-visual__mobile-hero {
    display: none;
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-copy {
    order: 2;
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-copy__title {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    margin-bottom: 0.65rem;
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-copy__title::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-copy__subtitle {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.65rem;
  }

  .home-hero-carousel__item--mobile-card .home-hero-slide-copy__points {
    padding-left: 1rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
  }

  /* Mobile stack slides: legacy full-bleed hero (fallback) */
  .home-banner.home-banner--stacked {
    min-height: auto;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 55%, #152f52 100%);
  }

  .home-banner.home-banner--stacked .home-banner-shared-bg,
  .home-banner.home-banner--stacked .home-banner-shared-overlay {
    visibility: hidden;
  }

  .home-banner.home-banner--stacked .site-header--glass:not(.site-header--solid) {
    background: transparent;
  }

  .home-hero-carousel__item--mobile-stack .hero-home {
    align-items: stretch;
    min-height: auto;
  }

  .home-hero-carousel__item--mobile-stack .hero-inner {
    padding: 0 1rem 2.75rem;
    text-shadow: none;
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-layout {
    display: flex;
    flex-direction: column;
    justify-items: stretch;
    align-content: stretch;
    min-height: auto;
    gap: 0;
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-visual {
    display: block;
    order: 1;
    min-height: auto;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-visual__mobile-hero {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 0 0 12px 12px;
    filter: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  }

  .home-hero-carousel__item--mobile-stack[data-slide-id="loans"] .home-hero-slide-visual__mobile-hero {
    object-position: center top;
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-visual__img {
    display: none;
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-copy {
    order: 2;
    width: 100%;
    max-width: none;
    padding: 1rem 0 0;
    text-align: left;
    text-shadow: none;
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-copy__title {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    margin-bottom: 0.65rem;
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-copy__title::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  }

  .home-hero-carousel__item--mobile-stack .home-hero-slide-copy__points {
    padding-left: 1rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
  }

  .home-hero-carousel__indicators {
    bottom: 0.55rem;
  }
}

.page-home .site-header--glass {
  z-index: 10;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .site-header--glass.site-header--solid {
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e8ecf1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.page-home .site-header--glass .logo-main.i18n-te,
.page-home .site-header--glass .logo-main.i18n-en {
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.page-home .site-header--glass.site-header--solid .logo-main.i18n-te {
  color: var(--maroon);
  text-shadow: none;
}

.page-home .site-header--glass.site-header--solid .logo-main.i18n-en {
  color: var(--navy);
  text-shadow: none;
}

.page-home .site-header--glass .logo-tag {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.page-home .site-header--glass.site-header--solid .logo-tag {
  color: var(--text-muted);
  text-shadow: none;
}

.page-home .site-header--glass:not(.site-header--solid) .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  text-decoration: none;
}

.page-home .site-header--glass:not(.site-header--solid) .navbar-nav .nav-link:hover {
  background: transparent;
  color: var(--gold);
  text-decoration: none;
}

.page-home .site-header--glass:not(.site-header--solid) .navbar-nav .nav-link.active {
  background: transparent;
  color: var(--gold);
}

.page-home .site-header--glass.site-header--solid .navbar-nav .nav-link.active {
  background: transparent;
  color: var(--navy);
}

.page-home .site-header--glass.site-header--solid .navbar-nav .nav-link:hover,
.page-home .site-header--glass.site-header--solid .navbar-nav .nav-link:focus {
  color: var(--navy-light);
}

.page-home .site-header--glass:not(.site-header--solid) .navbar-toggler {
  border: none;
  background: transparent;
  box-shadow: none;
}

.page-home .site-header--glass:not(.site-header--solid) .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.page-home .site-header--glass .lang-select--glass,
.page-home .site-header--glass .lang-select--glass:hover,
.page-home .site-header--glass .lang-select--glass:focus,
.page-home .site-header--glass .lang-select--glass:focus-visible,
.page-home .site-header--glass .lang-select--glass:active {
  color: var(--white);
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 12px;
}

.page-home .site-header--glass:not(.site-header--solid) .lang-select--glass:hover,
.page-home .site-header--glass:not(.site-header--solid) .lang-select--glass:focus,
.page-home .site-header--glass:not(.site-header--solid) .lang-select--glass:focus-visible {
  color: var(--gold);
}

.page-home .site-header--glass .lang-select--glass option {
  color: var(--navy);
  background-color: var(--white);
}

.page-home .site-header--glass.site-header--solid .lang-select--glass,
.page-home .site-header--glass.site-header--solid .lang-select--glass:hover,
.page-home .site-header--glass.site-header--solid .lang-select--glass:focus,
.page-home .site-header--glass.site-header--solid .lang-select--glass:focus-visible,
.page-home .site-header--glass.site-header--solid .lang-select--glass:active {
  color: var(--navy);
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230d2847' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  background-size: 12px;
}

.page-home .site-header--glass.site-header--solid .lang-select--glass:hover,
.page-home .site-header--glass.site-header--solid .lang-select--glass:focus,
.page-home .site-header--glass.site-header--solid .lang-select--glass:focus-visible {
  color: var(--navy-light);
}

.hero-home {
  position: relative;
  z-index: 2;
  padding: 0;
  flex: 1;
  min-height: clamp(18rem, 55vh, 28rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.home-hero-carousel .hero-slide-service.hero-home {
  align-items: center;
  justify-content: center;
}

.hero-home .hero-inner {
  position: relative;
  z-index: 2;
  padding: 2rem 1.25rem 3rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .home-hero-carousel__item--welcome .hero-home .hero-inner {
    margin-top: 3rem;
  }

  .home-hero-carousel__item--welcome .hero-welcome-copy {
    text-align: center;
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-te);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: var(--gold);
}

.hero .hero-sub-te {
  font-family: var(--font-te);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.95;
  margin: 0 0 1rem;
}

.hero .hero-sub-en {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 1.25rem;
  max-width: 640px;
}

.home-hero-carousel__item--welcome .hero .hero-sub-en,
.home-hero-carousel__item--welcome .hero .hero-sub-te,
.home-hero-carousel__item--welcome .hero-welcome-intro .hero-sub-en,
.home-hero-carousel__item--welcome .hero-welcome-intro .hero-sub-te {
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.bb-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(244, 196, 48, 0.45);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

.hero-welcome-copy .hero-badges {
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .hero-welcome-copy .hero-badges {
    display: none !important;
  }
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bb-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.bb-btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.bb-btn-primary:hover {
  background: var(--gold-dark);
  color: var(--navy);
}

.bb-btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.bb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.hero-cta {
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  display: inline-block;
  margin: 0 auto 0.25rem;
  font-size: 1.65rem;
  color: var(--navy);
}

.section-header h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(201, 160, 32, 0.35);
}

html.lang-te .section-header h2.i18n-te {
  font-family: var(--font-te);
  color: var(--maroon);
}

.section-header .te {
  font-family: var(--font-te);
  font-size: 1.15rem;
  color: var(--maroon);
  margin: 0;
}

.section-header p {
  color: var(--text-muted);
  margin: 0.65rem auto 0;
  max-width: 560px;
}

/* Inner-page hero titles (Services, Contact, etc.) */
.hero:not(.hero-home) .container > h1 {
  display: inline-block;
  margin-bottom: 0;
}

.hero:not(.hero-home) .container > h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), var(--gold), rgba(255, 255, 255, 0.35));
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero:not(.hero-home) .container {
  text-align: center;
}

/* Category blocks */
.category-block {
  margin-bottom: 2.5rem;
}

.category-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.category-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy);
}

.category-title .te {
  font-family: var(--font-te);
  font-size: 1rem;
  color: var(--maroon);
  margin: 0.15rem 0 0;
  font-weight: 600;
}

/* Service cards (Bootstrap row + col) */
.service-card {
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(26, 107, 60, 0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(13, 40, 71, 0.12);
  transform: translateY(-2px);
}

.service-card .num {
  display: inline-block;
  background: var(--cream);
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.service-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--navy);
}

.service-card .te-title {
  font-family: var(--font-te);
  font-size: 0.95rem;
  color: var(--maroon);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.service-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-card p.te-desc {
  font-family: var(--font-te);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  color: #4a5568;
}

/* Sticky category bar (below site header) */
.category-nav-sticky {
  position: sticky;
  top: var(--header-height, 4.5rem);
  z-index: 90;
  margin: 0 0 1.75rem;
  padding: 0.85rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 249, 0.96) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(244, 196, 48, 0.45);
  box-shadow: 0 8px 24px rgba(13, 40, 71, 0.1);
}

.category-nav-mobile {
  margin-bottom: 0;
}

.category-jump-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.category-jump-select {
  border: 2px solid rgba(244, 196, 48, 0.55);
  border-radius: 8px;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(13, 40, 71, 0.1);
}

.category-jump-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.35);
}

html.lang-te .category-jump-select {
  font-family: var(--font-te);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.category-block,
.category-title[id] {
  scroll-margin-top: var(--scroll-offset, var(--header-offset));
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f8 100%);
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 0 rgba(13, 40, 71, 0.05),
    0 4px 14px rgba(13, 40, 71, 0.1);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.cat-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 1rem;
  line-height: 1;
  background: rgba(13, 40, 71, 0.06);
  border: none;
  border-radius: 3px;
  flex-shrink: 0;
}

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

.category-nav a:hover {
  background: linear-gradient(180deg, #fffef8 0%, var(--cream) 100%);
  color: var(--maroon);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 18px rgba(201, 160, 32, 0.22);
  transform: translateY(-2px);
  text-decoration: none;
}

.category-nav a:hover .cat-nav-icon {
  background: rgba(244, 196, 48, 0.25);
}

.category-nav a.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--maroon-dark) 100%);
  color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(244, 196, 48, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 6px 22px rgba(13, 40, 71, 0.35);
  transform: translateY(-1px);
}

.category-nav a.active .cat-nav-icon {
  background: rgba(244, 196, 48, 0.28);
  box-shadow: 0 0 8px rgba(244, 196, 48, 0.45);
}

.bb-btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 40, 71, 0.25);
}

.bb-btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
}

/* Button labels use doc-card-te/en — inherit button colors for contrast */
.bb-btn .doc-card-te,
.bb-btn .doc-card-en {
  margin-top: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
}

.bb-btn-primary .doc-card-te,
.bb-btn-primary .doc-card-en,
.lang-en .bb-btn-primary .doc-card-en,
.lang-te .bb-btn-primary .doc-card-te {
  color: var(--navy);
}

.bb-btn-navy .doc-card-te,
.bb-btn-navy .doc-card-en,
.lang-en .bb-btn-navy .doc-card-en,
.lang-te .bb-btn-navy .doc-card-te,
.bb-btn-navy .i18n-en,
.bb-btn-navy .i18n-te {
  color: var(--white);
}

.detail-btn-reset .doc-card-te,
.detail-btn-reset .doc-card-en,
.lang-en .detail-btn-reset .doc-card-en,
.lang-te .detail-btn-reset .doc-card-te {
  color: var(--navy);
}

.contact-section {
  background: #f4f6f9;
}

.contact-page-header {
  margin-bottom: 2rem;
}

.contact-eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-light);
}

.contact-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 2px;
}

.contact-page-header h2 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.contact-page-header p:last-child {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

html.lang-te .contact-page-header h2.i18n-te,
html.lang-te .contact-info-card h3.i18n-te {
  font-family: var(--font-te);
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-info-card--compact {
  padding: 1.25rem 1rem;
}

.contact-anchor-target {
  scroll-margin-top: calc(var(--header-height, 4.5rem) + 1.25rem);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border: 2px dashed rgba(13, 40, 71, 0.2);
  border-radius: 50%;
  color: var(--navy-light);
}

.contact-info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-info-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.contact-info-card > p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-phone-list {
  text-align: center;
}

.contact-phone-group + .contact-phone-group {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8ecf1;
}

.contact-phone-role {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

html.lang-te .contact-phone-role.i18n-te {
  font-family: var(--font-te);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.contact-phone-name {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

html.lang-en .contact-phone-name-te {
  display: none;
}

html.lang-te .contact-phone-name {
  display: none;
}

html.lang-te .contact-phone-name-te {
  margin: 0 0 0.5rem;
  font-family: var(--font-te);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.contact-phone-link {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-light);
  text-decoration: none;
}

.contact-phone-link + .contact-phone-link {
  margin-top: 0.35rem;
}

.contact-phone-link:hover {
  color: var(--gold-dark);
  text-decoration: none;
}

.contact-email-link {
  font-size: 0.82rem;
  word-break: break-word;
}

.contact-inline-link {
  font-weight: 600;
  color: var(--navy-light);
  text-decoration: none;
}

.contact-inline-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-form-card h3 {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: 1.2rem;
}

.contact-field {
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.contact-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.25);
}

.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

html.lang-te .contact-form .form-label.i18n-te {
  font-family: var(--font-te);
}

.contact-form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

html.lang-te .contact-form-note .i18n-te {
  font-family: var(--font-te);
}

html.lang-te .contact-map-fullwidth .h5.i18n-te {
  font-family: var(--font-te);
}

.contact-map-fullwidth {
  margin-top: 2.5rem;
  background: var(--white);
  border-top: 1px solid rgba(13, 40, 71, 0.08);
  border-bottom: 1px solid rgba(13, 40, 71, 0.08);
}

.contact-map-ratio {
  --bs-aspect-ratio: 32%;
  min-height: 300px;
}

@media (max-width: 767.98px) {
  .contact-map-ratio {
    --bs-aspect-ratio: 56%;
    min-height: 260px;
  }
}

.contact-tagline {
  text-align: center;
  margin: 2rem 0 0;
  font-weight: 600;
  color: var(--navy);
}

html.lang-te .contact-tagline.i18n-te {
  font-family: var(--font-te);
  font-size: 1.05rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--green);
  text-decoration: none;
  margin: 0.35rem 0;
}

.phone-link:hover {
  color: var(--navy-light);
  text-decoration: none;
}

.trust-item {
  height: 100%;
  text-align: center;
  background: var(--cream-card);
  padding: 1.1rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 196, 48, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 40, 71, 0.1);
}

.trust-item-img {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.3;
}

html.lang-te .trust-item strong.i18n-te {
  font-family: var(--font-te);
  font-size: 0.85rem;
}

.trust-item span {
  font-family: var(--font-te);
  font-size: 0.85rem;
  color: var(--maroon);
}

/* Footer quick links — required on all pages */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 3rem;
}

.footer-top {
  padding: 2rem 1.25rem 1rem;
}

.footer-top .container {
  text-align: center;
}

.footer-top h3 {
  display: inline-block;
  margin: 0 auto 0.25rem;
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-top > .container > h3::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 0.45rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.footer-top .te {
  font-family: var(--font-te);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.footer-quick-links {
  margin: 1rem 0 1.5rem;
  text-align: left;
}

.footer-links-heading {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

html.lang-te .footer-links-heading.i18n-te {
  font-family: var(--font-te);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.footer-links-list {
  margin: 0;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 0.4rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links-list a:hover {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-whatsapp-cta {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  text-decoration: none;
}

.footer-whatsapp-cta:hover .footer-wa-icon {
  background: #0f7a6e;
}

.footer-whatsapp-cta:hover .footer-wa-label {
  background: #22c55e;
}

.footer-whatsapp-cta.wa-chat-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  margin: 0;
}

.footer-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  min-width: 3.25rem;
  flex-shrink: 0;
  background: #128c7e;
  color: #fff;
}

.footer-wa-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.footer-wa-icon-ring svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer-wa-label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.2rem 0.75rem 1rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

html.lang-te .footer-wa-label .i18n-te {
  font-family: var(--font-te);
  font-size: 0.95rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(13, 40, 71, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.scroll-to-top svg {
  width: 1.35rem;
  height: 1.35rem;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--white);
  box-shadow: 0 6px 22px rgba(13, 40, 71, 0.18);
  transform: translateY(-2px);
}

.scroll-to-top.is-visible:hover {
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .scroll-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .footer-whatsapp-cta.wa-chat-float {
    bottom: 1rem;
    right: 1rem;
  }

  .footer-wa-label {
    padding: 0.65rem 0.9rem 0.65rem 0.75rem;
    font-size: 0.9rem;
  }

  .footer-wa-icon {
    width: 2.85rem;
    min-width: 2.85rem;
  }
}

.highlight-card {
  height: 100%;
  display: block;
  background: var(--green-light);
  border: 1px solid rgba(26, 107, 60, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.highlight-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.highlight-card h3 {
  margin: 0;
  font-size: 1rem;
}

.highlight-card h3.i18n-te {
  font-family: var(--font-te);
  color: var(--maroon);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Blogs */
.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 40, 71, 0.06);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--cream);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.blog-card-date {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.blog-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--navy);
}

.blog-card h3.i18n-te {
  font-family: var(--font-te);
  font-size: 1rem;
}

.blog-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
}

.blog-card-link {
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--maroon-dark);
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .page-home .site-header--glass:not(.site-header--solid) .navbar-collapse {
    background: rgba(13, 40, 71, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
  }

  .page-home .site-header--glass.site-header--solid .navbar-collapse {
    padding-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.55rem 0.5rem !important;
  }

  /* Services submenu — stay in flow inside mobile nav (no Popper clip) */
  .site-header .navbar-collapse {
    overflow: visible;
  }

  .nav-services-dropdown {
    width: 100%;
  }

  .nav-services-dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-services-dropdown > .dropdown-toggle::after {
    margin-left: auto;
  }

  .nav-services-dropdown .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin: 0.15rem 0 0.65rem;
    padding: 0.35rem 0 0.35rem 0.65rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-services-menu .dropdown-item {
    margin-bottom: 0.2rem;
    background: transparent;
  }

  .nav-services-menu .dropdown-item:hover,
  .nav-services-menu .dropdown-item:focus-visible,
  .nav-services-menu .dropdown-item.active {
    background: var(--green-light);
  }

  .nav-services-menu .dropdown-item .i18n-en,
  .nav-services-menu .dropdown-item .i18n-te {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.35;
  }

  .lang-switcher {
    padding-bottom: 0.5rem;
  }

  .hero-cta .bb-btn {
    width: 100%;
  }

  .logo-tag {
    display: none;
  }

  .category-nav-sticky {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

}

/* —— Bilingual labels (Telugu first, English second; one visible per lang) —— */
.doc-card-te,
.doc-card-en,
.doc-filter-te,
.doc-filter-en {
  display: block;
  line-height: 1.35;
}

.lang-en .doc-card-te,
.lang-en .doc-filter-te {
  display: none !important;
}

.lang-te .doc-card-en,
.lang-te .doc-filter-en {
  display: none !important;
}

.doc-card-te {
  font-family: var(--font-te);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.doc-card-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* Single visible language uses primary title styling */
.lang-en .doc-card-en,
.lang-en .detail-main-title .doc-card-en,
.lang-en .detail-panel-heading .doc-card-en,
.lang-en .related-service-text .doc-card-en {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 0;
}

/* Services explore (mypatta-style grid) */
.services-explore-hero {
  background: var(--page-bg);
  padding: 2rem 1.25rem 1rem;
}

.services-explore-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.services-explore-title .doc-card-en {
  font-family: var(--font-en);
  font-size: inherit;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.services-title-highlight {
  display: inline-block;
  text-decoration: none;
  border-bottom: 0.14em solid #e0b235;
  padding-bottom: 0.06em;
  line-height: 1.2;
}

.services-explore-title .doc-card-te {
  font-size: inherit;
  color: var(--maroon);
}

.services-explore-sub {
  margin: 0.65rem auto 0;
  max-width: 42rem;
}

.services-section-picker {
  display: inline-block;
  margin: 1.35rem auto 0;
  text-align: left;
}

.services-section-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: min(100%, 16rem);
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(13, 40, 71, 0.12);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 14px rgba(13, 40, 71, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-section-picker__btn:hover,
.services-section-picker__btn:focus,
.services-section-picker__btn.show {
  border-color: rgba(26, 107, 60, 0.35);
  box-shadow: 0 4px 18px rgba(13, 40, 71, 0.12);
  color: var(--navy);
  background: var(--white);
}

.services-section-picker__btn::after {
  margin-left: 0.25rem;
}

.services-section-picker__btn .doc-card-te,
.services-section-picker__btn .doc-card-en,
.services-section-picker__menu .dropdown-item .doc-card-te,
.services-section-picker__menu .dropdown-item .doc-card-en {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.lang-te .services-section-picker__btn .doc-card-te {
  font-family: var(--font-te);
}

.lang-en .services-section-picker__btn .doc-card-en {
  font-family: var(--font-en);
}

.services-section-picker__menu {
  min-width: min(100vw - 2.5rem, 16rem);
  padding: 0.35rem;
  border: 1px solid rgba(13, 40, 71, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(13, 40, 71, 0.12);
}

.services-section-picker__menu .dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.services-section-picker__menu .dropdown-item:hover,
.services-section-picker__menu .dropdown-item:focus,
.services-section-picker__menu .dropdown-item.active {
  background: var(--green-light);
  color: var(--navy);
}

.page-services .service-section {
  scroll-margin-top: calc(var(--header-offset, 5rem) + 0.75rem);
}

.page-services .services-catalog {
  background: var(--page-bg);
}

.services-department-nav {
  position: sticky;
  top: var(--header-height, 4.5rem);
  z-index: 1010;
  padding: 0.5rem 0 1rem;
  background: var(--page-bg);
  scroll-margin-top: calc(var(--header-offset, 5rem) + 0.5rem);
}

.services-department-nav .container {
  padding-left: max(0.75rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
  padding-right: max(0.75rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
}

.services-department-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services-search {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .services-department-toolbar {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
  }

  .services-department-nav .doc-filter-tabs {
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
  }

  .services-search {
    flex: 0 0 auto;
    width: min(22rem, 34%);
    min-width: 14rem;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .services-department-nav .services-search__field {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.services-search__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid rgba(13, 40, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(13, 40, 71, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-search__field:focus-within {
  border-color: rgba(26, 107, 60, 0.35);
  box-shadow: 0 4px 18px rgba(13, 40, 71, 0.1);
}

.services-search__icon {
  flex: 0 0 auto;
  color: rgba(13, 40, 71, 0.45);
}

.services-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 0;
}

.services-search__input::placeholder {
  color: rgba(13, 40, 71, 0.45);
}

.services-search__input:focus {
  outline: none;
}

.services-search__input::-webkit-search-cancel-button,
.services-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.services-search__clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 40, 71, 0.06);
  color: rgba(13, 40, 71, 0.65);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.services-search__clear:hover,
.services-search__clear:focus-visible {
  background: rgba(13, 40, 71, 0.1);
  color: var(--navy);
}

.services-search-empty {
  padding: 1.5rem 0 0.5rem;
}

.services-search-empty__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.services-search-empty__sub {
  margin: 0.45rem 0 0;
  color: rgba(13, 40, 71, 0.65);
}

.doc-card.doc-card--search-hidden {
  display: none !important;
}

.services-department-nav .doc-filter-tabs {
  margin-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.services-department-nav .doc-filter-tabs::-webkit-scrollbar {
  display: none;
}

.services-department-nav .doc-filter-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  text-align: center;
  scroll-snap-align: start;
}

.services-department-nav .doc-filter-btn .doc-filter-te,
.services-department-nav .doc-filter-btn .doc-filter-en {
  display: block;
  line-height: 1.25;
  white-space: nowrap;
}

.lang-en .services-department-nav .doc-filter-btn .doc-filter-en {
  font-size: 0.84rem;
}

.lang-te .services-department-nav .doc-filter-btn .doc-filter-te {
  font-size: 0.8rem;
}

.department-filter-mobile {
  display: none;
}

.department-filter-select {
  width: 100%;
  margin: 0;
}

.service-section[hidden],
.service-section.service-section--filtered-out {
  display: none !important;
}

/* Document filter bar (mypatta-style white card) */
.doc-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.65rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(13, 40, 71, 0.08);
  box-shadow: 0 2px 14px rgba(13, 40, 71, 0.07);
}

.doc-filter-btn {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.doc-filter-btn:hover:not(.is-active) {
  color: var(--navy);
}

.doc-filter-btn .doc-filter-te,
.doc-filter-btn .doc-filter-en {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  margin: 0;
}

.lang-te .doc-filter-btn .doc-filter-te {
  font-family: var(--font-te);
  font-size: 0.82rem;
}

.lang-en .doc-filter-btn .doc-filter-en {
  font-family: var(--font-en);
  font-size: 0.875rem;
}

.doc-filter-btn.is-active {
  background: #374151;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.doc-filter-btn.is-active .doc-filter-te,
.doc-filter-btn.is-active .doc-filter-en {
  color: var(--white);
  font-weight: 600;
}

/* Document filters — horizontal scroll on mobile only */
@media (max-width: 767.98px) {
  .services-department-nav .department-filter-mobile {
    display: none;
  }

  .services-department-nav .doc-filter-tabs {
    display: flex !important;
  }

  .services-department-nav .doc-filter-btn {
    padding: 0.55rem 0.75rem;
  }

  #section-documents .doc-filter-tabs,
  #section-registration .doc-filter-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.35rem;
    max-width: 100%;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0.45rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #section-documents .doc-filter-tabs::-webkit-scrollbar,
  #section-registration .doc-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  #section-documents .doc-filter-btn,
  #section-registration .doc-filter-btn {
    flex: 0 0 auto;
    min-width: auto;
    width: auto;
    max-width: none;
    padding: 0.5rem 0.8rem;
    scroll-snap-align: start;
  }

  #section-documents .doc-filter-btn .doc-filter-te,
  #section-documents .doc-filter-btn .doc-filter-en,
  #section-registration .doc-filter-btn .doc-filter-te,
  #section-registration .doc-filter-btn .doc-filter-en {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .lang-te #section-documents .doc-filter-btn .doc-filter-te,
  .lang-te #section-registration .doc-filter-btn .doc-filter-te {
    font-size: 0.76rem;
  }

  .lang-en #section-documents .doc-filter-btn .doc-filter-en,
  .lang-en #section-registration .doc-filter-btn .doc-filter-en {
    font-size: 0.78rem;
  }
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .doc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(26, 107, 60, 0.28);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  height: 100%;
}

.doc-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 107, 60, 0.15);
  border-color: var(--green);
}

.doc-card-preview {
  aspect-ratio: 16 / 10;
  background: #f0f7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doc-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-card-preview img.is-placeholder {
  object-fit: contain;
  width: 55%;
  height: auto;
  opacity: 0.35;
  filter: grayscale(0.2);
}

.doc-card-preview--zoom img,
.doc-card-preview--zoom .bb-preview-media img {
  transform: scale(1.55);
  object-position: center 12%;
}

.doc-card-preview--contain img,
.doc-card-preview--contain .bb-preview-media img {
  object-fit: contain;
  object-position: center;
  transform: none;
  width: 100%;
  height: 100%;
}

.detail-sample-frame--zoom .detail-sample-media img {
  transform: scale(1.35);
  transform-origin: center top;
  object-position: center 8%;
}

.detail-sample-frame--contain .detail-sample-media img {
  object-fit: contain;
  object-position: center;
  transform: none;
  width: 100%;
  height: 100%;
}

.doc-card-caption {
  padding: 0.55rem 0.7rem 0.6rem;
  background: var(--green-light);
  border-top: 1px solid rgba(26, 107, 60, 0.15);
  flex: 1;
  min-width: 0;
}

.doc-card-caption__title .doc-card-te,
.doc-card-caption__title .doc-card-en,
.lang-en .doc-card-caption__title .doc-card-en,
.lang-te .doc-card-caption__title .doc-card-te {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-card-caption__title .doc-card-te {
  font-family: var(--font-te);
  color: var(--maroon);
}

.doc-card-caption__subtitle {
  margin: 0.28rem 0 0;
  min-width: 0;
}

.doc-card-caption__subtitle .doc-card-te,
.doc-card-caption__subtitle .doc-card-en,
.lang-en .doc-card-caption__subtitle .doc-card-en,
.lang-te .doc-card-caption__subtitle .doc-card-te {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-card-caption__subtitle .doc-card-te {
  font-family: var(--font-te);
}

.doc-card-caption__portal-link-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
}

.doc-card-caption__portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 2.1rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

.doc-card-caption__portal-btn .doc-card-te,
.doc-card-caption__portal-btn .doc-card-en,
.lang-en .doc-card-caption__portal-btn .doc-card-en,
.lang-te .doc-card-caption__portal-btn .doc-card-te {
  display: inline;
  margin-top: 0;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  color: var(--navy);
}

.doc-card--portal:hover {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 767.98px) {
  .doc-card-caption__subtitle {
    display: none;
  }

  .doc-card-caption__title .doc-card-te,
  .doc-card-caption__title .doc-card-en,
  .lang-en .doc-card-caption__title .doc-card-en,
  .lang-te .doc-card-caption__title .doc-card-te {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
  }

  .doc-card-caption__portal-btn {
    width: auto;
    max-width: 100%;
    min-height: 1.85rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.56rem;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .doc-card-caption {
    padding: 0.65rem 0.85rem 0.7rem;
  }

  .doc-card-caption__portal-btn {
    width: auto;
    max-width: 100%;
    min-height: 2.25rem;
    padding: 0.38rem 0.58rem;
    font-size: 0.72rem;
  }

  .doc-card-caption__title .doc-card-te,
  .doc-card-caption__title .doc-card-en,
  .lang-en .doc-card-caption__title .doc-card-en,
  .lang-te .doc-card-caption__title .doc-card-te {
    font-size: 0.95rem;
  }

  .doc-card-caption__subtitle .doc-card-te,
  .doc-card-caption__subtitle .doc-card-en,
  .lang-en .doc-card-caption__subtitle .doc-card-en,
  .lang-te .doc-card-caption__subtitle .doc-card-te {
    font-size: 0.82rem;
  }
}

.doc-card-cta {
  border-style: dashed;
  border-width: 2px;
  background: linear-gradient(145deg, var(--green-light) 0%, #fff 100%);
  min-height: 100%;
}

.doc-card-cta-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
}

.doc-card-cta .doc-card-te {
  font-size: 1rem;
  color: var(--maroon);
}

.doc-card-cta .bb-btn {
  font-size: 0.85rem;
}

/* Home featured documents */
.home-doc-section {
  background: var(--white);
}

.home-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .home-doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .home-doc-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.home-revenue-block {
  margin-top: 2.5rem;
}

.home-revenue-header {
  margin-bottom: 2rem;
}

.home-revenue-card {
  overflow: hidden;
}

.home-revenue-lands-list {
  padding: 1.15rem 1.15rem 0;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .home-revenue-lands-list {
    gap: 0.85rem;
    padding: 0 1.35rem;
  }
}

.home-section-cta {
  margin: 0;
  padding: 1.15rem 0 1.35rem;
}

.home-revenue-card .home-section-cta {
  padding: 1.15rem 1.15rem 1.35rem;
}

@media (min-width: 768px) {
  .home-revenue-card .home-section-cta {
    padding: 1.15rem 1.35rem 1.5rem;
  }
}

/* Service detail page */
.detail-breadcrumb-bar {
  background: var(--green-light);
  border-bottom: 1px solid rgba(26, 107, 60, 0.15);
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.detail-breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* balance right side so title is truly centered */
.detail-breadcrumb-bar .container::after {
  content: "";
  width: 2.5rem;
  flex: 0 0 auto;
}

#detail-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

/* center title typography (single language shown) */
#detail-breadcrumb .doc-card-te,
#detail-breadcrumb .doc-card-en,
.lang-en #detail-breadcrumb .doc-card-en,
.lang-te #detail-breadcrumb .doc-card-te {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(13, 40, 71, 0.12);
  box-shadow: 0 2px 10px rgba(13, 40, 71, 0.08);
  text-decoration: none;
  color: var(--navy);
  vertical-align: middle;
  line-height: 0;
  flex: 0 0 auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.detail-breadcrumb-back .bb-icon-back {
  display: block;
  flex-shrink: 0;
}

.detail-breadcrumb-back:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 40, 71, 0.12);
  border-color: rgba(26, 107, 60, 0.35);
}

.detail-breadcrumb-back:active {
  transform: translateY(0);
}

.detail-layout {
  padding: 1.5rem 0 3rem;
}

.detail-panel {
  background: var(--white);
  border: 1px solid rgba(26, 107, 60, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.detail-panel-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.detail-panel-heading .doc-card-te {
  color: var(--maroon);
  font-size: 1.05rem;
}

.detail-main-title .doc-card-te {
  font-size: 1.35rem;
  color: var(--maroon);
}

.detail-main-title .doc-card-en {
  font-size: 0.95rem;
}

.detail-form-input {
  border: 1px solid rgba(26, 107, 60, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.detail-form-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

.detail-form-actions .detail-btn-reset,
.detail-form-actions .bb-btn-navy {
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
}

.detail-form-btn-inert {
  pointer-events: none;
  cursor: default;
}

/* Match contact.html submit button */
.detail-order-form .bb-btn-navy,
.detail-order-form--cc .detail-cc-order-btn,
.detail-contact-panel .bb-btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(13, 40, 71, 0.25);
}

.detail-order-form .bb-btn-navy:hover,
.detail-order-form--cc .detail-cc-order-btn:hover,
.detail-contact-panel .bb-btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
}

.detail-btn-reset {
  background: var(--white);
  color: var(--navy);
  border: 1px solid rgba(26, 107, 60, 0.35);
}

.detail-btn-reset .i18n-en,
.detail-btn-reset .i18n-te {
  color: var(--navy);
}

.detail-btn-reset:hover {
  background: var(--green-light);
  color: var(--navy);
}

.detail-guarantee-strip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--green-light);
  border: 1px solid rgba(26, 107, 60, 0.2);
  border-radius: 12px;
}

.detail-guarantee-strip--sidebar {
  margin-top: 0;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.detail-guarantee-strip--sidebar .doc-card-te,
.detail-guarantee-strip--sidebar .doc-card-en {
  font-size: 0.85rem;
  line-height: 1.45;
}

.detail-guarantee-badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-why-panel {
  background: var(--green-light);
  border-color: rgba(26, 107, 60, 0.22);
}

.detail-stat-card {
  background: var(--white);
  border: 1px solid rgba(26, 107, 60, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
  height: 100%;
  text-align: center;
}

.detail-stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
}

.detail-list {
  margin: 0;
  padding-left: 1.25rem;
}

.detail-list li {
  margin-bottom: 0.5rem;
}

.detail-faq-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #eef2f0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-faq-body {
  padding: 0 1.2rem 1rem 3.1rem;
  border-top: none;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.detail-order-card .detail-order-form {
  margin: 0;
}

/* Certified Copy — order card (year dropdown + delivery options) */
.detail-order-card--cc {
  border-color: rgba(26, 107, 60, 0.28);
  box-shadow:
    0 4px 22px rgba(13, 40, 71, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.detail-order-card--cc .detail-info-card__head {
  background: linear-gradient(
    135deg,
    var(--green-light) 0%,
    #dcefe0 48%,
    var(--cream-card) 100%
  );
  border-bottom: 2px solid rgba(26, 107, 60, 0.16);
  padding: 1rem 1.25rem;
}

.detail-order-card--cc .detail-info-card__title .doc-card-en,
.lang-en .detail-order-card--cc .detail-info-card__title .doc-card-en {
  color: var(--green);
  font-size: 1.2rem;
}

.detail-order-card--cc .detail-info-card__title .doc-card-te {
  color: var(--maroon);
  font-size: 1.15rem;
}

.detail-order-card--cc .detail-info-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-card) 100%);
}

.detail-order-form--cc {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-cc-enquiry-note {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(26, 107, 60, 0.2);
  border-radius: 10px;
  background: var(--green-light);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--navy);
}

.detail-cc-enquiry-note .doc-card-te,
.detail-cc-enquiry-note .doc-card-en {
  color: #1a1a1a;
}

.detail-cc-enquiry-note .doc-card-te {
  font-family: var(--font-te);
}

.detail-cc-field {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.detail-cc-delivery-field {
  min-width: 0;
  margin-bottom: 1.1rem;
}

.detail-cc-label,
.detail-cc-delivery-field .detail-cc-label {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.detail-cc-delivery-field legend.detail-cc-label {
  float: left;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0;
}

.detail-cc-label .doc-card-te {
  font-family: var(--font-te);
  color: var(--maroon);
  font-weight: 700;
}

.detail-cc-select,
.detail-cc-year-input {
  margin-bottom: 0;
  background-color: var(--white);
  border: 1px solid rgba(26, 107, 60, 0.32);
  color: var(--navy);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(13, 40, 71, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.detail-cc-select {
  cursor: pointer;
}

.detail-cc-select:hover,
.detail-cc-year-input:hover {
  border-color: rgba(26, 107, 60, 0.48);
}

.detail-cc-select:focus,
.detail-cc-year-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.16);
  outline: none;
}

.detail-cc-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-cc-delivery-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(13, 40, 71, 0.12);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(13, 40, 71, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.detail-cc-delivery-option:hover {
  border-color: rgba(26, 107, 60, 0.35);
  box-shadow: 0 4px 14px rgba(13, 40, 71, 0.08);
}

.detail-cc-delivery-option:has(.detail-cc-delivery-option__input:checked) {
  border-color: var(--green);
  background: linear-gradient(135deg, #f0f9f1 0%, var(--green-light) 100%);
  box-shadow:
    0 0 0 1px rgba(26, 107, 60, 0.2),
    0 4px 16px rgba(26, 107, 60, 0.12);
  transform: translateY(-1px);
}

.detail-cc-delivery-option__input {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--green);
}

.detail-cc-delivery-option__main {
  flex: 1 1 auto;
  min-width: 0;
}

.detail-cc-delivery-option__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  row-gap: 0.2rem;
}

.detail-cc-delivery-option__title {
  display: inline;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
}

.detail-cc-delivery-option__title .doc-card-te,
.detail-cc-delivery-option__title .doc-card-en {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
}

.detail-cc-delivery-option__title .doc-card-te {
  font-family: var(--font-te);
  color: var(--text);
}

html.lang-te .detail-cc-delivery-option__title .doc-card-te,
.lang-te .detail-cc-delivery-option__title .doc-card-te {
  color: var(--text);
}

.detail-cc-delivery-option__meta {
  display: inline;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
}

.detail-cc-delivery-option__meta::before {
  content: "·";
  margin-right: 0.5rem;
  color: rgba(26, 107, 60, 0.45);
  font-weight: 700;
}

.detail-cc-delivery-option__duration {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
}

.detail-cc-delivery-option__duration .doc-card-te,
.detail-cc-delivery-option__duration .doc-card-en {
  display: inline;
  font-size: inherit;
}

.detail-cc-delivery-option__duration .doc-card-te {
  font-family: var(--font-te);
}

html.lang-te .detail-cc-delivery-option__duration .doc-card-te,
.lang-te .detail-cc-delivery-option__duration .doc-card-te {
  color: var(--text-muted);
}

.detail-cc-delivery-option__meta .doc-card-te,
.detail-cc-delivery-option__meta .doc-card-en {
  display: inline;
  font-size: inherit;
}

.detail-cc-delivery-option__meta .doc-card-te {
  font-family: var(--font-te);
}

html.lang-te .detail-cc-delivery-option__meta .doc-card-te,
.lang-te .detail-cc-delivery-option__meta .doc-card-te {
  color: var(--text);
}

.detail-cc-delivery-option:has(.detail-cc-delivery-option__input:checked) .detail-cc-delivery-option__meta {
  color: #6b7280;
}

html.lang-te
  .detail-cc-delivery-option:has(.detail-cc-delivery-option__input:checked)
  .detail-cc-delivery-option__meta
  .doc-card-te,
.lang-te
  .detail-cc-delivery-option:has(.detail-cc-delivery-option__input:checked)
  .detail-cc-delivery-option__meta
  .doc-card-te {
  color: var(--text);
}

.detail-cc-delivery-option__price {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .detail-cc-delivery-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .detail-cc-delivery-option:only-child {
    grid-column: 1 / -1;
  }

  .detail-cc-delivery-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.15rem 0.75rem;
  }

  .detail-cc-delivery-option__input {
    grid-row: 1 / -1;
    align-self: center;
  }

  .detail-cc-delivery-option__main {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .detail-cc-delivery-option__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .detail-cc-delivery-option__title {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .detail-cc-delivery-option__meta {
    font-size: 0.78rem;
    font-weight: 400;
  }

  .detail-cc-delivery-option__duration {
    font-size: 0.78rem;
  }

  .detail-cc-delivery-option__meta::before {
    display: none;
  }

  .detail-cc-delivery-option__price {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    padding-top: 0.05rem;
    font-size: 0.95rem;
    font-weight: 600;
  }
}

.detail-order-form--cc .detail-cc-order-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  font-size: 1.02rem;
}

@media (max-width: 767.98px) {
  .detail-order-card--cc .detail-info-card__body {
    padding: 1.1rem 1rem 1.25rem;
  }

  .detail-order-card--cc .detail-info-card__head {
    padding: 0.85rem 1rem;
  }

  .detail-order-card--cc .detail-info-card__title .doc-card-en,
  .lang-en .detail-order-card--cc .detail-info-card__title .doc-card-en {
    font-size: 1.05rem;
  }

  .detail-cc-label,
  .detail-cc-delivery-field .detail-cc-label {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
  }

  .detail-cc-select,
  .detail-cc-year-input {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  .detail-cc-delivery-options {
    gap: 0.5rem;
  }

  .detail-cc-delivery-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "radio main price";
    align-items: start;
    gap: 0.45rem 0.55rem;
    padding: 0.75rem 0.8rem;
  }

  .detail-cc-delivery-option__input {
    grid-area: radio;
    width: 1rem;
    height: 1rem;
    margin-top: 0.12rem;
  }

  .detail-cc-delivery-option__main {
    grid-area: main;
    min-width: 0;
  }

  .detail-cc-delivery-option__price {
    grid-area: price;
    align-self: start;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    padding-top: 0.05rem;
  }

  .detail-cc-delivery-option__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
  }

  .detail-cc-delivery-option__title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
  }

  .detail-cc-delivery-option__meta {
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
  }

  .detail-cc-delivery-option__duration {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .detail-cc-delivery-option__meta::before {
    display: none;
  }

  .detail-order-form--cc .detail-cc-order-btn {
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 399.98px) {
  .detail-cc-delivery-option {
    padding: 0.65rem 0.7rem;
    gap: 0.4rem 0.45rem;
  }

  .detail-cc-delivery-option__title {
    font-size: 0.78rem;
  }

  .detail-cc-delivery-option__meta {
    font-size: 0.7rem;
  }

  .detail-cc-delivery-option__duration {
    font-size: 0.7rem;
  }

  .detail-cc-delivery-option__price {
    font-size: 0.82rem;
  }
}

.detail-subtitle .doc-card-te,
.detail-subtitle .doc-card-en {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Mypatta-style info cards — Bhu Bharathi theme (light green header) */
.detail-info-card,
.detail-faqs-card {
  border: 1px solid rgba(26, 107, 60, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(13, 40, 71, 0.06);
  margin-bottom: 1.25rem;
}

.detail-info-card__head {
  background: var(--green-light);
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(26, 107, 60, 0.12);
}

.detail-info-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.detail-info-card__title .doc-card-te {
  font-family: var(--font-te);
  color: var(--maroon);
  font-size: 1.12rem;
  font-weight: 700;
}

.detail-info-card__title .doc-card-en,
.lang-en .detail-info-card__title .doc-card-en {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.detail-info-card__body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.detail-info-block {
  margin-top: 1.35rem;
}

.detail-info-block[hidden] {
  display: none !important;
}

/* Subheadings — bold & dark (like mypatta) */
.detail-info-subheading {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.35;
}

.detail-info-subheading::before {
  content: "→";
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.detail-info-subheading .doc-card-te,
.lang-te .detail-info-subheading .doc-card-te {
  font-family: var(--font-te);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon);
}

.detail-info-subheading .doc-card-en,
.lang-en .detail-info-subheading .doc-card-en {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* Overview body — regular grey text */
.detail-overview-para {
  margin: 0;
  line-height: 1.65;
}

.detail-overview-para .doc-card-te,
.detail-overview-para .doc-card-en,
.lang-en .detail-overview-para .doc-card-en,
.lang-te .detail-overview-para .doc-card-te {
  font-weight: 400;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
}

.detail-portal-link-wrap {
  margin: 1rem 0 0;
}

.detail-portal-link-wrap--order {
  margin: 0;
  text-align: center;
}

.detail-portal-link {
  font-weight: 600;
  color: var(--navy-light);
  text-decoration: none;
}

.detail-portal-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.detail-portal-link--text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-portal-link--text:hover {
  text-decoration: none;
  color: var(--gold-dark);
}

.detail-portal-link__text {
  border-bottom: 2px solid var(--gold-dark);
  padding-bottom: 0.15rem;
  line-height: 1.45;
  transition: border-color 0.2s ease;
}

.detail-portal-link--text:hover .detail-portal-link__text {
  border-bottom-color: var(--gold);
}

.detail-portal-link__icon {
  flex-shrink: 0;
  color: var(--gold-dark);
  transition: color 0.2s ease;
}

.detail-portal-link--text:hover .detail-portal-link__icon {
  color: var(--gold);
}

.detail-order-form .detail-portal-link .doc-card-te,
.detail-order-form .detail-portal-link .doc-card-en {
  font-weight: 600;
}

/* List items — lighter than headings */
.detail-bullet-list {
  margin: 0 0 0.25rem;
  padding: 0;
  list-style: none;
}

.detail-bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.detail-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.55em;
  color: #1a1a2e;
  font-size: 0.55rem;
  line-height: 0;
}

.detail-bullet-list li .doc-card-te,
.detail-bullet-list li .doc-card-en,
.lang-en .detail-bullet-list li .doc-card-en,
.lang-te .detail-bullet-list li .doc-card-te {
  font-weight: 400;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin-top: 0;
}

/* Service detail — side inset on mobile so card borders stay visible */
@media (max-width: 767.98px) {
  .page-service-detail .detail-layout.container {
    padding-left: max(1.125rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.125rem, env(safe-area-inset-right, 0px));
    max-width: 100%;
  }

  /* Row gutters can pull cards flush to the viewport; rely on container inset */
  .page-service-detail .detail-layout > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .page-service-detail .detail-layout > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .page-service-detail .detail-panel {
    padding: 1.35rem 1.25rem;
  }

  .page-service-detail .detail-info-card__head,
  .page-service-detail .detail-faqs-card .detail-info-card__head {
    padding: 1rem 1.25rem;
  }

  .page-service-detail .detail-info-card__body,
  .page-service-detail .detail-faqs-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .page-service-detail .detail-related-card__head {
    padding: 0.85rem 1.25rem;
  }

  .page-service-detail .detail-related-card__body {
    padding: 0.75rem 1.25rem 1rem;
  }

  .page-service-detail .detail-guarantee-strip--sidebar {
    padding: 0.85rem 1.25rem;
  }

  .page-service-detail .detail-faq-item summary {
    padding: 1rem 1.25rem;
  }

  .page-service-detail .detail-faq-body {
    padding: 0 1.25rem 1.15rem 3.1rem;
  }
}

.detail-faqs-card__body {
  padding: 0;
  background: var(--white);
}

.detail-faqs-list {
  margin: 0;
}

.detail-faq-item {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(13, 40, 71, 0.08);
  margin: 0;
  background: var(--white);
}

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

.detail-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.2rem;
  transition: background 0.15s ease;
}

.detail-faq-item summary::-webkit-details-marker {
  display: none;
}

.detail-faq-item summary:hover {
  background: var(--green-light);
}

.detail-faq-item[open] summary {
  background: rgba(232, 245, 233, 0.65);
}

.detail-faq-q {
  flex: 1;
  min-width: 0;
}

.detail-faq-q .doc-card-te {
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-faq-q .doc-card-en {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0;
}

.detail-faq-toggle {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-faq-toggle::after {
  content: "+";
}

.detail-faq-item[open] .detail-faq-toggle::after {
  content: "−";
}

.detail-faq-body .doc-card-te,
.detail-faq-body .doc-card-en,
.lang-en .detail-faq-body .doc-card-en,
.lang-te .detail-faq-body .doc-card-te {
  font-size: 1rem;
  font-weight: 400;
  color: #4a5568;
  line-height: 1.6;
}

.detail-sample-frame {
  border: 1px solid rgba(26, 107, 60, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: #f0f7f2;
}

.detail-sample-media,
.bb-preview-media {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

/* Fixed preview size on service detail (matches .doc-card-preview) */
.detail-sample-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.detail-sample-frame img,
.bb-preview-media img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-sample-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.detail-sample-frame--slider .detail-sample-carousel,
.detail-sample-frame--slider .detail-sample-carousel .carousel-inner,
.detail-sample-frame--slider .detail-sample-carousel .carousel-item,
.detail-sample-frame--slider .detail-sample-carousel .detail-sample-media {
  height: 100%;
}

.detail-sample-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
}

.detail-sample-carousel .carousel-inner,
.detail-sample-carousel .carousel-item {
  height: 100%;
}

.detail-sample-carousel__indicators {
  margin-bottom: 0.45rem;
}

.detail-sample-carousel__indicators [data-bs-target] {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  opacity: 1;
}

.detail-sample-carousel__indicators .active {
  background-color: #000;
}

.bb-preview-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.bb-preview-carousel .carousel-inner,
.bb-preview-carousel .carousel-item {
  height: 100%;
}

.bb-preview-carousel__indicators {
  margin-bottom: 0.45rem;
  z-index: 3;
}

.bb-preview-carousel__indicators [data-bs-target] {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.bb-preview-carousel__indicators .active {
  background-color: var(--green);
  border-color: var(--green);
}

.bb-preview-carousel__count {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 40, 71, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}

.doc-card-preview--slider {
  display: block;
  padding: 0;
}

.doc-card-preview--slider .bb-preview-carousel--card {
  aspect-ratio: 16 / 10;
  height: auto;
}

.doc-card-preview--slider .bb-preview-carousel--card .carousel-inner,
.doc-card-preview--slider .bb-preview-carousel--card .carousel-item,
.doc-card-preview--slider .bb-preview-carousel--card .bb-preview-media {
  height: 100%;
}

.doc-card-preview--slider .bb-preview-carousel--card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-card-preview--zoom.doc-card-preview--slider .bb-preview-carousel--card img {
  transform: scale(1.55);
  object-position: center 12%;
}

.doc-card-preview--contain.doc-card-preview--slider .bb-preview-carousel--card img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

.bb-preview-zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(13, 40, 71, 0.82);
  box-shadow: 0 2px 12px rgba(13, 40, 71, 0.28);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.bb-preview-zoom:hover {
  background: rgba(26, 107, 60, 0.92);
  transform: scale(1.05);
}

.bb-preview-zoom[hidden] {
  display: none !important;
}

.doc-card-preview .bb-preview-media {
  width: 100%;
  height: 100%;
}

.doc-card-preview .bb-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-card-preview .bb-preview-media img.is-placeholder {
  object-fit: contain;
  width: 55%;
  height: auto;
  margin: auto;
  opacity: 0.35;
}

@media (hover: hover) and (pointer: fine) {
  .bb-preview-media .bb-preview-zoom:not([hidden]) {
    opacity: 0;
    pointer-events: none;
  }

  .bb-preview-media:hover .bb-preview-zoom:not([hidden]),
  .bb-preview-media:focus-within .bb-preview-zoom:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .bb-preview-zoom:not([hidden]):focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .bb-preview-media .bb-preview-zoom:not([hidden]) {
    display: none !important;
  }

  /* Service detail overview: keep zoom icon visible on touch (matches desktop) */
  .detail-sample-frame .bb-preview-media .bb-preview-zoom:not([hidden]) {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }

  .bb-preview-media img:not(.is-placeholder) {
    cursor: zoom-in;
  }

  .doc-card .bb-preview-media img:not(.is-placeholder) {
    cursor: pointer;
  }
}

/* Related services — shaded outer card (mypatta-style, green theme) */
.detail-related-card {
  border: 1px solid rgba(26, 107, 60, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #eef6f0;
  box-shadow: 0 2px 12px rgba(13, 40, 71, 0.05);
  margin-bottom: 1.25rem;
}

.detail-related-card__head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(26, 107, 60, 0.1);
  background: rgba(232, 245, 233, 0.55);
}

.detail-related-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}

.detail-related-card__title .doc-card-te {
  font-family: var(--font-te);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maroon);
}

.detail-related-card__title .doc-card-en,
.lang-en .detail-related-card__title .doc-card-en {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.detail-related-card__body {
  padding: 0.75rem;
  background: #eef6f0;
}

.detail-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.related-service-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(13, 40, 71, 0.09);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(13, 40, 71, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.related-service-link:hover {
  text-decoration: none;
  color: inherit;
  border-color: rgba(26, 107, 60, 0.28);
  box-shadow: 0 4px 12px rgba(26, 107, 60, 0.12);
  transform: translateY(-1px);
}

.related-service-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 1px solid rgba(26, 107, 60, 0.15);
  background: var(--green-light);
}

.related-service-link img.is-placeholder {
  object-fit: contain;
  opacity: 0.35;
  padding: 0.25rem;
}

.related-service-thumb {
  flex-shrink: 0;
  display: block;
}

.related-service-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.related-service-tag .doc-card-te,
.related-service-tag .doc-card-en,
.lang-en .related-service-tag .doc-card-en,
.lang-te .related-service-tag .doc-card-te {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.2;
}

.related-service-text .doc-card-te,
.lang-te .related-service-text .doc-card-te {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
}

.related-service-text .doc-card-en,
.lang-en .related-service-text .doc-card-en {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  margin-top: 0;
}

.related-service-arrow {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef1f0;
  border: 1px solid rgba(13, 40, 71, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  line-height: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.related-service-arrow .bb-icon-chevron {
  display: block;
  flex-shrink: 0;
}

.related-service-link:hover .related-service-arrow {
  background: var(--green-light);
  border-color: rgba(26, 107, 60, 0.22);
  color: var(--green);
}

.highlight-card--doc {
  border: 1px solid rgba(26, 107, 60, 0.22);
  background: var(--green-light);
  padding: 0;
  overflow: hidden;
}

.highlight-card--doc .doc-card-preview {
  aspect-ratio: 16 / 10;
}

.highlight-card--doc .doc-card-caption {
  padding: 0.55rem 0.65rem;
}

/* Services page — 3 sections (mypatta-style) */
.page-services .service-section,
.page-services .service-section--alt {
  background: var(--page-bg);
}

.service-section {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.page-services .service-section:first-of-type {
  padding-top: 0.5rem;
}

.service-section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
}

#section-documents .doc-filter-tabs,
#section-registration .doc-filter-tabs {
  margin-bottom: 1rem;
}

.service-section-title--below-filters {
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-section-title .doc-card-te {
  font-family: var(--font-te);
  color: var(--maroon);
  font-size: inherit;
}

.lang-en .service-section-title .doc-card-en {
  font-size: inherit;
  color: var(--navy);
  font-weight: 700;
}

/* Inline contact prompt + link (services, blogs) */
.section-contact-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.section-contact-cta__text.doc-card-te,
.section-contact-cta__text.doc-card-en,
.section-contact-cta__text.i18n-en,
.section-contact-cta__text.i18n-te {
  display: inline;
  margin-top: 0;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
}

.lang-te .section-contact-cta__text.doc-card-te,
.lang-te .section-contact-cta__text.i18n-te {
  font-family: var(--font-te);
}

.lang-en .section-contact-cta__text.doc-card-en,
.lang-en .section-contact-cta__text.i18n-en {
  font-family: var(--font-en);
}

.section-contact-cta__link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.section-contact-cta__link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.section-contact-cta__link .doc-card-te,
.section-contact-cta__link .doc-card-en,
.section-contact-cta__link .i18n-en,
.section-contact-cta__link .i18n-te {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.lang-te .section-contact-cta__link .doc-card-te,
.lang-te .section-contact-cta__link .i18n-te {
  font-family: var(--font-te);
}

.lang-en .section-contact-cta__link .doc-card-en,
.lang-en .section-contact-cta__link .i18n-en {
  font-family: var(--font-en);
}

/* Revenue Services page */
.page-revenue-services {
  background: var(--page-bg);
}

.revenue-hero {
  padding: 2.25rem 1.25rem 2.75rem;
}

.revenue-hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.revenue-hero-title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), var(--gold), rgba(255, 255, 255, 0.35));
  border-radius: 2px;
}

html.lang-te .revenue-hero-title .i18n-te {
  font-family: var(--font-te);
  color: var(--gold);
}

html.lang-en .revenue-hero-title .i18n-en {
  color: var(--white);
}

.revenue-hero-sub {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.5;
}

.revenue-services-section {
  padding: 1.75rem 0 3.5rem;
}

.revenue-layout {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.revenue-main-row {
  align-items: flex-start;
}

.revenue-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.revenue-intro-panel {
  min-width: 0;
}

.revenue-panel {
  background: var(--white);
  border: 1px solid rgba(26, 107, 60, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.revenue-panel-heading {
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--cream) 100%);
  border-bottom: 3px solid var(--gold);
  text-align: center;
}

/* Revenue page — shared title style (list heading, Important information) */
.page-revenue-services .revenue-block-title,
.page-revenue-services .revenue-block-title .doc-card-te,
.page-revenue-services .revenue-block-title .doc-card-en {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.page-revenue-services .revenue-block-title {
  margin: 0;
}

html.lang-te .page-revenue-services .revenue-block-title,
html.lang-te .page-revenue-services .revenue-block-title .doc-card-te {
  font-family: var(--font-te);
  color: var(--maroon);
}

.lang-te .page-revenue-services .revenue-block-title .doc-card-en,
.lang-en .page-revenue-services .revenue-block-title .doc-card-te {
  display: none;
}

.revenue-panel-heading__title {
  margin: 0;
}

.revenue-intro-panel__body {
  padding: 1rem 1.15rem 1.1rem;
}

.revenue-intro-points {
  margin: 0;
  padding: 0 0 0 1.1rem;
  list-style: disc;
}

.revenue-intro-points > li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
}

.revenue-intro-points > li:last-child {
  margin-bottom: 0;
}

html.lang-te .revenue-intro-points > li .i18n-te {
  font-family: var(--font-te);
}

html.lang-en .revenue-intro-points > li .i18n-en {
  color: var(--text);
}

.revenue-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.revenue-highlight {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  min-height: 2.75rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-card) 100%);
  border: 1px solid rgba(26, 107, 60, 0.14);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(13, 40, 71, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.revenue-highlight:hover {
  border-color: rgba(218, 176, 93, 0.55);
  box-shadow: 0 4px 14px rgba(13, 40, 71, 0.08);
}

html.lang-te .revenue-highlight .i18n-te {
  font-family: var(--font-te);
}

.revenue-highlight__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.revenue-list-panel {
  padding: 0 0 1.25rem;
}

.revenue-list-panel__head.revenue-panel-heading {
  padding: 1.2rem 1.25rem 0.95rem;
  background: linear-gradient(135deg, var(--green-light) 0%, #eef6eb 100%);
}

.revenue-list-panel__head {
  text-align: center;
  margin-bottom: 0;
}

.revenue-list-panel__head .revenue-block-title {
  display: block;
}

.revenue-lands-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 768px) {
  .revenue-lands-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 1.1rem 1.35rem 0;
  }
}

.revenue-lands-list > li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #f0f7ed 0%, var(--cream) 100%);
  border: 1px solid rgba(26, 107, 60, 0.14);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(26, 107, 60, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.revenue-lands-list > li:hover {
  border-color: rgba(218, 176, 93, 0.55);
  box-shadow: 0 6px 18px rgba(26, 107, 60, 0.12);
  transform: translateY(-2px);
}

.revenue-lands-list--linked > li {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transform: none;
}

.revenue-lands-list--linked > li:hover {
  border: none;
  box-shadow: none;
  transform: none;
}

.revenue-lands-list__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #f0f7ed 0%, var(--cream) 100%);
  border: 1px solid rgba(26, 107, 60, 0.14);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(26, 107, 60, 0.06);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.revenue-lands-list__link:hover {
  border-color: rgba(218, 176, 93, 0.55);
  box-shadow: 0 6px 18px rgba(26, 107, 60, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.revenue-lands-list--order > li {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transform: none;
}

.revenue-lands-list--order > li:hover {
  border: none;
  box-shadow: none;
  transform: none;
}

.revenue-lands-list__order {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #f0f7ed 0%, var(--cream) 100%);
  border: 1px solid rgba(26, 107, 60, 0.14);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(26, 107, 60, 0.06);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.revenue-lands-list__order:hover {
  border-color: rgba(218, 176, 93, 0.55);
  box-shadow: 0 6px 18px rgba(26, 107, 60, 0.12);
  transform: translateY(-2px);
}

.revenue-lands-list__action {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 2px rgba(26, 107, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--navy);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.revenue-lands-list__action-icon {
  display: block;
}

.revenue-lands-list__order:hover .revenue-lands-list__action,
.revenue-lands-list__link:hover .revenue-lands-list__action {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(37, 211, 102, 0.28);
  color: #145a32;
  transform: translateX(1px);
}

.revenue-lands-list__order:focus-visible .revenue-lands-list__action,
.revenue-lands-list__link:focus-visible .revenue-lands-list__action {
  outline: 2px solid rgba(26, 107, 60, 0.35);
  outline-offset: 2px;
}

.revenue-lands-list__badge {
  flex-shrink: 0;
  min-width: 2.15rem;
  height: 2rem;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--green) 0%, #145a32 100%);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(26, 107, 60, 0.28);
}

.revenue-lands-list__text {
  min-width: 0;
  flex: 1 1 auto;
}

.revenue-lands-list__text .doc-card-te,
.revenue-lands-list__text .doc-card-en {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.lang-te .revenue-lands-list__text .doc-card-en,
.lang-en .revenue-lands-list__text .doc-card-te {
  display: none;
}

html.lang-te .revenue-lands-list__text .doc-card-te {
  font-family: var(--font-te);
  font-weight: 600;
  color: var(--navy);
}

.lang-en .revenue-lands-list__text .doc-card-en {
  font-weight: 600;
  color: #1e293b;
}

.page-revenue-services .revenue-cta-inline {
  margin: 0.5rem 0 0;
  justify-content: center;
}
