html {
  scroll-behavior: smooth;
}

/* FULLSCREEN HERO SECTION */
.hero-section {
    width: 100%;
    height: 100vh;
    background-image: url('../image/xpo/bg-main.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* NAVBAR FIXED INSIDE HERO */
.hero-navbar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    /*padding: 20px 0;*/
}

/* CENTER CONTENT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 980px;
}

/* OPTIONAL: DARK OVERLAY */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0,0,0,0.45);*/
    z-index: 5;
}

.headline-font {
    font-family: "unbounded";
}

.yellow-color {
    color: #ffc30b;
}

p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
}

/* Disable any styling applied to .subheading i */
.sub-heading i {
    display: none !important;
}

/* Style your custom image icon */
.subheading-icon {
    width: 20px;        /* adjust icon size */
    height: auto;
    vertical-align: middle;
}

.title-heading {
    background-image: linear-gradient(284deg, var(--accent-transparent) -10%, var(--primary) 100%);
}

.btn-accent {
    fill: var(--accent-color-2);
    transition: all 0.6s;
    background-color: var(--accent-color-4);
    /* box-shadow: var(--box-shadow-top-left); */
    border: 1px solid #333333;
}

.image-container img {
    filter: grayscale(1);
}

.image-container img:hover {
    filter: none;
}

/* breadcrumn */
.banner-layout::before {
    background-image: none;
}

/* Sidebar base */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--secondary);
    color: var(--primary);
    transition: transform .4s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    max-height: 100vh;
    padding: 0 16px 0 5px;
}

