:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
}

.navbar {
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: auto; /* Remove fixed height */
    max-height: 60px; /* Set maximum height for desktop */
    width: auto; /* Maintain aspect ratio */
    max-width: 300px; /* Prevent logo from being too wide */
}

@media (max-width: 767px) {
    .navbar-brand img {
        max-height: 40px; /* Smaller logo on mobile */
        max-width: 200px; /* Adjust width for mobile */
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 25px; /* Even smaller on very small screens */
        max-width: 120px;
    }
}

.nav-item .nav-link.active{
    color: #17202a;
    font-weight: bold;
}

/*.dropdown:hover .dropdown-menu {
      display: block;
}

.dropdown {
            margin-left: 40rem;
            margin-right: 40rem;
        }*/

.dropdown-menu {
            border-radius: 0.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-top: 0;
        }

.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-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.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;
}

.footer {
    background-color: #212529;
    color: white;
    padding: 60px 0 30px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

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

 /* Slider styles remain same */
#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*/
/* Tab Navigation */
.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 */
.status-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
}

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

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

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

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

/* Tabs Content */
.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;
}

 /* Desktop styles */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
    }
    
    .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/*image related styles*/
/* Fixed size container with aspect ratio */
   .img-container {
       width: 300px;          /* Fixed width */
       height: 200px;         /* Fixed height */
       overflow: hidden;      /* Hide overflow */
       position: relative;
       margin: auto;
       
   }

   /* Image styling */
   .img-container img {
       width: 100%;
       height: 100%;
       object-fit: contain;     /* Cover container while maintaining aspect ratio */
       object-position: center;
       
   }
   
    /* Image styling */
   .img-cover img {
       width: 100%;
       height: 100%;
       object-fit: cover;     /* Cover container while maintaining aspect ratio */
       object-position: center;
       
   }
   
   

   /* Responsive breakpoints */
   @media (max-width: 768px) {
       .img-container {
           width: 100%;       /* Full width on mobile */
           height: 150px;     /* Reduced height */
       }
   }

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

/* Additional scroll watching and content focussing menu*/
/*.tabs-wrapper {
    position: fixed;
    top: 80px; /* Position below header * /
    width: 100%;
    background: white;
    z-index: 1020;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);* /
}

body {
    padding-top: 250px; /* Increase this value - adjust based on your tabs wrapper height *  /
}


.nav-tabs {
    border: none;
}*/
    
/* Base styles */
.tabs-wrapper {
    position: fixed;
    background: white;
    top: 80px; /* Position below header */
    width: 100%;
    background: white;
    border-bottom: 1px solid #dee2e6;
    z-index: 1020;
    transition: all 0.3s ease;
}

/* Default: Scrollable (for touch devices) */
.tabs-wrapper {
    /*position: static;*/
}

body {
    padding-top: 250px; /* Sufficient for mobile header + tabs content */
}

/* 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);
    }
    
    body {
        padding-top: 270px; /* More padding for fixed tabs on desktop */
    }
}

/* Ensure tablets and mobile remain scrollable */
@media only screen and (max-device-width: 1024px) {
    .tabs-wrapper {
        position: static !important;
    }
    
    body {
        padding-top: 120px !important; /* Enough space for header + content */
    }
}


.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;
}

/*sub menu nav-link*/
.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;
}

/* On mobile (screens smaller than 768px), tabs scroll normally */
@media (max-width: 767px) {
    .tabs-wrapper {
        position: static; /* Normal document flow */
    }
    
       .nav-tabs {
        display: none !important;
    }
    
    /* Reduce body padding since tabs are hidden on mobile */
    body {
        padding-top: 180px; /* Adjust based on remaining content height */
    }
}

/* Show nav-tabs on desktop */
@media (min-width: 768px) {
    .nav-tabs {
        display: flex !important;
    }
}

/*to crop an image into a circular shape*/
.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*/
/* Create animated gradient background */
.animated-text {
   font-size: 2rem;
   padding: 15px;
   display: inline-block; /* Makes container fit content */
}

.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; /* Removes default paragraph margin */
}

.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;
    height: 100%;
}

.news-content-wrapper {
    padding-left: 20px;
    
}

.news-title {
    color: #2c5282;
    font-size: 2rem;
    margin-bottom: 0.1rem;
}

.news-text {
    color: #4a9c40;
    font-size: 1.5rem;
    line-height: 1.4;
}

.a-newsclass{
  color: #666;
  font-size: 16px;
  text-decoration: none;
  }
  
 .news-row h6{
    margin: 0.5rem 0;
    line-height: 0.2;
  }
  
  /*.news-row a{
    line-height: 0.2;
    display: inline-block;
    padding: 0.1rem 0;
  }
  
  .news-row p{
    margin: 0.5rem 0;
    line-height: 1.4;
  }*/

.comments {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/*Product Description tech documentation styles*/
.table td {
    padding: 12px;
    border-color: #dee2e6;
}

.table td:first-child {
    color: #666;
    width: 50%;
}

.main-image {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.thumbnail {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail:hover {
    border-color: #dc3545;
}


/* Thumbnail container improvements */
.thumbnail-container {
    overflow-x: auto; /* Allow horizontal scroll if needed */
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive thumbnails */
.thumbnail {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0; /* Prevent thumbnails from shrinking */
}

/* Desktop thumbnails */
@media (min-width: 768px) {
    .thumbnail {
        width: 80px;
        height: 60px;
        object-fit: cover;
    }
}

/* Tablet thumbnails */
@media (max-width: 767px) and (min-width: 577px) {
    .thumbnail {
        width: 70px;
        height: 52px;
        object-fit: cover;
    }
    
    .thumbnail-container {
        gap: 0.5rem;
    }
}

/* Mobile thumbnails */
@media (max-width: 576px) {
    .thumbnail {
        width: 60px;
        height: 45px;
        object-fit: cover;
    }
    
    .thumbnail-container {
        gap: 0.25rem;
        justify-content: flex-start;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .thumbnail {
        width: 50px;
        height: 38px;
    }
}

.zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.02);
}


 

