
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --theme-color: #ef3a5d;
}

body {
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
}

.text-pink {
  color: var(--theme-color);
}

.bg-pink {
  background-color: var(--theme-color) !important;
}

.bi-chevron-double-right::before {
  content: "\f280";
  transform: translateY(1px);
}

.bi-chevron-right::before {
  content: "\f285";
}

.bi-search::before {
  content: "\f52a";
}

.bi-arrow-right::before {
  content: "\f138";
}

.bi-arrow-right-short::before {
  content: "\f135";
  transform: translateY(3px);
}

.bi-download::before {
  content: "\f30a";
}

.bi-share-fill::before {
  content: "\f52d";
}

.bi-twitter::before {
  content: "\f5ef";
}

.bi-facebook::before {
  content: "\f344";
}

.bi-whatsapp::before {
  content: "\f618";
}

.bi-envelope-fill::before {
  content: "\f32c";
}

.bi-clipboard::before {
  content: "\f290";
}

.btn-share-custom {
  background-color: #6772e4;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease-in-out, transform .2s ease;
}

.btn-share-custom:hover {
  background-color: #545dcd;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.btn-share-custom:active {
  transform: translateY(0);
  box-shadow: none;
}

#shareFallbackModal a {
  text-decoration: none;
}

header {
  background-color: #e7e7e7;
}

header img {
  width: 75px;
}

header strong {
  color: #000;
  font-size: 34px;
  line-height: 34px;

}

header span {
  font-size: 23px;
  line-height: 24px;
}

/* Next.js Link component styling to match anchor tags */
header a,
header Link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

header a:hover,
header Link:hover {
  text-decoration: none;
  color: inherit;
}

/* Ensure Link components inherit font styling - Font families defined in local-roboto.css */
header a .ff-h,
header Link .ff-h {
  font-weight: 700;
  font-size: 34px;
  line-height: 34px;
  color: #000;
}

header a .ff-g,
header Link .ff-g {
  font-weight: 400;
  font-size: 23px;
  line-height: 24px;
}

h1 {
  font-size: 22px;
  line-height: 28px;
}

h2 {
  font-size: 18px;
  line-height: 24px;
}

h4,
.h4 {
  font-size: 18px;
  line-height: 24px;
}

.breadcrumb {
  font-size: 13px;
  line-height: 19px;
}

.breadcrumb-item+.breadcrumb-item::before {
  padding-right: 0.2rem;
}

.breadcrumb-item+.breadcrumb-item {
  padding-left: 0.2rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #fff;
}

.breadcrumb-item.active {
  color: rgb(255 255 255 / 100%);
}

/* ======================= Make  ========================= */
.make {
  background-color: #ececec;
}

.make a {
  font-size: 16px;
  color: #1b2f99;
  line-height: 22px;
  border-bottom: 1px solid #1b2f99;
}

.make h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  width: 40px;
  height: 2px;
  background-color: #ef3a5d;
}

.manufacture a {
  color: #000;
  font-size: 18px;
  line-height: 24px;
}

.manufacture h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  width: 50px;
  height: 2px;
  background-color: #ef3a5d;
}

/* =======================  Popular Manual ========================= */
.popular-manual h2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  width: 40px;
  height: 2px;
  background-color: #ef3a5d;
}

.popular-manual a {
  color: #000;
  font-size: 17px;
  line-height: 23px;
}

.popular-manual .box {
  background-color: #ececec;
  box-shadow: 0px 0px 0px 0px;
}

.popular-manual .box .popular-img {
  padding: 10px;
  background-color: #e1e1e1;
  border-right: 1px solid #cdcccc;
}

.content-detail .border-0 {
  display: block;
  overflow-x: auto;
}

.popular-manual h2::after {
  top: 32px;
  width: 40px;
}

.popular-manual .box img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

/* ================== Table of Content  ==================== */

.app {
  background-color: #fff4f4;
}

.app p {
  color: #1b2f99;
  font-size: 16.2px;
  line-height: 22px;
}

