/*
Theme Name: Diginex Theme
Theme URI: https://diginex.ltd
Author: Diginex
Author URI: https://diginex.ltd
Description: Enterprise child theme for Diginex with modern design - transparent header, full-width hero, and responsive mobile menu.
Version: 1.3.1
Template: astra
License: GNU General Public License v2 or later
Text Domain: diginex-theme
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  /* Colors */
  --primary-blue: #003A70;
  --accent-blue: #0072CE;
  --accent-magenta: #E91E63;
  --dark-navy: #001a33;
  --navy: #1a365d;
  --teal: #319795;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --lighter-gray: #FAFBFC;
  --text-dark: #1A1A1A;
  --text-gray: #4a5568;
  --border-gray: #E2E8F0;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1400px;
  --header-height: 130px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove any Astra defaults that cause issues */
body.flavor-flavor-flavor,
.ast-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Remove Astra content constraints for full-bleed sections */
.ast-separate-container .site-main,
.site-main,
.entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   GEOMETRIC WATERMARK PATTERN (GLOBAL)
============================================ */
.has-watermark {
  position: relative;
}

.has-watermark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, transparent 98%, rgba(0,58,112,0.03) 100%),
    radial-gradient(circle at 80% 70%, transparent 98%, rgba(0,58,112,0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

.has-watermark > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER - TRANSPARENT OVERLAY
============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-medium);
  padding: 20px 5%;
}

.site-header.is-sticky {
  position: fixed;
  background: rgba(0, 58, 112, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Header Container - 3 Column Grid */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Logo Section */
.header-logo {
  display: flex;
  align-items: center;
}

.header-logo .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo svg {
  height: 40px;
  width: auto;
  color: var(--white);
}

.header-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

/* Search Bar Section (Centered) */
.header-search {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.header-search-form {
  display: flex;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.header-search-input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: #1a365d;
  color: var(--white);
  font-size: 15px;
  transition: var(--transition-fast);
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-search-input:focus {
  outline: none;
  background: #2d4a7c;
}

.header-search-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: #8B0000;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.header-search-btn:hover {
  background: #A52A2A;
}

.header-search-btn svg {
  width: 20px;
  height: 20px;
}

/* Navigation Wrapper (Two Rows) */
.header-nav-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

/* Top Row: Utility Navigation */
.header-nav-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.utility-menu li a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  text-decoration: none;
}

.utility-menu li a:hover {
  color: var(--white);
}

/* Contact Button */
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 2px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Bottom Row: Primary Navigation */
.header-nav-bottom {
  display: flex;
}

.primary-menu {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  position: relative;
}

.primary-menu li a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
  text-decoration: none;
  padding: 4px 0;
  display: block;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
  color: var(--white);
}

/* Dropdown Menus */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-medium);
  z-index: 100;
  list-style: none;
  margin: 8px 0 0 0;
}

.primary-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dark);
  font-size: 14px;
}

.primary-menu .sub-menu li a:hover {
  background: var(--light-gray);
  color: var(--accent-blue);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   MOBILE MENU - PROPER OFF-CANVAS DRAWER
============================================ */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 9999;
  padding: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-gray);
  background: var(--primary-blue);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-logo svg {
  height: 32px;
  width: auto;
  color: var(--white);
}

.mobile-menu-logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-menu-close:hover {
  opacity: 0.8;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.mobile-menu-nav {
  padding: 10px 0;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-nav > ul > li {
  border-bottom: 1px solid var(--border-gray);
}

.mobile-menu-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.mobile-menu-nav > ul > li > a:hover,
.mobile-menu-nav > ul > li > a:focus {
  background: var(--light-gray);
  color: var(--accent-blue);
}

.mobile-menu-nav > ul > li > a:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
}

.mobile-menu-nav .sub-menu {
  display: none;
  background: var(--light-gray);
  padding: 0;
}

.mobile-menu-nav .sub-menu.is-open {
  display: block;
}

.mobile-menu-nav .sub-menu li a {
  display: block;
  padding: 12px 20px 12px 36px;
  font-size: 14px;
  color: var(--text-gray);
  transition: var(--transition-fast);
}

.mobile-menu-nav .sub-menu li a:hover {
  color: var(--accent-blue);
  background: rgba(0,0,0,0.03);
}

.mobile-menu-cta {
  padding: 20px;
  border-top: 1px solid var(--border-gray);
}

.mobile-menu-cta a {
  display: block;
  text-align: center;
  padding: 14px 20px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.mobile-menu-cta a:hover {
  background: #2C7A7B;
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ============================================
   HERO SECTION - FULL WIDTH FIX
============================================ */
.hero-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  margin-top: 0 !important;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 5% 80px;
}

/* Hero Background - Full Bleed */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Dark Overlay for Text Readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 26, 51, 0.92) 0%,
    rgba(0, 58, 112, 0.88) 50%,
    rgba(0, 114, 206, 0.85) 100%
  );
  z-index: -1;
}

