/* Cascade layer for all site styles. Rules outside a layer (the former
   inline styles in css/pages, css/layouts, css/components) take priority. */
@layer site;

/* Thorben Design System Variables */
:root {
  /* Colors */
  --color-carribean-green: #00c08b;
  --color-sheen-green: #93d500;
  --color-chrome-yellow: #f5a800;
  --color-dark-magenta: #8a1a9b;
  --color-web-indigo: #410099;
  --color-cadet: #5b6670;
  --color-white: #ffffff;
  --color-black: #000000;
  /* Darker Chrome Yellow for hover states on yellow buttons and links */
  --color-secondary-hover: #bf8401;
  --color-primary: var(--color-carribean-green);
  --color-secondary: var(--color-chrome-yellow);
  --color-accent: var(--color-sheen-green);
  --color-purple: var(--color-dark-magenta);
  --color-text: var(--color-cadet);
  --color-text-light: #a1aeb7;
  --color-border: #d8d8d8;
  --color-border-light: #e0e0e0;
  --color-bg-light: #f6f7f8;
  --color-bg-subtle: #f9f9f9;
  --color-focus: #410099;

  /* Colour roles. Set these, not per-element colours, so a colour change
     is made in one place. Values match the live site (main). Several of them
     fail WCAG AA contrast (green, Sheen Green and yellow text on white, white
     text on green or yellow); tracked in GitLab issue #2. */
  --color-heading: var(--color-carribean-green);
  --color-subheading: var(--color-sheen-green);
  --color-link: var(--color-chrome-yellow);
  --color-link-hover: var(--color-secondary-hover);
  --color-text-muted: var(--color-text-light);
  --color-text-note: #888888; /* small print, e.g. Contract Vehicles certifications */
  --color-close-button: #999999; /* × buttons on dialogs */
  /* Text on Chrome Yellow or Caribbean Green backgrounds (buttons, CTA band) */
  --color-on-bright: var(--color-white);

  /* Typography */
  /* Brand typeface is ITC Avant Garde; the brand guidelines name Poppins as
     the free substitute for web and documents. */
  --font-primary:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 30px;
  --spacing-xl: 50px;
  --spacing-xxl: 80px;

  /* Header */
  --header-padding-y: 15px;
  --header-padding-y-scrolled: 10px;
  --logo-height: 40px;
  --logo-height-scrolled: 30px;
  --header-height: calc(var(--header-padding-y) * 2 + var(--logo-height));
  --header-height-scrolled: calc(
    var(--header-padding-y-scrolled) * 2 + var(--logo-height-scrolled)
  );

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 30px;
  --radius-full: 50%;

  /* Transitions */
  --transition-base: all 0.3s ease-in-out;
}

@layer site {
  /* Case Studies Icon Styling */
  .single-case-studie .img-container img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(85%) saturate(3500%)
      hue-rotate(290deg) brightness(85%) contrast(95%);
  }

  /* Hover state - slightly lighter */
  .single-case-studie:hover .img-container img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(85%) saturate(3500%)
      hue-rotate(290deg) brightness(95%) contrast(100%);
  }
}

