/* Container class with responsive widths */
.custom-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}



/* For ultra-wide screens */
@media (min-width: 1600px) {
    .custom-container {
        max-width: 1500px;
    }
    .first-slidercontainer{
        padding-left: 15px;
        padding-right: 15px;
    }
}

.swiper {
    position: relative; 
    margin-top: 100px;
    width: 100%;
    height: 70vh;
    z-index: 0;
    margin-left: auto;
    margin-right: auto;
}


.swiper-slide {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    color: black;
    overflow: hidden;
}

.swiper-slide img,
.swiper-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 50%;
    z-index: 2;
    padding: 20px;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 1.5rem;
    margin-bottom: 25px;
    line-height: 1.4;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.swiper-button-prev, .swiper-button-next {
    background-color: gray;
    color: #000;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 30px;
    font-weight: bold;
}

/* Optional: Add hover effect */
.swiper-button-prev:hover, .swiper-button-next:hover {
    background-color: #555; /* Darker gray on hover */
}

.slide-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0641a1;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    gap: 10px;
}

.slide-button:hover {
    background-color: #0641a1;
    transform: scale(1.05);
}

.slide-button i {
    margin-right: 5px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.play-pause-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.play-pause-btn:hover {
    background: rgba(255,255,255,0.3);
}

.slider-progress {
    flex-grow: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    position: relative;
    cursor: pointer;
}

.slider-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    width: 0;
}

/* Updated media queries for small and medium devices */
@media (max-width: 768px) {
    .swiper {
        width: 100%;
        max-width: 100%;
    }
    
    .slide-content {
        max-width: 90%;
        left: 5%;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1.2rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* home slider */
.swiper2 {
    width: 100%;
    overflow: hidden;
    z-index: 1;
}
.swiper2 .swiper-wrapper {
    display: flex;
}
.swiper2 .swiper-slide {
    width: 100% !important;  /* Ensures each slide fits */
    flex-shrink: 0;
}

.first-slidercontainer {
    padding-top: 50px;
    padding-bottom: 50px;
    width: 100%;
}

@media (min-width: 1200px) {
   
    .first-slidercontainer{
        padding-left: 50px;
        padding-right: 50px;
    }
}


/***/
.header-title{
    text-align: center;
}
/* Tabs Styling */
.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    width: 100%;
}

.product-tab {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.product-tab.active {
    color: #000;
    font-weight: bold;
    border-bottom-color: #000;
}

.swiper-slide {
    display: flex;
    gap: 20px;
}

/* Large Product Card */
/* Parent container */
.products-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 30px;
}

/* Large Product Card */
.large-product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f4f4f4;
    padding: 15px;
    position: relative;
}

.large-product-card .image-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 15px;
}

.large-product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    mix-blend-mode: multiply;
}

.large-product-card .product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    position: relative;
    min-height: 150px;
}

.large-product-card .product-name {
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.large-product-card .product-description {
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.large-product-card .find-more-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 10;
}

.large-product-card:hover .find-more-btn {
    bottom: -10px;
    opacity: 1;
}

.large-product-card:hover .product-name {
    color: #555;
}

/* Small Products Grid */
.small-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    width: 100%;
}

.small-product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: #f4f4f4;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 15px;
    position: relative;
}

.small-product-card .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 15px;
}

.small-product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    mix-blend-mode: multiply;
}

.small-product-card .product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    position: relative;
    min-height: 100px;
}

.small-product-card .product-name {
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.small-product-card .find-more-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 10;
}

.small-product-card:hover .find-more-btn {
    bottom: -10px;
    opacity: 1;
}

.small-product-card:hover .product-name {
    color: #555;
}

/* Ensure specific placement of small cards */
.small-product-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.small-product-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.small-product-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.small-product-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

@media screen and (max-width: 767px) {
    /* Make swiper slide display as column */
    .swiper-slide {
      flex-direction: column;
      padding:3px;
    }
    .large-product-card{
        display: flex;
        gap:10px;
        flex-direction: row;
    }
    
    /* Large product card takes full width */
    .large-product-card {
      width: 100%;
      margin-bottom: 20px;
    }
    
    /* Small products grid layout adjustments */
    .small-products-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      width: 100%;
      gap:10px;
    }
    
    /* Small product cards take 48% width (2 per row) */
    .small-product-card {
      width: 48%;
      margin-bottom: 15px;
    }
    
    /* Adjust image container height for better proportion */
    .small-product-card .image-container {
      height: 120px;
    }
    
    /* Make product details more compact */
    .product-details {
      padding: 10px;
    }
    
    /* Adjust font sizes */
    .large-product-card .product-name {
      font-size: 18px;
    }
    
    .small-product-card .product-name {
      font-size: 14px;
      margin-bottom: 8px;
    }
    
    .product-description {
      font-size: 13px;
      margin-bottom: 10px;
    }
    
    .find-more-btn {
      font-size: 13px;
      padding: 6px 12px;
    }
  }
  
  /* Extra small devices (phones) */
  @media screen and (max-width: 480px) {
    .large-product-card{
        display: flex;
        gap:10px;
        flex-direction: row;
    }
    .small-product-card .image-container {
      height: 100px;
    }
    
    .large-product-card .product-name {
      font-size: 16px;
    }
    
    .small-product-card .product-name {
      font-size: 13px;
    }
  }
