
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: #032E42 !important;
}
p {
    color: #676767 !important;
}

div .master-white h2 {
    color: #ffffff !important;
    font-weight: 700;
}

#footer {
    background-color: #252628;
    color: #ffffff !important; 
}

footer a, footer #company-full-name, footer h5 {
    color: #ffffff !important;
}

.master-bg-blue {
    background-color: #017EAE !important;
}

div .master-bg-blue h2 {
    color: #ffffff !important;
    font-weight: 700;
}

div .master-bg-blue p {
    color: #ffffff !important;
}

@font-face {
    font-family: 'Cairo';
    src: url('/font/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

button{
    padding: 10px 20px
}

/* ----------------------------------------- */
/* -------------- Start Topbar ------------- */
/* ----------------------------------------- */
.topbar-wrapper {
    background-color: #999;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
}

/* ===== Common styles for sections ===== */
.topbar-left,
.topbar-right {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.topbar-left {
    background-color: #0083b5;
    color: white;
}

.topbar-right {
    background-color: #262626;
    color: #ccc;
}

    .topbar-left a,
    .topbar-right a {
        color: inherit;
        text-decoration: none;
    }

    .topbar-left i,
    .topbar-right i {
        margin-right: 5px;
        color: #b5e1e7;
    }

    .topbar-right .divider {
        border-left: 1px solid #666;
        height: 16px;
    }

/* ===== Small screens: hide topbar ===== */
@media (max-width: 767.98px) {
    .topbar-wrapper {
        display: none;
    }
}

/* ===== Medium screens: stacked, no clip ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .topbar {
        flex-direction: column;
    }

    .topbar-left,
    .topbar-right {
        clip-path: none !important;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

        .topbar-right .divider {
            display: none;
        }
}

/* ===== Large screens: side-by-side with clip ===== */
@media (min-width: 992px) {
    .topbar {
        flex-direction: row;
    }

    .topbar-left {
        flex: 0 0 40%;
        clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
    }

    .topbar-right {
        flex: 0 0 60%;
        clip-path: polygon(4% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* ===== RTL adjustments for large screens ===== */
@media (min-width: 992px) {
    html[dir="rtl"] .topbar-left {
        flex-direction: row-reverse;
        clip-path: polygon(0% 0, 100% 0, 100% 100%, 6% 100%);
    }

    html[dir="rtl"] .topbar-right {
        flex-direction: row-reverse;
        clip-path: polygon(0 0, 96% 0, 100% 100%, 0% 100%);
    }
}

html[dir="rtl"] .topbar {
    direction: rtl;
}

html[dir="rtl"] .topbar-left a,
html[dir="rtl"] .topbar-right a {
    direction: rtl;
}

html[dir="rtl"] .topbar-right .divider {
    display: none;
}


/* ----------------------------------------- */
/* -------------- Start Navbar ------------- */
/* ----------------------------------------- */

/* open first-level dropdown on focus, same as hover 08-10-2025 */
.custom-hover:focus-within > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(10px);
}
/* open/close submenus on focus 08-10-2025 */
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}


.navbar-collapse {
    flex-grow: 0 !important;
}

/* Navbar Custom Styles */
.custom-nav-link {
    font-weight: 600;
    color: #333 !important;
    padding: 15px 0;
    margin: 0 15px;
    position: relative;
    overflow: hidden;
}

.custom-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #017eae;
    transition: width 0.3s ease-out;
}

.custom-nav-link:hover::after,
.custom-nav-link.active::after {
    width: 100%;
}

.custom-nav-link.active {
    color: #007fa3;
}

/* Dropdown Hover Effect */
.custom-hover > .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: visibility 0.3s, opacity 0.3s, transform 0.3s ease;
}

.custom-hover:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(10px);
}

/* Dropdown Items */
.custom-item {
    font-weight: 600;
    color: #555 !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.custom-item:last-child {
    border-bottom: none;
}

.custom-item:hover {
    color: #007fa3;
    background-color: #f8f8f8;
}

/* Submenu Positioning */
.dropdown-submenu {
    position: relative;
}

/* Modify bootstrap */
.dropdown-menu {
    padding-right: 2rem;
    margin: 0;
    border-radius: 0 !important;
    border: none !important;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0px;
    margin-left: -10px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Ensure Dropdowns Don't Get Cut Off */
.navbar-nav .dropdown-menu {
    position: absolute;
}

html[dir="rtl"] .dropdown-submenu > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: -10px;
}

.collapse {
    transition: height 0.3s ease;
}

@media (max-width: 991.98px) {
    .custom-hover > .dropdown-menu {
        display: none !important; /* disable hover effect */
    }

    .custom-hover:hover > .dropdown-menu {
        display: none !important;
    }

    .dropdown-menu {
        position: relative;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none;
        padding: 0;
    }

    .custom-item {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }


}



/* ----------------------------------------- */
/* --------------- Start Slider ------------ */
/* ----------------------------------------- */

.carousel-caption {
    top: 50%;
    left: 5%;
    bottom: auto;
    right: auto;
    transform: translateY(-50%);
    text-align: left;
    width: 50%;
}

.custom-caption {
    top: 50%;
    right: 5%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    text-align: left;
    width: 40%;
    color: blue;
}

/* Animate Title */
.animated-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
    transition-delay: 0s;
}

.carousel-item.active .animated-title {
    opacity: 1;
    transform: translateY(0);
}

/* Animate Text */
.animated-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
    transition-delay: .5s;
}

.carousel-item.active .animated-text {
    opacity: 1;
    transform: translateY(0);
}

/* Animate Btn */
.animated-btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
    transition-delay: 1s;
}

.carousel-item.active .animated-btn {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item {
    height: 70vh;
    background-size: cover;
    background-position: center;
}

.carousel-item-1 {
    background-image: url('../img/contact-us.jpeg');
}

.carousel-item-2 {
    background-image: url('../img/marine-cargo-optimized.jpg');
}

.carousel-item-3 {
    background-image: url('../img/japanese-quality.jpg');
}

.carousel-caption h2 {
    font-size: 1.5rem;
}

.carousel-control-prev {
    left: 0rem !important;
}

.carousel-control-next {
    right: 0rem !important;
}

div .carousel-item h1, div .carousel-item p {
    color: #ffffff !important;
}

.carousel-caption {
    position: relative;
    z-index: 10;
}

.carousel-control-next,
.carousel-control-prev {
    width: 10% !important;
    color: #fff;
}


/* ----------------------------------------- */
/* ----------- Branch Location ------------- */
/* ----------------------------------------- */

.location-card {
transition: transform 0.2s ease;
}

.location-card:hover {
    transform: scale(1.02);
}

/* ----------------------------------------- */
/* ----------------------------------------- */
/* ----------------------------------------- */

.master-section-img {
    height: 75vh
}

/*.custom-carousel {
    height: 80vh;
    overflow: hidden;
}*/

.carousel-img {
    height: 100%;
    object-fit: cover;
}

#goUpBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: black;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#goUpBtn:hover {
    background-color: #333;
}