@layer site {
  /* Reset and Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    overscroll-behavior: none;
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-white);
  }

  /* Typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    /* Long words wrap instead of widening the page on narrow phones */
    overflow-wrap: break-word;
  }

  h1 {
    font-size: 70px;
    line-height: 1;
  }

  h2 {
    font-size: 50px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 26px;
    line-height: 30px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 16px;
  }

  p {
    margin-bottom: var(--spacing-md);
  }

  a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition-base);
  }

  a:hover {
    color: var(--color-primary);
  }

  /* Long email addresses wrap on narrow phones */
  a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }

  /* Container */
  .container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
  }

  /* Buttons */
  .btn,
  .theme_btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-on-bright);
    padding: 16px 40px 12px;
    border-radius: var(--radius-md);
    font-size: 18px;
    line-height: 1;
    border: 2px solid var(--color-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: none;
  }

  .btn:hover,
  .theme_btn:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: var(--color-on-bright);
  }

  .btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
  }

  .btn-outline:hover {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-link);
  }

  /* Header */
  header {
    background-color: rgba(91, 102, 112, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: all 0.3s ease;
  }

  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--header-padding-y);
    padding-bottom: var(--header-padding-y);
    transition: all 0.3s ease;
  }

  header.scrolled .container {
    padding-top: var(--header-padding-y-scrolled);
    padding-bottom: var(--header-padding-y-scrolled);
  }

  .logo {
    position: relative;
    z-index: 10;
  }

  .logo img {
    height: var(--logo-height);
    width: auto;
    transition: all 0.3s ease;
  }

  header.scrolled .logo img {
    height: var(--logo-height-scrolled);
  }

  /* Navigation */
  nav {
    position: relative;
    z-index: 1002;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
  }

  .mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  nav a,
  nav .submenu-toggle {
    color: var(--color-white) !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
  }

  /* Override browser default link colors */
  nav a:link,
  nav a:visited,
  nav a:active {
    color: var(--color-white) !important;
  }

  nav a:hover,
  nav .submenu-toggle:hover {
    color: var(--color-primary) !important;
  }

  /* Current page indicator - underline only, NO color change */
  nav li.current > a,
  nav li.current > .submenu-toggle,
  nav a[aria-current="page"] {
    color: var(--color-white) !important;
  }

  nav li.current > a::before,
  nav li.current > .submenu-toggle::before,
  nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-secondary);
  }

  /* Dropdown Menu */
  nav li {
    position: relative;
  }

  nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: rgba(91, 102, 112, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
    margin-top: 10px;
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  nav li:hover .sub-menu,
  nav li:focus-within .sub-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* Opened with the Opportunities button (desktop) */
  @media (min-width: 981px) {
    nav li.active .sub-menu {
      display: flex;
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
  }

  nav .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    text-align: left;
    width: 100%;
  }

  nav .sub-menu li:last-child {
    border-bottom: none;
  }

  nav .sub-menu a {
    padding: 10px 20px;
    display: block;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
  }

  nav .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-link) !important;
  }

  /* Main Content */
  main {
    min-height: calc(100vh - 400px);
    padding-top: var(--header-height);
    margin-bottom: 0;
  }

  main > section:last-child {
    margin-bottom: 0 !important;
  }

  /* Hero/Banner Section */
  .hero {
    background-size: cover;
    background-position: center;
    padding: 74px 0;
    position: relative;
  }

  .hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
  }

  .hero .home-tagline {
    color: var(--color-white);
    margin-bottom: 0;
  }

  /* Banner Section */
  .banner {
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 90%, transparent),
      color-mix(in srgb, var(--color-purple) 90%, transparent)
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0;
    position: relative;
    text-align: left;
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(var(--header-height) + 160px);
  }

  /* Banner photo, set per page with bannerImage */
  .banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* A banner photo replaces the default gradient, as background-image used to */
  .banner:has(> .banner__img),
  .solution-banner:has(> .banner__img),
  .case-study-banner:has(> .banner__img) {
    background-image: none;
  }

  .banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
  }

  .banner .container {
    position: relative;
    z-index: 2;
  }

  .banner h1 {
    font-size: 3.875rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    max-width: 800px;
  }

  /* Above Fold - Full Viewport */
  .above-fold {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
  }

  /* Home Banner - Fill Parent Section */
  .home-banner {
    height: 100%;
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 !important;
  }

  .home-banner .container {
    transform: translateY(calc(var(--header-height) / -2));
  }

  .home-banner h1,
  .home-banner .home-tagline {
    color: var(--color-white);
  }

  /* Portrait screens - reduce above-fold height */
  @media (max-aspect-ratio: 1/1) {
    .above-fold {
      min-height: 70vh;
    }
  }

  /* Recent Articles Carousel - No Gap with Footer */
  .recent-articles-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block;
  }

  /* Footer */
  footer {
    background-color: var(--color-white);
    padding: 0 !important;
    margin-top: 0 !important;
  }

  footer .footer-cta {
    margin-top: 0 !important;
    padding-top: 30px !important;
  }

  .recent-articles-section + footer,
  #main-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }

  .footer-widget {
    flex: 1;
    min-width: 200px;
  }

  .footer-widget h2 {
    color: var(--color-heading);
    margin-bottom: var(--spacing-md);
  }

  .footer-widget a {
    color: var(--color-link);
  }

  .footer-widget a:hover {
    color: var(--color-link-hover);
  }

  .footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin-bottom: var(--spacing-md);
  }

  .footer-nav a {
    color: var(--color-link);
    text-transform: capitalize;
  }

  .footer-nav a:hover {
    color: var(--color-primary);
  }

  /* Article Page Styles */
  .article-content {
    padding: 80px 0;
    background-color: var(--color-white);
  }

  .article-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }

  .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-bg-light);
  }

  .article-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-on-bright);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
  }

  .article-date {
    color: var(--color-text-muted);
    font-size: 14px;
    font-style: italic;
  }

  .article-body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-cadet);
  }

  /* Article Typography */
  .article-body h1,
  .article-body h2,
  .article-body h3,
  .article-body h4,
  .article-body h5,
  .article-body h6,
  .article-body .article-callout {
    color: var(--color-cadet);
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
  }

  .article-body h1 {
    font-size: 42px;
    text-transform: uppercase;
  }

  .article-body h2 {
    font-size: 32px;
    color: var(--color-heading);
    text-transform: uppercase;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 15px;
  }

  .article-body h3 {
    font-size: 26px;
    color: var(--color-link);
  }

  .article-body h4 {
    font-size: 22px;
    text-transform: none;
  }

  .article-body h5 {
    font-size: 20px;
    text-transform: none;
  }

  .article-body h6,
  .article-body .article-callout {
    font-size: 18px;
    text-transform: none;
  }

  .article-body p {
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .article-body strong {
    color: var(--color-cadet);
    font-weight: 700;
  }

  .article-body em {
    font-style: italic;
  }

  /* Article Lists */
  .article-body ul,
  .article-body ol {
    margin: 30px 0;
    padding-left: 40px;
  }

  .article-body ul li,
  .article-body ol li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
  }

  .article-body ul li::marker {
    color: var(--color-heading);
    font-size: 1.2em;
  }

  .article-body ol li::marker {
    color: var(--color-heading);
    font-weight: 700;
  }

  /* Nested lists */
  .article-body ul ul,
  .article-body ol ol,
  .article-body ul ol,
  .article-body ol ul {
    margin: 15px 0;
  }

  /* Article Links */
  .article-body a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-secondary) 30%, transparent);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
  }

  .article-body a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
  }

  /* Article Blockquotes */
  .article-body blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background-color: var(--color-bg-light);
    border-left: 5px solid var(--color-primary);
    font-size: 20px;
    font-style: italic;
    color: var(--color-cadet);
    border-radius: 0 8px 8px 0;
  }

  .article-body blockquote p:last-child {
    margin-bottom: 0;
  }

  /* Article Code Blocks */
  .article-body code {
    background-color: var(--color-bg-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: var(--color-purple);
  }

  .article-body pre {
    background-color: var(--color-bg-light);
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
    border-left: 4px solid var(--color-primary);
  }

  .article-body pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    color: var(--color-cadet);
  }

  /* Article Images */
  .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  /* Article Tables */
  .article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 16px;
  }

  .article-body table th,
  .article-body table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
  }

  .article-body table th {
    background-color: var(--color-bg-light);
    color: var(--color-cadet);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .article-body table tr:hover {
    background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
  }

  /* Article Horizontal Rule */
  .article-body hr {
    border: none;
    border-top: 2px solid var(--color-bg-light);
    margin: 50px 0;
  }

  /* Article Footer */
  .article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--color-bg-light);
  }

  .btn-outline-dark {
    display: inline-block;
    background-color: transparent;
    color: var(--color-cadet);
    padding: 14px 35px 10px;
    border-radius: var(--radius-md);
    font-size: 16px;
    border: 2px solid var(--color-cadet);
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
  }

  .btn-outline-dark:hover {
    background-color: var(--color-cadet);
    color: var(--color-white);
  }

  /* Resources Page Styles */
  .resources-section {
    padding: 0;
    background-color: transparent;
  }

  .resources-header {
    padding: 40px 0;
  }

  .resources-header h1 {
    color: var(--color-cadet);
    font-size: 62px;
    line-height: 64px;
    margin: 0;
  }

  .resources-content {
    padding: 70px 0;
  }

  .resources-grid {
    display: grid;
    /* minmax(0, …) stops wide article images from stretching the columns */
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 60px;
  }

  .articles-column h2 {
    color: var(--color-heading);
    margin-bottom: 15px;
  }

  .articles-column h2:nth-of-type(2) {
    margin-top: 50px;
    margin-bottom: 30px;
  }

  /* Featured Blog Container */
  .featured-blog-container {
    margin-bottom: 50px;
  }

  .featured-blog-container .img-container {
    position: relative;
    display: block;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
  }

  .featured-blog-container .img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    transition: all 0.3s ease;
  }

  .featured-blog-container .img-container:hover::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }

  .featured-blog-container .img-container img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
  }

  .featured-blog-container .img-container:hover img {
    transform: scale(1.05);
  }

  .featured-blog-container .desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
  }

  .featured-blog-container .desc h3 {
    margin-bottom: 15px;
    color: var(--color-white);
    font-size: 32px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .featured-blog-container .desc h3 a {
    color: var(--color-white);
    text-decoration: none;
  }

  .featured-blog-container .desc h3 a:hover {
    color: var(--color-link);
  }

  .featured-blog-container .category {
    color: var(--color-white);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }

  .featured-blog-container .theme_btn {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
  }

  /* Blog Categories Filter */
  .blog-categories {
    margin-bottom: 30px;
  }

  .ul-cat {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
  }

  .category-filter-li a {
    color: var(--color-cadet);
    padding: 10px 20px;
    border: 2px solid var(--color-border);
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .category-filter-li a:hover,
  .category-filter-li.active a {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-bright);
  }

  /* Blog Container */
  .blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 30px;
  }

  .single-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .single-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .single-post .img-container {
    display: block;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-bg-light);
  }

  .single-post .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .single-post:hover .img-container img {
    transform: scale(1.05);
  }

  .single-post .desc {
    padding: 25px;
  }

  .single-post .desc h3 {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 10px;
    text-transform: none;
  }

  .single-post .desc h3 a {
    color: var(--color-cadet);
    text-decoration: none;
  }

  .single-post .desc h3 a:hover {
    color: var(--color-primary);
  }

  .single-post .category {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .single-post .theme_btn {
    font-size: 14px;
    padding: 10px 25px 8px;
  }

  /* Sidebar Column */
  .sidebar-column h2 {
    color: var(--color-heading);
    margin-bottom: 30px;
  }

  .resource-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .resource-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .resource-card h3.title {
    padding: 20px 25px 0;
    color: var(--color-link);
    font-variant: small-caps;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: none;
  }

  .resource-card p {
    padding: 0 25px;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .resource-card .btn-group {
    padding: 0 25px 25px;
  }

  .resource-card .theme_btn {
    font-size: 14px;
    padding: 10px 25px 8px;
    cursor: pointer;
  }

  /* Utility Classes */
  .mb-0 {
    margin-bottom: 0;
  }

  .mb-10 {
    margin-bottom: 10px;
  }

  .mb-15 {
    margin-bottom: 15px;
  }

  .mb-30 {
    margin-bottom: 30px;
  }

  .text-center {
    text-align: center;
  }

  .text-uppercase {
    text-transform: uppercase;
  }

  /* Responsive Design */
  @media (max-width: 980px) {
    header .container {
      justify-content: center;
      position: relative;
    }

    .logo {
      order: 0;
    }

    .mobile-menu-toggle {
      display: flex;
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
    }

    nav ul {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      background-color: rgba(91, 102, 112, 0.98);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      flex-direction: column;
      gap: 0;
      padding: 20px 0;
      overflow-y: auto;
      transition:
        top 0.3s ease,
        max-height 0.3s ease;
    }

    /* Default state - use header height */
    nav ul {
      top: var(--header-height);
      max-height: calc(100vh - var(--header-height));
    }

    /* Scrolled state - use scrolled header height */
    header.scrolled nav ul {
      top: var(--header-height-scrolled);
      max-height: calc(100vh - var(--header-height-scrolled));
    }

    nav ul.active {
      display: flex;
    }

    nav li {
      width: 100%;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav li:last-child {
      border-bottom: none;
    }

    nav a,
    nav .submenu-toggle {
      display: block;
      padding: 15px 20px;
      font-size: 16px;
    }

    /* Override desktop hover behavior completely on mobile */
    nav li:hover .sub-menu,
    nav li:focus-within .sub-menu {
      position: static !important;
      top: auto !important;
      left: auto !important;
      transform: none !important;
      opacity: 1 !important;
      visibility: visible !important;
      display: none !important;
      margin-top: 0 !important;
    }

    nav .sub-menu {
      position: static;
      transform: none;
      opacity: 1;
      visibility: visible;
      background: rgba(0, 0, 0, 0.2);
      margin-top: 0;
      padding: 0;
      box-shadow: none;
      display: none;
    }

    nav .menu-item-has-children.active .sub-menu {
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
    }

    nav .sub-menu li {
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav .sub-menu a {
      padding-left: 40px;
      font-size: 14px;
    }

    h1 {
      font-size: 46px;
    }

    h2 {
      font-size: 34px;
    }

    h3 {
      font-size: 24px;
    }

    /* Resources Page Responsive */
    .resources-grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 40px;
    }

    .blog-container {
      grid-template-columns: 1fr;
    }

    .resources-header h1 {
      font-size: 42px;
      line-height: 42px;
    }

    /* Featured Blog Responsive */
    .featured-blog-container .img-container {
      min-height: 350px;
    }

    .featured-blog-container .img-container img {
      min-height: 350px;
    }

    .featured-blog-container .desc {
      padding: 30px;
    }

    .featured-blog-container .desc h3 {
      font-size: 28px;
    }

    /* Article Page Responsive */
    .article-body {
      font-size: 17px;
    }

    .article-body h2 {
      font-size: 28px;
    }

    .article-body h3 {
      font-size: 24px;
    }
  }

  @media (max-width: 767px) {
    h1 {
      font-size: 36px;
    }

    /* The home hero title sets 70px inline; shrink it so it fits on phones */
    .home-banner h1 {
      font-size: 40px !important;
    }

    /* Let the hero grow to fit its content instead of sliding under the header */
    .home-banner {
      /* the hero is pulled up 100px behind the header by an inline margin */
      padding: 140px 0 50px !important;
    }

    .home-banner .container {
      transform: none;
    }

    h2 {
      font-size: 28px;
    }

    h4 {
      font-size: 24px;
    }

    .footer-widgets {
      flex-direction: column;
    }

    .banner {
      padding: 200px 0;
      margin-top: calc(var(--header-height) * -1);
      padding-top: calc(var(--header-height) + 200px);
    }

    .banner h1 {
      font-size: 2.5rem;
      line-height: 1.05;
    }

    /* Article Page Mobile */
    .article-content {
      padding: 50px 0;
    }

    .article-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .article-body {
      font-size: 16px;
    }

    .article-body h1 {
      font-size: 32px;
    }

    .article-body h2 {
      font-size: 26px;
      margin-top: 40px;
      margin-bottom: 20px;
    }

    .article-body h3 {
      font-size: 22px;
    }

    .article-body h4 {
      font-size: 20px;
    }

    .article-body > p:first-of-type {
      font-size: 17px;
      padding-left: 15px;
    }

    .article-body ul,
    .article-body ol {
      padding-left: 25px;
    }

    .article-body blockquote {
      padding: 20px 25px;
      font-size: 18px;
      margin: 30px 0;
    }

    .article-body pre {
      padding: 20px;
      margin: 25px 0;
    }

    .article-footer {
      margin-top: 40px;
      padding-top: 30px;
    }

    .btn-outline-dark {
      padding: 12px 25px 8px;
      font-size: 14px;
    }
  }

  /* ---- Accessibility helpers ---------------------------------------- */

  /* Elements hidden with the hidden attribute stay hidden even when a class sets display */
  [hidden] {
    display: none !important;
  }

  /* "Skip to main content" link: visible only when focused */
  .skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    background: var(--color-white);
    color: var(--color-black);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
  }

  .skip-link:focus {
    top: 16px;
  }

  main:focus {
    outline: none;
  }

  /* Visible keyboard focus everywhere */
  :focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }

  /* Buttons that look like the menu links they replaced */
  nav .submenu-toggle {
    background: none;
    border: 0;
    font-family: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: inherit;
    cursor: pointer;
  }

  @media (max-width: 980px) {
    nav .submenu-toggle {
      width: 100%;
    }
  }

  /* On desktop the menu links are inline; keep the button from adding height */
  @media (min-width: 981px) {
    nav .submenu-toggle {
      margin: -10px 0;
    }
  }

  /* Category filter buttons (Resources, Case Studies, FedRAMP) */
  .filter-btn {
    appearance: none;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    min-height: 24px;
  }

  /* Images keep their proportions when CSS sets only a width */
  img {
    height: auto;
  }

  /* Text for screen readers only */
  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  /* Small line above a heading (former h3 "kicker" lines) */
  .kicker {
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }

  /* Resources page section headings were h3; keep their size as h2 */
  .articles-column h2,
  .sidebar-column h2 {
    font-size: 28px;
  }

  @media (max-width: 980px) {
    .articles-column h2,
    .sidebar-column h2 {
      font-size: 24px;
    }
  }
}

