/*
Theme Name: AtomicRoute Blog
Theme URI: https://atomicroute.com/blog
Author: Atomic North
Author URI: https://atomicnorth.com
Description: WordPress blog theme matching the AtomicRoute main website design system. Dark fixed header with mega menus, Figtree typography, #cc0000 primary, resource-card blog grid. Built for a WordPress install at atomicroute.com/blog alongside the static PHP main site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: atomicroute
*/

/* ============================================================
   PART 1: Base design system copied from atomicroute.com styles.css
   (header, mega menu, buttons, footer, responsive breakpoints)
   ============================================================ */
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #cc0000;
  --color-dark: #030712;
  --color-light-bg: #f7f7f7;
  --color-white: #ffffff;
  --color-text-dark: #030712;
  --color-text-light: rgba(0, 0, 0, 0.7);
  --color-text-muted: #ced5de;

  /* Fonts */
  --font-figtree: "Figtree", sans-serif;
  --font-jakarta: "Plus Jakarta Sans", sans-serif;

  /* Typography - Heading Sizes */
  --font-size-h1: 70px;
  --line-height-h1: 70px;
  --font-size-h2: 48px;
  --line-height-h2: auto;
  --font-size-h2-md: 42px;
  --font-size-h3: 34px;
  --line-height-h3: auto;
  --font-size-h4: 26px;
  --line-height-h4: auto;
  --font-size-h5: 20px;
  --line-height-h5: auto;

  /* Typography - Body Sizes */
  --font-size-body-xl: 24px;
  --line-height-body-xl: 24px;
  --font-size-body-lg: 22px;
  --line-height-body-lg: 22px;
  --font-size-body-md: 20px;
  --line-height-body-md: 20px;
  --font-size-body-sm: 18px;
  --line-height-body-sm: 18px;

  /* Typography - Caption Sizes */
  --font-size-caption-lg: 15px;
  --line-height-caption-lg: 15px;
  --font-size-caption-sm: 14px;
  --line-height-caption-sm: 14px;

  /* Typography - Button Size */
  --font-size-button: 16px;
  --line-height-button: 16px;

  --ts-gap: 1.5rem;
}

body {
  font-family: var(--font-figtree);
  line-height: 1.6;
  color: var(--color-text-dark);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 75px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(50px);
  background-color: rgba(3, 7, 18, 0.9);
  padding: 0px 0;
  transition: all 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo svg {
  width: 190px;
  height: auto;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
nav ul li {
  padding: 30px 0;
}

nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--font-size-button);
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

/* Mega Menu */
.mega-menu-wrapper {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  background-color: #030712;
  border-top: 1px solid #cc0000;
  padding: 42px 32px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 999;
  max-height: 0;
  overflow: hidden;
}

.mega-menu-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  max-height: 600px;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  max-height: 600px;
}

.mega-menu-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.mega-menu-left {
  flex: 1;
  max-width: 850px;
}

.mega-menu-label {
  font-size: var(--font-size-caption-sm);
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-family: var(--font-figtree);
}

.mega-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;
}

.mega-menu-card {
  width: 372px;
  padding: 16px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.mega-menu-card:hover {
  background-color: rgba(204, 0, 0, 0.4);
}

.mega-menu-card h3 {
  font-size: var(--font-size-body-md);
  color: var(--color-white);
  margin-bottom: 8px;
  font-weight: 400;
  font-family: var(--font-figtree);
}

.mega-menu-card p {
  font-size: var(--font-size-button);
  color: var(--color-text-muted);
  opacity: 0.7;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-figtree);
}

.mega-menu-divider {
  width: 1px;
  height: 379px;
  background-color: rgba(206, 213, 222, 0.3);
  align-self: center;
}

.mega-menu-right {
  width: 420px;
  flex-shrink: 0;
}

.mega-menu-cta {
  margin-bottom: 20px;
}

.mega-menu-cta h3 {
  font-size: var(--font-size-h4);
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
  font-family: var(--font-figtree);
}

.mega-menu-cta p {
  font-size: var(--font-size-body-md);
  color: var(--color-text-muted);
  opacity: 0.7;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-figtree);
}

.mega-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-button);
  font-weight: 500;
  font-family: var(--font-figtree);
  transition: gap 0.3s ease;
}

.mega-menu-link:hover {
  gap: 12px;
}

.mega-menu-link svg {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.mega-menu-bg-shape {
  position: absolute;
  bottom: -77px;
  right: -78px;
  width: 342px;
  height: 307px;
  opacity: 0.8;
  pointer-events: none;
}
.mega-menu-bg-shape img {
  width: 100%;
}
/* Solutions dropdown (header) */
.dropdown-wrapper {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: #030712;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 8px;
  border-radius: 8px;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 1001;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 15px;
  border-radius: 6px;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-primary);
}

