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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Client Image Styles */
.client-image {
  max-width: 75px;
}

/* Social Icon Styles */
.social-icon {
  vertical-align: -0.125em;
}

/* Base styles and mobile-first approach */
:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #ffd700;
  --text-color: #023B62;
  --max-width: 1200px;
  --kb-yellow: #F0D343;
  --kb-green: #49A06F;
  --kb-navy: #023B62;
  --kb-white: #FCFAFA;
  --kb-primary: #49A06F;
  --kb-primary-hover: #5AB88B;
  --kb-primary-active: #378455;
  --kb-delete: #E97676;
  --kb-delete-hover: #EE9696;
  --kb-delete-active: #D62A2A;
  --kb-field-outline: #75D3EB;
  --kb-field-highlight: #F0D343;
  --kb-highlight: #F5F5F5;
  --kb-select: #FFF9C4;
  --transparent: transparent;
  --off-white: whitesmoke;
  --black-gray: #1f1f1f;
  --gray: #ddd;
  --silver: #a2a2a2;
  --thamar-black: #181818;
  --font-sans: 'Inter', sans-serif;
  --transition: all 0.2s ease-in-out;
}

/* Mobile-first responsive design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive typography */
html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav-menu {
  display: none;
}

.nav-menu.active {
  display: block;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .menu-button {
    display: none;
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: var(--text-color);
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
} 

/* Header styles */
.header {
  position: sticky;
  top: 0;
  background: var(--secondary-color);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--secondary-color);
}

/* Team members grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Footer improvements */
.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5rem;
}

/* Social links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation optimizations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Error pages */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-page .button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.error-page .button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
} 
/* Navigation styling */
.nav-container {
  background-color: #F0D343;
  position: relative;
  z-index: 1000;
  height: 75px;
  /* Ensure nav container is above other content */
}

.nav-content {
  padding: 0.25rem 1rem;
  /* Further reduced vertical padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 75px;
  /* Reduced fixed height */
}

.nav-logo {
  max-width: 75px;
  object-fit: contain;
}

.language-code {
  color: #1B365D;
  /* Branding navy blue */
  font-weight: 500;
}

.chevron-icon {
  filter: brightness(0) saturate(100%) invert(18%) sepia(45%) saturate(1044%) hue-rotate(182deg) brightness(95%) contrast(88%);
  /* Converts the icon to #1B365D */
}

.features {
  padding: 4rem 0;
  background-color: #fff;
}

.features h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.features p {
  color: #666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.features-list-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.features-block-two {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.features-block-two:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.features-image {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  object-fit: contain;
  flex-shrink: 0;
}

.features-block-two p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
  flex: 1;
}

/* Features list with icons */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px; /* Increased padding to make room for icon */
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('../images/checkmark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1; /* Ensure full opacity */
  z-index: 1; /* Ensure icon is above other elements */
}

.features-list li.disabled {
  opacity: 0.6;
}

.features-list li.disabled::before {
  background-image: url('../images/x-mark.svg');
  opacity: 1; /* Keep the icon fully visible even when text is faded */
}

.features-list li span {
  display: flex;
  flex-direction: column;
}

.features-list li strong {
  font-size: 1.1rem;
  color: var(--kb-navy);
}

/* RTL Support */
[dir="rtl"] .features-list li {
  padding-left: 0;
  padding-right: 32px;
}

[dir="rtl"] .features-list li::before {
  left: auto;
  right: 0;
}

@media (max-width: 576px) {
  .features-list li {
    padding-left: 28px;
  }
  
  [dir="rtl"] .features-list li {
    padding-left: 0;
    padding-right: 28px;
  }
}

