/* ================= HEADER ================= */
header {
    
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: #242f67;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    width: 70px;
    height: auto;
}

header h1 a {
    text-decoration: none;
    color: #fff;
}/* ================= HEADER ================= */

.detail-photo-section {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.detail-photo-title {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* ============================= */
/* Jobs Detail Image Gallery */
/* ============================= */

.jobs-detail-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.jobs-detail-gallery::-webkit-scrollbar {
  height: 6px;
}

.jobs-detail-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.jobs-detail-gallery::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}
.jobs-detail-gallery {
  scrollbar-width: thin;
}

/* ============================= */
/* Images */
/* ============================= */

.jobs-detail-gallery img {
  flex-shrink: 0;                 /* prevent shrinking */
  width: 320px;                   /* desktop size */
  height: 188px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============================= */
/* Tablet */
/* ============================= */

@media (max-width: 1024px) {
  .jobs-detail-gallery img {
    width: 320px;;
    height: 188px;
  }
}

/* ============================= */
/* Mobile */
/* ============================= */

@media (max-width: 768px) {
  .jobs-detail-gallery img {
    width: 280px;
    height: 165px;
  }
}

/* ============================= */
/* Small Mobile */
/* ============================= */

@media (max-width: 480px) {
    .consult-title{
        font-size: large;
    }
    .contact-title{
        width: 300px; }
    
  .jobs-detail-gallery img {
    width: 240px;
    height: 141px;
  }
}


.detail-image-box {
    margin: 2px auto;
    padding: 3px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15);
    max-width: 420px; /* controls box width */
    margin-bottom: 20px; 
    position: relative;
    overflow: visible;
}


/* Collapsible content */
.detail-scroll-box {
    max-height: 700px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

/* Fade effect */
.detail-scroll-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, transparent, #fff);
}

.detail-scroll-box.expanded {
    max-height: none;
    overflow: visible;
}

.detail-scroll-box.expanded::after {
    display: none;
}

/* Button styling */
.see-more-btn {
    margin: 12px auto 0;
    display: block;
    background: none;
    border: none;
    color: #0d6efd;
    font-weight: 600;
    cursor: pointer;
}

/* Detail section title ONLY */
.detail-title {
    background: none !important;
    color: #212529;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;

    min-height: 3.8em;     /* 👈 KEY FIX (2 lines reserved) */
    display: flex;
    align-items: center;   /* vertical center text */
    justify-content: center;

    margin: 0 auto 0.5rem;
    padding: 0 5px;
    border: none;
    box-shadow: none;
}


/* Arrows */





/* Small section title – does NOT affect contact-title */
.detail-title-small {
    font-size: 1.1rem;        /* smaller h3 */
    font-weight: 600;
    color: #1f275c;           /* text only, no box */
    margin: 0 auto 20px;
    text-align: center;
    background: none;
    padding: 0;
    border: none;
}

.detail-title-small.boxed {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #1f275c;
    height: 45px;
    width: 280px;
    border-radius: 5px;

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}


/*the is the last one */
.custom-carousel {
    width: 320px;
    height: 420px;
    margin: 0 auto;
}

.custom-carousel .carousel-inner,
.custom-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Optional: make arrows visible on white background */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}
.carousel-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Desktop & Laptop (4 columns) */
.custom-detail-carousel {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    margin: auto;
    position: relative;
}

.custom-detail-carousel .carousel-inner,
.custom-detail-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.custom-detail-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
}

.custom-detail-carousel .carousel-item.active {
    position: relative;
}

.custom-detail-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    display: block;
    margin: auto;
}


/* Tablet / iPad (2 columns, medium size) */
/* Desktop */
@media (min-width: 992px) {
    .custom-detail-carousel {
        max-width: 250px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .custom-detail-carousel {
        max-width: 250px;
    }
}

/* Phone */
@media (max-width: 767px) {
    .custom-detail-carousel {
        max-width: 200px;
    }
}
.photo-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

.btn-custom-blue {
    background-color: #242f67 !important;
    border-color: #242f67 !important;
    color: #ffffff !important;
}


.btn-custom-blue:hover {
    background-color: #1d2552;
    color: #ffffff;
}


/* Scroll To Top Btn */

#scroll-to-top {
  position: fixed;
  right: 30px;
  bottom: 45px; /* higher than chat box */
  z-index: 10000; /* above everything */
}


#scroll-to-top img {
  width: 40px;   /* make smaller */
  height: auto;
  cursor: pointer;
  opacity: 1;
}

#scroll-to-top img:hover {
  opacity: 1;
}

 /* Header */
.chat-header {
  background: #1f2f63;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-title img {
  width: 28px;
  height: 28px;
}

