/* VFD Tanzania Custom Styles */

/* ================================
   Navbar
   ================================ */

/* Solid white navbar */
.home9 .navigation {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Nav link spacing */
.home9 .navigation .navbar #mainmenu ul .nav-item .nav-link {
  padding: 22px 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Ensure brand image is not inverted */
.home9 .navigation .navbar .navbar-brand img {
  filter: none;
}

/* Hover/active underline */
.home9 .navigation .navbar #mainmenu ul .nav-item .nav-link:hover::before,
.home9 .navigation .navbar #mainmenu ul .nav-item .nav-link.active::before {
  background: #0250c5;
}

/* Vertical center all nav items */
.home9 .navigation .navbar #mainmenu ul.navbar-nav {
  align-items: center;
}

/* Right action buttons group */
.home9 .navigation .navbar #mainmenu ul.nav-actions {
  align-items: center;
  margin-left: 0;
}

/* Apply Now - Primary CTA button in navbar */
.nav-cta-btn {
  background: #0250c5 !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.nav-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(2, 80, 197, 0.3);
}

/* No underline effect on CTA button */
.home9 .navigation .navbar #mainmenu ul .nav-item.nav-cta .nav-link::before {
  display: none !important;
}

/* Language switcher */
.lang-switch {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px !important;
  background: transparent !important;
  color: #242424 !important;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-left: 8px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  border-color: #0250c5;
  color: #0250c5 !important;
}

.lang-switch .fa-globe {
  margin-right: 4px;
}

.lang-switch.dropdown-toggle::after {
  margin-left: 6px;
}

/* Language dropdown */
.nav-item.dropdown .dropdown-menu {
  min-width: 150px;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 10px;
}

.nav-item.dropdown .dropdown-item {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
}

.nav-item.dropdown .dropdown-item:hover {
  background: #0250c5;
  color: #fff;
}

.nav-item.dropdown .dropdown-item .flag-icon {
  margin-right: 10px;
  font-size: 16px;
}

/* Login button */
.login-btn {
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px !important;
  background: transparent !important;
  color: #0250c5 !important;
  border: 1px solid #0250c5;
  border-radius: 5px;
  margin-left: 5px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #0250c5 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.login-btn .fa-sign-in-alt {
  margin-right: 4px;
}

/* Medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
  .home9 .navigation .navbar #mainmenu ul .nav-item .nav-link {
    padding: 22px 8px;
    font-size: 13px;
  }
  .nav-cta-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }
  .lang-switch,
  .login-btn {
    font-size: 12px;
    padding: 5px 10px !important;
  }
}

/* Mobile nav */
@media (max-width: 991px) {
  .nav-cta-btn {
    display: inline-block !important;
    margin: 5px 10px;
    text-align: center;
  }
  .lang-switch,
  .login-btn {
    margin: 5px 10px;
  }
}

/* ================================
   WhatsApp Widget
   ================================ */
.whatsapp-widget {
  position: fixed;
  bottom: 80px;
  right: 30px;
  z-index: 9999;
}

.whatsapp-widget a {
  display: block;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-widget a:hover {
  transform: scale(1.1);
  color: #fff;
}

/* ================================
   Pricing Cards
   ================================ */
.pricing-cards {
  padding: 80px 0;
}

.pricing-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 2px solid #0250c5;
}

.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: 20px;
  right: -30px;
  background: #0250c5;
  color: #fff;
  padding: 5px 40px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
}

.pricing-card .plan-name {
  font-size: 24px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 15px;
}

.pricing-card .plan-price {
  font-size: 42px;
  font-weight: 700;
  color: #0250c5;
  margin-bottom: 10px;
}

.pricing-card .plan-period {
  color: #777;
  font-size: 14px;
  margin-bottom: 25px;
}

.pricing-card .additional-fees {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
}

.pricing-card .additional-fees p {
  margin: 5px 0;
  font-size: 13px;
  color: #555;
}

.pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.pricing-card .features-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #555;
  padding-left: 25px;
  position: relative;
}