/* RTL Support */
[dir="rtl"] .features-block-two {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .features-list li {
  padding-left: 0;
  padding-right: 28px;
}

[dir="rtl"] .features-list li::before {
  left: auto;
  right: 0;
}

/* Responsive styles */
@media (max-width: 991px) {
  .features-list-items {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 2rem;
  }
}

@media (max-width: 767px) {
  .features-list-items {
    grid-template-columns: 1fr;
  }
  
  .features {
    padding: 3rem 0;
  }
  
  .features h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .features-block-two {
    text-align: center;
    gap: 1rem;
  }

  [dir="rtl"] .features-block-two {
    text-align: center;
  }

  .features-image {
    margin-bottom: 1rem;
  }
  
  .features-list li {
    padding-left: 24px;
  }
  
  [dir="rtl"] .features-list li {
    padding-left: 0;
    padding-right: 24px;
  }
}

/* Container styling for centered content */
.container,
.hero-container,
.early-adopter-cta,
.features-wrapper-two,
.mission-container,
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 1240px) {

  .container,
  .hero-container,
  .early-adopter-cta,
  .features-wrapper-two,
  .mission-container,
  .footer-container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {

  .container,
  .hero-container,
  .early-adopter-cta,
  .features-wrapper-two,
  .mission-container,
  .footer-container {
    max-width: 720px;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 2rem;
  }

  .pricing-header {
    text-align: center;
    padding-top: 0;
  }

  .pricing-header,
  .pricing-wrapper {
    flex: 0 0 100%;
  }

  .pricing-cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .offer-badge {
    width: 100%;
    max-width: none;
    margin: 1em 0;
  }

  /* Remove carousel-specific styles */
  .offer-badges {
    display: block;
    overflow: visible;
    padding: 0;
  }

  .carousel-nav {
    display: none;
  }

  .carousel-container::after {
    display: none;
  }
}

@media (max-width: 576px) {

  .container,
  .hero-container,
  .early-adopter-cta,
  .features-wrapper-two,
  .mission-container,
  .footer-container {
    padding: 0 0.5rem;
  }

  .hero-text-content {
    margin: 0 0.5rem;
  }

  .early-adopter-cta {
    width: calc(100% - 1rem);
    margin: 0 0.5rem;
  }
}

/* Language selector styling */
.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-link {
  color: var(--kb-navy);
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.language-selector,
.currency-selector {
  position: relative;
  margin-left: 0.5rem;
}

.current-language,
.current-currency {
  background: rgba(2, 59, 98, 0.1);
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  height: 35px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.current-language:hover,
.current-currency:hover {
  background: rgba(2, 59, 98, 0.15);
}

.language-code,
.currency-code {
  color: var(--kb-navy);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chevron-icon {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.language-dropdown,
.currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--kb-white);
  border: 1px solid rgba(2, 59, 98, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  min-width: 160px;
}

.language-dropdown.show,
.currency-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option,
.currency-option {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--kb-navy);
  font-size: 0.875rem;
  font-weight: 400;
}

.language-option:hover,
.currency-option:hover {
  background-color: rgba(2, 59, 98, 0.05);
}

.language-option.active,
.currency-option.active {
  background-color: rgba(240, 211, 67, 0.1);
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-link,
  .language-code,
  .currency-code,
  .language-option,
  .currency-option {
    font-size: 0.875rem;
  }
  
  .current-language,
  .current-currency {
    padding: 4px 10px;
    height: 32px;
  }
}

/* Hero section styling */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--kb-navy); /* Background color while loading */
}

.hero-image {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('../../assets/images/KB-website-hero-image-p-500.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoom 5s ease-out forwards;
  transition: opacity 0.3s ease, background-image 0.3s ease;
}

/* Progressive loading for larger screens */
@media (min-width: 768px) {
  .hero-image {
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url('../../assets/images/KB-website-hero-image-p-800.png');
  }
}

@media (min-width: 1200px) {
  .hero-image {
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
      url('../../assets/images/KB-website-hero-image-p-1600.png');
  }
}

/* Add loading state */
.hero-image.loading {
  opacity: 0.6;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text-content {
  max-width: 500px;
  padding: 2rem;
  color: var(--kb-white);
  background-color: rgba(27, 54, 93, 0.8);
  /* Semi-transparent navy blue (#1B365D) */
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.hero-text-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text-content .hero-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Updated button container */
.hero-text-content .button-container {
  display: flex;
  justify-content: flex-end;
  /* Align to right by default */
}

[dir="rtl"] .hero-text-content .button-container {
  justify-content: flex-start;
  /* Align to left for RTL languages */
}

.hero-text-content .cta-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--kb-primary);
  /* Green color */
  color: var(--kb-white);
  /* White text for better contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  width: fit-content;
  /* Add this to prevent stretching */
}

.hero-text-content .cta-button:hover {
  background-color: #008F6B;
  /* Slightly darker green on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-text-content {
    max-width: 90%;
    padding: 1.5rem;
  }

  .hero-text-content h1 {
    font-size: 2rem;
  }

  .hero-text-content .hero-text {
    font-size: 1rem;
  }
}

/* RTL specific fixes */
[dir="rtl"] .hero-container {
  direction: rtl;
}

[dir="rtl"] .hero-text-content {
  text-align: right;
}

[dir="rtl"] .language-selector {
  direction: ltr;
  /* Keep language selector LTR */
}

[dir="rtl"] .language-dropdown {
  direction: ltr;
  /* Keep dropdown LTR */
  right: auto;
  left: 0;
}

[dir="rtl"] .language-option {
  text-align: left;
  /* Keep language names left-aligned */
}

/* Fix for white box in RTL */
.hero-background,
.hero-image {
  right: 0;
  /* Add this to ensure full width coverage */
}

/* Early adopter section styling */
.early-adopter-cta {
  background-color: var(--kb-white);
}

.row {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pricing-header {
  flex: 0 0 35%;
  padding-top: 3rem;
}

.pricing-wrapper {
  flex: 0 0 60%;
}

.early-adopter-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #1B365D;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00A67E;
}

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 1rem 0;
  align-items: stretch; /* Ensure cards stretch to same height */
}

.offer-badge {
  background: var(--kb-white);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin: 12px;
  flex: 1;
  min-width: 280px;
  transition: var(--transition);
  position: relative;
  border: 2px solid var(--kb-green);
  overflow: hidden;
}

.offer-badge.popular {
  border: 2px solid var(--kb-yellow);
}

.offer-badge.popular::before {
  content: attr(data-popular-text);
  position: absolute;
  top: 25px;
  right: -65px;
  background: var(--kb-yellow);
  color: var(--kb-navy);
  padding: 5px 60px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: rotate(45deg);
  width: 200px;
  text-align: center;
  line-height: 1.2;
}

[dir="rtl"] .offer-badge.popular::before {
  right: auto;
  left: -65px;
  transform: rotate(-45deg);
  top: 25px;
}

.offer-badge:hover {
  transform: translateY(-5px);
}

.offer-badge h4 {
  font-size: 24px;
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
}

.offer-badge h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--kb-yellow);
  border-radius: 2px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.features-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.offer-badge h4 {
  font-size: 24px;
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
}

@media (max-width: 576px) {
  .offer-badge {
    padding: 16px;
    margin: 8px;
    border-width: 1px;
  }

  .offer-badge.popular {
    border-width: 1px;
  }

  .offer-badge.popular::before {
    top: 15px;
    right: -70px;
    padding: 3px 60px;
    font-size: 0.75rem;
  }

  [dir="rtl"] .offer-badge.popular::before {
    left: -70px;
    right: auto;
    top: 15px;
  }

  .offer-badge h4 {
    font-size: 20px;
    margin: 0 0 12px;
  }

  .features-list {
    margin: 12px 0;
  }

  .features-list li {
    padding-left: 28px;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .plan-footer {
    margin-top: 12px;
  }

  .price-label {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
  }

  .early-adopter-heading {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .lead {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .offer-description {
    font-size: 14px;
    margin-bottom: 16px;
  }
}

.plan-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  text-align: center;
  margin-top: 2rem; /* Fixed margin instead of auto */
}

.price-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kb-primary);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--kb-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background: var(--kb-primary-hover);
}

/* RTL Support */
[dir="rtl"] .offer-badge h4::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .features-list li {
  padding-left: 0;
  padding-right: 32px;
}

[dir="rtl"] .offer-badge.popular::before {
  right: auto;
  left: -210px;
  transform: rotate(-45deg);
  transform-origin: top right;
}

@media (max-width: 991px) {
  .pricing-cards {
    min-height: auto; /* Remove minimum height on mobile */
  }
  
  .offer-badge {
    min-width: 100%; /* Full width on mobile */
  }
}

.text-red {
  color: #dc3545;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: var(--kb-white);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.signup-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1B365D;
}

.form-group input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.9rem;
}