.close-btn {
  position: absolute;
  top: 8px;
  left: 140px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Status */
.chat-status {
  padding: 6px 12px;
  font-size: 12px;
  color: green;
  border-bottom: 1px solid #eee;
}

/* Body */
.chat-body {
  height: 260px;
  padding: 10px;
  overflow-y: auto;
  background: #f8f9fa;
}

/* Messages */
.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 14px;
  width: fit-content;        /* 👈 key line */
}

.message.support {
  background: #e9ecef;
  align-self: flex-start;
}

.message.user {
  background: #1f2f63;
  color: white;
  margin-left: auto;
}

/* Footer */
.chat-footer {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #eee;
   flex-direction: column;
}




/* 3 buttons row */
.quick-contact {
  display: flex;
  gap: 6px;
}

.quick-contact button {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

/* Colors */
.quick-contact button:nth-child(1) { background: #06C755; }
.quick-contact button:nth-child(2) { background: #25D366; }
.quick-contact button:nth-child(3) { background: #0068FF; }

/* Input + send row */
.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.chat-input-row .send-btn {
  margin-top: 0; /* remove old margin */
}







.chat-footer input {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.send-btn {
  background: #1f2f63;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 9px;   /* move down */
}


/* ===== CHAT CONTACT BUTTONS ===== */

/* Chat Button */
#chat-btn img {
    width: 40px;
    height: 40px;
}

#chat-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;              /* make sure it’s anchored */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #ff5757;
  cursor: pointer;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}    /* click goes to button */

#chat-btn:hover {
  transform: scale(1.08);
  transition: 0.2s ease;
}

.contact-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.contact-links a {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.contact-line { background: #06C755; }
.contact-whatsapp { background: #25D366; }
.contact-zalo { background: #0068FF; }

/*chat */

.quick-contact {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.quick-contact button {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.quick-contact button:nth-child(1) { background: #06C755; }
.quick-contact button:nth-child(2) { background: #25D366; }
.quick-contact button:nth-child(3) { background: #0068FF; }

.chat-contact-img {
  width: 120px;
  margin-top: 6px;
  border-radius: 10px;
  cursor: pointer;
}

.chat-footer {
  display: flex;
  flex-direction: column;   /* 👈 THIS is the key */
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
}

/* 3 buttons row */
.quick-contact {
  display: flex;
  gap: 6px;
}

/* input row */
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* remove old margin */
.send-btn {
  margin-top: 0 !important;
}
/* Contact card title */
.contact-card span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;          /* 👈 stronger bold */
  color: #222;               /* 👈 clearer contrast */
  letter-spacing: 0.5px;     /* 👈 more readable */
  text-transform: uppercase;/* 👈 cleaner look */
}


/*chat end*/
/* Base message bubble */
.message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: left;
}

/* Support (left, gray) */
.message.support {
  background: #e4e6eb;
  color: #050505;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

/* User (right, blue) */
.message.user {
  background: #1f275c;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}


/* Language Drop down*/
.flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    display: inline-block;
}


/* button */
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


/* dropdown */
.lang-dropdown {
    position: relative;
    margin-right: 12px;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #e7e7e7;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.lang-menu.show {
    display: block;
}

.lang-menu li {
    list-style: none;
    margin: 6px 0;
}


/* 📱 Mobile tweak*/
@media (max-width: 767px) {
  header h5 a {
    text-decoration: none;
    color: #fff;
}
  .lang-menu {
    right: 0;
    left: auto;
    min-width: 120px;
  }

    .lang-menu {
        padding: 6px;
        border-radius: 8px;
        min-width: auto; /* prevent wide box */
    }

    .lang-menu li {
        margin: 4px 0;
    }

    .flag-circle {
        width: 26px;
        height: 26px;
    }
    .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: -15px;
    }
}/* Language Drop down*/


/* Footer */
.chat-footer {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #eee;
}

.chat-footer input {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.send-btn {
  background: #1f2f63;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 9px;   /* move down */
}



/* ===== OUR SERVICES HOVER DROPDOWN ===== */
.services-dropdown {
  position: relative;
  display: inline-block;
}

.services-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 6px;
}

.services-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.services-menu {
  position: absolute;
  top: 100%;              /* 👈 key fix */
  left: 0;
  background: #f9fafc;
  min-width: 220px;
  padding: 12px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: none;
  z-index: 3000;
}

.services-dropdown:hover .services-menu {
  display: block;
}

.services-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  color: #242f67;           /* normal text */
  text-decoration: none;
  transition: all 0.2s ease;
}

.services-menu a:hover {
  background-color: #242f67; /* 👈 dark blue hover */
  color: #ffffff;           /* 👈 readable white text */
}


.services-dropdown.active .services-menu {
  display: block;
}