.pricing-card .features-list li:last-child {
  border-bottom: none;
}

.pricing-card .features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #0250c5;
  position: absolute;
  left: 0;
  top: 10px;
}

/* ================================
   VFD Logo Text
   ================================ */
.vfd-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #0250c5;
}

/* ================================
   About - Equal Height Feature Boxes
   ================================ */
section.about .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

section.about .row>[class*="col-"] {
  display: flex !important;
  margin-bottom: 30px;
}

section.about .box {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  background: #fff;
  border-radius: 10px;
}

section.about .inner-box {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
}

section.about .inner-box .text {
  flex: 1 !important;
  margin-bottom: 0;
}

/* ================================
   How To Use Section
   ================================ */
.howtouse-section {
  padding: 80px 0;
  position: relative;
  background: #f8f9fa;
}

.howtouse-section .row {
  display: flex;
  flex-wrap: wrap;
}

.howtouse-section .row>[class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.howtouse-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.howtouse-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.howtouse-icon {
  width: 80px;
  min-width: 80px;
  height: 80px;
  background: #0250c5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  flex-shrink: 0;
}

.howtouse-icon i {
  font-size: 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1;
}

.howtouse-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 15px;
}

.howtouse-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0;
}

/* ================================
   Apply Page Styles
   ================================ */

/* Apply Page Hero */
.apply-hero {
  background: #0250c5;
  padding: 100px 0 50px;
  margin-top: 70px;
}

.apply-hero-title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.apply-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Procedure Section */
.procedure-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.procedure-intro {
  text-align: center;
  margin-bottom: 30px;
}

.procedure-intro .section-title {
  font-size: 32px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 20px;
}

.procedure-desc {
  color: #666;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.procedure-step {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.procedure-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 60px;
  height: 60px;
  background: #0250c5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.procedure-step h4 {
  font-size: 20px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 15px;
}

.procedure-step p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Application Form Section */
.application-form-section {
  padding: 60px 0;
  background: #fff;
}

.application-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0250c5;
  display: inline-block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.required-star {
  color: #dc3545;
  font-weight: 700;
}

.optional-text {
  color: #999;
  font-weight: 400;
  font-size: 12px;
}

/* File Upload Box */
.file-upload-box {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fafafa;
  cursor: pointer;
}

.file-upload-box:hover {
  border-color: #0250c5;
  background: #f0f7ff;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-upload-label i {
  font-size: 36px;
  color: #0250c5;
}

.file-upload-label span {
  color: #555;
  font-size: 14px;
}

.file-upload-label small {
  color: #999;
  font-size: 12px;
}

.download-sample {
  display: inline-block;
  margin-top: 10px;
  color: #0250c5;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-sample:hover {
  color: #0250c5;
  text-decoration: underline;
}

.download-sample i {
  margin-right: 5px;
}

.submit-btn {
  padding: 15px 50px !important;
  font-size: 16px;
}

.submit-btn i {
  margin-right: 8px;
}

/* Apply page responsive */
@media (max-width: 768px) {
  .apply-hero {
    padding: 100px 0 60px;
  }
  .apply-hero-title {
    font-size: 28px;
  }
  .apply-hero-subtitle {
    font-size: 15px;
  }
  .application-form-wrapper {
    padding: 30px 20px;
  }
  .procedure-intro .section-title {
    font-size: 24px;
  }
}

/* ================================
   Compact Hero Section
   ================================ */
.home9 .hero-area.compact-hero {
  padding: 120px 0px 70px;
  overflow: visible !important;
}

.home9 .hero-area.compact-hero .right-img::after {
  display: none !important;
  animation: none !important;
}

@media (max-width: 991px) {
  .home9 .hero-area.compact-hero {
    padding: 120px 0px 60px;
  }
}

/* Hero image full width no cutoff */
.home9 .hero-area.compact-hero .hero-img-custom {
  transform: none;
  overflow: visible;
}

.home9 .hero-area.compact-hero .hero-img-custom .img {
  width: 100%;
  max-width: 100%;
}

