header .dropdown li.nav-link {
  padding: 0 !important;
}

header .dropdown .dropdownNavLink {
  display: block !important;
}

.contact-google-map {
  margin: 100px 0;
}

.google-map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.google-map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.logo_hero {
  z-index: 100;
}

.logo_hero_onscroll {
  width: 90px;
  height: auto;
}

.alert-sm {
  font-size: 15px !important;
}

.leftSmallImage_contaienr {
  height: auto;
}

.leftSmallImage_contaienr img {
  width: 100%;
  height: auto;
}

.salary_table table[style] {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 20px) !important;
  margin: 0 10px 24px;
  box-sizing: border-box;
}

.salary_table table td {
	width: 100% !important; 
  box-sizing: border-box;
  white-space: nowrap;
}

.salary_table table tbody, .salary_table tfoot, .salary_table th, .salary_table thead
.salary_table table tbody tr{
	width: 100% !important;
}

/* Remove left margin on every 1st table in each row */
.salary_table table[style]:nth-of-type(3n + 1) {
  margin-left: 0;
}

/* Remove right margin on every 3rd table in each row */
.salary_table table[style]:nth-of-type(3n) {
  margin-right: 0;
}

.salary_table table {
  font-size: 16px; /* reset font size for table contents */
}

/* Responsive: stack on small screens */
@media (max-width: 992px) {
  .salary_table table {
    width: calc(50% - 12px);
  }
	.salary_table table[style] {
  width: calc(50% - 20px) !important;
}

  .salary_table table:nth-of-type(3n) {
    margin-right: 24px; /* reset for smaller viewports */
  }

  .salary_table table:nth-of-type(2n) {
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .salary_table table {
    width: 100%;
    margin-right: 0;
  }
}

.salary_table table tr:first-child {
  background-color: var(--table-th);
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
}

.salary_table table tr:first-child td {
  font-weight: 700;
  color: var(--black);
}

.salary_table td,
.salary_table table tr:first-child {
  border: 1px solid var(--table-border);
}

.salary_table table {
  width: 100% !important;
}

.salary_table tr td {
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black1);
  padding: 10px;
  width: 50%;
}

.border_ligtPrimary {
  box-shadow: 0px 0px 14px 0px #0000000a, 0px 4px 8px 3px #0000000d;
  margin-top: 84px;
}

.border_ligtPrimary table tr td {
  width: 50%;
  border: 1px solid #f2cbc7;
  padding: clamp(24px, 5vw, 44px) clamp(16px, 3vw, 24px);
}

.border_ligtPrimary table tr:first-child td {
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.border_ligtPrimary table tr td a {
  color: var(--primary-red);
  font-weight: 500;
  text-decoration: underline;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.border_ligtPrimary table tr td h5 {
  color: var(--black);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.border_ligtPrimary table tr td p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-black1);
  font-weight: 400;
  text-align: center;
}

@media (max-width: 992px) {
  .border_ligtPrimary table tr td {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.truking_industry_links_content_container blockquote {
  background: var(--tint2);
  width: max-content;
  position: relative;
  padding: 12px 30px 12px 12px;
  margin: 20px 0;
}

.truking_industry_links_content_container blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-red);
}

.truking_industry_links_content_container blockquote h6 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
}

.truking_industry_links_content_container blockquote p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-black1);
}

.custom-masonry-gallery {
  padding: 40px 0;
}

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
}

.masonry-grid-item {
  width: calc(33.333% - 1rem);
  margin-left: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .masonry-grid {
    display: block;
    margin: 0;
    height: auto !important;
  }

  .masonry-grid-item {
    position: relative !important;
    width: calc(50% - 1rem);
    margin: 20px 0;
    top: 0 !important;
  }
}
@media (max-width: 480px) {
  .masonry-grid {
    display: block;
    margin: 0;
    height: auto !important;
  }

  .masonry-grid-item {
    position: relative !important;
    width: 100%;
  }
}

.video-gallery-pagination,
#gallery-pagination {
  margin-top: 10px;
  text-align: center;
}

.video-gallery-pagination .button,
#gallery-pagination .button {
  margin: 0 4px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #110d78;
  background: white;
  color: #110d78;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.video-gallery-pagination .button:hover:not(:disabled):not(.current),
#gallery-pagination .button:hover:not(:disabled):not(.current) {
  background-color: #d61601;
  color: white;
}

.video-gallery-pagination .button.current,
#gallery-pagination .button.current {
  background-color: #d61601;
  color: white;
  cursor: default;
  border-color: #d61601;
}

.video-gallery-pagination .button:disabled,
#gallery-pagination .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.video-gallery-container {
  padding: 40px 0;
  text-align: center;
}

/* Responsive iframe wrapper with 16:9 aspect ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Default 16:9 ratio */
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

/* Make iframe fill the wrapper */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.has-dropdown .dropdown {
  display: block;
}

