/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
  
  --background-color: #ffffff;
  --default-color: #666666;
  --heading-color: #334242;
  --accent-color: #00c1c1;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  
  --nav-color: #ffffff;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #666666;
  --nav-dropdown-hover-color: #00c1c1;
}

/* Dark theme variables */
.dark-background {
  --background-color: #1f2b2c;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #34484a;
  --contrast-color: #ffffff;
}

.light-background {
  --background-color: #eff4f5;
  --surface-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.6;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-top: 0;
}

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

/*--------------------------------------------------------------
# Final Multi-Level Dropdown Navigation - All Devices Working
--------------------------------------------------------------*/
:root {
  --header-bg: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  --header-text: #ffffff;
  --header-hover: rgba(255, 255, 255, 0.1);
  --dropdown-bg: #ffffff;
  --dropdown-text: #2a5298;
  --dropdown-hover: #eaf0fa;
  --mobile-overlay: rgba(0, 0, 0, 0.8);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --submenu-width: 300px;
  --mobile-submenu-bg: rgba(255, 255, 255, 0.05);
}

/* Reset and Mobile Touch Optimization */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body.mobile-friendly {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Ensure all clickable elements are selectable */
.mobile-friendly a,
.mobile-friendly button,
.mobile-friendly input,
.mobile-friendly [tabindex] {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* Header Base Styles */
.header {
  background: var(--header-bg) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(30, 60, 114, 0.1);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(30, 60, 114, 0.95) !important;
  box-shadow: 0 4px 30px rgba(30, 60, 114, 0.15);
}

/* Navbar Styles */
.header .navbar {
  padding: 0.5rem 0;
  min-height: 70px;
  background: transparent !important;
}

.header .container-fluid {
  padding: 0 1.5rem;
  background: transparent !important;
}

/* Force Logo Styling with Higher Specificity */
.navbar-brand.logo img.site-logo {
  height: auto !important;
  max-height: 60px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  transition: all 0.3s ease !important;
}

/* Desktop Styles */
@media (min-width: 1200px) {
  .navbar-brand.logo img.site-logo {
    max-height: 65px !important;
    max-width: 220px !important;
  }
}

/* Laptop/Tablet Styles */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-brand.logo img.site-logo {
    max-height: 55px !important;
    max-width: 180px !important;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-brand.logo img.site-logo {
    max-height: 50px !important;
    max-width: 160px !important;
  }
}

/* Mobile Styles */
@media (max-width: 767px) {
  .navbar-brand.logo img.site-logo {
    max-height: 45px !important;
    max-width: 140px !important;
  }
  
  .navbar-brand.logo {
    margin-right: 0.5rem !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .navbar-brand.logo img.site-logo {
    max-height: 40px !important;
    max-width: 120px !important;
  }
}

/* Override any existing CSS */
.header .navbar-brand img,
.navbar .navbar-brand img,
#header .navbar-brand img {
  height: auto !important;
  max-height: 60px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

/* Ensure proper display */
.navbar-brand.logo {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin-right: 1rem !important;
}
/* Navigation Links */
.header .navbar-nav {
  align-items: center;
  gap: 0.5rem;
}

.header .nav-link {
  color: var(--header-text) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.header .nav-link:hover,
.header .nav-link.active {
  background: var(--header-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.header .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* Dropdown Arrow Styles */
.dropdown-arrow,
.submenu-arrow {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  pointer-events: none;
  flex-shrink: 0;
}

.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-submenu.show .submenu-arrow {
  transform: rotate(90deg);
}

/* DESKTOP DROPDOWN STYLES */
@media (min-width: 1200px) {
  /* Main Dropdown Menu */
  .header .dropdown-menu {
    background: var(--dropdown-bg);
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: var(--submenu-width);
    max-width: 400px;
    position: absolute;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block !important;
  }

  .header .dropdown.show > .dropdown-menu,
  .header .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Dropdown Items */
  .header .dropdown-item {
    color: var(--dropdown-text);
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
  }

  .header .dropdown-item:hover,
  .header .dropdown-item:focus {
    background: var(--dropdown-hover);
    color: #1e3c72;
    padding-left: 1.5rem;
  }

  /* Desktop Submenu Styles */
  .header .dropdown-submenu {
    position: relative;
  }

  .header .dropdown-submenu > .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.25rem;
    min-width: var(--submenu-width);
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: block !important;
  }

  .header .dropdown-submenu:hover > .submenu,
  .header .dropdown-submenu.show > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* MOBILE STYLES - SUBMENU FIXED */
@media (max-width: 1199px) {
  .header .container-fluid {
    padding: 0 1rem;
  }
  
  .header .navbar-brand {
    margin-right: 1rem;
  }
  
  .header .site-logo {
    height: 40px;
  }

  /* Mobile Toggle Button */
  .header .navbar-toggler {
    border: none;
    padding: 0.75rem;
    background: transparent !important;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  }

  .header .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(255, 255, 255, 0.3);
  }

  .header .navbar-toggler-icon {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header .navbar-toggler i {
    color: var(--header-text);
    font-size: 1.5rem;
    transition: var(--transition);
    pointer-events: none;
  }

  .header .navbar-toggler:hover,
  .header .navbar-toggler:active {
    background: var(--header-hover) !important;
  }

  /* Mobile Navbar Collapse */
  .header .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding: 2rem 0 4rem 0;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    touch-action: pan-y;
    -webkit-touch-callout: none;
  }
  
  .header .navbar-collapse.show {
    left: 0;
  }

  /* Mobile Navigation Links */
  .header .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem 2rem 1rem;
  }
  
  .header .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  
  .header .nav-link {
    color: white !important;
    padding: 1.25rem 1.25rem !important;
    font-size: 1rem;
    border-radius: 0;
    justify-content: space-between;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    min-height: 54px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    touch-action: manipulation;
  }
  
  .header .nav-link:hover,
  .header .nav-link:active,
  .header .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    padding-left: 1.5rem !important;
    outline: none;
  }

  /* Mobile Dropdown Styles - MAIN MENU */
  .header .dropdown-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    min-width: auto;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* CRITICAL: Initial state for mobile */
    display: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    touch-action: manipulation;
  }
  
  .header .dropdown.show > .dropdown-menu {
    display: block !important;
    max-height: 2000px;
    padding: 0.5rem 0;
  }
  
  .header .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 1rem 2rem !important;
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    position: relative;
    justify-content: space-between;
    min-height: 50px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    display: flex !important;
    align-items: center;
  }
  
  .header .dropdown-item:hover,
  .header .dropdown-item:active,
  .header .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding-left: 2.25rem !important;
    outline: none;
  }

  /* MOBILE SUBMENU STYLES - CRITICAL FIX */
  .header .dropdown-submenu {
    position: relative;
    touch-action: manipulation;
    width: 100%;
  }
  
  /* Submenu toggle button styling */
  .header .submenu-toggle {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
    touch-action: manipulation !important;
  }
  
  .header .submenu-toggle .submenu-arrow {
    margin-left: auto !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
  }
  
  /* SUBMENU CONTAINER - THE KEY FIX */
  .header .dropdown-submenu > .submenu {
    background: var(--mobile-submenu-bg) !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    /* CRITICAL: Initial hidden state */
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease, padding 0.4s ease !important;
    touch-action: manipulation !important;
  }
  
  /* SUBMENU VISIBLE STATE - THE ACTUAL FIX */
  .header .dropdown-submenu.show > .submenu {
    display: block !important;
    max-height: 1500px !important;
    padding: 0.5rem 0 !important;
  }
  
  /* SUBMENU ITEMS STYLING */
  .header .submenu .dropdown-item,
  .header .submenu-item {
    padding: 1rem 3rem !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    min-height: 48px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
    touch-action: manipulation !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .header .submenu .dropdown-item:hover,
  .header .submenu .dropdown-item:active,
  .header .submenu .dropdown-item:focus,
  .header .submenu-item:hover,
  .header .submenu-item:active,
  .header .submenu-item:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    padding-left: 3.25rem !important;
    color: white !important;
    outline: none !important;
  }

  /* Ensure submenu text wrapping */
  .header .submenu .dropdown-item span,
  .header .submenu-item span {
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Mobile scrollbar styling */
  .header .navbar-collapse::-webkit-scrollbar {
    width: 4px;
  }

  .header .navbar-collapse::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .header .navbar-collapse::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }

  .header .navbar-collapse::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
  .header .container-fluid {
    padding: 0 0.75rem;
  }
  
  .header .site-logo {
    height: 32px;
  }
  
  .header .navbar-collapse {
    width: 95%;
  }
  
  .header .dropdown-item {
    font-size: 0.8rem !important;
    padding: 1rem 2rem !important;
    min-height: 46px !important;
    line-height: 1.2 !important;
  }
  
  .header .submenu .dropdown-item,
  .header .submenu-item {
    font-size: 0.75rem !important;
    padding: 1rem 3rem !important;
    min-height: 44px !important;
    line-height: 1.3 !important;
  }
}