.home9 .hero-area,
.home9 .hero-area.compact-hero {
  overflow: visible !important;
}

@media (max-width: 991px) {
  .home9 .hero-area.compact-hero .hero-img-custom {
    margin-top: 30px;
  }
}

/* Hero Composite Image Layout */
.hero-img-composite {
  transform: none;
  overflow: visible;
}

.hero-composite-wrapper {
  position: relative;
  width: 100%;
  /* Use padding-bottom for consistent aspect ratio across browsers */
  padding-bottom: 90%;
}

/* All hero images share absolute positioning */
.hero-composite-wrapper img {
  position: absolute;
  display: block;
  max-width: none;
}

/* Web dashboard - main backdrop, top-left (enlarged) */
.hero-composite-wrapper .hero-img-web {
  top: 0;
  left: 0;
  width: 85%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

/* Person - hero focus, right side */
.hero-composite-wrapper .hero-img-person {
  right: 0;
  bottom: 0;
  width: auto;
  height: 92%;
  max-width: 52%;
  z-index: 2;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.10));
}

/* Phone - small accent, bottom-left overlapping dashboard */
.hero-composite-wrapper .hero-img-sim {
  bottom: 0;
  left: 10%;
  width: auto;
  height: 58%;
  z-index: 3;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.18));
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-composite-wrapper {
    padding-bottom: 80%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 88%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 62%;
  }
}