.checkbox-group a {
  color: #00A67E;
  text-decoration: none;
}

[dir="rtl"] .close-modal {
  right: auto;
  left: 1rem;
}

/* Add to existing styles */
.modal-content h3 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #1B365D;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.selected-plan-name {
  color: #00A67E;
  font-weight: 700;
}

[dir="rtl"] .modal-content h3 {
  flex-direction: row-reverse;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: calc(100% - 32px);
    padding: 1.5rem;
  }
}

/* Update mission section styles */
.mission-section {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  z-index: 1;
  margin-top: 4rem;
}

.mission-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mission-content {
  display: flex;
  justify-content: center;
}

.mission-text-content {
  max-width: 800px;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.mission-text-content:hover {
  transform: translateY(-5px);
}

.mission-quote {
  background-color: var(--kb-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.mission-quote::before,
.mission-quote::after {
  font-family: Georgia, serif;
  font-size: 120px;
  color: var(--kb-yellow);
  opacity: 0.75;
  position: absolute;
  line-height: 1;
}

.mission-quote::before {
  content: '"';
  left: 20px;
  transform: translateY(-40%);
}

.mission-quote::after {
  content: '"';
  bottom: -60px;
  right: 20px;
}

.mission-statement {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--kb-navy);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.mission-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 2rem;
}

.author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--kb-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--kb-navy);
  font-size: 1.1rem;
}

