:root {
    --brand-blue: #0088cc;
}

body {
    font-family: 'Inter', sans-serif;
    color: #444;
}

.text-primary { color: var(--brand-blue) !important; }
.bg-primary { background-color: var(--brand-blue) !important; }
.btn-primary { background-color: var(--brand-blue); border: none; }
.btn-primary:hover { background-color: #0077bb; }

/* Navbar Logo Size */
.navbar-logo {
    width: 150px; /* Adjust this value to change the logo size */
    height: auto;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    background: var(--brand-blue);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.sidebar-item {
    padding: 15px;
    color: white;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: rgba(0,0,0,0.2);
}

.sidebar-popout {
    position: absolute;
    right: 60px; /* Moves it to the left of the sidebar */
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: #2188ca;
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.sidebar-popout::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid #2188ca;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.sidebar-item:hover .sidebar-popout {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


/* Hero Carousel */
.carousel-item {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section {
    height: 100%;
}

/* Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--brand-blue);
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-blue);
} */

/* Global Link Style */
a {
    text-decoration: none !important;
    color: inherit;
}

/* Hover Effects */
.card {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent !important;
}

.card .card-img-top {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.cat-icon {
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.cat-icon i, .cat-icon img {
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.cat-icon:hover {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border-color: var(--brand-blue) !important;
}

.cat-icon:hover i, .cat-icon:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.factory-advantage .advantage-card {
    border: none !important;
    border-radius: 10px;
    padding: 30px 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.factory-advantage .advantage-card:hover {
    transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(33, 136, 202, 0.1) !important;

}

.advantage-icon-wrap {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.advantage-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.factory-advantage h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.factory-advantage .advantage-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #000000;
    line-height: 120%;
}

.factory-advantage .advantage-list li {
    margin-bottom: 8px;
}


/* 8 columns row for desktop */
@media (min-width: 992px) {
    .row-cols-lg-8 > * {
        flex: 0 0 auto;
        width: 12.5%;
    }
}

.cat-link {
    display: block;
    height: 100%;
}

/* About Carousel Specifics */
.about-slide, .about-slide #aboutCarousel, .about-slide .carousel-inner {
    height: 100%;
    min-height: 400px;
}

.about-slide .carousel-item {
    height: 100% !important;
}

.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    background-color: #2188ca !important;
    transform: translateY(-5px);
}

.news-more_button {
    width: 100%;
}

.news-card:hover p, 
.news-card:hover h5, 
.news-card:hover a,
.news-card:hover small {
    color: white !important;
    opacity: 1 !important;
}

@media (max-width: 991px) {
    .about-slide, .about-slide #aboutCarousel, .about-slide .carousel-inner {
        height: 500px;
    }
}

#footer ul li a {
    transition: color 0.3s ease;
}

#footer ul li a:hover {
    color: var(--brand-blue) !important;
    opacity: 1 !important;
}

/* Navbar Customizations */
.nav-separator {
    width: 1px;
    height: 15px;
    background-color: #ddd;
    margin: 0 5px;
}

.navbar {
    border-bottom: 3px solid var(--brand-blue) !important;
}

.lang-switch a:hover {
    color: var(--brand-blue) !important;
}

/* Custom Dropdown Styles */
.nav-item {
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item:hover, .nav-item.active {
    background-color: #2188ca;
}

.nav-item:hover > .nav-link, .nav-item.active > .nav-link {
    color: white !important;
}

.dropdown-custom {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%; /* Position exactly at the bottom of the nav item */
    left: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    opacity: 0;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    background-color: #2188ca;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    /* Subtle slide down from just above the final position */
    transform: translateY(-8px);
    /* Use a smoother transition without visibility delay to avoid "jumping" feel */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.dropdown-custom:hover .dropdown-menu-custom {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu-custom li {
    width: 100%;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 12px 25px;
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    text-transform: capitalize;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.dropdown-menu-custom li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    padding-left: 30px;
    color: white !important;
}

/* For mobile accessibility */
@media (max-width: 991px) {
    .nav-item {
        display: block;
        width: 100%;
        height: auto;
    }
    .dropdown-menu-custom {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        background-color: #f8f9fa;
        box-shadow: none;
        padding-left: 0;
        transition: none;
    }
    .dropdown-custom:hover .dropdown-menu-custom {
        display: block;
    }
    .dropdown-menu-custom li a {
        color: #444 !important;
        padding-left: 40px;
    }
    .dropdown-menu-custom li a:hover {
        background-color: rgba(0, 0, 0, 0.05);
        padding-left: 45px;
        color: #2188ca !important;
    }
    .nav-item:hover {
        background-color: transparent;
    }
    .nav-item:hover > .nav-link {
        color: #2188ca !important;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.owner-img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

/* Better Org Chart Styling */
.org-tree {
    overflow-x: auto;
    padding: 20px 0;
}

.org-tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    padding-left: 0;
}

.org-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}

/* We will use ::before and ::after to draw the connector lines */
.org-tree li::before, .org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid #ccc;
    width: 50%;
    height: 20px;
}

.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #ccc;
}

/* We need to remove left-right connectors from elements without any siblings */
.org-tree li:only-child::after, .org-tree li:only-child::before {
    display: none;
}

/* Remove space from the top of single children */
.org-tree li:only-child {
    padding-top: 0;
}

/* Remove left connector from first child and right connector from last child */
.org-tree li:first-child::before, .org-tree li:last-child::after {
    border: 0 none;
}

/* Adding back the vertical connector to the last nodes */
.org-tree li:last-child::before {
    border-right: 1px solid #ccc;
}

.org-tree li:first-child::after {
    border-radius: 0;
}

/* Time to add downward connectors from parents */
.org-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #ccc;
    width: 0;
    height: 20px;
}

.org-tree .node {
    background: #0070bc;
    color: #fff;
    padding: 10px 15px;
    display: inline-block;
    font-weight: bold;
    min-width: 140px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.org-tree .label {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.org-tree .ceo-node {
    padding: 15px 25px;
    text-transform: capitalize;
    font-size: 1rem;
}

.org-tree .dept-node {
    padding: 8px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 100px;
}

.org-tree .staff-count {
    display: block;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #444;
}

/* Navigation Overrides */
.nav-tabs .nav-link {
    border: none;
    margin: 0 15px;
}

/* Breadcrumb Styling */
.breadcrumb-section {
    border-bottom: 1px solid #eee;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #ccc;
    font-weight: normal;
}

.breadcrumb-item a {
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--brand-blue) !important;
}

.nav-tabs .nav-link.active {
    border-bottom: 2px solid #2188ca;
    background: none;
    color: #2188ca !important;
}

/* --- Compact Horizontal Timeline (Container-Fit) --- */
.h-timeline-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('./assets/history\ background.jpg') no-repeat center bottom;
    background-size: cover;
    overflow: hidden; /* Prevent section-level scroll */
}

.h-timeline-container {
    max-width: 1200px; /* Constrain width */
    margin: 0 auto;
    position: relative;
    padding: 150px 0;
}

/* The horizontal axis */
.h-timeline-axis {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #2188ca;
    z-index: 1;
    opacity: 0.3;
}

.h-timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.h-timeline-item {
    position: relative;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.h-item-marker {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #2188ca;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 3;
}

.h-timeline-item:hover .h-item-marker {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(33, 136, 202, 0.2);
}

.h-item-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-item-marker.logo-marker img {
    width: 70%;
    object-fit: contain;
}

.h-item-info {
    position: absolute;
    width: 140px;
    text-align: center;
}

/* Top/Bottom Staggering */
.h-timeline-item.top .h-item-marker { margin-bottom: 60px; transform: translateY(-50%); }
.h-timeline-item.top .h-item-info { top: 100%; padding-top: 10px; }
.h-timeline-item.top::after {
    content: '';
    position: absolute;
    bottom: 50%;
    width: 1px;
    height: 60px;
    background: #2188ca;
    opacity: 0.3;
}

.h-timeline-item.bottom .h-item-marker { margin-top: 60px; transform: translateY(50%); }
.h-timeline-item.bottom .h-item-info { bottom: 100%; padding-bottom: 10px; }
.h-timeline-item.bottom::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1px;
    height: 60px;
    background: #2188ca;
    opacity: 0.3;
}

.h-item-year {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.h-item-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    font-weight: 500;
}

/* Responsive: Hide mountains or stack on tiny screens */
@media (max-width: 991px) {
    .h-timeline-container {
        padding: 50px 0;
        overflow-x: auto;
    }
    .h-timeline-track { min-width: 1000px; }
}

/* Video Section Styles */
.video-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fdfdfd;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    max-height: 500px; /* Reduced height */
}

.video-poster {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    display: block;
    object-fit: cover; /* Ensures aspect ratio is maintained while filling the smaller height */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-wrapper:hover .video-poster {
    transform: scale(1.05);
}

.video-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.video-wrapper:hover .video-overlay-custom {
    background: rgba(0, 0, 0, 0.2);
}

.play-btn-inner {
    width: 90px;
    height: 90px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 3px solid rgba(255,255,255,0.3);
}

.play-btn-inner i {
    color: white;
    font-size: 2.5rem;
    margin-left: 8px; /* Offset for visual centering of play icon */
}

.video-wrapper:hover .play-btn-inner {
    transform: scale(1.1);
    background: var(--brand-blue);
    border-color: #fff;
    box-shadow: 0 0 30px rgba(33, 136, 202, 0.4);
}

/* Content & Pagination */
.content-div {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.empty-state-box {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    margin-bottom: 30px;
    gap: 20px;
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    background-color: #f8fbff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f4f8;
}

.empty-state-icon i {
    font-size: 24px;
    color: #ffd700; /* Gold/Yellow for the paper spark */
}

.empty-state-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-wrap .page-btn {
    min-width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: #fff;
    color: #888;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0 15px;
    font-weight: 500;
}

.pagination-wrap .page-btn.active {
    background: #eeeeee;
    color: #333;
    border-color: #ddd;
}

.pagination-wrap .page-btn:hover:not(:disabled) {
    background: #f9f9f9;
    color: #2188ca;
}

.pagination-wrap .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Container & Items */
.product-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.product-item {
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-item .img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f9f9f9;
}

.product-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .img-wrap img {
    transform: scale(1.08);
}

.product-item .product-title {
    padding: 12px 10px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    border-top: 1px solid #eeeeee;
    text-align: left;
    background: #fff;
}

/* History Tab Section */
.history-tab {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.history-tab .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.history-tab .nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.history-tab .nav-item {
    flex: 0 0 auto;
    height: auto;
    background-color: transparent;
}

.history-tab .nav-item:hover > .nav-link { color: rgb(0, 0, 0) !important; }



 .history-section .nav-item:hover { 
    color: #ffffff;
 }


.history-tab .nav-item:hover {
    background-color: #f1f1f1;
    /* color: black !important; */
}

.history-tab .nav-link {
    padding: 10px 12px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    border-top: 2px solid transparent;
    border-radius: 0;
}

.history-tab .nav-link:hover {
    color: var(--brand-blue);
}

.history-tab .nav-link.active {
    color: var(--brand-blue) !important;
    border-top: 2px solid var(--brand-blue);
    background: transparent;
}

.history-card {
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    display: block; /* Ensure it takes full width as an anchor */
    text-decoration: none;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 136, 202, 0.1) !important;
}

.history-card:hover .history-card-title {
    color: var(--brand-blue);
}

.history-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.history-card-texts {
    padding: 0px 10px 10px 10px;
}







.history-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.history-card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.history-card-date {
    font-size: 12px;
    color: #999;
}

/* Pagination Styles */
.history-pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 4px !important;
    border: 1px solid #eee;
    color: #444;
    font-weight: 500;
    transition: all 0.3s;
}

.history-pagination .page-link:hover {
    background-color: #f8f9fa;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.history-pagination .page-item.active .page-link {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: white !important;
}

/* Contact Page Specific Styles */
.contact-section {
    background-color: #f7faff;
}

.contact-details .small {
    font-size: 14px;
    line-height: 1.6;
}

.contact-details span:first-child {
    color: #333 !important;
    font-weight: 600 !important;
}

@media (max-width: 991.98px) {
    .contact-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Google Translate Hiding */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon,
.goog-te-gadget-simple span {
    display: none !important;
}

.goog-te-menu-value {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}



