/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body.menu-open {
  overflow: hidden;
}

/* ============================================
   HEADER STYLES
   ============================================ */

header.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header .header-eml-blk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
}

/* Header Logo */
.header-logo-wrapper {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.header-logo .logo-brand {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header-logo .logo-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: #000;
  white-space: nowrap;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
header .nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

header .nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

header .nav a:hover {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.08);
}

/* Mobile Auth Buttons (hidden on desktop) */
.mobile-auth-buttons {
  display: none;
}

/* Desktop Auth Buttons */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-actions .btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.header-actions .btn-ghost {
  background: transparent;
  border: 1px solid #ddd;
  color: #333;
}

.header-actions .btn-ghost:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.header-actions .btn-primary {
  background: #007bff;
  border: 1px solid #007bff;
  color: #fff;
}

.header-actions .btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  margin-top: 0px;
}

@media (max-width: 992px) {
  footer {
    margin-top: 60px;
  }
}

@media (max-width: 768px) {
  footer {
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  footer {
    margin-top: 40px;
  }
}

footer .section {
  padding:48px 0 0px;
}

@media (max-width: 992px) {
  footer .section {
    padding: 48px 0 24px;
  }
}

@media (max-width: 768px) {
  footer .section {
    padding: 40px 0 20px;
  }
}

@media (max-width: 480px) {
  footer .section {
    padding: 32px 0 16px;
  }
}

footer .footer-main-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

@media (max-width: 992px) {
  footer .footer-main-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  footer .footer-main-content {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  footer .footer-main-content {
    gap: 28px;
  }
}

footer .footer-brand {
  max-width: 400px;
}

footer .footer-brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

footer .footer-brand-container img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

footer .footer-brand-container strong {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

footer .footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

footer .footer-nav {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

footer .footer-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

footer .footer-nav a:hover {
  color: #007bff;
}

footer .footer-copyright {
  border-top: 1px solid #e5e7eb;
  margin-top: 32px;
}

footer .footer-copyright-content {
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* ============================================
   CONTAINER RESPONSIVENESS
   ============================================ */

.container {
  /* width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px; */
}

/* ============================================
   MEGA MENU & DROPDOWN STYLES
   ============================================ */

.mega-menu {
  width: 100%;
  padding: 24px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.mega-menu .container {
  max-width: 100%;
}

.mega-menu h6 {
  font-weight: 700;
  margin: 12px 0 8px;
  font-size: 1rem;
  color: #000;
}

.mega-menu ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.mega-menu ul li {
  margin-bottom: 8px;
}

.mega-menu ul li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mega-menu ul li a:hover {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.08);
}

.dropdown_box_width {
  width: 900px;
  max-width: 90vw;
}

.box_width_300 {
  width: 300px;
  max-width: 100%;
}

.dropdown-menu.mega-menu {
  border-top: 3px solid #28a745;
}

/* Custom List Styles */
ul.custom-list {
  list-style-type: none;
  position: relative;
  padding-left: 20px;
  margin: 0;
}

ul.custom-list > li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
}

ul.custom-list > li:before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  height: 100%;
  width: 2px;
  background-color: #28a745;
}

ul.custom-list > li:after {
  content: "";
  position: absolute;
  left: -4px;
  top: 12px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #28a745;
}

ul.custom-list > li:last-child:before {
  height: 0;
  top: 0;
}

ul.custom-list > li:only-child:before {
  top: 0;
  height: 50%;
}

/* ============================================
   DESKTOP STYLES (992px+)
   ============================================ */

@media (min-width: 992px) {
  .desktop-only {
    display: flex !important;
  }

  .hamburger-menu {
    display: none !important;
  }

  .mobile-auth-buttons {
    display: none !important;
  }

  /* Dropdown hover effects */
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .translate_minus_44 {
    transform: translateX(-44%);
  }
  .translate_minus_56 {
    transform: translateX(-56%);
  }
  .translate_minus_68 {
    transform: translateX(-68%);
  }
  .translate_minus_74 {
    transform: translateX(-74%);
  }
  .translate_minus_92 {
    transform: translateX(-92%);
  }
  .translate_minus_70 {
    transform: translateX(-70%);
  }
  .translate_minus_15 {
    transform: translateX(-15%);
  }
  .translate_minus_11 {
    transform: translateX(-11%);
  }
}

/* ============================================
   TABLET STYLES (768px - 991px)
   ============================================ */

@media (max-width: 991px) and (min-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  header .header-eml-blk {
    padding: 14px 16px;
  }

  .header-logo .logo-brand {
    height: 36px;
  }

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

  /* Show hamburger, hide desktop buttons */
  .hamburger-menu {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* Mobile navigation */
  header .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  header .nav.active {
    right: 0;
  }

  header .nav a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 4px;
  }

  /* Show mobile auth buttons in nav */
  .mobile-auth-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
  }

  .mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: block;
  }

  .mobile-auth-buttons .btn-ghost {
    background: transparent;
    border: 2px solid #ddd;
    color: #333;
  }

  .mobile-auth-buttons .btn-primary {
    background: #007bff;
    border: 2px solid #007bff;
    color: #fff;
  }

  /* Footer adjustments */
  footer .section {
    padding: 36px 0 20px;
  }

  footer .footer-main-content {
    flex-direction: column;
    gap: 32px;
  }

  footer .footer-brand {
    max-width: 100%;
  }

  footer .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ============================================
   MOBILE STYLES (up to 767px)
   ============================================ */

@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  header .header-eml-blk {
    padding: 12px 16px;
  }

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

  .header-logo .logo-title {
    font-size: 18px;
  }

  /* Show hamburger, hide desktop buttons */
  .hamburger-menu {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* Mobile navigation */
  header .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 70px 20px 20px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  header .nav.active {
    right: 0;
  }

  header .nav a {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 4px;
  }

  /* Show mobile auth buttons in nav */
  .mobile-auth-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
  }

  .mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: block;
  }

  .mobile-auth-buttons .btn-ghost {
    background: transparent;
    border: 2px solid #ddd;
    color: #333;
  }

  .mobile-auth-buttons .btn-primary {
    background: #007bff;
    border: 2px solid #007bff;
    color: #fff;
  }

  /* Mega menu adjustments */
  .dropdown_box_width {
    width: 90vw;
  }

  .mega-menu {
    padding: 16px;
  }

  .mega-menu h6 {
    font-size: 0.95rem;
  }

  .mega-menu ul li a {
    font-size: 13px;
    padding: 5px 8px;
  }

  /* Footer adjustments */
  footer {
    margin-top: 40px;
  }

  footer .section {
    padding: 32px 0 16px;
  }

  footer .footer-main-content {
    flex-direction: column;
    gap: 28px;
  }

  footer .footer-brand {
    max-width: 100%;
  }

  footer .footer-brand-container img {
    height: 32px;
  }

  footer .footer-tagline {
    font-size: 13px;
  }

  footer .footer-nav {
    flex-direction: column;
    gap: 14px;
  }

  footer .footer-nav a {
    font-size: 14px;
  }

  footer .footer-copyright-content {
    padding: 16px;
    font-size: 13px;
  }
}