@layer site {
  /* Featured Blog Container - Overlay Design */
  .featured-blog-container {
    margin-bottom: 50px;
  }

  .featured-blog-container .img-container {
    position: relative;
    display: block;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
  }

  .featured-blog-container .img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    transition: all 0.3s ease;
  }

  .featured-blog-container .img-container:hover::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }

  .featured-blog-container .img-container img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
  }

  .featured-blog-container .img-container:hover img {
    transform: scale(1.05);
  }

  .featured-blog-container .desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
  }

  .featured-blog-container .desc h3 {
    margin-bottom: 15px;
    color: var(--color-white);
    font-size: 32px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .featured-blog-container .desc h3 a {
    color: var(--color-white);
    text-decoration: none;
  }

  .featured-blog-container .desc h3 a:hover {
    color: var(--color-link);
  }

  .featured-blog-container .category {
    color: var(--color-white);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }

  .featured-blog-container .theme_btn {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
  }

  /* Sidebar Column - Deeper Insights Section */
  .sidebar-column {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    align-self: flex-start;
  }

  .sidebar-column .resource-card img {
    padding-top: 15px;
    padding-left: 30px;
  }

  /* Blog Categories Filter - Pipe Separated Style */
  .blog-categories {
    margin-bottom: 30px;
    padding: 30px 0;
    background: var(--color-white);
  }

  .ul-cat {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .category-filter-li {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .category-filter-li:not(:last-child)::after {
    content: "|";
    color: var(--color-link);
    margin: 0 15px;
    font-size: 14px;
  }

  .category-filter-li :is(a, button) {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--color-link);
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
  }

  .category-filter-li:hover :is(a, button),
  .category-filter-li.active :is(a, button) {
    background: transparent;
    color: var(--color-link-hover);
    border: none;
    text-decoration: none;
  }

  /* Responsive Styles */
  @media (max-width: 980px) {
    .featured-blog-container .img-container {
      min-height: 350px;
    }

    .featured-blog-container .img-container img {
      min-height: 350px;
    }

    .featured-blog-container .desc {
      padding: 30px;
    }

    .featured-blog-container .desc h3 {
      font-size: 28px;
    }
  }

  @media (max-width: 767px) {
    .featured-blog-container .img-container {
      min-height: 300px;
    }

    .featured-blog-container .img-container img {
      min-height: 300px;
    }

    .featured-blog-container .desc {
      padding: 25px;
    }

    .featured-blog-container .desc h3 {
      font-size: 24px;
    }

    .featured-blog-container .category {
      font-size: 12px;
      margin-bottom: 15px;
    }

    /* Blog Categories Mobile - Horizontal Scroll */
    .ul-cat {
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      padding: 0 20px;
      -webkit-overflow-scrolling: touch;
    }

    .category-filter-li {
      white-space: nowrap;
    }

    .category-filter-li:not(:last-child)::after {
      margin: 0 10px;
    }

    .category-filter-li :is(a, button) {
      font-size: 13px;
    }
  }
}

@layer site {
  /* Basic Page Layout Styles - Terms & Privacy Pages */

  .basic-page {
    padding: 80px 0;
    background-color: var(--color-white);
  }

  .basic-page__content {
    max-width: 800px;
    margin: 0 auto;
  }

  /* Basic Page Typography */
  .basic-page__content h1 {
    font-size: 50px;
    color: var(--color-heading);
    margin-bottom: 30px;
    text-transform: uppercase;
    line-height: 1.2;
  }

  .basic-page__content h2 {
    font-size: 32px;
    color: var(--color-heading);
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.3;
  }

  .basic-page__content h3 {
    font-size: 26px;
    color: var(--color-link);
    margin-top: 35px;
    margin-bottom: 18px;
    text-transform: uppercase;
  }

  .basic-page__content h4 {
    font-size: 22px;
    color: var(--color-cadet);
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: none;
  }

  .basic-page__content h5 {
    font-size: 20px;
    color: var(--color-cadet);
    margin-top: 25px;
    margin-bottom: 12px;
    text-transform: none;
  }

  .basic-page__content h6 {
    font-size: 18px;
    color: var(--color-cadet);
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: none;
  }

  /* Paragraphs */
  .basic-page__content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-cadet);
    margin-bottom: 20px;
  }

  /* Lists */
  .basic-page__content ul,
  .basic-page__content ol {
    margin: 20px 0;
    padding-left: 40px;
  }

  .basic-page__content ul li,
  .basic-page__content ol li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-cadet);
    margin-bottom: 10px;
  }

  .basic-page__content ul li::marker {
    color: var(--color-heading);
  }

  .basic-page__content ol li::marker {
    color: var(--color-heading);
    font-weight: 700;
  }

  /* Links */
  .basic-page__content a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-secondary) 30%, transparent);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
  }

  .basic-page__content a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
  }

  /* Blockquotes */
  .basic-page__content blockquote {
    margin: 30px 0;
    padding: 25px 35px;
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    font-size: 16px;
    font-style: italic;
    color: var(--color-cadet);
    border-radius: 0 8px 8px 0;
  }

  .basic-page__content blockquote p:last-child {
    margin-bottom: 0;
  }

  /* Code */
  .basic-page__content code {
    background-color: var(--color-bg-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: var(--color-purple);
  }

  .basic-page__content pre {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    border-left: 4px solid var(--color-primary);
  }

  .basic-page__content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
  }

  /* Tables */
  .basic-page__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
  }

  .basic-page__content table th,
  .basic-page__content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
  }

  .basic-page__content table th {
    background-color: var(--color-bg-light);
    color: var(--color-cadet);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .basic-page__content table tr:hover {
    background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
  }

  /* Horizontal Rule */
  .basic-page__content hr {
    border: none;
    border-top: 2px solid var(--color-bg-light);
    margin: 40px 0;
  }

  /* Strong/Bold */
  .basic-page__content strong {
    color: var(--color-cadet);
    font-weight: 700;
  }

  /* Emphasis/Italic */
  .basic-page__content em {
    font-style: italic;
  }

  /* Responsive Design */
  @media (max-width: 980px) {
    .basic-page {
      padding: 60px 0;
    }

    .basic-page__content h1 {
      font-size: 38px;
    }

    .basic-page__content h2 {
      font-size: 28px;
      margin-top: 35px;
    }

    .basic-page__content h3 {
      font-size: 24px;
      margin-top: 30px;
    }

    .basic-page__content h4 {
      font-size: 20px;
    }

    .basic-page__content ul,
    .basic-page__content ol {
      padding-left: 30px;
    }
  }

  @media (max-width: 767px) {
    .basic-page {
      padding: 50px 0;
    }

    .basic-page__content h1 {
      font-size: 32px;
    }

    .basic-page__content h2 {
      font-size: 24px;
      margin-top: 30px;
      margin-bottom: 15px;
    }

    .basic-page__content h3 {
      font-size: 22px;
    }

    .basic-page__content h4 {
      font-size: 20px;
    }

    .basic-page__content p {
      font-size: 14px;
    }

    .basic-page__content ul,
    .basic-page__content ol {
      padding-left: 25px;
    }

    .basic-page__content blockquote {
      padding: 20px 25px;
      font-size: 15px;
      margin: 25px 0;
    }

    .basic-page__content pre {
      padding: 15px;
      margin: 20px 0;
    }

    .basic-page__content table {
      font-size: 13px;
    }

    .basic-page__content table th,
    .basic-page__content table td {
      padding: 10px 12px;
    }
  }
}