/* On large screens, use fixed height instead of aspect ratio */
@media (min-width: 992px) {
  .custom-masonry-gallery {
    padding: 84px 0;
  }

  .video-gallery-container {
    padding: 84px 0;
  }

  .video-wrapper {
    height: 450px !important;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .nav_bar_large {
    padding: 0 !important;
  }

  .single-training-page .paragraph_description,
  .single-training-page .home_page_why_choose_content_containerPadding {
    padding-top: 0 !important;
    margin-top: 0 !important;
    height: auto !important;
  }

  .single-training-page .home_page_whyChoose_container .row:nth-child(2) {
    margin-top: 0 !important;
  }

  .single-training-page .home_page_whyChoose_container .swiper-pagination {
    margin-bottom: 20px !important;
  }

  .single-training-page .left_class_div_container {
    margin-top: 120px !important;
  }

  .single-training-page .philosophy_description_container {
    padding-bottom: 20px !important;
  }

  .salary_table {
    width: 100%;
    overflow-x: auto;
    display: block;
  }

  .salary_table > table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 10px 0 !important;
  }

  .salary_table > table td,
  .salary_table > table th {
    white-space: nowrap;
    word-break: break-word;
  }

  .single-trucking-info-page .driving_benefit_container {
    gap: 0;
  }

  .single-trucking-info-page .driving_benefit_container .image_container {
    margin-bottom: 15px !important;
  }

  .border_ligtPrimary {
    box-shadow: 0px 0px 14px 0px #0000000a, 0px 4px 8px 3px #0000000d;
    margin-top: 50px;
  }

  .border_ligtPrimary table tr td {
    width: 50%;
    border: 1px solid #f2cbc7;
    padding: clamp(24px, 5vw, 44px) clamp(16px, 3vw, 24px);
  }

  .border_ligtPrimary table tr:first-child td {
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }

  .border_ligtPrimary table tr td a {
    color: var(--primary-red);
    font-weight: 500;
    text-decoration: underline;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .border_ligtPrimary table tr td h5 {
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }

  .border_ligtPrimary table tr td p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-black1);
    font-weight: 400;
    text-align: center;
  }

  .video-gallery-container {
    padding-bottom: 20px;
  }

  .video-gallery-container .video-wrapper {
    margin-bottom: 20px;
  }

  .border_ligtPrimary {
    box-shadow: 0px 0px 14px 0px #0000000a, 0px 4px 8px 3px #0000000d;
    margin-top: 50px;
  }
  .border_ligtPrimary .table-to-div .table-row {
    display: flex;
    border: 1px solid #f2cbc7;
    flex-direction: column;
  }
  .border_ligtPrimary .table-to-div .table-row .table-cell {
    width: 100%;
    padding: clamp(24px, 5vw, 44px) clamp(16px, 3vw, 24px);
  }
  .border_ligtPrimary .table-to-div .table-row .table-cell:first-child {
    border-right: 1px solid #f2cbc7;
  }

  .border_ligtPrimary .table-to-div .table-row:first-child .table-cell {
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .border_ligtPrimary .table-to-div .table-row .table-cell:first-child {
    border-bottom: 1px solid #f2cbc7;
    border-right: 0;
  }

  .border_ligtPrimary .table-to-div .table-row .table-cell a {
    color: var(--primary-red);
    font-weight: 500;
    text-decoration: underline;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .border_ligtPrimary .table-to-div .table-row .table-cell h5 {
    color: var(--black);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }

  .border_ligtPrimary .table-to-div .table-row .table-cell p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-black1);
    font-weight: 400;
    text-align: center;
  }

  .dropdownNavLink {
    display: block !important;
  }

  .contact-google-map {
    margin-top: 0;
    margin-bottom: 50px;
  }

  .rightImageContact {
    padding-top: 0 !important;
    padding-bottom: 30px !important;
  }

  .homeSlider_pagination .swiper-button-nextHome {
    right: 15px;
  }

  .homeSlider_pagination .swiper-button-prevHome {
    right: 70px;
  }
}

.has-dropdown .dropdown {
  position: absolute;
  /* top: 150%; */
  top: 100%;
  left: 0;
  background: var(--white-text);
  z-index: 1000;
  list-style: none;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
  width: max-content;
}

/* hover  */
.nav-item {
  /* border: 1px solid var(--primary-indigo); */
  padding-bottom: 10px;
}

.logo_hero {
  z-index: 310;
}

@media (min-width: 992px) {
  .has-dropdown:hover .dropdown {
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    transform: translateY(0px) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 992px) {
  .navbar {
    width: max-content !important;
    left: auto !important;
    right: 0;
  }
  .navbar.nav_scrolled {
    width: 100% !important;
    right: auto;
    left: 0 !important;
  }
  .logo_hero {
    z-index: 300;
  }

  .nav-item {
    padding-bottom: 0px;
  }

  /* .has-dropdown .dropdown {
    height: auto;
    overflow: visible;
    visibility: visible;
    transform: translateY(0px);
    opacity: 1;
  } */

  .has-dropdown .dropdown,
  .has-dropdown .nav-link.active .fa-angle-down {
    transition: all 0.5s ease-in-out;
  }

  .has-dropdown .dropdown.show {
    position: static;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    transform: translateY(0px) !important;
    opacity: 1 !important;
    background-color: var(--offWhite2-text);
  }

  .has-dropdown:has(> .dropdown.show) > .dropdownNavLink {
    background-color: var(--primary-red);
    color: var(--white-text) !important;
  }

  .has-dropdown:has(> .dropdown.show) > .dropdownNavLink i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }

  .nav-link .fa-angle-down {
    display: block;
  }

  .dropdownNavLink {
    display: flex !important;
  }
}

/* Hide the reCAPTCHA v3 badge */
.grecaptcha-badge { 
    visibility: hidden; 
}