/* ============================================
   SMALL MOBILE (up to 480px)
   ============================================ */

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  header .header-eml-blk {
    padding: 10px 12px;
  }

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

  .header-logo .logo-title {
    font-size: 16px;
  }

  header .nav {
    width: 260px;
    padding: 60px 16px 16px;
  }

  header .nav a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .mobile-auth-buttons .btn {
    padding: 11px 18px;
    font-size: 13px;
  }

  footer .section {
    padding: 28px 0 12px;
  }

  footer .footer-brand-container {
    gap: 8px;
  }

  footer .footer-brand-container img {
    height: 28px;
  }

  footer .footer-brand-container strong {
    font-size: 16px;
  }

  footer .footer-tagline {
    font-size: 12px;
  }

  footer .footer-nav a {
    font-size: 13px;
  }

  footer .footer-copyright-content {
    padding: 14px 12px;
    font-size: 12px;
  }

  .mega-menu {
    padding: 12px;
  }

  .box_width_300 {
    width: 100%;
  }
}

/* ============================================
   OVERLAY FOR MOBILE MENU
   ============================================ */

body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

button:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.header-actions .btn:focus,
.mobile-auth-buttons .btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header .nav,
  .header-actions,
  .hamburger-menu,
  .mobile-auth-buttons,
  .mega-menu,
  footer .footer-nav,
  #chat-bot {
    display: none !important;
  }

  header .header-eml-blk {
    padding: 8px;
  }

  footer .section {
    padding: 16px 0;
  }
}

/* ============================================
   ADDITIONAL UTILITY CLASSES FOR INDEX PAGE
   ============================================ */

/* Trusted by section */
.trusted-section {
  padding-top: 24px;
  text-align: center;
}

.trusted-text {
  font-size: 16px;
  margin: 16px 0;
}

/* How it works section */
.howx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.howx-cta {
  display: inline-flex;
  margin-top: 8px;
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(135deg, #0a0a0a, #0069d9, #080a0e);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

.cta-banner-headline {
  font-size: 26px;
  text-align: center;
  margin: 0;
  font-weight: 700;
}

.cta-banner-text {
  color: #e2e8f0;
  text-align: center;
  margin: 8px 0;
  font-size: 14px;
}

.cta-banner-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
}

.btn-white-bg {
  background: #fff;
  color: #0f172a;
}

/* Responsive for additional utilities */
@media (max-width: 768px) {
  .trusted-section {
    padding-top: 20px;
  }

  .trusted-text {
    font-size: 14px;
    margin: 12px 0;
  }

  .howx-header {
    gap: 12px;
  }

  .cta-banner {
    padding: 20px 16px;
  }

  .cta-banner-headline {
    font-size: 22px;
  }

  .cta-banner-text {
    font-size: 13px;
  }

  .cta-banner-buttons {
    gap: 10px;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .trusted-text {
    font-size: 13px;
    margin: 10px 0;
  }

  .cta-banner {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .cta-banner-headline {
    font-size: 20px;
  }

  .cta-banner-text {
    font-size: 12px;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner-buttons .btn {
    width: 100%;
  }
}