/* Landscape mobile orientation */
@media (max-width: 1199px) and (orientation: landscape) {
  .header .navbar-collapse {
    height: 100vh;
    padding: 1rem 0 2rem 0;
  }
  
  .header .nav-link {
    padding: 0.75rem 1.25rem !important;
    min-height: 44px;
  }
  
  .header .dropdown-item {
    padding: 0.75rem 2rem !important;
    min-height: 40px;
  }
  
  .header .submenu .dropdown-item,
  .header .submenu-item {
    padding: 0.75rem 3rem !important;
    min-height: 38px;
  }
}

/* Search Container Styles */
.search-container {
  position: relative;
  margin-left: 1rem;
  background: transparent !important;
}

.search-toggle-wrapper {
  position: relative;
}

.search-toggle {
  background: transparent;
  border: none;
  color: var(--header-text);
  font-size: 1.2rem;
  padding: 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.search-toggle:hover,
.search-toggle:active {
  background: var(--header-hover);
  transform: scale(1.05);
}

.search-expandable {
  position: absolute;
  right: 0;
  top: 100%;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.search-active .search-expandable {
  width: 300px;
}

.search-active .search-toggle {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.search-icon {
  color: #7f8c8d;
  font-size: 1rem;
  margin-right: 0.5rem;
  pointer-events: none;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #34495e;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.search-clear {
  background: none;
  border: none;
  color: #999;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.search-clear:hover,
.search-clear:active {
  color: #e74c3c;
}

.search-results {
  display: none;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-results a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #34495e;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: var(--transition);
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(52, 73, 94, 0.1);
  touch-action: manipulation;
}

.search-results a:hover,
.search-results a:active {
  background: #f8f9fa;
  color: #3498db;
  padding-left: 1.25rem;
}

.search-results a:last-child {
  border-bottom: none;
}

/* Mobile Search Container Positioning */
.search-container-mobile {
  display: none;
  position: relative;
  margin-left: auto;
  margin-right: 1rem;
}

/* Show mobile search container only on mobile devices */
@media (max-width: 1199px) {
  .search-container-mobile {
    display: block;
  }
  
  /* Mobile search container specific styles */
  .search-container-mobile .search-container {
    margin: 0;
    background: transparent !important;
  }
  
  .search-container-mobile .search-toggle {
    background: transparent;
    border: none;
    color: var(--header-text);
    font-size: 1.2rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
  }

  .search-container-mobile .search-toggle:hover,
  .search-container-mobile .search-toggle:active {
    background: var(--header-hover);
    transform: scale(1.05);
  }

  .search-container-mobile .search-expandable {
    position: absolute;
    right: 0;
    top: 100%;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
  }

  .search-container-mobile .search-active .search-expandable {
    width: 280px;
  }

  .search-container-mobile .search-active .search-toggle {
    display: none;
  }

  .search-container-mobile .search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .search-container-mobile .search-icon {
    color: #7f8c8d;
    font-size: 1rem;
    margin-right: 0.5rem;
    pointer-events: none;
  }

  .search-container-mobile .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #34495e;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .search-container-mobile .search-clear {
    background: none;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .search-container-mobile .search-clear:hover,
  .search-container-mobile .search-clear:active {
    color: #e74c3c;
  }

  .search-container-mobile .search-results {
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .search-container-mobile .search-results a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #34495e;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition);
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(52, 73, 94, 0.1);
    touch-action: manipulation;
  }

  .search-container-mobile .search-results a:hover,
  .search-container-mobile .search-results a:active {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 1.25rem;
  }

  .search-container-mobile .search-results a:last-child {
    border-bottom: none;
  }
}

/* Extra responsive adjustments */
@media (max-width: 576px) {
  .search-container-mobile .search-active .search-expandable {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .search-container-mobile .search-active .search-expandable {
    width: 220px;
  }
}

/* Hide desktop search on mobile */
@media (max-width: 1199px) {
  .d-xl-flex {
    display: none !important;
  }
}

/* Mobile Search */
@media (max-width: 1199px) {
  .search-container {
    margin: 1rem 0;
    padding: 0 1rem;
  }
  
  .search-active .search-expandable {
    width: 100%;
    position: static;
    margin-top: 0;
  }
  
  .search-box {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Focus styles for accessibility */
.header .nav-link:focus,
.header .dropdown-item:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Ensure proper stacking order */
.header .dropdown-menu {
  z-index: 1050;
}

.header .submenu {
  z-index: 1055;
}

/* Debug styles - remove in production */
.debug .dropdown-submenu {
  border: 1px solid red !important;
}

.debug .submenu {
  border: 2px solid green !important;
}

/* Animation improvements */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .header .nav-link,
  .header .dropdown-item {
    border: 1px solid currentColor;
    margin-bottom: 1px;
  }
}

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

/* Print styles */
@media print {
  .header {
    display: none;
  }
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  margin-top: 100px;
  max-width: 800px;
  border-top: 4px solid var(--accent-color);
}

.hero h2 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.btn-get-started {
  display: inline-block;
  padding: 10px 30px;
  background: var(--accent-color);
  color: white;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-get-started:hover {
  background: white;
  color: var(--accent-color);
  transform: translateY(-3px);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  padding: 80px 0;
}

.about h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about .fst-italic {
  color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
  font-style: italic;
}

.about ul {
  list-style: none;
  padding: 0;
}

.about ul li {
  padding: 0 0 15px 30px;
  position: relative;
}

.about ul i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-color);
  font-size: 20px;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features {
  padding: 80px 0;
}

.features .why-box {
  background: var(--accent-color);
  color: white;
  padding: 30px;
  height: 100%;
  border-radius: 5px;
}

.features .why-box h3 {
  color: white;
  font-size: 28px;
  margin-bottom: 20px;
}

.icon-box {
  background: var(--surface-color);
  padding: 30px;
  text-align: center;
  border-radius: 5px;
  transition: all 0.3s;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.icon-box i {
  font-size: 36px;
  color: var(--accent-color);
  margin-bottom: 20px;
  background: rgba(0, 193, 193, 0.1);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s;
}

.icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.icon-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box:hover i {
  background: var(--accent-color);
  color: white;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding: 80px 0;
}

.service-item {
  background: var(--surface-color);
  padding: 50px 30px;
  text-align: center;
  border-radius: 5px;
  position: relative;
  margin-top: 40px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item .icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: absolute;
  top: -35px;
  left: calc(50% - 35px);
  transition: all 0.3s;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 15px;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover .icon {
  background: white;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team {
  padding: 80px 0;
}

.team-member {
  background: var(--surface-color);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-img {
  position: relative;
  overflow: hidden;
}

.member-img img {
  transition: all 0.3s;
}

.member-info {
  padding: 20px;
  text-align: center;
}

.member-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.member-info span {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: block;
  margin-bottom: 15px;
}

.social {
  position: absolute;
  top: 20px;
  right: -60px;
  transition: all 0.3s;
}

.social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: white;
  color: var(--accent-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin: 0 5px;
  transition: all 0.3s;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member:hover .member-img img {
  transform: scale(1.1);
}

.team-member:hover .social {
  right: 20px;
}

.social a:hover {
  background: var(--accent-color);
  color: white;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding: 80px 0;
}

.info-wrap {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 5px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}

.info-item i {
  font-size: 24px;
  color: var(--accent-color);
  background: rgba(0, 193, 193, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.php-email-form {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.php-email-form input,
.php-email-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.php-email-form button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.php-email-form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--background-color);
  color: var(--default-color);
  padding: 60px 0 0;
}

.footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.footer-links ul a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.copyright {
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .hero h2 {
    font-size: 32px;
  }
  
  .navmenu ul {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 991px) {
  .hero h2 {
    font-size: 28px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .features .why-box {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero .container {
    margin-top: 60px;
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .about .content {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .contact .info-wrap {
    margin-bottom: 30px;
  }
}

@media (max-width: 575px) {
  .hero h2 {
    font-size: 22px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .btn-get-started {
    padding: 8px 20px;
    font-size: 14px;
  }
  
  .search-box {
    width: 150px;
  }
  
  .search-box:focus {
    width: 180px;
  }
}





/*--------------------------------------------------------------
# Search Container Styles
--------------------------------------------------------------*/


  /* Search Container Styles */
  .search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
  }

  /* Initial search toggle button */
  .search-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
  }

  .search-toggle:hover {
    color: #3498db;
    transform: scale(1.1);
  }

  /* Expandable search area - hidden by default */
  .search-expandable {
    position: absolute;
    right: 0;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1000;
  }

  /* When search is active */
  .search-active .search-expandable {
    width: 300px;
  }

  .search-active .search-toggle {
    display: none;
  }

  /* Search box styles */
  .search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
  }

  .search-icon {
    color: #7f8c8d;
    font-size: 18px;
    margin-right: 10px;
  }

  .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 15px;
    color: #34495e;
    outline: none;
  }

  .search-clear {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    transition: all 0.2s ease;
  }

  .search-clear:hover {
    color: #e74c3c;
  }

  /* Search Results Styles */
  .search-results {
    display: none;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    border: 1px solid #eee;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .search-results a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #34495e;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
  }

  .search-results a:hover {
    background-color: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
  }

  .search-results a i {
    margin-right: 12px;
    font-size: 16px;
    color: #7f8c8d;
    width: 20px;
    text-align: center;
  }

  .search-results a:hover i {
    color: #3498db;
  }

  .no-results {
    padding: 15px;
    color: #7f8c8d;
    text-align: center;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .search-active .search-expandable {
      width: 250px;
    }
  }

  @media (max-width: 480px) {
    .search-active .search-expandable {
      width: 200px;
    }
    
    .search-box {
      padding: 6px 12px;
    }
    
    .search-input {
      font-size: 14px;
    }
  }






  


    /* GENERAL RESET & FONTS */
    body {
      font-family: 'Poppins', 'Roboto', Arial, sans-serif;
      background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
      margin: 0;
      padding: 0;
      min-height: 100vh;
      color: #232946;
      letter-spacing: 0.01em;
    }

    /* HEADER */
    .header {
      background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
      box-shadow: 0 4px 18px rgba(30,60,114,0.09);
      position: sticky;
      top: 0;
      z-index: 1000;
      transition: background 0.3s;
    }
    .header .container-xl {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.6rem 2rem;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      text-decoration: none;
    }
    .site-logo {
      height: 42px;
      width: auto;
      object-fit: contain;
      transition: filter 0.3s;
    }
    .logo:hover .site-logo {
      filter: brightness(1.1) drop-shadow(0 2px 8px rgba(30,60,114,0.10));
    }
    .navmenu ul {
      display: flex;
      gap: 2rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .navmenu li {
      position: relative;
    }
    .navmenu > ul > li > a,
    .navmenu .dropdown > a {
      color: #fff;
      font-size: 1rem;
      font-weight: 500;
      padding: 0.6rem 1rem;
      border-radius: 6px;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }
    .navmenu a.active,
    .navmenu a:hover {
      background: #fff;
      color: #2a5298;
    }
    .navmenu .dropdown ul {
      display: none;
      position: absolute;
      top: 120%;
      left: 0;
      min-width: 210px;
      background: #fff;
      box-shadow: 0 4px 16px rgba(30,60,114,0.12);
      border-radius: 8px;
      z-index: 999;
      padding: 0.5rem 0;
    }
    .navmenu .dropdown:hover > ul,
    .navmenu .dropdown:focus-within > ul {
      display: block;
    }
    .navmenu .dropdown ul li a {
      color: #2a5298;
      background: none;
      padding: 0.75rem 1.5rem;
      border-radius: 0;
    }
    .navmenu .dropdown ul li a:hover {
      background: #eaf0fa;
      color: #1e3c72;
    }
    .mobile-nav-toggle {
      display: none;
      font-size: 2rem;
      color: #fff;
      cursor: pointer;
    }
    @media (max-width: 991px) {
      .header .container-xl {
        padding: 0.5rem 1rem;
      }
      .navmenu ul {
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        padding: 2rem 1rem;
        display: none;
        gap: 1rem;
      }
      .navmenu.active ul {
        display: flex;
      }
      .navmenu li a {
        color: #2a5298;
      }
      .mobile-nav-toggle {
        display: block;
      }
      .site-logo {
        height: 36px;
      }
    }
    /* MAIN TOPIC AREA */
    .main {
      padding-top: 90px;
      padding-bottom: 50px;
      min-height: 70vh;
      background: none;
    }
    .page-title {
      background: linear-gradient(100deg, #1e3c72 60%, #2a5298 100%);
      color: #fff;
      padding: 2.5rem 0 1.5rem 0;
      border-radius: 0 0 40px 40px;
      box-shadow: 0 6px 24px rgba(30,60,114,0.07);
      margin-bottom: 2.5rem;
      animation: fadeInDown 0.8s;
    }
    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-30px);}
      to   { opacity: 1; transform: translateY(0);}
    }
    .page-title h1 {
      font-size: 2.5rem;
      font-weight: 800;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }
    .breadcrumbs {
      font-size: 1rem;
      color: #c9d6ff;
      margin-top: 0.7rem;
    }
    .breadcrumbs a {
      color: #a1c4fd;
      text-decoration: none;
    }
    .breadcrumbs .current {
      color: #fff;
      font-weight: 600;
    }
    /* Calculator Card Glassmorphism */
    .calculator-card {
      background: rgba(255,255,255,0.75);
      border-radius: 24px;
      box-shadow: 0 8px 32px rgba(44,62,80,0.13);
      padding: 2.2rem 2rem;
      margin: 0 auto 2.5rem auto;
      max-width: 750px;
      backdrop-filter: blur(7px);
      border: 1.5px solid rgba(161,196,253,0.16);
      animation: fadeInUp 1.1s;
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px);}
      to   { opacity: 1; transform: translateY(0);}
    }
    .calculator-header h2 {
      font-size: 1.7rem;
      font-weight: 700;
      color: #2a5298;
      margin-bottom: 1.2rem;
    }
    .formula-box {
      background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 100%);
      color: #2a5298;
      font-weight: 600;
      font-size: 1.1rem;
      border-radius: 8px;
      padding: 0.7rem 1.2rem;
      margin-bottom: 1.2rem;
      display: inline-block;
      box-shadow: 0 2px 8px rgba(161,196,253,0.13);
    }
    .input-group-custom {
      margin-bottom: 1.2rem;
    }
    .input-group-custom label {
      font-weight: 500;
      font-size: 1rem;
      color: #2a5298;
      margin-bottom: 0.3rem;
      display: block;
    }
    .input-group-custom input[type="number"] {
      width: 100%;
      padding: 0.6rem;
      border-radius: 8px;
      border: 1px solid #c2e9fb;
      font-size: 1.05rem;
      background: rgba(255,255,255,0.85);
      transition: border 0.2s;
    }
    .input-group-custom input[type="number"]:focus {
      border: 1.5px solid #2a5298;
      outline: none;
      background: #eaf0fa;
    }
    .calculate-btn {
      background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
      color: #fff;
      font-weight: 600;
      border: none;
      border-radius: 8px;
      padding: 0.7rem 2.2rem;
      font-size: 1.1rem;
      margin-top: 0.8rem;
      margin-bottom: 1.3rem;
      box-shadow: 0 2px 8px rgba(30,60,114,0.10);
      transition: background 0.2s, transform 0.2s;
    }
    .calculate-btn:hover {
      background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
      transform: translateY(-2px) scale(1.04);
      color: #a1c4fd;
    }
    .result-box {
      background: #f4f7fa;
      border-radius: 8px;
      padding: 1rem 1.5rem;
      font-size: 1.1rem;
      font-weight: 500;
      color: #2a5298;
      margin-top: 0.5rem;
      min-height: 2.2rem;
      box-shadow: 0 1px 4px rgba(161,196,253,0.07);
      transition: color 0.2s;
    }
    /* Explanation Section */
    .explanation-section {
      background: rgba(255,255,255,0.80);
      border-radius: 20px;
      padding: 2rem 2rem;
      box-shadow: 0 6px 24px rgba(44,62,80,0.09);
      max-width: 900px;
      margin: 0 auto 2.5rem auto;
      animation: fadeInUp 1.3s;
    }
    .section-title {
      color: #2a5298;
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 1.2rem;
    }
    .law-content ul {
      margin-left: 1.3rem;
    }
    .law-image-container {
      text-align: center;
      margin: 1.5rem 0;
    }
    .law-image {
      max-width: 180px;
      margin-bottom: 0.6rem;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(161,196,253,0.11);
    }
    .law-example {
      background: linear-gradient(90deg, #e0eafc 0%, #cfdef3 100%);
      border-radius: 12px;
      padding: 1.1rem 1.5rem;
      margin-bottom: 1.2rem;
      box-shadow: 0 2px 8px rgba(161,196,253,0.09);
      border-left: 5px solid #2a5298;
    }
    .example-title {
      color: #1e3c72;
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }
    .calculator-link {
      display: inline-block;
      margin-top: 1.5rem;
      padding: 0.5rem 1.2rem;
      background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 100%);
      color: #2a5298;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }
    .calculator-link:hover {
      background: #2a5298;
      color: #fff;
    }
    /* FOOTER */
    .footer {
      background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
      color: #fff;
      position: relative;
      overflow: hidden;
      padding-top: 3rem;
      margin-top: 2rem;
      box-shadow: 0 -4px 24px rgba(44,62,80,0.13);
    }
    .footer-bg-elements .circle {
      position: absolute;
      border-radius: 50%;
      filter: blur(2px);
      opacity: 0.16;
      pointer-events: none;
      z-index: 0;
    }
    .footer-bg-elements .circle:nth-child(1) {
      width: 260px; height: 260px; background: #a1c4fd; top: -100px; right: -80px;
      animation: float1 8s infinite alternate;
    }
    .footer-bg-elements .circle:nth-child(2) {
      width: 180px; height: 180px; background: #ff6b6b; bottom: -40px; left: -40px;
      animation: float2 7s infinite alternate;
    }
    @keyframes float1 { 0%{transform:translateY(0);} 100%{transform:translateY(20px);} }
    @keyframes float2 { 0%{transform:translateY(0);} 100%{transform:translateY(-18px);} }
    .footer-top {
      position: relative;
      z-index: 2;
    }
    .footer-about .sitename {
      font-size: 1.6rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: 1px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    .footer-about p {
      color: #a1c4fd;
      font-style: italic;
      margin-bottom: 0.7rem;
    }
    .footer-contact .contact-item {
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
    }
    .footer-contact .icon-box {
      width: 36px; height: 36px;
      background: rgba(161, 196, 253, 0.1);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      margin-right: 12px;
    }
    .footer-contact i {
      color: #a1c4fd;
      font-size: 1rem;
    }
    .footer-heading {
      color: #fff;
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 1.3rem;
      position: relative;
      display: inline-block;
    }
    .footer-heading:after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -7px;
      width: 34px;
      height: 3px;
      background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 100%);
      border-radius: 3px;
    }
    .footer-menu {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .footer-menu li {
      margin-bottom: 10px;
    }
    .footer-menu a {
      color: #c9d6ff;
      display: flex;
      align-items: center;
      padding: 5px 0;
      transition: color 0.2s, transform 0.2s;
      text-decoration: none;
    }
    .footer-menu a i {
      margin-right: 8px;
      font-size: 0.8rem;
      color: #a1c4fd;
      transition: color 0.2s;
    }
    .footer-menu a:hover {
      color: #fff;
      transform: translateX(5px);
    }
    .footer-menu a:hover i {
      color: #fff;
    }
    .social-links {
      display: flex;
      gap: 12px;
      margin-top: 1.1rem;
    }
    .social-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      transition: all 0.3s;
      font-size: 1.1rem;
    }
    .social-icon.linkedin { background: #0077b5; }
    .social-icon.twitter { background: #1DA1F2; }
    .social-icon.facebook { background: #4267B2; }
    .social-icon.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
    .social-icon.whatsapp { background: #25D366; }
    .social-icon:hover {
      transform: translateY(-3px) scale(1.11);
      box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    .newsletter-form .form-control:focus {
      box-shadow: 0 0 0 0.16rem rgba(161, 196, 253, 0.22);
      background: rgba(255,255,255,0.18);
    }
    .btn-subscribe {
      transition: all 0.3s;
    }
    .btn-subscribe:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(161, 196, 253, 0.4);
    }
    .trust-badges .badge-item {
      background: rgba(255,255,255,0.08);
      padding: 7px 11px;
      border-radius: 6px;
      color: #c9d6ff;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      margin-right: 8px;
      margin-bottom: 7px;
    }
    .trust-badges .badge-item i {
      color: #a1c4fd;
      margin-right: 5px;
      font-size: 1rem;
    }
    .copyright {
      border-top: 1px solid rgba(255,255,255,0.1);
      margin-top: 2.5rem;
      padding-top: 1.1rem;
    }
    .footer-legal-links a {
      color: #c9d6ff;
      text-decoration: none;
      margin-left: 15px;
      transition: color 0.2s;
    }
    .footer-legal-links a:hover {
      color: #fff;
    }
    .credits {
      color: rgba(201, 214, 255, 0.7);
      font-size: 0.9rem;
      margin-top: 0.7rem;
    }
    /* WhatsApp Floating Button */
    .whatsapp-float {
      position: fixed;
      bottom: 28px;
      right: 28px;
      background: #25D366;
      color: white;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(37, 211, 102, 0.22);
      z-index: 100;
      transition: all 0.3s;
      font-size: 2rem;
    }
    .whatsapp-float:hover {
      transform: scale(1.08);
      box-shadow: 0 7px 28px rgba(37, 211, 102, 0.33);
    }
    .whatsapp-tooltip {
      position: absolute;
      right: 70px;
      background: #25D366;
      color: white;
      padding: 5px 14px;
      border-radius: 4px;
      font-size: 0.9rem;
      white-space: nowrap;
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }
    .whatsapp-float:hover .whatsapp-tooltip {
      opacity: 1;
    }
    /* Responsive Adjustments */
    @media (max-width: 991px) {
      .main { padding-top: 70px; }
      .calculator-card, .explanation-section { padding: 1.3rem 0.7rem; }
      .page-title { padding: 1.5rem 0 1rem 0; }
    }
    @media (max-width: 768px) {
      .footer-heading { font-size: 1rem; }
      .footer-menu a { font-size: 0.92rem; }
      .whatsapp-float { width: 44px; height: 44px; font-size: 1.3rem; bottom: 18px; right: 18px;}
      .law-image { max-width: 120px;}
    }
    @media (max-width: 500px) {
      .main { padding-top: 50px; }
      .page-title h1 { font-size: 1.3rem; }
      .calculator-card, .explanation-section { padding: 1rem 0.3rem;}
      .site-logo { height: 26px;}
    }




/*--------------------------------------------------------------
# FIXED SEARCH FUNCTIONALITY - DESKTOP & MOBILE
--------------------------------------------------------------*/

/* Base Search Container Styles */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Search Toggle Button */
.search-toggle {
  background: transparent;
  border: none;
  color: var(--header-text, white);
  font-size: 1.2rem;
  padding: 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
  z-index: 1002;
}

.search-toggle:hover,
.search-toggle:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Search Expandable Area */
.search-expandable {
  position: absolute;
  right: 0;
  top: 100%;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1001;
  margin-top: 0.5rem;
}

/* Active Search State */
.search-active .search-expandable {
  width: 320px;
}

.search-active .search-toggle {
  display: none;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  border: 1px solid #e0e0e0;
}

.search-icon {
  color: #7f8c8d;
  font-size: 1rem;
  margin-right: 0.5rem;
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #34495e;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.search-input::placeholder {
  color: #bdc3c7;
}

.search-clear {
  background: none;
  border: none;
  color: #999;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: all 0.3s ease;
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
}

.search-clear:hover,
.search-clear:active {
  color: #e74c3c;
  transform: scale(1.1);
}

/* Search Results */
.search-results {
  display: none;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e0e0e0;
  position: relative;
  z-index: 1003;
}

.search-results a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #34495e;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s ease;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(52, 73, 94, 0.1);
  touch-action: manipulation;
}

.search-results a:hover,
.search-results a:active {
  background: #f8f9fa;
  color: #3498db;
  padding-left: 1.25rem;
}

.search-results a:last-child {
  border-bottom: none;
}

.search-results a i {
  margin-right: 0.75rem;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.search-results a small {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: auto;
  flex-shrink: 0;
}

.no-results {
  padding: 1.5rem;
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
}

/* DESKTOP SPECIFIC STYLES */
@media (min-width: 1200px) {
  /* Desktop Search Container */
  .search-container[data-search-type="desktop"] {
    margin-left: 1rem;
  }

  /* Desktop Search Expandable */
  .search-container[data-search-type="desktop"] .search-active .search-expandable {
    width: 350px;
  }

  /* Hide mobile search on desktop */
  .search-container-mobile {
    display: none !important;
  }
}

/* MOBILE SPECIFIC STYLES */
@media (max-width: 1199px) {
  /* Mobile Search Container */
  .search-container-mobile {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
  }

  /* Mobile Search Expandable */
  .search-container[data-search-type="mobile"] .search-active .search-expandable {
    width: 280px;
  }

  /* Hide desktop search on mobile */
  .d-none.d-xl-flex {
    display: none !important;
  }
}

/* EXTRA SMALL MOBILE DEVICES */
@media (max-width: 576px) {
  .search-container[data-search-type="mobile"] .search-active .search-expandable {
    width: 250px;
  }
  
  .search-box {
    padding: 0.4rem 0.8rem;
  }
  
  .search-input {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .search-container[data-search-type="mobile"] .search-active .search-expandable {
    width: 220px;
  }
}

/* Search Results Scrollbar */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Focus Styles for Accessibility */
.search-toggle:focus,
.search-input:focus,
.search-clear:focus {
  outline: 2px solid rgba(52, 152, 219, 0.5);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .search-box {
    border: 2px solid #000;
  }
  
  .search-results a {
    border-bottom: 1px solid #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .search-expandable,
  .search-toggle,
  .search-clear,
  .search-results a {
    transition: none !important;
  }
}