/* Diagonal Shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-shape-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: rgba(0, 114, 206, 0.12);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-shape-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  height: 55%;
  background: rgba(0, 114, 206, 0.08);
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0% 100%);
}

.hero-shape-3 {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 25%;
  height: 35%;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
}

/* Watermark Letters */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(200px, 30vw, 400px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
}

/* Hero Content - Centered */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  text-align: center;
  color: var(--white);
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  opacity: 0.95;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   HERO PAGINATION - SMALL BOTTOM CENTER DOTS
============================================ */
.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.hero-pagination-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  font-size: 0;
  color: transparent;
}

.hero-pagination-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-pagination-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition-fast);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: #2C7A7B;
  border-color: #2C7A7B;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(49, 151, 149, 0.35);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

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

/* ============================================
   PAGE CONTENT - INTERNAL PAGES
============================================ */
.page-wrapper {
  padding-top: 140px;
  min-height: 100vh;
}

.page-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-padding) 5%;
}

.entry-header {
  margin-bottom: 40px;
  text-align: center;
}

.entry-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.entry-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 24px;
  color: var(--primary-blue);
}

.entry-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  margin-left: 30px;
  margin-bottom: 20px;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 10px;
}

.entry-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--primary-blue);
}

/* ============================================
   SEARCH RESULTS PAGE
============================================ */
.search-header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-gray);
}

.search-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.search-query {
  color: var(--accent-blue);
}

.search-count {
  font-size: 16px;
  color: var(--text-gray);
}

.search-results {
  margin-bottom: 60px;
}

.search-result-item {
  padding: 30px;
  margin-bottom: 30px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  transition: var(--transition-medium);
}

.search-result-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-blue);
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.result-title a:hover {
  color: var(--accent-blue);
}

.result-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-gray);
}

.result-type {
  text-transform: capitalize;
  padding: 4px 12px;
  background: var(--light-gray);
  border-radius: 4px;
  font-weight: 500;
}

