/**
 * ============================================
 * UNIFIED CUSTOM REGULATED STYLES
 * ============================================
 * Consolidated styles for regulated/public templates.
 * Includes: Google Translate, Header/Navbar, Landing Page,
 * Workflow, Pagination, Service Cards, Responsive fixes
 * Load after style.css and corporate-colors.css
 */

/* ==========================================
   1. GOOGLE TRANSLATE WIDGET STYLES
   ========================================== */
#btnTranslate {
  position: relative;
}

#btnTranslate span {
  z-index: 1;
}

#btnTranslate .goog-te-gadget {
  position: absolute;
  top: 0;
  z-index: 2;
}

.goog-te-gadget,
.goog-te-gadget * {
  background-color: transparent !important;
  color: transparent !important;
  border: 0 !important;
  margin: 0 !important;
}

.goog-te-gadget img {
  display: none;
}

.skiptranslate iframe {
  display: none !important;
}

body {
  top: 0 !important;
}

.VIpgJd-yAWNEb-L7lbkb {
  display: none !important;
}

/* ==========================================
   2. HEADER NAVBAR - LOGIN BUTTON OUTLINE
   ========================================== */
.header-navbar-rht li > a.header-login-outline {
  background-color: transparent;
  border: 1px solid #022c5f;
  color: #022c5f;
  border-radius: 40px;
  padding: 9px 20px;
  font-weight: 500;
  transition: all 0.3s;
  min-height: 46px;
  margin-right: 10px;
}

.header-navbar-rht li > a.header-login-outline:hover {
  background-color: #022c5f;
  border: 1px solid #022c5f;
  color: #fff;
  transition: all 0.3s;
}

/* ==========================================
   3. USER MENU STYLES
   ========================================== */
.header-navbar-rht .has-submenu > a .user-img {
  font-size: 20px;
  color: #022c5f;
  margin-right: 6px;
}

.header-navbar-rht .has-submenu > a .user-name {
  font-weight: 500;
  color: #28283c;
  margin-right: 6px;
}

/* ==========================================
   4. USER SUBMENU CUSTOM STYLES
   ========================================== */
.header-navbar-rht .has-submenu .submenu {
  min-width: 250px !important;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.header-navbar-rht .has-submenu .submenu-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #022c5f 0%, #0364ae 100%);
  border-radius: 8px 8px 0 0;
  list-style: none;
  margin-bottom: 10px;
}

.header-navbar-rht .has-submenu .submenu-header h6 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.header-navbar-rht .has-submenu .submenu-header small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.header-navbar-rht .has-submenu .submenu li.divider-line {
  height: 1px;
  background: #e9ecef;
  margin: 8px 15px;
  padding: 0;
  list-style: none;
}

.header-navbar-rht .has-submenu .submenu a.text-danger {
  color: #dc3545 !important;
}

.header-navbar-rht .has-submenu .submenu a.text-danger:hover {
  background-color: #fff5f5 !important;
  color: #c82333 !important;
}

.header-navbar-rht .has-submenu .submenu a i {
  width: 20px;
  text-align: center;
}

/* ==========================================
   5. CUSTOM DROPDOWN - HEADER NAVBAR
   ========================================== */
.header-navbar-rht .has-submenu {
  position: relative;
}

.header-navbar-rht .has-submenu .submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
}

.header-navbar-rht .has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-navbar-rht .submenu li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-navbar-rht .submenu li a {
  display: block;
  padding: 10px 20px;
  color: #28283c;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.header-navbar-rht .submenu li a:hover {
  background-color: #f8f9fa;
  color: #022c5f;
  border-left-color: #022c5f;
  padding-left: 25px;
}

.header-navbar-rht .submenu li a i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* ==========================================
   6. RESPONSIVE CAROUSEL & IMAGES
   ========================================== */
.banner-slider .banner {
  position: relative;
  overflow: hidden;
}

.banner-slider .banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
}

.feature-img img,
.service-img img,
.client-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================
   7. SELECT2 SEARCH BOX STYLES (Hero Section)
   ========================================== */

/* Select2 container inside search input */
.search-input-new .select2-container {
  width: 90% !important;
  position: relative;
}

.search-input-new .select2-container--default .select2-selection--single {
  height: 60px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
}

.search-input-new
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #656b76;
  line-height: 60px;
  padding-left: 0;
  padding-right: 30px;
  font-size: 16px;
  width: 100%;
}

.search-input-new
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 60px;
  right: 0;
  top: 0;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input-new
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none;
}