.dropdown-wrapper:hover .dropdown,
.dropdown-wrapper:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Show dropdown when toggled via JS (mobile) */
.dropdown-wrapper.open .dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* On small screens, disable hover to let JS toggle work */
@media (max-width: 900px) {
  .dropdown-wrapper:hover .dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
}
.hamburger-menu {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(109deg, #d81f1f -31.29%, #741313 112.69%);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: transform 0.3s ease;
}

.hamburger-menu:hover {
  transform: scale(1.05);
}

.hamburger-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 32px;
  font-size: var(--font-size-button);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.3s,
    opacity 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-figtree);
  line-height: 19px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(109deg, #d81f1f -31.29%, #741313 112.69%);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}

/* Hero Section */
.hero {
  background-color: var(--color-dark);
  min-height: 914px;
  position: relative;
  overflow: hidden;
  padding-top: 87px;
  background-image: url(images/ar-logo-hero-bg.svg);
  background-repeat: no-repeat;
  background-position: right 87px;
  background-size: 710px 632px;
}

.hero-bg-pattern {
  position: absolute;
  right: -259px;
  top: 88px;
  width: 710px;
  height: 632px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 10;
}

.hero-text {
  flex: 1;
  max-width: 627px;
}

.hero-title {
  font-family: var(--font-figtree);
  font-size: var(--font-size-h1);
  font-weight: 600;
  line-height: var(--line-height-h1);
  letter-spacing: -0.8px;
  color: var(--color-white);
  margin-bottom: 16px;
}
.hero.about-hero .hero-title {
  font-size: 60px;
  line-height: 70px;
  letter-spacing: -0.8px;
}
.hero-title .dot {
  color: var(--color-primary);
}

.hero-description {
  font-size: var(--font-size-body-md);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  width: 630px;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Hero Slideshow */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.hero-indicator {
  width: 40px;
  height: 6px;
  background-color: rgba(72, 72, 72, 0.4);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #a2dd34;
  border-radius: 100px;
  transition: width 0.3s ease;
}

.hero-indicator.active::before {
  width: 100%;
  animation: indicatorProgress 5s linear;
}

@keyframes indicatorProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.hero-image.about-hero-image .hero-slide {
  transition: transform 0.5s ease-in-out;
}
.hero.about-hero {
  min-height: 800px;
  background-position: right 217px;
}

/* Feature Badges */
.feature-badges {
  position: relative;
  z-index: 20;
  padding-bottom: 50px;
  margin-top: 42px;
}

.feature-badges .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 300px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 100px;
  background-color: var(--color-primary);
  backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-text {
  font-size: var(--font-size-body-xl);
  color: var(--color-white);
  line-height: 1.2;
}

/* Section Common Styles */
.section-header {
  text-align: left;
  margin-bottom: 60px;
  max-width: 850px;
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--font-size-body-md);
  color: var(--color-text-light);
  line-height: normal;
}

/* Section Challenges */
.challenges {
  background-color: var(--color-light-bg);
  padding: 80px 0 120px;
}
.challenges .section-header {
  max-width: 100%;
  text-align: left;
}
.challenges .section-subtitle {
  max-width: 840px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.card {
  background-color: var(--color-white);
  height: 350px;
  border-bottom: 4px solid var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 40px 30px;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.card-title {
  font-size: var(--font-size-body-xl);
  color: var(--color-text-dark);
  line-height: 1.2;
  font-weight: 400;
}

.card-description {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-light);
  opacity: 0.7;
  line-height: normal;
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 100px;
  background-color: var(--color-primary);
  backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 30px;
  height: 30px;
}

.cards-grid.cards-grid-three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* End-to-End Transport Management */
.transport-management {
  background-color: var(--color-white);
  padding: 80px 0 120px;
  background-image: url(images/ar-bg-light.svg);
  background-position:
    calc(100% + 60px) 473px,
    center;
  background-repeat: no-repeat;
  background-size: 767px 683px;
}

.tabs-container {
  margin-top: 40px;
}

.tabs {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.tab {
  flex: 1;
  padding: 20px 10px;
  font-family: var(--font-figtree);
  font-weight: 500;
  font-size: var(--font-size-caption-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #7a7a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.3s;
  border-bottom: 4px solid #f2f2f2;
}

.tab.active {
  color: var(--color-text-dark);
}

.tab:hover {
  color: var(--color-text-dark);
}

.tab-underline {
  position: absolute;
  bottom: 0px;
  left: 0;
  height: 4px;
  width: 0; /* Start with 0 width, will be set by JS */
  background-color: var(--color-primary);
  transition:
    left 0.3s ease,
    width 0.3s ease;
  border-radius: 2px;
}

.tab-content {
  padding: 60px 0 0 0;
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.tab-text h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.tab-text p {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-light);
  line-height: normal;
  margin-bottom: 24px;
}

.tab-list {
  list-style: none;
  margin: 24px 0 32px 0;
  padding: 0;
}

.tab-list li {
  font-size: var(--font-size-button);
  color: var(--color-text-light);
  line-height: normal;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.tab-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: url(images/check-bullet-icon.svg) no-repeat;
  border-radius: 50%;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--font-size-button);
  font-weight: 500;
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tab-button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.tab-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.tab-button:hover svg {
  transform: translateX(4px);
}

.tab-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.tab-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Proven Business Outcomes */
.outcomes {
  background-color: var(--color-light-bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.outcomes-bg {
  position: absolute;
  right: -232px;
  top: 260px;
  width: 767px;
  height: 676px;
  opacity: 0.8;
  pointer-events: none;
}

.outcomes .container {
  position: relative;
  z-index: 10;
}
.outcomes .container .section-header,
.ts-main-section .container .section-header {
  max-width: 850px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}

.outcome-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.outcome-icon {
  width: 70px;
  height: 70px;
  border-radius: 100px;
  background-color: #ededed;
  backdrop-filter: blur(46.667px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.outcome-icon svg {
  width: 30px;
  height: 30px;
}

.outcome-title {
  font-size: var(--font-size-body-xl);
  line-height: 1.2;
  font-weight: 400;
}

/* Industries Section */
.industries {
  background-color: var(--color-dark);
  background-image: url(images/ar-bg-lt.svg);
  background-position: -3px 0px;
  background-repeat: no-repeat;
  background-size: 391px auto;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.industries-bg {
  position: absolute;
  left: -262px;
  top: -162px;
  width: 651px;
  height: 572px;
  opacity: 0.4;
  pointer-events: none;
}

.industries .section-title {
  color: var(--color-white);
}

.industries .section-subtitle {
  color: var(--color-text-muted);
}

.industries .container {
  position: relative;
  z-index: 10;
}

.industries-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.industries-title-wrapper {
  max-width: 501px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 0px;
}

.industry-card {
  position: relative;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, #030712 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.industry-card:hover::before {
  opacity: 0.9;
}

.industry-card:hover svg path,
.industry-card:hover .industry-icon svg circle,
.industry-card:hover .industry-icon svg rect,
.industry-card:hover .industry-icon svg line,
.industry-card:hover .industry-icon svg polyline,
.industry-card:hover .industry-icon svg polygon,
.industry-card:hover .industry-icon svg g {
  stroke: var(--color-white);
  stroke-opacity: 1;
  opacity: 1;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.industry-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 32px;
  backdrop-filter: blur(40px);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.industry-icon img {
  width: 30px;
  height: 30px;
}

.industry-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  color: var(--color-white);
  z-index: 2;
}

.industry-title {
  font-size: var(--font-size-body-xl);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
  opacity: 1;
}

.industry-description {
  font-size: var(--font-size-body-sm);
  font-weight: 400;
  line-height: normal;
  color: rgba(237, 243, 255, 0.8);
  max-height: 0;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover .industry-description {
  max-height: 154px;
  transform: translateY(0);
  opacity: 1;
}

.industries-btn-wrapper {
  display: flex;
  justify-content: center;
}

/* Products Catalog Section */
.products-catalog {
  background-color: var(--color-white);
  padding: 120px 0;
  background-image: url(images/ar-bg-full.svg);
  background-position: -249px 340px;
  background-repeat: no-repeat;
  background-size: 510px auto;
}

.products-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
}

.products-text {
  max-width: 410px;
}

.products-text .section-title {
  margin-bottom: 16px;
}

.products-text .section-subtitle {
  margin-bottom: 24px;
}

.products-video {
  width: 740px;
  height: 460px;
  background-color: var(--color-dark);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: linear-gradient(
    108.889deg,
    rgb(216, 31, 31) 31.29%,
    rgb(116, 19, 19) 112.69%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: 24px;
  height: 24px;
}

/* Resources Section */
.resources {
  background-color: var(--color-white);
  padding: 120px 0;
}

.resources-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.resources-title-wrapper {
  max-width: 491px;
}

.resources-nav {
  display: flex;
  gap: 16px;
}

.nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 32px;
  border: 1px solid var(--color-primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-arrow:hover {
  background: var(--color-primary);
}

.nav-arrow:hover svg path {
  stroke: white;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

.resources-slider {
  position: relative;
  overflow: hidden;
}

.resources-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.resource-card {
  flex: 0 0 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resource-image {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-category {
  color: var(--color-text-dark);
  font-size: var(--font-size-caption-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.resource-title {
  font-size: var(--font-size-body-xl);
  line-height: 1.2;
  color: var(--color-text-dark);
  font-weight: normal;
}

.slider-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.indicator {
  width: 60px;
  height: 4px;
  border-radius: 32px;
  background-color: rgba(3, 7, 18, 0.2);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: var(--color-primary);
}

/* CTA Section */
.cta-section {
  /* 1. Combine gradient and image into one property */
  background:
    url("images/ar-bg-full.svg"),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(250, 230, 230, 1) 100%
    );

  /* 2. Position the image (Calculated to 100% + 60px) */
  background-position:
    calc(100% + 60px) 65px,
    center;

  /* 3. Set the size for the image and 'cover' for the gradient */
  background-size:
    506px 450px,
    cover;

  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta-section .section-title {
  text-align: left;
  max-width: 1290px;
  margin-bottom: 0px;
}

.cta-section .section-subtitle {
  text-align: left;
  max-width: 850px;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 120px 0 40px;
  position: relative;
  overflow: hidden;
  background-image: url(images/ar-logo-hero-bg.svg);
  background-repeat: no-repeat;
  background-position: -447px 178px;
  background-size: 651px 572px;
}

.footer-content {
  display: flex;
  gap: 140px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.footer-logo-column {
  flex: 0 0 300px;
}
.footer-logo img {
  width: 300px;
  height: auto;
}
.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 60px 80px;
}

.footer-widget {
  display: flex;
  flex-direction: column;
}

.footer-widget-title {
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  margin-bottom: 0;
}

.footer-widget-links {
  font-size: var(--font-size-caption-sm);
  color: var(--color-text-muted);
  margin-top: 24px;
  line-height: 32px;
}

.footer-widget-links a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-widget-links a:hover {
  color: var(--color-white);
}

.footer-logo svg {
  width: 300px;
  height: auto;
  margin-bottom: 20px;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-caption-sm);
  position: relative;
  z-index: 10;
}

.social-links {
  display: flex;
  gap: 32px;
  margin-top: 0px;
}

.social-links a {
  color: var(--color-white);
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Mission Section */
.mission,
.how-carriers-use-ar {
  background:
    url("images/ar-bg-full.svg"),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(250, 230, 230, 1) 100%
    );
  background-position:
    calc(100% + 160px) 400px,
    0px;
  background-size:
    506px 450px,
    cover;
  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;
}

.how-carriers-use-ar {
  padding-top: 0px;
  background-position:
    left -180px bottom,
    0 0;
}
.how-carriers-use-ar .timeline-text,
.how-carriers-use-ar .timeline-list {
  padding-top: 120px;
}

.mission {
  background-position:
    right -180px bottom,
    0 0;
}

.mission-bg {
  position: absolute;
  right: -232px;
  bottom: 0;
  width: 566px;
  height: 504px;
  opacity: 0.8;
  pointer-events: none;
}

.mission .container {
  position: relative;
  z-index: 10;
}
.mission-content {
  max-width: 1070px;
}
.mission-content p {
  font-size: var(--font-size-h3);
  line-height: 48px;
  margin-bottom: 30px;
}

.mission-content.why-effective-content p {
  display: inline;
}

.mission-content p:last-child {
  opacity: 0.2;
}

.value-title {
  font-size: var(--font-size-body-xl);
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-text-dark);
}

.value-description {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-light);
  line-height: normal;
}

/* Our Story Section */
.our-story {
  background-color: var(--color-white);
  padding: 120px 0;
}

.story-tabs-container {
  position: relative;
  max-width: 1290px;
  margin: 0 auto;
}

.story-tab-content {
  display: none;
  opacity: 0;
  transition:
    opacity 300ms ease-in-out,
    visibility 300ms ease-in-out;
}

.story-tab-content.active {
  display: block;
  opacity: 1;
}

.story-tab-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.story-tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 0) 80%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  color: var(--color-white);
}

.story-overlay-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
  text-align: left;
  max-width: 630px;
}

.story-overlay-text {
  font-size: var(--font-size-body-md);
  line-height: 1.5;
  max-width: 630px;
}

.story-overlay-text p {
  margin: 0;
  line-height: 1.5;
}

.story-tabs {
  display: flex;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  background-color: #ffffff;
}

.story-tab {
  flex: 1;
  padding: 20px 10px;
  background: transparent;
  border: none;
  font-family: var(--font-figtree);
  font-size: var(--font-size-caption-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7a7a7a;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  text-align: center;
}

.story-tab.active {
  color: var(--color-text-dark);
  border: none;
}

.story-tab:hover {
  color: var(--color-text-dark);
}

.story-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 4px;
  background-color: #f2f2f2;
  border: none;
}

.story-tab.active::after {
  background-color: var(--color-primary);
}
/* Team Section */
.team {
  padding: 120px 0;
  padding-top: 0px;
}
.team .section-header {
  text-align: left;
  margin-bottom: 80px;
  max-width: 850px;
  margin-left: 0;
  margin-right: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  background-color: #e0e0e0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: var(--font-size-body-lg);
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  text-align: left;
}

.team-role {
  font-size: var(--font-size-button);
  color: var(--color-text-light);
  text-align: left;
}
.team-linkedin {
  display: flex;
  margin-top: 12px;
}

/* Core Team Section */
.core-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.core-team-member {
  text-align: center;
}

.core-team-photo {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #e0e0e0;
}

.core-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-team-name {
  font-size: var(--font-size-body-md);
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 6px;
  text-align: left;
}

.core-team-role {
  font-size: var(--font-size-caption-sm);
  color: var(--color-text-light);
  text-align: left;
}

/* Why Choose Section */
.why-choose {
  background-color: var(--color-dark);
  padding: 120px 0;
}

.why-choose-header {
  text-align: center;
  margin-bottom: 80px;
}

.why-choose-header .section-title {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 16px;
  font-size: var(--font-size-h2);
  font-weight: 600;
  letter-spacing: -0.4px;
}

.why-choose-header .section-subtitle {
  color: var(--color-text-muted);
  text-align: center;
  font-size: var(--font-size-body-md);
  line-height: 1.5;
  max-width: 850px;
  margin: 0 auto;
}

.why-choose-content {
  display: flex;
  position: relative;
  gap: 0;
}

.why-card {
  flex: 1;
  min-width: 0;
  padding: 60px;
}

.why-card-left {
  border: 1px solid #910000;
  border-radius: 0;
  background: transparent;
  padding: 60px 80px 60px 60px;
}

.why-card-right {
  background: #340000;
  border-radius: 0;
  padding: 60px 60px 60px 80px;
}

.why-card h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 32px;
  line-height: 1.2;
}

.why-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--font-size-body-md);
  line-height: 1.5;
}

.why-card-left li {
  color: var(--color-white);
}

.why-card-right li {
  color: var(--color-text-muted);
}

.why-bullet {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 12px;
}

.why-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 10;
}

.why-divider svg {
  width: 100%;
  height: 100%;
}

.about-cta {
  background:
    url("images/ar-bg-full.svg") no-repeat calc(100% + 60px) 195px / 366px auto,
    url("images/ar-bg-full.svg") no-repeat -340px 28px / 651px 572px,
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(250, 230, 230, 1) 100%
    ); /* Your gradient layer */
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.about-cta .container {
  align-items: center;
}
.about-cta .container .section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.about-cta .container .section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
/* How Carriers Use Atomic Route- The vertical line connecting the circles */

.timeline-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.timeline-text {
  flex: 1;
  padding-top: 20px; /* Align with first circle */
  position: sticky;
  top: 20px;
}

.timeline-text h1 {
  font-size: var(--font-size-h1);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -1px;
  color: #000;
}

.timeline-list {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

/* Timeline Styles */
.timeline {
  list-style: none;
  position: relative;
}
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 35px; /* Half of circle size */
  bottom: 35px;
  left: 35px; /* Center of circle */
  width: 1px;
  background-color: var(--color-text-muted);
  z-index: 1;
}

.timeline-item {
  display: flex;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  width: 70px;
  height: 70px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-body-xl);
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 25px;
  box-shadow: 0 4px 14px rgba(204, 18, 25, 0.25);
  transition: transform 0.3s ease;
}

.timeline-content h3 {
  font-size: var(--font-size-body-xl);
  font-weight: 500;
  line-height: normal;
  color: var(--color-dark);
}

.timeline-content p {
  font-size: var(--font-size-body-sm);
  color: var(--color-dark);
  margin: 0;
  line-height: 1.5;
  opacity: 0.7;
}

/* Impact on Carrier Operations */

.impact-section {
  background-color: var(--color-dark);
  padding: 120px 0;
}

.impact-header {
  text-align: left;
  margin-bottom: 80px;
}
.impact-header .section-title {
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.4px;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stat-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 30px;
}

/* Subtle vertical dividers */
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60px; /* Height of the separator line */
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  color: var(--color-primary);
  font-size: 72px;
  font-weight: 300; /* Light weight to match the sleek numbers in the image */
  line-height: 1;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.stat-label {
  font-size: var(--font-size-body-md);
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.4;
}

.impact-footnote {
  font-size: 16px;
  color: var(--color-text-muted);
  font-style: normal;
  margin-top: 16px;
}
.run-carrier-operations {
  padding: 120px 0;
}
.run-carrier-operations-content {
  display: grid;
  align-items: center;
  gap: 30px;
  grid-template-columns: repeat(2, 1fr);
}
.run-carrier-operations-content .section-header {
  text-align: left;
  max-width: max-content;
}

.works-seamlessly-with-your-systems {
  padding: 120px 0;
}
.works-seamlessly-with-your-systems-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.works-seamlessly-with-your-systems-content .section-title,
.works-seamlessly-with-your-systems-content .section-subtitle {
  text-align: center;
}
.run-carrier-operations-image img {
  width: 100%;
  height: auto;
}
.ts-main-section {
  background-color: var(--ts-color-white);
  padding: 120px 0;
}

/* --- Marquee (Infinite Scroll) Logic --- */
.ts-scroller-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Gap between the two rows */
}

.ts-scroller {
  max-width: 100vw;
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 10%,
    white 90%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.ts-scroller-inner {
  padding-block: 0.5rem;
  display: flex;
  gap: var(--ts-gap);
  list-style: none;
  width: max-content;
  flex-wrap: nowrap;

  /* Explicit animation properties (safest for cross-browser compatibility) */
  animation-name: ts-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Pause animation when user hovers over the track */
.ts-scroller:hover .ts-scroller-inner {
  animation-play-state: paused;
}

/* Direction modifiers */
.ts-scroller[data-direction="right"] .ts-scroller-inner {
  animation-direction: reverse;
}
.ts-scroller[data-direction="left"] .ts-scroller-inner {
  animation-direction: normal;
}

/* Speed modifiers */
.ts-scroller[data-speed="fast"] .ts-scroller-inner {
  animation-duration: 25s;
}
.ts-scroller[data-speed="slow"] .ts-scroller-inner {
  animation-duration: 50s;
}

/* The keyframe calculating the exact shift needed for a seamless loop */
@keyframes ts-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - (var(--ts-gap) / 2)));
  }
}

/* --- Card Styles --- */
.ts-card {
  background-color: var(--color-light-bg);
  border-radius: 12px;
  padding: 2rem;
  width: 420px; /* Fixed width to match design proportions */
  max-width: 85vw; /* Responsive constraint for mobile */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0; /* Prevent shrinking in flex container */
  border: 1px solid var(--color-text-muted); /* subtle border for definition */
  text-align: left;
}

.ts-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ts-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-text-muted); /* Fallback color */
}