.result-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.result-link {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

.result-link:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

.no-results-content {
  text-align: center;
  padding: 60px 20px;
}

.no-results-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.no-results-content ul {
  list-style: disc;
  display: inline-block;
  text-align: left;
  margin: 30px 0;
}

.no-results-content li {
  margin-bottom: 10px;
  color: var(--text-gray);
}

.search-again {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  font-size: 16px;
  transition: var(--transition-fast);
}

.search-field:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.search-submit {
  padding: 14px 30px;
  background: var(--accent-blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-submit:hover {
  background: var(--primary-blue);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
  padding: var(--section-padding) 5%;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.about-collage {
  position: relative;
  height: 450px;
}

.about-collage-img {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, opacity, box-shadow;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease,
    box-shadow 0.5s ease,
    z-index 0s;
}

.about-collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-collage-img:nth-child(1) {
  width: 260px;
  height: 320px;
  top: 0;
  left: 0;
  z-index: 3;
}

.about-collage-img:nth-child(2) {
  width: 230px;
  height: 280px;
  top: 70px;
  left: 180px;
  z-index: 2;
}

.about-collage-img:nth-child(3) {
  width: 180px;
  height: 230px;
  bottom: 0;
  left: 90px;
  z-index: 1;
}

/* Hover Effects for About Collage Images */
.about-collage:hover .about-collage-img {
  opacity: 0.65;
  transform: scale(0.97);
}

.about-collage .about-collage-img:hover {
  opacity: 1 !important;
  transform: scale(1.15) !important;
  z-index: 10 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
}

.about-content {
  padding-left: 30px;
}

.section-title {
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
  margin: 0;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

/* ============================================
   STATS SECTION
============================================ */
.stats-section {
  padding: var(--section-padding) 5%;
  background: var(--light-gray);
}

.stats-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.stats-header {
  text-align: center;
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 50px;
  align-items: center;
}

.stats-column {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

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

.stat-number {
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Stats Logo - Fixed */
.stats-logo {
  width: 160px;
  height: 160px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 20px;
}

.stats-logo svg {
  width: 100%;
  height: 100%;
}

.stats-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================
   SOLUTIONS SECTION
============================================ */
.solutions-section {
  padding: var(--section-padding) 5%;
  background: var(--white);
}

.solutions-header {
  text-align: center;
  margin-bottom: 50px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 25px;
  max-width: var(--container-width);
  margin: 0 auto;
  align-items: center;
}

.solution-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: var(--transition-medium);
  cursor: pointer;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card:nth-child(1) { height: 320px; }
.solution-card:nth-child(2) { height: 400px; }
.solution-card:nth-child(3) { height: 350px; }

.solution-card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.solution-card-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.solution-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   PRODUCTS SECTION
============================================ */
.products-section {
  padding: var(--section-padding) 5%;
  background: var(--light-gray);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: var(--transition-medium);
  display: block;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.product-card h3 {
  color: var(--primary-blue);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.product-card p {
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  padding: var(--section-padding) 5%;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-section p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 35px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 70px 5% 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  max-width: var(--container-width);
  margin: 0 auto 50px;
}

.footer-brand {
  padding-right: 30px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand .footer-logo svg {
  height: 32px;
  width: auto;
}

.footer-brand .footer-logo span {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 70px;
  }

  .header-search {
    max-width: 280px;
    margin: 0 20px;
  }

  .primary-menu > li > a {
    padding: 14px 18px;
    font-size: 14px;
  }

  .about-grid {
    gap: 40px;
  }

  .stats-grid {
    gap: 30px;
  }

  .stats-logo {
    width: 140px;
    height: 140px;
  }

  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution-card:nth-child(1),
  .solution-card:nth-child(2),
  .solution-card:nth-child(3) {
    height: 300px;
  }

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

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 1024px) {
  .header-container {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  .header-search {
    max-width: 300px;
  }

  .header-nav-wrapper {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  /* Header Mobile */
  .site-header {
    padding: 15px 4%;
  }

  .header-container {
    grid-template-columns: auto 1fr auto;
    gap: 15px;
  }

  .header-logo svg {
    height: 32px;
  }

  .header-logo .logo-text {
    font-size: 20px;
  }

  .header-search {
    display: none;
  }

  .header-nav-wrapper {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero-slide {
    padding: 120px 5% 100px;
    min-height: 90vh;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
  }

  .hero-pagination {
    bottom: 30px;
  }

  .hero-watermark {
    font-size: 40vw;
  }

  /* About Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-collage {
    height: 320px;
    margin-bottom: 20px;
  }

  .about-collage-img:nth-child(1) {
    width: 200px;
    height: 250px;
  }

  .about-collage-img:nth-child(2) {
    width: 180px;
    height: 220px;
    left: 130px;
  }

  .about-collage-img:nth-child(3) {
    width: 140px;
    height: 180px;
  }

  .about-content {
    padding-left: 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  /* Stats Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-column {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .stats-logo {
    order: -1;
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .stat-number {
    font-size: 40px;
  }

  /* Solutions Mobile */
  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .solution-card:nth-child(1),
  .solution-card:nth-child(2),
  .solution-card:nth-child(3) {
    height: 280px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-brand .footer-logo {
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
============================================ */
@media (max-width: 480px) {
  .header-logo a,
  .header-logo .logo-link {
    font-size: 22px;
  }

  .header-logo svg {
    height: 28px;
  }

  .about-collage {
    height: 260px;
  }

  .about-collage-img:nth-child(1) {
    width: 160px;
    height: 200px;
  }

  .about-collage-img:nth-child(2) {
    width: 140px;
    height: 180px;
    left: 100px;
  }

  .about-collage-img:nth-child(3) {
    width: 110px;
    height: 140px;
  }

  .stats-column {
    flex-direction: column;
    gap: 25px;
  }
}

/* ============================================
   UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Remove any inherited gaps */
.site-main {
  margin: 0;
  padding: 0;
}

/* Fix for Astra gaps */
.ast-separate-container .site-main {
  margin: 0;
}

.entry-content {
  margin: 0;
}

/* ============================================ */
/* HEADER FIX - Always Dark Blue */
/* Added: 2026-01-31 */
/* ============================================ */

/* Force header to always have dark navy background */
.site-header {
    background-color: #0a2540 !important;
    background-image: none !important;
    transition: background-color 0.3s ease;
}

/* Remove any transparent header class effects */
.transparent-header .site-header,
body.front-page .site-header {
    background-color: #0a2540 !important;
    background-image: none !important;
}

/* Ensure header container has dark background */
.header-container {
    background-color: #0a2540 !important;
}

/* Override Astra theme header backgrounds */
.ast-primary-header-bar,
.ast-header-break-point .ast-primary-header-bar,
#ast-desktop-header {
    background-color: #0a2540 !important;
    background-image: none !important;
}

/* Ensure text is visible on dark background */
.site-header,
.site-header a,
.header-nav-wrapper a,
.utility-menu a,
.primary-menu a {
    color: #ffffff !important;
}

/* Logo text color */
.logo-text {
    color: #ffffff !important;
}

/* Scrolled state - keep same color */
.site-header.scrolled,
.scrolled .site-header {
    background-color: #0a2540 !important;
}

/* Remove any opacity/transparency on header */
.site-header,
.header-container {
    opacity: 1 !important;
}