.search-input-new
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #9ca3af;
  font-size: 16px;
}

.search-input-new
  .select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  margin-right: 25px;
  font-size: 18px;
  color: #9ca3af;
}

.search-input-new
  .select2-container--default
  .select2-selection--single
  .select2-selection__clear:hover {
  color: #dc3545;
}

/* Fix icon alignment - ensure icon stays behind select */
.search-input-new {
  position: relative;
}

.search-input-new .bficon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.search-input-new .form-group {
  padding-left: 45px;
}

/* ==========================================
   8. SELECT2 DROPDOWN STYLES (Shared)
   ========================================== */

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #e8f4fd;
  color: #022c5f;
}

.select2-container--default .select2-results__option--selected {
  background-color: #f0f7ff;
  color: #022c5f;
}

.select2-container--default .select2-results__option {
  padding: 12px 15px;
  font-size: 14px;
  color: #28283c;
  transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option:hover {
  background-color: #f8f9fa;
}

.select2-dropdown {
  border-color: #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  margin-top: 5px;
}

.select2-search--dropdown {
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #022c5f;
  box-shadow: 0 0 0 2px rgba(2, 44, 95, 0.1);
}

.select2-results {
  max-height: 300px;
}

.select2-results__options {
  padding: 5px 0;
}

/* Loading state */
.select2-results__option.loading-results {
  color: #9ca3af;
  font-style: italic;
  padding: 15px;
  text-align: center;
}

/* No results message */
.select2-results__message {
  color: #9ca3af;
  padding: 15px;
  text-align: center;
  font-size: 14px;
}

/* ==========================================
   9. SELECT2 FORM STYLING (Workflow Page)
   ========================================== */

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background-color: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
  border-color: #022c5f;
}

.select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: #022c5f;
  box-shadow: 0 0 0 3px rgba(2, 44, 95, 0.1);
  outline: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #28283c;
  line-height: 40px;
  padding-left: 0;
  padding-right: 30px;
  font-size: 14px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #9ca3af;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px;
  right: 8px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  color: #9ca3af;
  font-size: 16px;
  margin-right: 5px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear:hover {
  color: #dc3545;
}

/* ==========================================
   10. CATEGORY & SERVICE BADGES
   ========================================== */

/* Category country badge */
.category-country-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #022c5f 0%, #0052a3 100%);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(2, 44, 95, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.category-country-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 44, 95, 0.4);
}

.category-country-badge i {
  font-size: 14px;
  margin-right: 5px;
}

/* Service country badge */
.service-country-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.service-country-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.service-country-badge i {
  font-size: 12px;
  margin-right: 4px;
}

/* Service category info */
.service-category-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.service-cat-name {
  font-size: 14px;
  font-weight: 500;
  color: #28283c;
}

.service-cat-name a {
  color: #022c5f;
  transition: color 0.3s ease;
}

.service-cat-name a:hover {
  color: #0052a3;
  text-decoration: underline !important;
}

.service-cat-country {
  font-size: 13px;
  white-space: nowrap;
}

/* ==========================================
   11. FEATURE & SERVICE WIDGET ENHANCEMENTS
   ========================================== */