.sidebar.open {
    left: 0;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-btn {
    color: var(--secondary);
}

/* Dropdown */
.dropdown-menu {
    width: 260px;
}
.sidebar-dropdown-menu {
    display: none;
    padding-left: 15px;
}

.sidebar-dropdown.open .sidebar-dropdown-menu {
    display: block;
}

.sidebar-dropdown-btn i {
    transition: 0.3s;
}

.sidebar-dropdown.open .sidebar-dropdown-btn i {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: fit-content;
}

.nav-btn {
    color: var(--secondary);
}

.navbar {
    position: relative;
    display: flex;
    width: 100%;
    z-index: 3;
    padding: 1em;
    border: 1px solid var(--accent-color-3);
    background-color: var(--accent-color-4);
    padding: 15px 30px 15px 30px;
    border-radius: 50px;
}

.navbar-icon-wrapper {
    width: 250px;
}

.navbar-wrapper {
    margin-top: 20px;
    padding: 10px 30px 30px 30px;
}

.icon-circle {
    position: relative;
    background-color: #ffc30b;
    color: var(--secondary);
    font-size: var(--font-size-6xl);
    border: 1px solid #d1d1d1;
    width: 40px;
    height: 40px;
    margin: 10px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.check-list a {
    font-weight: 500;
}

.card-expertise {
    border: 1px solid #333333;
    box-shadow: var(--box-shadow-bottom-right);
}

.card-expertise .counter-detail {
    font-size: var(--font-size-14xl);
}

.expertise-img {
    height: 705px;
}

.swiperPartner .partner-slide {
    background-color: var(--secondary);
    padding: 20px 30px 20px 30px;
    margin: 10px 10px 10px 10px;
    border-radius: 20px 20px 20px 20px;
    transition-duration: 0.6s;
    box-shadow: none; 
    border: 1px solid #ffc30b;
}

.card-partner::before {
    border: 2px solid #9d9a9b;
}

.chooseus-content {
    padding: 55px 30px 50px 30px;
}

.chooseus-content {
    padding: 30px;
    display: flex;
    width: 100%;
    max-width: 515px;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.chooseus-icon-wrapper {
    min-height: 250px;
}

.chooseus-icon-layout {
    width: 110px;
    height: 110px;
}

.chooseus-icon {
    border: 1px solid #ffc30b;
}

.chooseus-icon img {
    width: 50%;
}

/* Video */

.guide-banner {
    background-image: url(../image/xpo/bg-video.jpg);
    filter: grayscale(1);
}

.video-wrapper {
  width: 100%;
  max-width: 640px; /* medium size */
}

.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Blog */

.blog-image img {
    filter: grayscale(1);
}
.card-blog:hover .blog-image img {
    filter: none;
}

.service-icon {
    border: 1px solid #ffc30b;
}

.card-service-wrapper::before {
    background-image: none;
}

.icon-view {
    width: 30px;
    margin-right: 15px;
}

.btn-title {
    padding: 10px 0px 10px 0px;
}

.card-service {
    background-color: #111010;
    background-image: none;
}

.col:nth-child(even) .card-service {
    background-image: none;
}

.card-service {
  position: relative;
  border-radius: 12px;
  overflow: visible;
}

.card-service.pulse-once::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 2px solid #ffc30b;
  animation: borderPulseOnce 0.9s ease-out 4 forwards;
  pointer-events: none;
}

@keyframes borderPulseOnce {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.08);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.newsletter-layout {
    background-color: #000000;
    background-image: none;
}

.newsletter-layout::before {
    background-image: radial-gradient(at top center, var(--accent-color) -50%, var(--accent-transparent) 40%);
}

.newsletter-layout .spacer {
    background-image: none;
}

#newsletterForm {
    border: 1px solid #1d1d1d;
}

/* Footer */

.bg-footer::before {
    background-image: none;
}

.footer-contact-container {
    gap: 10px 30px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    position: relative;
    padding-left: 57px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
}

.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Address icon */
.contact-list li:nth-child(1)::before {
    background-image: url('../image/xpo/icon-contact1.png');
}

/* Email icon */
.contact-list li:nth-child(2)::before {
    background-image: url('../image/xpo/icon-contact2.png');
}

/* Phone icon */
.contact-list li:nth-child(3)::before {
    background-image: url('../image/xpo/icon-contact3.png');
}

/* Process */

.process-icon {
    width: 35%;
}

.digital-process-banner::before {
    top: 155px;
}


.logo-only {
    width: 100px;
}

.section-footer {
    overflow: hidden;
}

.footer-list,
.contact-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-list li,
.contact-list li {
    margin-bottom: 12px;
}

.footer-list a,
.legal-link {
    text-decoration: none;
}

.footer-logo-container h6 {
    margin-top: 1rem;
}

.accreditation-img {
    max-width: 220px;
}

/* COPYRIGHT */
.copyright-container {
    border-top: 1px solid rgba(255,255,255,0.1);

    margin-top: 60px;
    padding-top: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    flex-wrap: wrap;
}

.copyright-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* MODA: POPUP */

.dark-modal {
  background: #0f0f0f;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.dark-modal .modal-body {
  padding: 40px;
}

.dark-modal img {
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-modal img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.video-wrapper video {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.preview-wrapper {
  position: relative;
  text-align: center;
  padding: 40px;
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.preview-img-full {
  max-height: 80vh;
  width: auto;
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid #f5b400;
    font-size: 24px; /* adjust ikut saiz arrow */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    transition: 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    /* reset padding & line-height */
    padding: 0;
    line-height: 1;
}

.preview-nav:hover {
  background: #f5b400;
  color: #000;
}

.preview-nav.prev {
  left: -10px;
}

.preview-nav.next {
  right: -10px;
}

#serviceModal .modal-body {
  padding: 60px 80px;
}

#serviceModal .modal-content {
  background: #0b0b0b;
  border-radius: 0;
}

#serviceModal {
  backdrop-filter: blur(8px);
}

#serviceModal .modal-header {
  padding-top: 30px;
  padding-bottom: 10px;
}

#serviceTitle {
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

/* Elegant underline */
#serviceTitle::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 12px auto 0;
  background: #f5b400; /* gold accent */
}

/* Smooth transition effect */
.preview-img-full {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    border-radius: 20px;
    display: block;
}

/* When changing image */
.preview-img-full.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.preview-img-full.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* masonry gallery */

.masonry-gallery {
  column-count: 3;
  column-gap: 20px;
}

.masonry-gallery .masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-gallery img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media screen and (max-width: 767px) {
    .chooseus-icon-wrapper {
        min-height: 0;
    }

    .bg-footer {
        padding: 60px 20px;
    }

    .footer-logo-container,
    .footer-contact-container {
        text-align: left;
    }

    .footer-quick-links {
        display: none;
    }

    .footer-services-container {
        display: none;
    }

    .contact-list li {
        justify-content: flex-start;
        font-size: var(--font-size-sm);
    }

    .copyright-container {
        flex-direction: column;
        align-items: center;
    }

    .copyright, .legal-link {
        font-size: var(--font-size-sm);
    }

    .copyright-links {
        gap: 14px;
    }

    .site-logo {
        max-width: 180px;
    }

    .footer-list li,
    .contact-list li {
        margin-bottom: 10px;
    }

    .preview-img-full {
        max-height: 70vh;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
  .masonry-gallery {
    column-count: 1;
  }
}