/* Styles for src/_includes/partials/header.njk.
   Moved out of the template; the header-<tag>-<n> classes replace former
   inline style attributes. Give them meaningful names when you next edit them. */

/* Former inline styles: unlayered so they keep priority over the site
   stylesheets, as inline styles did. */
.header-img-1 {
  filter: invert(56%) sepia(89%) saturate(449%) hue-rotate(115deg)
    brightness(96%) contrast(101%);
}


/* Styles for src/_includes/partials/footer.njk.
   Moved out of the template; the footer-<tag>-<n> classes replace former
   inline style attributes. Give them meaningful names when you next edit them. */

@layer site {
  #main-footer {
    background-color: var(--color-white);
  }

  #main-footer a {
    transition: color 0.3s ease;
  }

  #main-footer a:hover {
    color: var(--color-link-hover) !important;
  }

  .social-icons a:hover {
    color: var(--color-primary) !important;
  }

  .footer-terms-links a:hover {
    color: var(--color-link-hover) !important;
  }

  @media (max-width: 768px) {
    .footer-cta .container {
      flex-direction: column;
      text-align: center;
    }

    .footer-widgets {
      flex-direction: column;
    }

    .footer-widget {
      max-width: 100% !important;
    }

    .footer-nav {
      flex-direction: column;
      gap: 10px !important;
    }

    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }

    .footer-terms-links {
      justify-content: center;
    }
  }
}