.app .popular-img img {
   width: 180px; 
}

.app .border {
  border: 3px solid #ef3a5d !important;
}

.fixed-top {
  box-shadow: 0 0 18px 0 rgba(50, 50, 50, 0.18);
  animation-name: slideInDown;
  animation-duration: 2s;
}

@keyframes slideInDown {
  0% {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* ======================= Table of Content  ========================= */

.table-of-content .card-body li a {
  font-size: 16px;
  line-height: 22px;
}

.table-of-content .col-lg-4 a {
  font-size: 15px;
  line-height: 21px;
}
/* ======================= Responsive  ========================= */


@media (min-width: 576px) {
  header img {
    width: 80px;
  }

  header strong {
    font-size: 38px;
    line-height: 38px;
  }

  header span {
    font-size: 25px;
  }

  h1 {
    font-size: 30px;
    line-height: 36px;
  }

  h2 {
    font-size: 24px;
    line-height: 30px;
  }

  h4,
  .h4 {
    font-size: calc(1.275rem + .3vw);
  }

  .breadcrumb {
    font-size: 16px;
    line-height: 22px;
  }

  .table-of-content .col-lg-4 a {
    font-size: 16px;
    line-height: 22px;
  }

  .popular-manual h2::after {
    top: 40px;
    width: 40px;
  }

  .popular-manual .box img {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 768px) {
  header strong {
    color: #000;
    font-size: 48px;
    line-height: 48px;
  }

  header span {
    font-size: 32px;
  }

  .make a {
    font-size: 18px;
    line-height: 24px;
  }

  header img {
    width: 90px;
  }
  .container, .container-md, .container-sm {
        max-width: 540px;
  }
}

@media (min-width: 992px) {
  header strong {
    font-size: 54px;
    line-height: 54px;
  }

  header span {
    font-size: 36px;
    line-height: 24px;
  }

  .make h2::after {
    top: 40px;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .popular-manual h2::after {
    top: 45px;
    width: 50px;
  }

  .make a {
    font-size: 20px;
    color: #1b2f99;
    line-height: 26px;
    border-bottom: 1px solid #1b2f99;
  }
  .container, .container-lg, .container-md, .container-sm{
        max-width: 720px;
  }
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl{
        max-width: 960px;
    }
}

/* Language Dropdown Styles */
.language-dropdown .flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  border-radius: 2px;
  object-fit: cover;
}

.language-dropdown .dropdown-toggle {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  min-width: 120px;
  padding: 8px 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-dropdown .dropdown-toggle:hover,
.language-dropdown .dropdown-toggle:focus {
  background-color: #f8f9fa !important;
  border-color: #adb5bd !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.language-dropdown .dropdown-toggle.show {
  background-color: #ffffff !important;
  border-color: #0d6efd !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.language-dropdown .dropdown-toggle::after {
  margin-left: auto;
  border-top: 0.3em solid;
  border-right: 0.25em solid transparent;
  border-bottom: 0;
  border-left: 0.25em solid transparent;
}

.language-dropdown .dropdown-menu {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  min-width: 120px;
  padding: 0.25rem 0;
}

.language-dropdown .dropdown-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #212529;
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.language-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #16181b;
}

.language-dropdown .dropdown-item:focus {
  background-color: #e9ecef;
  color: #16181b;
  outline: none;
}

.language-dropdown .dropdown-item.active {
  background-color: #0d6efd !important;
  color: #ffffff !important;
}

.language-dropdown .dropdown-item.active:hover {
  background-color: #0b5ed7 !important;
  color: #ffffff !important;
}

@media screen and (max-width:575px) {
  .language-dropdown .dropdown-toggle::after {
    margin-left: auto;
  }
  .language-dropdown .rounded-1.position-absolute {
    position: static !important;
  }
  .language-dropdown .dropdown-toggle {
    min-width: 100px;
    padding: 6px 10px;
    font-size: 13px;
  }
  .language-dropdown .dropdown-item {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Table of Contents Icon Styles */
.table-of-content .col-lg-4{
    position: relative;
    padding-left: 28px; 
}
.table-of-content .col-lg-4:before{
    position:absolute;
    content: "\f519";
    top: 0;
    left: 7px;
    z-index: 999;
    color: #ef3a5d;
    font-family: bootstrap-icons;
}
.table-of-content .col-lg-4 a{
    color: #1b2f99;
    border-bottom:1px solid #1b2f99;
}

/* PDF Content Layout and Display Fixes */
.pdf-container {
    background: #ffffff;
}

.pdf-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Fix PDF-specific layout classes */
.pdf-container .stl_02,
.pdf-container .stl_03,
.pdf-container .stl_04,
.pdf-container .stl_05 {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix absolute positioning issues on mobile */
@media screen and (max-width: 768px) {
    .pdf-container .stl_01 {
        position: relative !important;
    }
    
    .pdf-container .stl_04 {
        clip: none !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .pdf-container {
        font-size: 14px !important;
    }
}

/* Ensure content visibility */
.content-detail .pdf-container {
    min-height: 400px;
    padding: 10px;
}

/* Enhanced Language Dropdown Styles */
.language-dropdown .dropdown-toggle {
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important;
}

.language-dropdown .dropdown-toggle::after {
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
    border-top: 0.4em solid;
    border-right: 0.35em solid transparent;
    border-left: 0.35em solid transparent;
}

.language-dropdown .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.language-dropdown .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25), 0 3px 8px rgba(0,0,0,0.1) !important;
}

.language-dropdown .dropdown-menu {
    animation: fadeInScale 0.15s ease-out;
    transform-origin: top center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.language-dropdown .flag-icon {
    transition: transform 0.2s ease-in-out;
}

.language-dropdown .dropdown-item:hover .flag-icon {
    transform: scale(1.1);
}

.language-dropdown .dropdown-item {
    position: relative;
    overflow: hidden;
}

.language-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.language-dropdown .dropdown-item:hover::before {
    left: 100%;
}

/* Dropdown items styling */
.language-dropdown .dropdown-item {
    border-radius: 8px !important;
    margin: 2px 6px !important;
}

.language-dropdown .dropdown-item:hover {
    background-color: #f1f3f4 !important;
    transform: translateX(2px);
}

.language-dropdown .dropdown-item.bg-light {
    background-color: #e3f2fd !important;
    border-left: 3px solid #0d6efd !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .language-dropdown {
        position: static !important;
    }
    
    .language-dropdown .dropdown-toggle {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .language-dropdown .dropdown-toggle .fw-bold {
        font-size: 11px !important;
    }
    
    .language-dropdown .dropdown-toggle small {
        font-size: 9px !important;
    }
    
    .language-dropdown .dropdown-menu {
        min-width: 180px;
        right: 0 !important;
        left: auto !important;
    }
    
    .language-dropdown .dropdown-item {
        padding: 8px 12px !important;
        min-height: 45px !important;
    }
    
    .language-dropdown .dropdown-item span {
        font-size: 14px !important;
    }
    
    .language-dropdown .dropdown-item small {
        font-size: 11px !important;
    }
}

@media (max-width: 400px) {
    .language-dropdown .dropdown-toggle {
        min-width: 85px;
        padding: 5px 8px;
    }
    
    .language-dropdown .dropdown-toggle .flag-icon {
        width: 16px !important;
        height: 12px !important;
    }
    
    .language-dropdown .dropdown-menu {
        min-width: 160px;
    }
    
    .language-dropdown .dropdown-item {
        padding: 6px 10px !important;
        min-height: 40px !important;
    }
    
    .language-dropdown .dropdown-item span {
        font-size: 13px !important;
    }
    
    .language-dropdown .dropdown-item small {
        font-size: 10px !important;
    }
    
    .language-dropdown .dropdown-item .flag-icon {
        width: 18px !important;
        height: 14px !important;
    }
}