:root {
  --aegis-navy: #0b1f3a;
  --aegis-navy-2: #10294d;
  --aegis-teal: #0f766e;
  --aegis-gold: #d4a017;
  --aegis-bg: #f8fafc;
  --aegis-text: #1f2937;

  /* Bootstrap theme overrides */
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-warning: #d4a017;
  --bs-warning-rgb: 212, 160, 23;
  --bs-link-color: #0f766e;
  --bs-link-hover-color: #0b5c56;
  --bs-body-bg: #f8fafc;
  --bs-body-color: #1f2937;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--aegis-bg);
  color: var(--aegis-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

section {
  scroll-margin-top: 90px;
}

.section-padding {
  padding: 5rem 0;
}

/* Logo styling */
/* Desktop logo */
.logo-desktop {
  height: 80px;
  width: auto;
}

/* Mobile logo */
@media (max-width: 768px) {
  .logo-desktop {
    display: none;
  }
  .logo-mobile {
    display: block !important;
    height: 45px;
  }
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.navbar .nav-link {
  font-weight: 500;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.dropdown-item {
  font-weight: 500;
  padding: 0.6rem 1.5rem;
}

.dropdown-item:hover {
  background-color: rgba(15, 118, 110, 0.08);
  color: var(--aegis-teal);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--aegis-navy) 0%, var(--aegis-navy-2) 45%, var(--aegis-teal) 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.08), transparent 25%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.card-hover {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12) !important;
  border-color: rgba(15, 118, 110, .18);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, .12);
  color: var(--aegis-teal);
  flex-shrink: 0;
}

.icon-circle-gold {
  background: rgba(212, 160, 23, .15);
  color: var(--aegis-gold);
}

.badge-soft {
  background: rgba(212, 160, 23, .15);
  color: #ffe7a1;
  border: 1px solid rgba(212, 160, 23, .25);
}

.btn-gold {
  --bs-btn-color: #0b1f3a;
  --bs-btn-bg: #d4a017;
  --bs-btn-border-color: #d4a017;
  --bs-btn-hover-color: #0b1f3a;
  --bs-btn-hover-bg: #e0b43a;
  --bs-btn-hover-border-color: #e0b43a;
  --bs-btn-focus-shadow-rgb: 212, 160, 23;
  font-weight: 700;
}

.btn-outline-gold {
  --bs-btn-color: #d4a017;
  --bs-btn-border-color: #d4a017;
  --bs-btn-hover-color: #0b1f3a;
  --bs-btn-hover-bg: #d4a017;
  --bs-btn-hover-border-color: #d4a017;
  --bs-btn-focus-shadow-rgb: 212, 160, 23;
  font-weight: 700;
}

.trust-strip {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.cta-banner {
  color: #fff;
  background: linear-gradient(135deg, var(--aegis-navy) 0%, #132c54 60%, var(--aegis-teal) 100%);
  overflow: hidden;
}

.cta-banner .btn-outline-light:hover {
  color: var(--aegis-navy);
}

.list-check li {
  margin-bottom: .9rem;
}

.list-check i {
  color: var(--aegis-teal);
}

.brand-feature-card {
  background: linear-gradient(135deg, #0b1f3a 0%, #132c54 50%, #0f766e 100%);
}

.glass-tile {
  background: rgba(255,255,255,.10);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(15, 118, 110, .08);
  color: var(--aegis-navy);
}

.footer-dark {
  background: #071424;
  color: rgba(255,255,255,.84);
}

.footer-dark a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
}

.footer-dark a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Email obfuscation */
.email-protected::after {
  content: "@aegis.africa";
}

.email-protected::before {
  content: "info";
}

/* ============================================ */
/* HOMEPAGE SECTIONS STYLES                    */
/* ============================================ */

/* Welcome Section */
.wel-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.wel-wrapper {
  padding: 4rem 0 2rem;
}

.wel-content h3 {
  color: var(--aegis-teal);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.wel-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--aegis-navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.wel-content p {
  font-size: 1.1rem;
  color: var(--aegis-text);
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 540px;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aegis-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--aegis-text);
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background: var(--aegis-gold);
  color: var(--aegis-navy);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: #e0b43a;
  color: var(--aegis-navy);
  transform: translateY(-2px);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--aegis-navy);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--aegis-navy);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: var(--aegis-navy);
  color: white;
  transform: translateY(-2px);
}

.wel-media {
  position: relative;
}

.main-image {
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.image-overlay {
  position: absolute;
  bottom: -20px;
  right: 20px;
}

.badge-accredited {
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--aegis-navy);
}

.badge-accredited i {
  color: var(--aegis-gold);
  font-size: 1.2rem;
}

.feature-cards-wrapper {
  padding: 3rem 0 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.1);
  border-color: var(--aegis-teal);
}

.feature-card.active {
  background: linear-gradient(135deg, var(--aegis-navy) 0%, var(--aegis-teal) 100%);
  color: white;
}

.feature-card.active .feature-content h3,
.feature-card.active .feature-content p {
  color: white;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card.active .feature-icon {
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--aegis-teal);
}

.feature-card.active .feature-icon i {
  color: var(--aegis-gold);
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--aegis-navy);
}

.feature-content p {
  color: var(--aegis-text);
  opacity: 0.8;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Process Section */
.process-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 5rem 0;
}

.process-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.1);
}

.process-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--aegis-teal) 0%, var(--aegis-navy) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.process-icon i {
  font-size: 2rem;
  color: white;
}

.process-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--aegis-navy);
}

.process-card p {
  color: var(--aegis-text);
  opacity: 0.8;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Compliance Section */
.coverage-compliance {
  background: linear-gradient(135deg, var(--aegis-navy) 0%, var(--aegis-teal) 100%);
  padding: 2rem 0;
  margin: 3rem 0;
}

.compliance-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.compliance-date {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 12px;
  text-align: center;
  min-width: 120px;
}

.compliance-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aegis-gold);
  line-height: 1.2;
}

.compliance-date .month {
  font-size: 1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compliance-info {
  flex: 1;
}

.compliance-info h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.compliance-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 1rem;
}

.btn-compliance {
  background: var(--aegis-gold);
  color: var(--aegis-navy);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.btn-compliance:hover {
  background: #e0b43a;
  transform: translateY(-2px);
  color: var(--aegis-navy);
}

/* Partners Section */
.partners-section {
  background: white;
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--aegis-navy);
}

.swiper {
  width: 100%;
  height: auto;
  padding: 20px 40px;
}

.swiper-slide {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.swiper-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--aegis-teal);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--aegis-teal);
  color: white;
}

.swiper-pagination {
  display: none;
}

/* Form */
.loading {
  color: var(--aegis-teal);
  font-weight: 500;
}

.error-message {
  color: #dc3545;
  background: #f8d7da;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

.sent-message {
  color: #198754;
  background: #d1e7dd;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .wel-content h1 {
    font-size: 2.5rem;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .compliance-content {
    flex-direction: column;
    text-align: center;
  }
  
  .compliance-info {
    text-align: center;
  }
  
  .action-buttons {
    flex-wrap: wrap;
  }
  
  .image-overlay {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 1rem;
  }
  
  .swiper {
    padding: 20px 30px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 0.8rem;
  }
}