/* style-unique.css - Styles unique to pages using style.css (tabs, products, etc.) */

.name {
    text-align: center;
    color: green;
}

.slider-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0dcaf0 100%);
    color: white;
    padding: 100px 0 20px;
}

.slider-sectionthin {
    background: linear-gradient(135deg, var(--primary) 0%, #0dcaf0 100%);
    color: white;
    padding: 90px 0 0 0;
}

.feature-card1 {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card1:hover {
    transform: translateY(-5px);
}

.feature-card2 {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card2:hover {
    transform: translateY(-1px);
}

.btn-custom {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .slider-section {
        padding: 80px 0 40px;
        text-align: center;
    }
}

/* Slider styles */
#sliderCarousel {
    border-radius: 10px;
    overflow: hidden;
}

.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Product tabs */
.product-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.product-tabs .nav-link {
    border: none;
    color: #495057;
    padding: 15px 20px;
    margin-right: 5px;
    font-weight: 500;
}

.product-tabs .nav-link.active {
    border-bottom: 2px solid #cc0000;
    color: #cc0000;
    background: none;
}

.status-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
}

.product-title {
    font-size: 1.8rem;
    margin: 20px 0;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.parameter-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.parameter-table td, .parameter-table th {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.sub-nav {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.sub-nav .nav-link {
    padding: 10px 15px;
    color: #495057;
}

.sub-nav .nav-link.active {
    color: #2F4F4F;
    border-bottom: 2px solid #2F4F4F;
    font-weight: 500;
}

/* Image container styles */
.img-container {
    width: 300px;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin: auto;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.img-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .img-container {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .img-container {
        height: 120px;
    }
}

/* Tabs wrapper and navigation */
.tabs-wrapper {
    position: fixed;
    background: white;
    top: 80px;
    width: 100%;
    border-bottom: 1px solid #dee2e6;
    z-index: 1020;
    transition: all 0.3s ease;
}

.nav-tabs {
    display: flex !important;
    border: none;
}

/* Fixed behavior for desktop devices with mouse */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .tabs-wrapper {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Ensure tablets remain scrollable even if they're wide */
@media only screen and (max-device-width: 1024px) {
    .tabs-wrapper {
        position: static !important;
    }
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    padding: 1rem 2rem;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid #0d6efd;
    color: #0d6efd;
    background: none;
}

.nav-link-tab {
    display: block;
    padding: 0.5rem 1rem;
    color: #6c757d;
    text-decoration: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    border: none;
    background: transparent;
}

.nav-link-tab:hover,
.nav-link-tab:focus {
    color: #495057;
    border: none;
    outline: none;
}

.nav-link-tab.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
}

.nav-link-tab.disabled {
    color: #6c757d;
    pointer-events: none;
    cursor: default;
}

/* Image shapes */
.circle-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.square-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    overflow: hidden;
}

/* Animated text for index page */
.animated-text {
    font-size: 2rem;
    padding: 15px;
    display: inline-block;
}

.animated-text p {
    background: linear-gradient(90deg,
        #ff0000, #ff8000, #ffff00, #00ff00,
        #00ffff, #0000ff, #8000ff, #ff0000);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    position: relative;
    z-index: 2;
    margin: 0;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .animated-text {
        position: relative;
        line-height: 1.2;
    }
    
    .animated-text p {
        animation: none;
        background: none;
        color: #000;
        -webkit-background-clip: unset;
        background-clip: unset;
    }
    
    .animated-text::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 45%;
        background: linear-gradient(90deg,
            rgba(255, 255, 245, 1) 0%,
            rgba(255, 253, 230, 0.8) 50%,
            rgba(250, 250, 240, 0.6) 100%);
        z-index: 1;
    }
    
    .btn-custom {
        background: white;
        color: #0d6efd;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* News styles */
.news-container {
    margin-top: 80px;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 20px;
    border-right: 1px solid #ddd;