.main-nav {
  background: white;
  padding: 0.7rem 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Source Sans 3", sans-serif;
  box-shadow: none !important;
}

.hero {
  position: relative;
  background: linear-gradient(120deg, #2c4c54 0%, #35606b 45%, #2a4952 100%);
  overflow: hidden;
}

.hero-content {
  padding: 10rem 11rem;
}

.eyebrow {
  color: #e0954f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: "Oswald", sans-serif;
}

.headline {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 68px;
  line-height: 1.05;
  margin-bottom: 22px;
}

.divider-hero {
  width: 78px;
  height: 3px;
  background: #e0954f;
  margin-bottom: 30px;
}

.description {
  color: #8a9bb0;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  max-width: 640px;
  font-family: "Source Sans 3", sans-serif;

  margin-bottom: 38px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 12px 22px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  font-family: "Source Sans 3", sans-serif;
}
.pill:hover {
  background-color: #f1c49950;
}
.pill a {
  color: #fff;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.gov {
  background: #7fa39c;
}
.dot.biz {
  background: #e0954f;
}
.dot.prog {
  background: #a13d3d;
}
.dot.well {
  background: #8fae6b;
}

@media (max-width: 700px) {
  .hero {
    padding: 60px 24px 50px;
  }
  .hero-content {
    margin-left: 0;
  }
  .headline {
    font-size: 42px;
  }
  .description {
    font-size: 16px;
  }
}

/* ---------- NAV TABS ---------- */
.tabs-nav {
  position: sticky;
  top: 63px; /* Main nav height */
  z-index: 999;
  display: flex;
  justify-content: center;
  gap: 40px;
  background: #fff !important;
  border-bottom: 2px solid #e5e2dc;
  padding: 0.3rem 11rem 0 11rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8a8a8a;
  border-bottom: 3px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  background: none;
}
.tab-btn .icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceae6;
  color: #9a9a9a;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  flex-shrink: 0;
}
.tab-btn .icon-circle svg {
  width: 12px;
  height: 12px;
}

.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-btn.active .icon-circle {
  background: var(--accent);
  color: #fff;
}

/* per-tab accent colors */
.tab-btn[data-tab="gov"] {
  --accent: #2f5c52;
}
.tab-btn[data-tab="biz"] {
  --accent: #c98a3e;
}
.tab-btn[data-tab="prog"] {
  --accent: #7a2020;
}
.tab-btn[data-tab="well"] {
  --accent: #3c5c3c;
}

/* ---------- PANELS ---------- */
.panel {
  display: block;
  padding: 70px 0px 80px;
  scroll-margin-top: 64px;
}

.panel[data-bg="light"] {
  background: #f4f2ec;
}
.panel[data-bg="white"] {
  background: #ffffff;
}

.panel-inner {
  padding: 0 11rem;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
  font-family: "Oswald", sans-serif;
}
.service-icon {
  padding: 5px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.service-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}
.eyebrow-sm {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.service-title {
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  font-size: 42px !important;
  color: #1f2d3d !important;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.content-grid.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}

/* Background offset */
.media::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -14px;

  width: 100%;
  height: 100%;

  background: #d8d4cb;
  border-radius: 14px;

  z-index: -1;
}

/* ================================
   IMAGE
================================ */

.media img {
  width: 100% !important;
  height: auto !important;

  display: block !important;

  object-fit: cover !important;
  object-position: center !important;

  border-radius: 14px;
}

/* ================================
   CAPTION
================================ */

.media .cap {
  position: absolute;
  left: 15%;
  right: 8%;
  bottom: 12%;
  width: auto;
  max-width: 100%;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);

  box-sizing: border-box;

  z-index: 2;
}

/* ================================
   SMALL IMAGE
================================ */

.media.small img {
  object-position: right center !important;
}

.text-col h3 {
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  font-size: 36px;
  color: #1f2d3d;
  line-height: 1.3;
  margin-bottom: 14px;
}
.underline {
  width: 56px;
  height: 3px;
  margin-bottom: 20px;
}
.lead {
  font-size: 16px;
  line-height: 1.75;
  color: #5a5a5a;
  font-family: "Source Sans 3", sans-serif;

  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}
.feature-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 18px;
  font-family: "Source Sans 3", sans-serif;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.feature-list li strong {
  display: block;
  font-size: 14.5px;
  color: #1f2d3d;
  margin-bottom: 4px;
}
.feature-list li span {
  font-size: 13.5px;
  line-height: 1.7;
  color: #666;
}