/**
common slider
*/
/* Enhanced Base styling for the key feature tab section */
.key-feature-tab {
    position: relative;
    width: 100%;
    margin: 0 0 70px 0;
    overflow: hidden;
    background-color: #f8f9fa;
}


.key-feature-tab__contents {
    position: relative;
    width: 100%;
    height: 100%;
}

.key-feature-tab__header-wrap {
    position: relative;
    z-index: 10;
    padding: 50px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    width: 100%;
}

.key-feature-tab__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.key-feature-tab .tab__list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-wrap: wrap;
    width: 100%;
}

.key-feature-tab .tab__item {
    margin: 0 12px 10px;
}

.key-feature-tab .tab__item-title {
    position: relative;
    padding: 12px 16px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.key-feature-tab .tab__item-title:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.key-feature-tab .tab__item-title.active {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.key-feature-tab .tab__item-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    transition: width 0.5s cubic-bezier(0.58, 0.3, 0.005, 1);
}

.key-feature-tab .tab__item-title.active .tab__item-line {
    width: 100%;
}

.key-feature-tab__container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 650px;
}


.key-feature-tab .swiper-container {
    width: 100%;
    height: 100%;
}

.key-feature-tab .swiper-slide {
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.key-feature-tab__slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.key-feature-tab__inner-wrap {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 40px 50px;
    max-width: 800px;
    margin-bottom: 80px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out forwards;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.key-feature-tab__headline {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.key-feature-tab .cta {
    display: inline-block;
    padding: 16px 40px;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.key-feature-tab .cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fa5252;
    transition: opacity 0.4s ease-out;
    z-index: -1;
    opacity: 0;
    border-radius: 40px;
}

.key-feature-tab .cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
}

.key-feature-tab .cta:hover:before {
    opacity: 1;
}

.key-feature-tab__background-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
}

.key-feature-tab .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    z-index: 0;
}

.key-feature-tab .image__main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease-out;
    filter: brightness(0.95) saturate(1.1);
}

.key-feature-tab .swiper-slide-active .image__main {
    transform: scale(1.05);
}

.key-feature-tab .swiper-slide-prev .image__main,
.key-feature-tab .swiper-slide-next .image__main {
    transform: scale(1);
}

.key-feature-tab .swiper-pagination {
    position: absolute;
    bottom: 30px;
}

.key-feature-tab .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.key-feature-tab .swiper-pagination-bullet-active {
    background: #ff6b6b;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}
/* Container class for consistent sizing */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}



/* Base styles (mobile first approach) */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    
    .swiper {
        margin-top: 50px;
        height: 50vh;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .slide-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .key-feature-tab__title {
        font-size: 1.8rem;
    }
    
    .key-feature-tab__headline {
        font-size: 1.5rem;
    }
    
    .key-feature-tab__inner-wrap {
        padding: 15px;
        margin-bottom: 40px;
        width: 95%;
    }
    
    .key-feature-tab__container {
        height: 450px;
    }
    
    .large-product-card .image-container {
        height: 200px;
    }
    
    .small-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    .swiper {
        margin-top: 70px;
        height: 60vh;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1.2rem;
    }
    
    .key-feature-tab__container {
        height: 500px;
    }

}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
   
    .swiper {
        height: 65vh;
    }
    
    .slide-content {
        max-width: 70%;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.3rem;
    }
    
    .first-slidercontainer {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .large-product-card .image-container {
        height: 400px;
    }

   
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .key-feature-tab__title {
        font-size: 3rem;
    }
    
    .key-feature-tab__headline {
        font-size: 2.5rem;
    }
}


/* Extra Extra Large Devices (larger desktops, 1400px to 1599px) */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .first-slidercontainer {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Ultra-wide screens (1600px and up) */
@media (min-width: 1600px) {
    .custom-container {
        max-width: 1500px;
    }
    
    .first-slidercontainer {
        padding-left: 70px;
        padding-right: 70px;
    }
    
    .slide-title {
        font-size: 3.5rem;
    }
    
    .slide-description {
        font-size: 1.8rem;
    }
    
    .key-feature-tab__title {
        font-size: 4rem;
    }
    
    .key-feature-tab__headline {
        font-size: 3.5rem;
    }
    
    .key-feature-tab__container {
        height: 750px;
    }
    
    .large-product-card .image-container {
        height: 600px;
    }
    
    .small-product-card .image-container {
        height: 250px;
    }
}

/* Special case for very small mobile devices */
@media (max-width: 359.98px) {
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide-buttons {
        gap: 10px;
    }
    
    .slide-button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .key-feature-tab__inner-wrap {
        padding: 10px;
    }
}

/* Landscape orientation adjustments for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .swiper {
        height: 90vh;
    }
    
    .slide-content {
        max-width: 60%;
    }
    
    .slide-buttons {
        flex-direction: row;
    }
    
    .key-feature-tab__container {
        height: 400px;
    }
}

/* High-resolution screens (Retina displays) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for high-resolution screens if needed */
    .swiper-slide img,
    .large-product-card img,
    .small-product-card img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .swiper-button-prev,
    .swiper-button-next,
    .play-pause-btn,
    .slider-controls,
    .slide-buttons {
        display: none !important;
    }
    
    .slide-content {
        position: static;
        transform: none;
        max-width: 100%;
        color: black;
        text-shadow: none;
    }
    
    .slide-title,
    .slide-description {
        color: black;
        text-shadow: none;
    }
}