/* General Styles */

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
}

/* Top Bar Styles */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
}

.social-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
    margin-right: 15px;
}

.social-link:hover {
    color: #f7941d;
}

.erp-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.erp-link:hover {
    color: #f7941d;
}

/* Top Actions */
.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* e-Brochure Button */
.btn-ebrochure {
    display: inline-flex;
    align-items: center;
    background-color: #0f1e5a;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-ebrochure:hover {
    background-color: #0a1540;
    color: white;
}

.btn-ebrochure i {
    margin-left: 5px;
    font-size: 12px;
}

/* Language Dropdown */
.language-dropdown {
    display: inline-block;
}

.btn-language {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #333;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.btn-language:hover,
.btn-language:focus {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.btn-language i {
    margin-left: 5px;
    font-size: 10px;
}

.language-dropdown .dropdown-menu {
    min-width: 5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    font-size: 14px;
}

.language-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
}

.language-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Header Styles */
.main-header {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff;
    position: relative;
    z-index: 100;
}

.logo {
    height: 60px;
    width: auto;
}

/* Main Navigation */
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 14px;
    position: relative;
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link:hover {
    color: #f7941d;
}

/* Dropdown Toggle Icon */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover::after,
.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0;
    margin-top: 0;
    min-width: 220px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background-color: #f7941d;
    color: white;
}

/* Dropdown Animation */
.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search Icon */
.search-icon {
    color: #333;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #f7941d;
}

/* Banner Styles */
.page-banner {
    height: 300px;
    background-image: url('https://sjc.microlink.io/PNEuOnaDa2BRSpJ2asL3pEXerlDoRS9ddnGk5W_sGiHmVYWaQH0zsd4KEAFKi5-_iwPHfyWGXCGx9uq0uD-lKA.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

/* .banner-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
} */

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    font-size: 14px;
}

.breadcrumb-nav a {
    color: white;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #f7941d;
}

.breadcrumb-nav .separator {
    margin: 0 5px;
}

.breadcrumb-nav .current {
    color: #f7941d;
}

/* Main Content Styles */
.main-content {
    padding: 50px 0;
}

.section-title {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

/* Category Navigation */
.category-nav {
    margin-bottom: 30px;
}

.category-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.category-item {
    margin-right: 30px;
}

.category-item a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    position: relative;
}

.category-item a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f7941d;
    transition: width 0.3s ease;
}

.category-item a:hover:after,
.category-item.active a:after {
    width: 100%;
}

.category-item.active a {
    color: #f7941d;
}

/* Gallery Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background-color: #f7941d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Load More Button */
.btn-load-more {
    background-color: #f7941d;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #e67e00;
}

/* Image Viewer Popup */
.image-viewer-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1500;
    display: none;
}

.image-viewer-container {
    display: flex;
    height: 100%;
}

/* Main Image Container */
.main-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

.image-watermark {
    position: absolute;
    width: 800px;
}

/* Image Caption */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

/* Navigation Controls */
.nav-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.image-counter {
    font-size: 14px;
    color: #fff;
}

.control-buttons {
    display: flex;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.control-btn:hover {
    color: #f7941d;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 10;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev-arrow {
    left: 0;
}

.next-arrow {
    right: 0;
}

/* Thumbnails Sidebar */
.thumbnails-sidebar {
    width: 250px;
    height: 100%;
    background-color: #1a1a1a;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    align-content: start;
}

.thumbnail {
    position: relative;
    cursor: pointer;
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    border: 2px solid #f7941d;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #f7941d;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .thumbnails-sidebar {
        width: 200px;
    }

    /* .category-list {
        flex-wrap: wrap;
    }

    .category-item {
        margin-right: 15px;
    } */
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 28px;
    }

    .image-viewer-container {
        flex-direction: column;
    }

    .thumbnails-sidebar {
        width: 100%;
        height: 120px;
        grid-template-columns: repeat(6, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .main-image {
        max-height: calc(100vh - 270px);
    }

    /* Mobile Menu Styles */
    .navbar-collapse {
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #f1f1f1;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Mobile Dropdown */
    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

    .dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
        padding-left: 15px;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 20px;
    }

    /* Search Icon */
    .search-icon {
        position: absolute;
        right: 70px;
        top: 15px;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 24px;
    }

    .thumbnails-sidebar {
        grid-template-columns: repeat(4, 1fr);
    }

    .top-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .btn-ebrochure {
        margin-bottom: 5px;
    }
}