.author-role {
  font-size: 0.9rem;
  color: var(--kb-gray);
}

/* RTL Support */
[dir="rtl"] .mission-quote::before {
  left: auto;
  right: 20px;
}

[dir="rtl"] .mission-quote::after {
  right: auto;
  left: 20px;
}

[dir="rtl"] .mission-author {
  flex-direction: row-reverse;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mission-section {
    padding: 4rem 0;
    margin-top: 2rem;
  }

  .mission-quote {
    padding: 2rem;
  }

  .mission-statement {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .author-image {
    width: 60px;
    height: 60px;
  }
}

/* Update footer styles */
.footer-section {
  backdrop-filter: blur(4px);
  /* Match hero blur effect */
  padding: 2rem 0;
  width: 100%;
  color: var(--kb-white);
  /* Change text color to white */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-text {
  color: var(--kb-white);
  /* Update from #1B365D to white */
  font-weight: 500;
  margin: 0 auto;
}

.footer-social-block {
  display: flex;
  gap: 2rem;
}

.social-link img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  /* Slightly increased opacity for better visibility */
  transition: opacity 0.3s;
  filter: brightness(0) invert(1);
  /* Make icons white */
}

.social-link:hover img {
  opacity: 1;
}

.footer-contact-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-block img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  /* Make email icon white */
}