.ts-user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ts-user-name {
  font-family: var(--font-figtree);
  font-weight: 600;
  font-size: var(--font-size-body-sm);
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 0.2rem;
  display: block;
}

.ts-user-title {
  font-family: var(--font-jakarta);
  font-size: var(--font-size-caption-sm);
  color: var(--color-text-light);
  line-height: 1.2;
  display: block;
}

.ts-card-body p {
  font-family: var(--font-jakarta);
  font-size: var(--font-size-caption-lg);
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* Container for the whole section */
.process-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 40px 0px 0px 0px;
  box-sizing: border-box;
}

/* Individual Step Styling */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

/* The Red Circle */
.icon-wrapper {
  background-color: var(--color-primary);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

/* Labels */
.process-label {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: normal;
}

/* Vertical Divider Lines */
.divider {
  width: 1px;
  height: 100px;
  background-color: var(--color-text-muted);
  margin: 0 40px;
  flex-shrink: 0;
}
.process-section.um-bullet-points {
  align-items: flex-start;
  max-width: 100%;
  gap: 30px;
  padding-left: 0;
}
.process-section.um-bullet-points .process-step {
  align-items: flex-start;
  text-align: left;
}
.process-subtitle {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-top: 16px;
  text-align: left;
}
.key-features-of-user-management {
  padding: 120px 0;
}
.key-features-content .section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 100%;
}
.key-features-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-screen {
  gap: 16px;
}
.feature-screen img {
  margin-bottom: 24px;
}
.built-for-security {
  padding: 120px 0 0 0;
}
.built-for-security .section-header {
  text-align: center;
  margin-bottom: 60px;
}
.built-for-security .process-section .icon-wrapper {
  background-color: #ededed;
}
.built-for-security-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.contact-us-section {
  background-color: var(--color-white);
  padding: 120px 0;
}
.contact-us-content {
  display: flex;
  gap: 110px;
  align-items: flex-start;
  justify-content: space-between;
}
/* --- Left Side Content --- */