/* Tablet landscape */
@media (max-width: 991px) {
  .hero-img-composite {
    margin-top: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-composite-wrapper {
    padding-bottom: 82%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 82%;
  }
  .hero-composite-wrapper .hero-img-person {
    height: 88%;
    max-width: 50%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 56%;
    left: 8%;
  }
}

/* Tablet portrait */
@media (max-width: 767px) {
  .hero-img-composite {
    margin-top: 30px;
    max-width: 500px;
  }
  .hero-composite-wrapper {
    padding-bottom: 85%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 80%;
    border-radius: 8px;
  }
  .hero-composite-wrapper .hero-img-person {
    height: 86%;
    max-width: 48%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 54%;
    left: 6%;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .hero-img-composite {
    margin-top: 25px;
    max-width: 100%;
  }
  .hero-composite-wrapper {
    padding-bottom: 88%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 78%;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  }
  .hero-composite-wrapper .hero-img-person {
    height: 84%;
    max-width: 46%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 52%;
    left: 4%;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-composite-wrapper {
    padding-bottom: 92%;
  }
  .hero-composite-wrapper .hero-img-web {
    width: 76%;
  }
  .hero-composite-wrapper .hero-img-person {
    height: 82%;
    max-width: 46%;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 50%;
    left: 2%;
  }
}

/* ================================
   Global Section Spacing Reduction
   ================================ */

/* Reduce all section vertical padding from 110-120px to 60px */
.home9 .about,
.home9 .feature,
.home9 .testimonial-area,
.home9 .faq,
.home9 .contact {
  padding: 60px 0 !important;
}

.home9 .pricing-cards {
  padding: 60px 0;
}

.home9 .howtouse-section {
  padding: 50px 0;
}

.home9 .howtouse-section .section-title.extra {
  margin-bottom: 20px;
}

.home9 .subscribe-section {
  padding: 40px 0;
}

/* Reduce section title bottom margins */
.home9 .section-title {
  margin-bottom: 30px !important;
}

.home9 .section-title.extra {
  margin-bottom: 30px !important;
}

/* Footer spacing */
.home9 .footer {
  background: #0250c5 !important;
  padding: 60px 0 0 !important;
}

.home9 .footer .shape2 {
  display: none;
}

.home9 .footer .copy-bg {
  margin-top: 0 !important;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding: 18px 0;
}

.home9 .footer .copy-bg p,
.home9 .footer .copy-bg a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
}

.home9 .footer .copy-bg a:hover {
  color: #fff !important;
}

/* Footer top area */
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: none;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-brand img,
.home9 .footer .footer-brand img {
  height: 45px !important;
  margin-bottom: 15px !important;
  filter: none !important;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  max-width: none !important;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.7;
  max-width: 300px;
  margin: 0;
}

.footer-links-col {
  min-width: 120px;
}

.footer-links-col h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

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

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

.footer-links-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-col ul li a:hover {
  color: #fff;
}

.footer-contact-col {
  min-width: 200px;
}

.footer-contact-col h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.footer-contact-item i {
  color: rgba(255,255,255,0.9);
  width: 16px;
  text-align: center;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Download column in footer */
.footer-download-col {
  min-width: 160px;
}

.footer-download-col h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-download-col a {
  display: block;
  margin-bottom: 12px;
}

.footer-download-col a img {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-download-col a:hover img {
  transform: scale(1.05);
}

.footer-contact-item a:hover {
  color: #fff;
}

/* Footer social icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: #0250c5;
  color: #fff;
}

/* (download strip removed - badges now in footer column) */

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-download-strip .download-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-app-badges {
    justify-content: center;
  }
}

/* ================================
   UX fixes (2026-04)
   ================================ */

/* AOS safety: if JS never fires aos-animate within 2s, force-show */
@keyframes aos-safety-show { to { opacity: 1; transform: none; } }
[data-aos]:not(.aos-animate) {
  animation: aos-safety-show 0.01s linear 2s forwards;
}

/* Reduce apply hero on desktop - less wasted space */
.apply-hero {
  padding: 70px 0 50px !important;
}
.apply-hero-title {
  font-size: 36px;
}
.apply-hero-subtitle {
  font-size: 16px;
}

/* Mobile hero title clipping + readable sizes */
@media (max-width: 575px) {
  .home9 .hero-area .left-content,
  .hero-area .left-content,
  .home9 .hero-area .left-content .content,
  .hero-area .left-content .content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .home9 .hero-area .left-content .content .title,
  .hero-area .left-content .content .title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal !important;
    padding-right: 5px;
  }
  .home9 .hero-area .left-content .content .subtitle,
  .hero-area .left-content .content .subtitle {
    font-size: 13px !important;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .apply-hero {
    padding: 50px 0 40px !important;
    margin-top: 60px;
  }
  .apply-hero-title {
    font-size: 22px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .apply-hero-subtitle {
    font-size: 13px;
    word-wrap: break-word;
  }
  .section-title .title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .section-title p {
    font-size: 13px !important;
    padding: 0 5px;
  }
  .procedure-intro .section-title {
    font-size: 20px !important;
  }
  /* Universal text overflow safety */
  h1, h2, h3, h4, h5, p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Mobile/tablet hero: put text FIRST, then image, constrain composite */
@media (max-width: 991px) {
  .home9 .hero-area.compact-hero .row {
    flex-direction: column;
  }
  .home9 .hero-area.compact-hero .col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .home9 .hero-area.compact-hero .order-first.order-lg-last {
    order: 2 !important;
  }
  .home9 .hero-area.compact-hero .col-lg-6.d-flex.align-self-center {
    order: 1 !important;
    margin-bottom: 30px;
  }
  .hero-img-composite {
    max-width: 100% !important;
    width: 100% !important;
    margin: 30px auto 0 !important;
  }
  .hero-composite-wrapper {
    padding-bottom: 62% !important;
    max-width: 680px;
    margin: 0 auto;
  }
  /* Scale up the composite elements to fill the larger container */
  .hero-composite-wrapper .hero-img-web {
    width: 80% !important;
  }
  .hero-composite-wrapper .hero-img-person {
    height: 94% !important;
    max-width: 50% !important;
  }
  .hero-composite-wrapper .hero-img-sim {
    height: 62% !important;
    left: 5% !important;
  }
}

@media (max-width: 575px) {
  /* Prevent page-wide horizontal overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .hero-img-composite {
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-composite-wrapper {
    max-width: 420px !important;
    padding-bottom: 70% !important;
  }
  .home9 .hero-area.compact-hero {
    padding: 80px 0 30px !important;
  }
  /* Ensure containers have side padding so text doesn't hit the edge */
  .container,
  .container-fluid {
    padding-left: 25px !important;
    padding-right: 25px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  /* Stronger overflow safety */
  body > *, section, .hero-area, .apply-hero, footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  /* Neutralize negative row margins that cause overflow */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Make images/shape decorations not overflow viewport */
  section img.shape, section img.shape2 {
    max-width: 50%;
    height: auto;
  }
}

/* About section - ensure adequate contrast (dark text on light background) */
section.about {
  background: #ffffff;
}
section.about .section-title .title,
section.about .box .inner-box h4,
section.about .box .inner-box .title {
  color: #242424 !important;
}
section.about .section-title p,
section.about .box .inner-box .text {
  color: #555 !important;
}

/* Keep About card text readable on hover (home9 fills the card with blue) */
section.about .box:hover .inner-box h4,
section.about .box:hover .inner-box .title,
section.about .box:hover .inner-box .text {
  color: #ffffff !important;
}
section.about .box:hover .inner-box .icon i {
  background: #ffffff !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Prevent WhatsApp/back-to-top overlap on mobile */
@media (max-width: 575px) {
  .whatsapp-widget {
    bottom: 20px !important;
    right: 20px !important;
  }
  .bottomtotop {
    bottom: 80px !important;
    right: 20px !important;
  }
}

/* ================================
   Apply Page v2 — Wizard, Review,
   Preparation, Trust, A11y
   ================================ */

/* Hero trust badges */
.apply-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.apply-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.apply-badge i { color: #aee1ff; }

/* Preparation card */
.prep-card {
  margin-top: 40px;
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 10px 40px rgba(2, 80, 197, 0.06);
}
.prep-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.prep-card-head i {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #0250c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.prep-card-head h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #242424;
}
.prep-card-head p {
  margin: 0;
  color: #666;
  font-size: 14px;
  grid-column: 2;
}
.prep-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.prep-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
}
.prep-list li i {
  color: #0250c5;
  width: 18px;
  text-align: center;
}
.prep-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0250c5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid #eef2f8;
  padding-top: 14px;
  margin-top: 6px;
  width: 100%;
}
.prep-download:hover { color: #013b96; text-decoration: underline; }

/* Wizard stepper */
.wizard-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  counter-reset: step;
}
.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #e0e6ef;
  z-index: 0;
}
.wizard-step.is-done:not(:last-child)::after { background: #0250c5; }
.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e6ef;
  color: #9aa4b2;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  z-index: 1;
  transition: all 0.2s ease;
  font-size: 14px;
}
.wizard-step.is-active .wizard-step-circle {
  background: #0250c5;
  border-color: #0250c5;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 80, 197, 0.15);
}
.wizard-step.is-done .wizard-step-circle {
  background: #0250c5;
  border-color: #0250c5;
  color: #fff;
}
.wizard-step.is-done .wizard-step-circle::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
.wizard-step.is-done .wizard-step-circle { font-size: 0; }
.wizard-step.is-done .wizard-step-circle::before { font-size: 14px; }
.wizard-step-label {
  font-size: 13px;
  color: #6b7380;
  font-weight: 500;
  text-align: center;
}
.wizard-step.is-active .wizard-step-label,
.wizard-step.is-done .wizard-step-label {
  color: #242424;
  font-weight: 600;
}

/* Form steps */
.form-step {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
}
.form-step[hidden] { display: none; }
.form-section-help {
  color: #6b7380;
  font-size: 14px;
  margin: -6px 0 18px;
}

/* Field states */
.form-group .input-field.is-invalid,
.form-group input.is-invalid,
.form-group select.is-invalid {
  border-color: #dc3545 !important;
  background: #fff6f7;
}

/* Styled native select — keeps native mobile UX, looks consistent on desktop */
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b7380;
  border-bottom: 2px solid #6b7380;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.select-wrap:focus-within::after { border-color: #0250c5; }
.select-wrap select.input-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-color: #fff;
  cursor: pointer;
  width: 100%;
}
.select-wrap select.input-field:invalid { color: #9aa4b2; }
.select-wrap select.input-field option { color: #242424; }
.select-wrap select.input-field::-ms-expand { display: none; }
.field-hint {
  display: block;
  color: #8a94a3;
  font-size: 12px;
  margin-top: 6px;
}
.field-error {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}
.field-error:empty { min-height: 0; }

/* File upload — richer states */
.file-upload-box.is-dragging {
  border-color: #0250c5;
  background: #e9f1ff;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.file-chip > i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f0ff;
  color: #0250c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.file-chip-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.file-chip-meta strong {
  color: #242424;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-chip-meta small { color: #8a94a3; font-size: 12px; }
.file-chip-remove {
  background: none;
  border: 0;
  color: #8a94a3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.file-chip-remove:hover { color: #dc3545; background: #ffecee; }

/* Review step */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.review-block {
  background: #f8fafd;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 18px 20px;
}
.review-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6edf7;
}
.review-block-head h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0250c5;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.review-edit {
  background: none;
  border: 0;
  color: #0250c5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.review-edit:hover { background: #e8f0ff; }
.review-block dl { margin: 0; }
.review-block dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e6edf7;
  font-size: 14px;
}
.review-block dl > div:last-child { border-bottom: 0; }
.review-block dt { color: #6b7380; font-weight: 500; margin: 0; }
.review-block dd { color: #242424; margin: 0; font-weight: 600; word-break: break-word; }

/* Consent */
.consent-box {
  background: #fffdf5;
  border: 1px solid #f3e6b8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0250c5;
  flex-shrink: 0;
}

/* Wizard navigation bar */
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid #eef2f8;
}
.wizard-nav-spacer { flex: 1; }
.wizard-nav .mybtn3 {
  padding: 12px 28px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mybtn-outline {
  background: #fff !important;
  color: #0250c5 !important;
  border: 2px solid #0250c5 !important;
}
.mybtn-outline:hover {
  background: #0250c5 !important;
  color: #fff !important;
}

/* Alert dismissible */
.alert.alert-dismissible {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 40px;
  position: relative;
}
.alert .alert-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
}
.alert .alert-close:hover { opacity: 1; }

/* Success state */
.apply-success-section {
  padding: 60px 0 80px;
  background: #f8fafd;
}
.apply-success-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}
.apply-success-card .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #28a745;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.apply-success-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 10px;
}
.apply-success-card > p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.success-timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 520px;
  text-align: left;
}
.success-timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.success-timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -10px;
  width: 2px;
  background: #e6edf7;
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa4b2;
  font-size: 13px;
  z-index: 1;
}
.timeline-dot.done { background: #28a745; border-color: #28a745; color: #fff; }
.timeline-dot.current {
  background: #0250c5;
  border-color: #0250c5;
  box-shadow: 0 0 0 4px rgba(2, 80, 197, 0.18);
}
.success-timeline strong {
  display: block;
  color: #242424;
  font-size: 15px;
}
.success-timeline small {
  display: block;
  color: #6b7380;
  font-size: 13px;
  margin-top: 2px;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .prep-card { padding: 22px 18px; }
  .prep-list { grid-template-columns: 1fr; }
  .wizard-step-label { font-size: 11px; }
  .wizard-step-circle { width: 32px; height: 32px; font-size: 13px; }
  .wizard-step:not(:last-child)::after { top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px); }
  .review-grid { grid-template-columns: 1fr; }
  .review-block dl > div { grid-template-columns: 100px 1fr; font-size: 13px; }
  .apply-success-card { padding: 36px 22px; }
  .apply-success-card h2 { font-size: 22px; }
  .wizard-nav { flex-wrap: wrap; }
  .wizard-nav .mybtn3 { flex: 1; justify-content: center; }
  .apply-hero-badges { gap: 8px; }
  .apply-badge { font-size: 12px; padding: 6px 10px; }
}
@media (max-width: 480px) {
  .wizard-step-label { display: none; }
  .wizard-step:not(:last-child)::after { top: 16px; }
}