.footer-text-link {
  color: var(--kb-white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-text-link:hover {
  color: var(--kb-yellow);
  /* Change hover color to yellow */
}

.copy-right-text {
  color: rgba(255, 255, 255, 0.8);
  /* Slightly transparent white */
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

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

  .footer-social-block {
    justify-content: center;
  }

  .footer-contact-block {
    justify-content: center;
  }

  .footer-container {
    padding: 0 1rem;
  }
}

.signup-response {
  text-align: center;
  padding: 2rem 1rem;
}

.signup-response .response-title {
  margin-bottom: 1rem;
  color: #1B365D;
}

.signup-response .response-message {
  margin-bottom: 1.5rem;
}

.signup-response.success .response-title {
  color: #00A67E;
}

.signup-response.error .response-title {
  color: #dc3545;
}

.response-details {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: left;
}

[dir="rtl"] .response-details {
  text-align: right;
}

/* RTL Specific Styles */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Header/Navigation RTL */
body.rtl .nav-menu {
  flex-direction: row-reverse;
}

body.rtl .language-selector {
  margin-left: 0;
  margin-right: auto;
}

body.rtl .features-right li {
  padding-left: 0;
  padding-right: 2rem;
}

/* Early Adopter Section RTL */
body.rtl .plan-footer {
  flex-direction: row-reverse;
}

body.rtl .features-list li {
  text-align: right;
}

body.rtl .features-list li::before {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Modal RTL */
body.rtl .modal-content {
  text-align: right;
}

body.rtl .close-modal {
  right: auto;
  left: 1rem;
}

body.rtl .checkbox-group {
  flex-direction: row-reverse;
}

/* Footer RTL */
body.rtl .footer-content {
  flex-direction: row-reverse;
}

body.rtl .footer-social-block {
  flex-direction: row-reverse;
}

body.rtl .footer-contact-block {
  flex-direction: row-reverse;
}

/* General RTL Adjustments */
body.rtl .btn {
  direction: rtl;
}

body.rtl .text-content {
  text-align: right;
}

/* Margins and Paddings RTL */
body.rtl .me-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

body.rtl .ms-2 {
  margin-left: 0;
  margin-right: 0.5rem;
}

body.rtl .pe-2 {
  padding-right: 0;
  padding-left: 0.5rem;
}

body.rtl .ps-2 {
  padding-left: 0;
  padding-right: 0.5rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  body.rtl .footer-content {
    flex-direction: column;
  }
}

.hero-section .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  /* More specific and important */
}

/* For RTL languages */
body.rtl .hero-section .hero-content {
  align-items: flex-end !important;
}

.hero-section .btn-primary {
  margin: 0;
  align-self: flex-start !important;
  /* Explicitly set button alignment */
}

body.rtl .hero-section .btn-primary {
  align-self: flex-end !important;
}

@media (max-width: 768px) {

  .hero-section .hero-content,
  body.rtl .hero-section .hero-content,
  .hero-section .btn-primary,
  body.rtl .hero-section .btn-primary {
    align-items: center !important;
    align-self: center !important;
  }
}

/* Remove shadows from cards and elements */
.modal-content,
.offer-badge,
.mission-quote,
.language-dropdown,
.btn-primary,
.features-card {
  box-shadow: none !important;
}

/* If there are any hover shadows, remove them too */
.offer-badge:hover,
.btn-primary:hover,
.features-card:hover {
  box-shadow: none !important;
}

/* Add style for emoji flags */
.flag-emoji {
  font-size: 1.2em;
  margin-right: 8px;
}

body.rtl .flag-emoji {
  margin-right: 0;
  margin-left: 8px;
}
/* Footer section */
.footer-section {
  position: relative;
  background: var(--kb-navy);
  color: var(--kb-white);
}
.footer-content {
  background-color: var(--kb-navy);
  color: var(--kb-white);
  justify-content: center;
  align-items: center;
  padding-top: 25px;
  padding-bottom: 25px;
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-link {
  color: var(--kb-navy);
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--kb-primary);
}

/* Adjust existing nav-content to accommodate new links */
.nav-content {
  display: flex;
  align-items: right;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Social icons branding color */
.social-icon {
  color: var(--kb-yellow);
  transition: opacity 0.2s ease;
  width: 32px;
  height: 32px;
}

.social-icon:hover {
  opacity: 0.8;
}

/* If the icons are SVGs, we can target their fill color */
.social-icon svg {
  fill: var(--kb-yellow);
}

/* If the icons are using background images */
.social-icon img {
  filter: invert(70%) sepia(50%) saturate(1000%) hue-rotate(360deg) brightness(100%);
}

.offer-badge.popular::before {
  content: attr(data-popular-text);
  position: absolute;
  top: -80px;
  right: -210px;
  background: var(--kb-yellow);
  color: var(--kb-navy);
  padding: 8px 60px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: rotate(45deg);
  transform-origin: top left;
  width: 300px;
  text-align: center;
  line-height: 1.2;
}

[dir="rtl"] .offer-badge.popular::before {
  right: auto;
  left: -210px;
  transform: rotate(-45deg);
  transform-origin: top right;
  top: -80px;
}

.legacy-explanation {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legacy-type {
  background: rgba(240, 211, 67, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.legacy-type h4 {
  color: var(--kb-navy);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legacy-type p {
  color: var(--kb-navy);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .legacy-explanation {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .legacy-type {
    padding: 1rem;
  }

  .legacy-type h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .legacy-type p {
    font-size: 0.9rem;
  }
}

.pricing-notes {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--kb-navy);
  opacity: 0.8;
}

.pricing-note {
  margin: 0.25rem 0;
}

@media (max-width: 768px) {
  .pricing-notes {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
}

/* RTL Support */
[dir="rtl"] .pricing-notes {
  text-align: center;
}

/* Early adopter section styling */
.early-adopter-cta {
  background-color: var(--kb-white);
}

.early-adopter-alert {
  background: rgba(240, 211, 67, 0.1);
  border: 2px solid var(--kb-yellow);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert-text {
  margin: 0;
  color: var(--kb-navy);
  font-size: 1.1rem;
  line-height: 1.5;
}

.alert-text strong {
  color: var(--kb-navy);
}

@media (max-width: 768px) {
  .early-adopter-alert {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .alert-text {
    font-size: 1rem;
  }

  .alert-icon {
    font-size: 1.25rem;
  }
}

[dir="rtl"] .early-adopter-alert {
  flex-direction: row-reverse;
}

/* Validation Error Styles */
.validation-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

input.error {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

input.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Signup Response Styles */
.signup-response {
  display: none;
}

.signup-response.show {
  display: block;
}

/* Social Icon Styles */
.social-icon {
  vertical-align: -0.125em;
}

/* Override any inline styles that might cause CSP issues */
[style*="opacity:0"] {
  opacity: 0 !important;
}

[style*="max-width: 75px"] {
  max-width: 75px !important;
}

/* Additional Webflow animation overrides */
[style*="opacity: 1"] {
  opacity: 1 !important;
}

/* Force remove inline styles for CSP compliance */
[style] {
  /* This will be handled by JavaScript, but CSS can help with some cases */
} 