.hero-title.dark-blue-text {
  color: var(--color-dark);
  font-size: var(--font-size-h2);
  line-height: normal;
}
.contact-us-content .hero-description {
  color: var(--color-text-dark);
  font-size: var(--font-size-body-md);
  line-height: normal;
  margin-top: 16px;
  margin-bottom: 72px;
}
.content-side {
  flex: 1;
  min-width: 320px;
  padding-top: 56px;
}

.section-subheading {
  color: var(--color-text-dark);
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 24px;
}

.ar-contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}

.ar-contact-info-block h3 {
  font-size: var(--font-size-body-md);
  letter-spacing: 0.05em;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  font-weight: 500;
}

.ar-contact-info-block p {
  color: var(--color-text-dark);
  font-size: var(--font-size-body-sm);
  line-height: normal;
  opacity: 0.7;
}

.ar-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 16px;
  font-size: var(--font-size-body-sm);
  color: var(--color-text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.ar-contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ar-contact-link:hover {
  color: var(--color-text-dark);
}

.ar-social-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ar-social-btn {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ar-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ar-social-btn:hover {
  transform: translateY(-3px);
  background: #f3f4f6;
}

/* --- Right Side Form --- */
.form-side {
  flex: 1;
  min-width: 380px;
}

.form-card {
  background: var(--form-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 100px 0 rgba(86, 0, 0, 0.12);
  border: 1px solid rgba(3, 7, 18, 0.1);
}

.form-group {
  margin-bottom: 32px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: var(--font-size-body-md);
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #e5e7eb;
  padding: 0.75rem 0;
  font-size: var(--font-size-body-sm);
  color: var(--color-text-dark);
  opacity: 0.9;
  background: transparent;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #d1d5db;
  font-weight: 400;
}

.form-group textarea {
  resize: none;
  font-family: var(--font-figtree);
}

.terms-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.custom-checkbox.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox svg {
  width: 15px;
  height: 15px;
  fill: white;
  display: none;
}

.custom-checkbox.active svg {
  display: block;
}

.terms-text {
  font-size: 15px;
  color: var(--color-text-dark);
  line-height: normal;
}

.terms-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-card .btn {
  width: 100%;
}
/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(200%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
}

/* Powerful Features Section */
.powerful-features {
  background-color: var(--color-white);
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 20px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Intelligent Routing Engine Section */
.routing-engine {
  background-color: var(--color-white);
  padding: 120px 0;
}

.routing-engine-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.routing-engine-image {
  flex: 1;
  max-width: 630px;
}

.routing-engine-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.routing-engine-text {
  flex: 1;
  max-width: 600px;
}

.routing-engine-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.routing-engine-description {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 30px;
  line-height: 1.5;
}

.routing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.routing-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.routing-feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 6px;
}

.routing-feature-icon svg {
  width: 100%;
  height: 100%;
}

.routing-feature-text {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Dashboard Section */
.dashboard {
  background-color: var(--color-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.dashboard-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.dashboard-text {
  width: 520px;
  flex-shrink: 0;
}

.dashboard-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.dashboard-description {
  font-size: 20px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.dashboard-visual {
  flex: 1;
  position: relative;
  background-color: #f4f6f8;
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
}

.dashboard-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: linear-gradient(109deg, #d81f1f -31.29%, #741313 112.69%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 2;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.dashboard-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background-color: var(--color-text-muted);
  padding: 10px;
  border-radius: 10px;
}

.dashboard-info-text {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  font-weight: 500;
  text-transform: capitalize;
}
/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-image {
    width: 100%;
    max-width: 630px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-content.active {
    grid-template-columns: 1fr;
  }

  .products-content {
    flex-direction: column;
  }

  .products-video {
    width: 100%;
  }

  .resource-card {
    flex: 0 0 calc(50% - 15px);
  }
  footer {
    padding: 80px 0 20px;
    background-position: calc(100% - 0px) bottom;
    background-size: 170px auto;
  }
  .footer-logo-column {
    flex: 0 0 100%;
  }
  .footer-content {
    flex-direction: column;
  }

  .p-feature-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-feature-item:nth-child(even) {
    direction: ltr;
  }
  .dashboard-visual {
    width: 100%;
    flex: auto;

    margin: 0 auto;
  }
  .p-feature-content {
    padding-top: 20px;
  }
  .dashboard-content {
    flex-direction: column;
  }

  .dashboard-text {
    width: 100%;
  }
  .routing-engine-content {
    flex-direction: column;
    gap: 32px;
  }
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }

  nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background-color: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(50px);
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
  }

  nav.active {
    max-height: 500px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 40px;
  }

  nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 16px 0;
  }

  header .btn-primary {
    display: none;
  }
  .products-content {
    align-items: flex-start;
  }
  .transport-management {
    padding: 80px 0;
    background-position: right bottom;
    background-size: 300px auto;
  }
  .industries {
    padding: 80px 0;
  }
  .products-catalog {
    padding: 80px 0;
  }
  .outcomes {
    padding: 80px 0;
  }
  .resources {
    padding: 80px 0;
  }
  .cta-section {
    padding: 80px 0;
  }

  footer {
    padding: 80px 0 20px;
    background-position: calc(100% - 0px) bottom;
    background-size: 170px auto;
  }
  .footer-content {
    gap: 60px;
  }
  .story-tabs-container {
    max-width: 100%;
  }

  .story-tab-image {
    height: 350px;
  }

  .story-overlay {
    padding: 40px;
  }

  .story-overlay-title {
    font-size: 36px;
  }

  .story-overlay-text {
    font-size: 16px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .core-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-choose-content {
    flex-direction: column;
    gap: 30px;
  }

  .why-card-left,
  .why-card-right {
    padding: 40px;
  }

  .why-divider {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }
  .contact-us-content {
    flex-direction: column;
    gap: 40px;
  }
  .form-side {
    flex: auto;
    max-width: 100%;
    width: 100%;
  }
  .mission,
  .how-carriers-use-ar {
    background-position:
      calc(100% + 100px) 690px,
      0px;
    background-size:
      256px auto,
      cover;
  }
}
/* Mobile Carousel for Features */
.p-carousel-indicators {
  display: none;
}
@media (max-width: 768px) {
  .ts-main-section {
    padding: 3rem 0;
  }
  .ts-header {
    margin-bottom: 2.5rem;
    text-align: center;
    margin-inline: auto;
  }
  .ts-card {
    padding: 1.5rem;
    width: 320px;
  }
  .ts-scroller-wrapper {
    gap: 1.5rem;
  }
  .ts-scroller {
    -webkit-mask: linear-gradient(
      90deg,
      transparent,
      white 5%,
      white 95%,
      transparent
    );
    mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  }
  .hero {
    background-image: none;
  }
  .container {
    padding: 0 20px;
  }

  header {
    padding: 16px 0;
  }

  .logo img {
    width: 160px;
  }

  nav {
    top: 68px;
  }

  nav ul {
    padding: 0 20px;
  }

  /* Mobile Mega Menu */
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    background-color: rgba(3, 7, 18, 0.95);
    border-top: none;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mega-menu.active {
    max-height: 600px;
  }

  header .container {
    flex-direction: row;
    gap: 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
  }
  .hero-content {
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 24px 48px;
  }
  .feature-badges {
    margin-top: 0px;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: var(--font-size-h2-md);
    line-height: 42px;
    letter-spacing: -1px;
  }
  .hero-description {
    margin-bottom: 24px;
    font-size: var(--font-size-body-sm);
  }
  .hero-image {
    height: 333px;
  }
  .hero-slide img {
    object-position: top;
    object-fit: contain;
  }

  .hero-indicators {
    right: 0;
    left: 0;
    justify-content: center;
    bottom: 10px;
  }
  .hero-buttons {
    flex-direction: column;
  }

  .feature-badges .container {
    flex-direction: column;
    gap: 32px;
  }

  .feature-badge {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  .feature-text {
    text-align: center;
    font-size: var(--font-size-body-sm);
  }
  .feature-text br {
    display: none;
  }
  .challenges {
    padding: 80px 0;
  }
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    overflow-x: auto;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    overflow-x: auto;
  }
  .industry-card {
    width: 80vw;
  }
  .industries-header {
    flex-direction: column;
    gap: 30px;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .section-title {
    font-size: 32px;
  }
  .section-subtitle {
    font-size: var(--font-size-body-sm);
  }
  .card {
    padding: 30px;
    width: 70vw;
  }
  .tabs {
    overflow-x: auto;
    border-bottom: none;
  }

  .tab {
    border-bottom: 1px solid #f2f2f2;
    flex: 0 0 auto;
  }
  .tab.active {
    border-bottom: 4px solid var(--color-primary);
  }
  .tab-underline {
    display: none;
  }
  .tab-button {
    display: block;
    text-align: center;
  }
  .tab-content.active {
    gap: 40px;
  }
  .resource-card {
    flex: 0 0 100%;
  }

  .resources-header {
    flex-direction: column;
    gap: 30px;
  }
  footer {
    padding: 80px 0;
  }
  .footer-content {
    gap: 48px;
  }
  .footer-links {
    gap: 40px 60px;
  }
  .footer-widget-links {
    margin-top: 8px;
  }
  .products-content {
    gap: 48px 80px;
  }
  .products-video {
    height: 200px;
  }
  .outcome-title {
    font-size: var(--font-size-body-md);
  }
  .outcome-title br {
    display: none;
  }
  .footer-bottom {
    text-align: left;
    padding-top: 0px;
  }
  .cta-section .btn {
    width: 100%;
    text-align: center;
    margin-top: 48px;
  }
  .cta-section .section-subtitle {
    margin-bottom: 0px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .hero.about-hero .hero-title {
    font-size: 42px;
    line-height: 42px;
  }
  .our-story,
  .team,
  .why-choose,
  .run-carrier-operations,
  .how-carriers-use-ar,
  .works-seamlessly-with-your-systems,
  .mission {
    padding: 80px 0;
  }
  .how-carriers-use-ar .timeline-text,
  .how-carriers-use-ar .timeline-list {
    padding-top: 0px;
  }
  .story-tab-image {
    height: 300px;
  }

  .story-overlay {
    padding: 30px;
  }

  .story-overlay-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .story-overlay-text {
    font-size: 14px;
  }

  .story-tabs {
    flex-wrap: wrap;
  }

  .story-tab {
    flex: 1 1 50%;
    font-size: 12px;
    padding: 15px 5px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .core-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-content {
    flex-direction: column;
  }

  .why-card h3 {
    font-size: 24px;
  }

  .why-card li {
    font-size: 16px;
  }

  .why-card-left,
  .why-card-right {
    padding: 30px;
  }

  .why-divider {
    width: 80px;
    height: 80px;
  }
  .timeline-section {
    flex-direction: column;
    gap: 60px;
  }

  .timeline-content h3 {
    font-size: var(--font-size-body-md);
  }
  .timeline-marker {
    width: 60px;
    height: 60px;
  }
  .timeline::before {
    top: 30px;
    bottom: 30px;
    left: 30px;
  }
  .mission,
  .how-carriers-use-ar {
    background-position: right bottom;
    background-size:
      256px auto,
      cover;
  }
  .mission-content p {
    font-size: var(--font-size-body-lg);
    line-height: 1.5;
    margin-bottom: 30px;
  }
  .process-step {
    flex-direction: row;
    padding: 20px 0px;
    gap: 30px;
  }
  .icon-wrapper {
    margin-bottom: 0px;
    width: 60px;
    height: 60px;
  }
  .process-section {
    padding: 20px 0px;
    flex-direction: column;
    align-items: flex-start;
  }
  .process-section .divider {
    display: none;
  }
  .process-label {
    font-size: 20px;
  }

  .run-carrier-operations-content {
    grid-template-columns: repeat(1, 1fr);
  }

  .routing-engine {
    padding: 80px 0;
  }

  .routing-engine-title {
    font-size: 32px;
  }

  .routing-engine-description,
  .routing-feature-text {
    font-size: 16px;
  }

  .dashboard {
    padding: 80px 0;
  }

  .dashboard-title {
    font-size: 32px;
  }

  .dashboard-description {
    font-size: 18px;
  }

  .dashboard-visual {
    height: 300px;
  }

  .dashboard-info {
    padding: 8px;
  }

  .dashboard-info-text {
    font-size: 14px;
  }
  .impact-header .section-title {
    font-size: 32px;
  }
  .impact-section {
    padding: 84px 0;
  }
  .impact-header {
    margin-bottom: 36px;
  }
  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }
  .stat-number {
    font-size: 62px;
  }

  .stat-item:not(:last-child)::after {
    width: 50%;
    height: 1px;
    top: 109%;
    right: 0;
    left: 25%;
  }
  .cards-grid.cards-grid-three-col {
    grid-template-columns: repeat(6, 1fr);
  }

  .routing-engine {
    padding: 80px 0;
  }

  .routing-engine-title {
    font-size: 32px;
  }

  .routing-engine-description,
  .routing-feature-text {
    font-size: 16px;
  }
  .ar-contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Features Section */
.um-features-section {
  background-color: #f8f9fa;
  padding: 140px 0 120px;
  min-height: 100vh;
}

.um-features-header {
  text-align: center;
  margin-bottom: 60px;
}

.um-features-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.um-features-description {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.um-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.um-feature-card-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background-color: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.um-feature-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.um-feature-card-title {
  font-size: 24px;
  font-weight: normal;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.um-feature-card-description {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Carousel Controls */
.um-carousel-controls {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.um-carousel-indicator {
  width: 40px;
  height: 4px;
  background-color: #d9d9d9;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.um-carousel-indicator.active {
  background-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1200px) {
  .um-container {
    padding: 0 40px;
  }

  .um-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .um-container {
    padding: 0 20px;
  }

  .um-features-section {
    padding: 120px 0 80px;
  }

  .um-features-title {
    font-size: 32px;
  }

  .um-features-description {
    font-size: 16px;
  }

  .um-features-grid {
    display: block;
  }

  .um-feature-card {
    display: none;
    padding: 30px 20px;
  }

  .um-feature-card.active {
    display: block;
  }

  .um-feature-card-image {
    height: auto;
  }

  .um-feature-card-title {
    font-size: 20px;
  }

  .um-feature-card-description {
    font-size: 16px;
  }

  .um-carousel-controls {
    display: flex;
  }
}

/* Powerful Features Section - Contract Management */
.cm-powerful-features {
  background-color: var(--color-white);
  padding: 120px 0;
}

.cm-section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.cm-section-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cm-section-subtitle {
  font-size: 20px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.cm-features-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.cm-feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.cm-feature-item:nth-child(even) {
  direction: rtl;
}

.cm-feature-item:nth-child(even) > * {
  direction: ltr;
}

.cm-feature-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.cm-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cm-feature-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 60px;
}

.cm-feature-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-dark);
}

.cm-feature-description {
  font-size: 20px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1200px) {
  .cm-feature-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cm-feature-item:nth-child(even) {
    direction: ltr;
  }

  .cm-feature-content {
    padding-top: 20px;
  }
}

/* Mobile Carousel for Features - Contract Management */
.cm-carousel-indicators {
  display: none;
}

@media (max-width: 768px) {
  .cm-powerful-features {
    padding: 80px 0;
  }

  .cm-section-header {
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .cm-section-title {
    font-size: 32px;
  }

  .cm-section-subtitle {
    font-size: 18px;
    opacity: 0.7;
  }

  /* Carousel Container */
  .cm-features-grid {
    position: relative;
    gap: 0;
    overflow: hidden;
  }

  .cm-feature-item {
    display: none;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 24px;
    min-height: 600px;
  }

  .cm-feature-item.active {
    display: flex;
    flex-direction: column;
  }

  .cm-feature-item:nth-child(even) {
    direction: ltr;
  }

  .cm-feature-image {
    width: 100%;
    max-width: 300px;
    height: 400px;
    margin: 0 auto;
    border: 1px solid #f4f6f8;
  }

  .cm-feature-image img {
    height: 100%;
    object-fit: cover;
  }

  .cm-feature-content {
    padding-top: 0;
    gap: 12px;
    text-align: left;
  }

  .cm-feature-title {
    font-size: 20px;
  }

  .cm-feature-description {
    font-size: 18px;
    opacity: 0.7;
  }

  /* Carousel Indicators */
  .cm-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
  }

  .cm-carousel-indicator {
    width: 40px;
    height: 4px;
    background-color: rgba(3, 7, 18, 0.2);
    border-radius: 32px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .cm-carousel-indicator.active {
    background-color: #cc0000;
  }
}

/* ============================================================
   PART 2: Blog-specific styles (WordPress theme layer)
   ============================================================ */

/* Admin bar offset for fixed header */
.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }

/* Blog hero band */
.blog-hero {
  background-color: var(--color-dark);
  background-image: url(images/ar-logo-hero-bg.svg);
  background-repeat: no-repeat;
  background-position: right -120px top 40%;
  background-size: 520px auto;
  padding: 170px 0 70px;
  position: relative;
  overflow: hidden;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero-kicker {
  color: var(--color-primary);
  font-size: var(--font-size-caption-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}
.blog-hero h1 {
  color: var(--color-white);
  font-size: var(--font-size-h2);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 16px;
}
.blog-hero p.blog-hero-sub {
  color: var(--color-text-muted);
  font-size: var(--font-size-body-md);
  line-height: 1.5;
  max-width: 720px;
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: var(--font-size-caption-lg);
}
.blog-hero-meta .post-cat-pill { margin: 0; }

/* Category pills */
.post-cat-pill {
  display: inline-block;
  color: var(--color-white);
  background: linear-gradient(109deg, #d81f1f -31.29%, #741313 112.69%);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: var(--font-size-caption-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
}
a.post-cat-pill:hover { opacity: 0.9; }

/* Category filter bar */
.blog-filterbar {
  padding: 36px 0 0;
}
.blog-filterbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.blog-filterbar a {
  text-decoration: none;
  color: var(--color-text-dark);
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: var(--font-size-caption-lg);
  font-weight: 500;
  transition: all 0.2s ease;
  background: var(--color-white);
}
.blog-filterbar a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-filterbar a.active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

/* Post grid — mirrors homepage resource cards */
.blog-grid-section { padding: 56px 0 90px; background: var(--color-white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-card a.blog-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 20px; }
.blog-card .resource-image {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-light-bg);
}
.blog-card .resource-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .resource-image img { transform: scale(1.04); }
.blog-card .resource-category {
  color: var(--color-primary);
  font-size: var(--font-size-caption-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.blog-card .resource-title {
  font-size: var(--font-size-body-xl);
  line-height: 1.25;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}
.blog-card:hover .resource-title { color: var(--color-primary); }
.blog-card .blog-card-excerpt {
  color: var(--color-text-light);
  font-size: var(--font-size-body-sm);
  line-height: 1.55;
}
.blog-card .blog-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-text-light);
  font-size: var(--font-size-caption-sm);
}
.blog-card .blog-card-meta span::after {
  content: "\00b7";
  margin-left: 12px;
  color: #c4c4c4;
}
.blog-card .blog-card-meta span:last-child::after { content: none; }

/* Featured (latest) post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #ececec;
}
.blog-featured .resource-image {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}
.blog-featured .resource-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured h2 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 14px 0 14px;
}
.blog-featured h2 a { color: var(--color-text-dark); text-decoration: none; }
.blog-featured h2 a:hover { color: var(--color-primary); }
.blog-featured p { color: var(--color-text-light); font-size: var(--font-size-body-sm); line-height: 1.6; margin-bottom: 20px; }

/* Pagination */
.blog-pagination { margin-top: 64px; }
.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: var(--font-size-button);
  transition: all 0.2s ease;
}
.blog-pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-pagination .page-numbers.current {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}
.blog-pagination .page-numbers.dots { border: none; }

/* Single post */
.single-hero { padding-bottom: 56px; }
.single-featured-img {
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.single-featured-img img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.single-layout { padding: 64px 0 90px; }
.entry-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.75;
  color: #1f2530;
}
.entry-content > * + * { margin-top: 1.35em; }
.entry-content h2 {
  font-size: var(--font-size-h4);
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-top: 2em;
}
.entry-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 1.8em;
}
.entry-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { opacity: 0.85; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 10px; }
.entry-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 6px 0 6px 22px;
  color: var(--color-text-light);
  font-size: 21px;
  font-style: italic;
}
.entry-content pre {
  background: var(--color-dark);
  color: #e7ecf3;
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
}
.entry-content code { background: #f1f2f5; border-radius: 4px; padding: 2px 6px; font-size: 0.9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content figure { margin: 0; }
.entry-content figcaption {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--font-size-caption-lg);
  margin-top: 10px;
}
.entry-content .wp-block-table table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.entry-content th, .entry-content td {
  border: 1px solid #e5e5e5;
  padding: 10px 14px;
  text-align: left;
}
.entry-content th { background: var(--color-light-bg); font-weight: 600; }

/* Post footer: tags, share, nav */
.entry-footer {
  max-width: 820px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid #ececec;
}
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a {
  text-decoration: none;
  color: var(--color-text-light);
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: var(--font-size-caption-sm);
}
.entry-tags a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.post-nav {
  max-width: 820px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.post-nav a {
  display: block;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--color-text-dark);
  transition: border-color 0.2s ease;
}
.post-nav a:hover { border-color: var(--color-primary); }
.post-nav .post-nav-label {
  display: block;
  font-size: var(--font-size-caption-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-light);
  margin-bottom: 6px;
}
.post-nav .post-nav-next { text-align: right; }

/* Related posts */
.related-posts { background: var(--color-light-bg); padding: 72px 0 90px; }
.related-posts .section-title { font-size: var(--font-size-h3); }

/* Author box */
.author-box {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-light-bg);
  border-radius: 12px;
  padding: 26px 28px;
}
.author-box img { border-radius: 50%; width: 64px; height: 64px; }
.author-box .author-name { font-weight: 600; font-size: var(--font-size-body-sm); margin-bottom: 6px; }
.author-box .author-bio { color: var(--color-text-light); font-size: 16px; line-height: 1.6; }

/* Comments */
.comments-area {
  max-width: 820px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid #ececec;
}
.comments-area .comments-title { font-size: var(--font-size-h5); font-weight: 600; margin-bottom: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: var(--font-size-caption-sm); color: var(--color-text-light); margin: 4px 0 10px 52px; }
.comment-content { margin-left: 52px; font-size: 16px; line-height: 1.65; }
.comment-content p + p { margin-top: 0.8em; }
.reply { margin-left: 52px; margin-top: 8px; }
.reply a { color: var(--color-primary); font-size: var(--font-size-caption-lg); text-decoration: none; }
.comment-respond { margin-top: 40px; }
.comment-respond .comment-reply-title { font-size: var(--font-size-h5); font-weight: 600; margin-bottom: 18px; }
.comment-form label { display: block; font-size: var(--font-size-caption-lg); font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-figtree);
  font-size: 16px;
  margin-bottom: 18px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: transparent; }
.comment-form .submit {
  background: linear-gradient(109deg, #d81f1f -31.29%, #741313 112.69%);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: var(--font-size-button);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-figtree);
}
.comment-form .submit:hover { opacity: 0.92; }

/* Search form */
.ar-search-form { display: flex; gap: 10px; max-width: 560px; }
.ar-search-form input[type="search"] {
  flex: 1;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-figtree);
  font-size: 16px;
}
.blog-hero .ar-search-form { margin-top: 28px; }
.blog-hero .ar-search-form input[type="search"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-white);
}
.blog-hero .ar-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.55); }
.ar-search-form button {
  background: linear-gradient(109deg, #d81f1f -31.29%, #741313 112.69%);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 0 24px;
  font-size: var(--font-size-button);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-figtree);
}

/* Empty / 404 */
.no-results-wrap { padding: 90px 0 120px; text-align: center; }
.no-results-wrap h2 { font-size: var(--font-size-h3); font-weight: 600; margin-bottom: 14px; }
.no-results-wrap p { color: var(--color-text-light); font-size: var(--font-size-body-sm); margin-bottom: 28px; }
.no-results-wrap .ar-search-form { margin: 0 auto; }

/* Static pages */
.page-content-section { padding: 64px 0 90px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Responsive */
@media (max-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; gap: 28px; }
  .blog-featured .resource-image { height: 340px; }
}
@media (max-width: 768px) {
  .blog-hero { padding: 130px 0 50px; background-size: 380px auto; }
  .blog-hero h1 { font-size: var(--font-size-h3); }
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .entry-content { font-size: 17px; }
  .single-featured-img { margin-top: -20px; }
  .author-box { flex-direction: column; }
}