/* Feature widget improvements */
.feature-widget {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.feature-img img {
  transition: transform 0.5s ease;
}

.feature-widget:hover .feature-img img {
  transform: scale(1.1);
}

.feature-title p {
  font-size: 14px;
  color: #6c757d;
}

.feature-title p i {
  color: #022c5f;
}

/* Service widget improvements */
.service-widget.service-two {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.service-widget.service-two:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.service-img img {
  transition: transform 0.5s ease;
}

.service-widget:hover .service-img img {
  transform: scale(1.1);
}

/* ==========================================
   12. WORKFLOW PAGE - CATEGORY LIST STYLES
   ========================================== */

/* Category list styles - Enhanced for 5 items per page */
.category-item {
  transition: all 0.25s ease;
  border-left: 4px solid transparent;
  padding: 15px 20px !important;
  min-height: 85px;
}

.category-item:hover {
  background-color: #f0f7ff;
  border-left-color: #022c5f;
  transform: translateX(3px);
}

.category-item.active {
  background-color: #e8f4fd;
  border-left-color: #022c5f;
  box-shadow: inset 0 0 0 1px rgba(2, 44, 95, 0.1);
}

.category-item.active .category-info h6 {
  color: #022c5f;
}

.category-thumb img {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.category-item:hover .category-thumb img {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-info h6 {
  font-size: 15px;
  color: #28283c;
  transition: color 0.2s ease;
}

.category-arrow {
  transition: transform 0.2s ease;
}

.category-item:hover .category-arrow {
  transform: translateX(3px);
}

.category-item.active .category-arrow i {
  color: #022c5f;
}

/* Services container scroll */
#services_container {
  min-height: 500px;
}

/* ==========================================
   13. PAGINATION STYLES
   ========================================== */

/* Pagination Regulated Styles */
.pagination-regulated .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.pagination-regulated .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #022c5f;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 42px;
  height: 42px;
  line-height: 1;
}

.pagination-regulated .page-numbers:hover:not(.disabled):not(.current) {
  background-color: #e8f4fd;
  border-color: #022c5f;
  color: #022c5f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(2, 44, 95, 0.15);
}

.pagination-regulated .page-numbers.current {
  background: linear-gradient(135deg, #022c5f 0%, #0052a3 100%);
  border-color: #022c5f;
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 12px rgba(2, 44, 95, 0.25);
}

.pagination-regulated .page-numbers.disabled {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #adb5bd;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-regulated .prev.page-numbers,
.pagination-regulated .next.page-numbers {
  gap: 6px;
  padding: 10px 18px;
  font-weight: 600;
}

.pagination-regulated .prev.page-numbers svg,
.pagination-regulated .next.page-numbers svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pagination-regulated .prev.page-numbers:hover:not(.disabled) svg {
  transform: translateX(-3px);
}

.pagination-regulated .next.page-numbers:hover:not(.disabled) svg {
  transform: translateX(3px);
}

.pagination-info {
  font-size: 13px;
  color: #6c757d;
  margin-top: 12px;
}

.pagination-info small {
  font-weight: 500;
}

/* ==========================================
   14. SERVICE CARD STYLES (AJAX Loaded)
   ========================================== */

.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #022c5f;
}

.service-card .card-title {
  color: #022c5f;
  font-weight: 600;
}

.service-card .btn-outline-primary {
  border-color: #022c5f;
  color: #022c5f;
}

.service-card .btn-outline-primary:hover {
  background-color: #022c5f;
  border-color: #022c5f;
  color: #fff;
}

/* ==========================================
   15. RESPONSIVE ADJUSTMENTS
   ========================================== */

/* Small devices (576px and up) */
@media (min-width: 576px) {
  .banner-slider .banner img {
    max-height: 500px;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .banner-slider .banner img {
    max-height: 600px;
  }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
  .banner-slider .banner img {
    max-height: 700px;
  }
}

/* Mobile and small screens */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-section-two h1 {
    font-size: 1.75rem;
  }

  .search-box-two {
    flex-direction: column;
  }
}

/* Tablets and below */
@media (max-width: 768px) {
  .category-country-badge {
    padding: 6px 12px;
    font-size: 11px;
    top: 10px;
    right: 10px;
  }

  .service-country-badge {
    padding: 5px 10px;
    font-size: 11px;
    top: 10px;
    right: 10px;
  }

  .service-category-info {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .service-cat-country {
    margin-top: 8px;
  }

  /* Pagination responsive */
  .pagination-regulated .pagination {
    gap: 6px;
  }

  .pagination-regulated .page-numbers {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 36px;
    height: 36px;
  }

  .pagination-regulated .prev.page-numbers,
  .pagination-regulated .next.page-numbers {
    padding: 8px 14px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .pagination-regulated .pagination {
    gap: 4px;
  }

  .pagination-regulated .page-numbers {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
    height: 32px;
  }

  .pagination-regulated .prev.page-numbers,
  .pagination-regulated .next.page-numbers {
    padding: 6px 10px;
    min-width: 32px;
  }

  /* Hide "Previous" and "Next" text on mobile */
  .pagination-regulated .prev.page-numbers .btn-text,
  .pagination-regulated .next.page-numbers .btn-text {
    display: none;
  }

  .pagination-info {
    font-size: 11px;
  }
}

/* ==========================================
   16. MOBILE DROPDOWN
   ========================================== */
@media (max-width: 991px) {
  .header-navbar-rht .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: none;
    margin-top: 0;
    padding-left: 20px;
    display: none;
  }

  .header-navbar-rht .has-submenu.submenu-open .submenu {
    display: block;
  }

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

  /* Show mobile user menu on mobile */
  .mobile-user-menu {
    display: block !important;
  }
}

/* Desktop - hide mobile user menu */
@media (min-width: 992px) {
  .mobile-user-menu {
    display: none !important;
  }

  .desktop-user-menu {
    display: flex !important;
  }
}