.cta-btn {
  width: auto;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px !important;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  opacity: 80% !important;
}
/* Gov */
.panel[data-tab="gov"] .eyebrow-sm {
  color: #2f5c52;
}
.panel[data-tab="gov"] .service-icon {
  background: #2f5c52;
}
.panel[data-tab="gov"] .underline {
  background: #2f5c52;
}
.panel[data-tab="gov"] .feature-list li::before {
  background: #2f5c52;
}
.panel[data-tab="gov"] .cta-btn {
  background: #2f5c52;
}

/* Biz */
.panel[data-tab="biz"] .eyebrow-sm {
  color: #c98a3e;
}
.panel[data-tab="biz"] .service-icon {
  background: #c98a3e;
}
.panel[data-tab="biz"] .underline {
  background: #c98a3e;
}
.panel[data-tab="biz"] .feature-list li::before {
  background: #c98a3e;
}
.panel[data-tab="biz"] .cta-btn {
  background: #c98a3e;
}

/* Prog */
.panel[data-tab="prog"] .eyebrow-sm {
  color: #7a2020;
}
.panel[data-tab="prog"] .service-icon {
  background: #7a2020;
}
.panel[data-tab="prog"] .underline {
  background: #7a2020;
}
.panel[data-tab="prog"] .feature-list li::before {
  background: #7a2020;
}
.panel[data-tab="prog"] .cta-btn {
  background: #7a2020;
}

/* Well */
.panel[data-tab="well"] .eyebrow-sm {
  color: #3c5c3c;
}
.panel[data-tab="well"] .service-icon {
  background: #3c5c3c;
}
.panel[data-tab="well"] .underline {
  background: #3c5c3c;
}
.panel[data-tab="well"] .feature-list li::before {
  background: #3c5c3c;
}
.panel[data-tab="well"] .cta-btn {
  background: #3c5c3c;
}
.feature-header {
  background-color: #3d5c3a;
  padding: 15px 35px;
  border-radius: 20px 20px 0px 0px;
}
.featured-box {
  background-color: #3d5c3a0f;
  color: #fff;
  border-radius: 20px;
  margin-top: 6px;
}
.box-featured {
  padding: 20px 35px;
  border-radius: 20px;
}
.featured-box .flabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.8;
  margin-bottom: 4px;
}
.featured-box h4 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 12px;
}
.featured-box p {
  font-size: 16px;
  color: #4a596b;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 12px;
  font-family: "Source Sans 3", sans-serif;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.tag {
  background: #3d5c3a28;
  color: #3d5c3a;
  border: 1px solid rgba(255, 255, 255, 0.233);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600 !important;
  font-family: "Source Sans 3", sans-serif;
}

@media (max-width: 900px) {
  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
  }
  .tabs-nav {
    gap: 18px;
    overflow-x: auto;
  }
  .panel {
    padding: 50px 24px 60px;
  }
}

.service-cta {
  width: 100%;
  padding: 90px 0;
  background: #13263a;
}

.service-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.service-cta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.service-cta-info h3 {
  font-size: 38px;
  color: #fff;
  font-family: "Playfair Display", serif;
  margin-bottom: 15px;
  text-align: center;
}
.service-cta-info p {
  font-size: 19px;
  color: #6f7d92;
  font-family: "Source Sans 3", sans-serif;
  margin-bottom: 35px;
  width: 55%;
  font-weight: 500;
  text-align: center;
}
.two-button-row {
  display: flex;
  align-items: center;
  width: 50%;
  gap: 20px;
}
.return-home {
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgb(255, 255, 255);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  text-align: center;
  transition: background-color 0.18s;
}
.return-home:hover {
  background-color: rgba(255, 255, 255, 0.18);
}
.service-cta-img img {
  margin-bottom: 15px;
  margin-right: 20px;
}

/* Mobile */
@media (max-width: 800px) {
  .main-nav {
    padding: 0.7rem 1.2rem;
  }

  .tabs-nav {
    top: 60px; /* Mobile main nav height */
    gap: 12px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem 0.5rem 0rem 0.5rem !important;
  }

  .tab-btn {
    padding: 14px 8px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .tabs-nav {
    top: 56px;
    gap: 6px;
    padding: 4rem 0.5rem 4rem 0.5rem;
  }

  .tab-btn {
    font-size: 10px;
    padding: 10px 6px;
  }
}
