/* Modern Design Improvements */

/* intl-tel-input Styling */
.iti {
  width: 100%;
}

.iti__flag-container {
  z-index: 1;
}

.iti__selected-flag {
  padding: 0 8px 0 12px;
  border-right: 1px solid #dee2e6;
}

.iti__selected-flag:hover {
  background-color: #f8f9fa;
}

.iti__country-list {
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-control.iti-input {
  padding-left: 52px;
}

/* Form Field Styling Improvements */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #212529;
  text-transform: capitalize;
}

.form-control:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Checkbox and Radio Button Styling */
.form-check {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.form-check-input {
  margin-top: 0.25rem;
  margin-left: -1.5rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-label {
  margin-left: 0.75rem;
  cursor: pointer;
  font-weight: 400;
  color: #212529;
  line-height: 1.5;
  text-transform: capitalize;
}

.form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
}

.form-check-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Radio Button Specific */
input[type="radio"] {
  margin-right: 0.75rem;
  margin-bottom: 0;
}

input[type="radio"] + label,
input[type="radio"] + span,
.form-check-input[type="radio"] + .form-check-label {
  margin-left: 0.75rem;
  display: inline-block;
  margin-bottom: 0;
  text-transform: capitalize;
}

/* Add spacing after radio button groups */
label:has(input[type="radio"]),
.form-check:has(input[type="radio"]) {
  margin-bottom: 1rem;
  display: block;
}

/* Checkbox Specific */
input[type="checkbox"] {
  margin-right: 0.75rem;
  margin-bottom: 0;
}

input[type="checkbox"] + label,
input[type="checkbox"] + span,
.form-check-input[type="checkbox"] + .form-check-label {
  margin-left: 0.75rem;
  display: inline-block;
  margin-bottom: 0;
  text-transform: capitalize;
}

/* Add spacing after checkbox groups */
label:has(input[type="checkbox"]),
.form-check:has(input[type="checkbox"]) {
  margin-bottom: 1rem;
  display: block;
}

/* Spacing for flex checkbox/radio containers - ensure each is on new line */
.flex.items-center:has(input[type="checkbox"]),
.flex.items-center:has(input[type="radio"]),
.inline-flex.items-center:has(input[type="checkbox"]),
.inline-flex.items-center:has(input[type="radio"]) {
  margin-bottom: 1rem;
  display: flex;
  width: 100%;
}

/* Spacing for checkbox/radio groups */
div:has(> input[type="checkbox"]),
div:has(> input[type="radio"]) {
  margin-bottom: 1.5rem;
}

/* Additional spacing after form-check elements */
.form-check {
  margin-bottom: 1rem !important;
}

.form-check:last-child {
  margin-bottom: 0 !important;
}

/* Ensure proper spacing between radio/checkbox groups */
.mb-4:has(.form-check),
.mb-5:has(.form-check) {
  margin-bottom: 1.5rem !important;
}

/* Section Headings */
h5.mb-3.mt-4,
h4.text-md {
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem !important;
  margin-top: 1.5rem !important;
  text-transform: capitalize;
}

/* Date of Birth Fields */
select[name="birth_month"],
input[name="birth_day"],
input[name="birth_year"] {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

select[name="birth_month"]:focus,
input[name="birth_day"]:focus,
input[name="birth_year"]:focus {
  border-color: #000000;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Enhanced Card Hover Effects */
.custom-block {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  border-color: #000000;
}

.custom-block-icon {
  transition: all 0.3s ease;
}

.custom-block:hover .custom-block-icon {
  transform: scale(1.05);
  background: #FF6B35;
  border-color: #FF6B35;
  color: white;
}

/* Improved Button Styles */
.custom-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 30px !important;
  border-radius: 8px !important;
  font-size: 16px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}

.custom-btn:hover {
  background: transparent !important;
  border: 2px solid var(--white-color) !important;
  color: var(--white-color) !important;
  transform: translateY(-2px);
}

/* Grey hover only when button is on white background (body or white sections) */
body:not(.hero) .custom-btn:hover,
.section-padding .custom-btn:hover,
.bg-white .custom-btn:hover,
section:not(.hero):not(.highlight) .custom-btn:hover {
  background: #6c757d !important;
  border: 2px solid #6c757d !important;
  color: #ffffff !important;
}

/* Buttons in cards - keep black text on hover */
.highlight .custom-btn:hover,
.custom-block .custom-btn:hover,
.card .custom-btn:hover {
  background: transparent !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  transform: translateY(-2px);
}

.custom-btn:active {
  transform: translateY(0);
}

/* Outline Button Improvements */
.btn-outline-secondary {
  padding: 12px 30px !important;
  border-radius: 8px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 16px;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  background: #ffffff !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-secondary:hover {
  background: transparent !important;
  border: 2px solid var(--white-color) !important;
  color: var(--white-color) !important;
  transform: translateY(-2px);
}

/* Grey hover only when button is on white background */
body:not(.hero) .btn-outline-secondary:hover,
.section-padding .btn-outline-secondary:hover,
.bg-white .btn-outline-secondary:hover,
section:not(.hero):not(.highlight) .btn-outline-secondary:hover {
  background: #6c757d !important;
  border: 2px solid #6c757d !important;
  color: #ffffff !important;
}

.btn-outline-secondary:active {
  transform: translateY(0);
}

/* Primary Outline Button */
.btn-outline-primary {
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600;
  border: 2px solid #000000 !important;
  color: #000000 !important;
  background: #ffffff !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
  background: transparent !important;
  border: 2px solid var(--white-color) !important;
  color: var(--white-color) !important;
  transform: translateY(-2px);
}

/* Grey hover only when button is on white background */
body:not(.hero) .btn-outline-primary:hover,
.section-padding .btn-outline-primary:hover,
.bg-white .btn-outline-primary:hover,
section:not(.hero):not(.highlight) .btn-outline-primary:hover {
  background: #6c757d !important;
  border: 2px solid #6c757d !important;
  color: #ffffff !important;
}

/* Button Groups - Better Alignment */
.d-flex.gap-3 {
  gap: 1rem !important;
  align-items: center;
  flex-wrap: wrap;
}

.d-flex.gap-3 .btn,
.d-flex.gap-3 .custom-btn {
  flex: 0 0 auto;
  margin: 0;
}

/* Full Width Buttons */
.btn.w-100,
.custom-btn.w-100 {
  width: 100%;
  min-width: auto;
  display: block;
}

/* Button with margin top */
.btn.mt-2,
.custom-btn.mt-2 {
  margin-top: 0.5rem !important;
}

.btn.mt-3,
.custom-btn.mt-3 {
  margin-top: 1rem !important;
}

/* Button spacing in forms */
form .d-flex.gap-3 {
  margin-top: 1.5rem;
  justify-content: flex-start;
}

/* Ensure buttons are properly aligned */
button.btn,
a.btn {
  text-decoration: none;
  cursor: pointer;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px !important;
  font-size: 14px;
  border-radius: 6px !important;
  min-width: auto;
}

.btn-lg {
  padding: 14px 35px !important;
  font-size: 18px;
  border-radius: 10px !important;
  min-width: 160px;
}

/* Button Focus States */
.custom-btn:focus,
.btn-outline-secondary:focus,
.btn-outline-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

/* Disabled Button States */
.custom-btn:disabled,
.btn-outline-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.custom-btn:disabled:hover,
.btn-outline-secondary:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Button in Cards */
.custom-block .custom-btn,
.custom-block-body .custom-btn {
  margin-top: 1.5rem;
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
  .custom-btn,
  .btn-outline-secondary {
    padding: 10px 24px !important;
    font-size: 15px;
    min-width: 120px;
  }
  
  .btn-lg {
    padding: 12px 28px !important;
    font-size: 16px;
    min-width: 140px;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    width: 100%;
  }
  
  .d-flex.gap-3 .btn,
  .d-flex.gap-3 .custom-btn {
    width: 100%;
    min-width: auto;
  }
}

/* Enhanced Navbar */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #000000;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
}

/* Improved Hero Section */
.hero-text h1 {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.vus-brand {
  color: #FF6B35 !important;
  font-weight: 700;
}

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

.arrow-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Better Card Shadows */
.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease;
}

.shadow-lg:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Improved Form Elements */
.form-control:focus,
.form-select:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
  outline: none;
}

