/* Equipment Page Styles */

/* Equipment Banner */
.equipment-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.equipment-banner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

/* Equipment Layout */
.equipment-layout {
    display: flex;
    gap: 0;
    margin-top: 0;
}

/* Sidebar */
.equipment-sidebar {
    flex: 0 0 250px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-right: none;
}

.sidebar-title {
    background-color: #cc0000;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-content {
    padding: 15px;
}

.qr-section {
    margin-bottom: 20px;
}

.qr-text {
    color: #4CAF50;
    background: url(../img/s2.png) no-repeat;
    background-position:-527px -2346px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qr-text::before {
    content: "";
    display: inline-block;
    width: 21px;
    height: 21px;
   background: url(../img/s2.png) no-repeat;
    background-position:-527px -2346px;
    border-radius: 2px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h4 {
    color: #4CAF50;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.info-section p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.info-section strong {
    color: #999;
}

/* Equipment Content */
.equipment-content {
    flex: 1;
}

.equipment-section {
    background-color: #1a1a1a;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.section-title {
    background-color: #cc0000;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.equipment-item {
    text-align: center;
    width: 100%;
    padding-bottom: 10px;
}

.equipment-image {
    background-color: #fff;
    
    margin-bottom: 10px;
    /* height: 120px; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.equipment-image img {
     width: 100%;
    
    
}

.equipment-name {
    color: #ccc;
    font-size: 15px;
    line-height: 1.4;
}

.section-note {
    text-align: center;
    color: #666;
    font-size: 15px;
    padding: 10px;
    border-top: 1px solid #333;
}

/* Quality Lightbox Card Carousel Styles */
.quality-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quality-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.quality-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.quality-lightbox-container {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.quality-lightbox-close:hover {
    color: #cc0000;
}

.quality-lightbox-prev,
.quality-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 80px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quality-lightbox-prev:hover,
.quality-lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.quality-lightbox-prev {
    left: 0;
}

.quality-lightbox-next {
    right: 0;
}

.quality-lightbox-carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.quality-lightbox-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.quality-lightbox-card {
    flex: 0 0 260px;
    min-width: 260px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: scale(0.85);
}

.quality-lightbox-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: #cc0000;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

.quality-lightbox-card.prev,
.quality-lightbox-card.next {
    opacity: 0.7;
    transform: scale(0.9);
}

.quality-lightbox-image-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #fff;
    padding: 10px;
}

.quality-lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.quality-lightbox-caption {
    color: #fff;
    font-size: 18px;
    text-align: center;
    padding: 16px;
    margin: 0;
    background-color: #1a1a1a;
}

.quality-lightbox-counter {
    color: #999;
    font-size: 18px;
    margin-top: 15px;
}

/* Quality Carousel Styles */
.quality-carousel-container {
    position: relative;
    padding: 20px 40px;
    overflow: hidden;
}

.quality-carousel {
    overflow: hidden;
    position: relative;
}

.quality-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
}

.quality-carousel-item {
    flex: 0 0 calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
    transition: all 0.5s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

.quality-carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.quality-carousel-item:hover {
    opacity: 1;
}

.quality-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
}

.quality-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.quality-name {
    color: #ccc;
    font-size: 16px;
    padding: 10px;
    text-align: center;
    margin: 0;
    background-color: #1a1a1a;
}

.quality-carousel-prev,
.quality-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(204, 0, 0, 0.8);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quality-carousel-prev:hover,
.quality-carousel-next:hover {
    background-color: #cc0000;
}

.quality-carousel-prev {
    left: 0;
}

.quality-carousel-next {
    right: 0;
}

/* Equipment Lightbox Styles */
.equipment-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-container {
    position: relative;
    z-index: 10001;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #cc0000;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 80px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-content {
    background-color: #fff;
    padding: 10px;
    max-width: 800px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
    color: #fff;
}

.lightbox-counter {
    font-size: 18px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.lightbox-caption {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

/* QR Modal Styles */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.qr-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    max-width: 300px;
}

.qr-close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.qr-close:hover {
    color: #c41e3a;
}

.qr-image-container {
    margin: 20px 0;
}

.qr-image-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.qr-caption {
    color: #333;
    font-size: 18px;
    margin-top: 10px;
}

/* QR Text clickable */
.qr-text {
    cursor: pointer;
    transition: color 0.3s;
}

.qr-text:hover {
    color: #c41e3a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}