/* Former inline styles: unlayered so they keep priority over the site
   stylesheets, as inline styles did. */
.footer-footer-1 {
  margin-top: 0;
}

.footer-div-1 {
  display: flex;
  justify-content: space-between;
  padding: 80px 0 0;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-div-2 {
  flex: 0 0 350px;
  max-width: 350px;
}

.footer-h4-1 {
  color: var(--color-heading);
  margin-bottom: 20px;
}

.footer-div-3 {
  flex: 0 0 auto;
  text-align: left;
}

.footer-h6-1 {
  margin-bottom: 5px;
  font-size: 15px;
  color: var(--color-text);
}

.footer-p-1 {
  margin-bottom: 5px;
}

.footer-a-1 {
  color: var(--color-link);
}

.footer-p-2 {
  margin-bottom: 20px;
}

.footer-ul-1 {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  gap: 15px;
}

.footer-a-2 {
  color: var(--color-subheading);
  font-size: 40px;
  transition: color 0.3s;
}

.footer-p-3 {
  font-size: 15px;
  margin: 0;
}

.footer-div-4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-ul-2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.footer-p-4 {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
}

/* Footer headings keep their former h4/h6 look */
.footer-h4-1 {
  font-size: 26px;
  line-height: 30px;
}

.footer-h6-1 {
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .footer-h4-1 {
    font-size: 24px;
  }
}

/* Styles for src/_includes/partials/schedule-a-call.njk.
   Moved out of the template; the cta-<tag>-<n> classes replace former
   inline style attributes. Give them meaningful names when you next edit them. */

/* Former inline styles: unlayered so they keep priority over the site
   stylesheets, as inline styles did. */
.cta-div-1 {
  background: var(--color-primary);
  padding: 30px 15px;
}

.cta-div-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.cta-h3-1 {
  color: var(--color-on-bright);
  text-transform: uppercase;
  margin: 0;
}

.cta-a-1 {
  background: var(--color-secondary);
  color: var(--color-on-bright);
}

/* The band's line is a call to action, not a section heading */
.cta-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .cta-title {
    font-size: 24px;
  }
}