/* Enhanced Language Switcher */
.language-switcher {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.language-switcher:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Better Section Spacing */
.section-padding {
  position: relative;
  padding-top: 60px !important;
  padding-bottom: 80px !important;
}

/* Improved Footer */
.site-footer {
  background: #f5f5f5 !important;
  padding-top: 80px !important;
  padding-bottom: 40px !important;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e0e0e0;
}

.site-footer-title {
  color: #000000 !important;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer .text-white {
  color: #000000 !important;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.site-footer-link {
  color: #000000 !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer-link:hover {
  color: #000000 !important;
  text-decoration: underline;
}

/* Footer Menu Links */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-item {
  margin-bottom: 0.75rem;
}

.footer-menu-link {
  color: #000000 !important;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 4px 0;
  position: relative;
}

.footer-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #000000;
  transition: width 0.3s ease;
}

.footer-menu-link:hover {
  color: #000000 !important;
  padding-left: 10px;
  text-decoration: underline;
}

.footer-menu-link:hover::before {
  width: 8px;
}

/* Social Icons */
.social-icon {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icon-link {
  background: #f5f5f5 !important;
  border: 2px solid #000000;
  border-radius: 50% !important;
  width: 45px !important;
  height: 45px !important;
  line-height: 41px !important;
  text-align: center;
  color: #000000 !important;
  font-size: 18px !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-link:hover {
  background: #000000 !important;
  border-color: #000000;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Bottom */
.site-footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.copyright-text {
  color: #000000 !important;
  font-size: 14px;
  margin: 0;
}

/* Footer Icons */
.site-footer .bi-geo-alt,
.site-footer .bi-envelope {
  color: #000000;
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Responsive Footer */
@media (max-width: 991px) {
  .site-footer {
    padding-top: 60px;
    padding-bottom: 30px;
  }
  
  .site-footer-title {
    font-size: 18px;
    margin-bottom: 1rem;
  }
  
  .site-footer .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .social-icon {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 30px;
    padding-bottom: 25px;
    margin-top: 40px;
  }
  
  .site-footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  .copyright-text {
    text-align: center;
    font-size: 13px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Better Badge Styles */
.badge {
  padding: 6px 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 20px;
}

/* Enhanced Card Padding - More space from borders */
.card-body {
  padding: 2.5rem 2.5rem !important;
}

.custom-block .card-body {
  padding: 3rem 2.5rem !important;
}

/* Add padding to custom-block cards */
.custom-block {
  padding: 2.5rem 2.5rem !important;
}

.custom-block.p-4 {
  padding: 2.5rem 2rem !important;
}

.custom-block.p-5 {
  padding: 3.5rem 3rem !important;
}

/* Add padding to custom-block-body */
.custom-block-body {
  padding: 2.5rem 2.5rem !important;
}

/* Job listing cards - more padding */
.custom-block-full .custom-block-body {
  padding: 2.5rem 2.5rem !important;
}

/* Filter cards */
.custom-block.bg-white {
  padding: 2.5rem 2rem !important;
}

/* Text spacing in cards - ensure text has space from borders */
.custom-block p,
.custom-block h5,
.custom-block h4,
.custom-block h3,
.custom-block h2,
.custom-block-body p,
.custom-block-body h5,
.custom-block-body h4,
.custom-block-body h3,
.custom-block-body h2 {
  margin-bottom: 1rem;
  padding-left: 0;
  padding-right: 0;
}

.custom-block h5,
.custom-block-body h5 {
  margin-top: 0.5rem;
}

.custom-block p,
.custom-block-body p {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Ensure buttons have space from text */
.custom-block .custom-btn,
.custom-block-body .custom-btn {
  margin-top: 1rem;
}

/* Enhanced Custom Block Icon */
.custom-block-icon-wrap {
  margin-bottom: 20px;
}

.custom-block-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000000;
  color: white;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #000000;
  transition: all 0.3s ease;
}

/* Better Text Styling */
.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--p-color);
}

/* Improved Call to Action Section */
.call-to-action {
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.call-to-action .container {
  position: relative;
  z-index: 1;
}

/* Better Highlight Section */
.highlight {
  background: #f5f5f5;
  margin-top: 40px;
}

.highlight .row {
  margin-top: 20px;
}

/* Improved Responsive Design */
@media (max-width: 768px) {
  .custom-block:hover {
    transform: translateY(-4px);
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

/* Loading Animation for Cards */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-block {
  animation: slideInUp 0.6s ease;
}

.custom-block:nth-child(1) { animation-delay: 0.1s; }
.custom-block:nth-child(2) { animation-delay: 0.2s; }
.custom-block:nth-child(3) { animation-delay: 0.3s; }

/* Better Link Styles */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* Improved Table Styles */
.table {
  border-radius: 10px;
  overflow: hidden;
}

/* Better Input Group Styles */
.input-group .form-control:focus {
  z-index: 3;
}

/* Enhanced Modal Styles */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Better Alert Styles */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Improved Pagination */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 4px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: #000000;
  color: white;
  border-color: #000000;
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

