a {
    text-decoration: none;
}

.nav-tabs{
    border-bottom: 0px;
}

.tab-center, #myTab{
    justify-content: center !important;
    /* display: flex;
    flex-wrap: wrap; */
    padding-left: inherit;
}

#applications-section-padding{
  padding-top: 5%;
}
/* Vertical Tab Section */
::selection {
  background: #61be7d;
  color: #fff;
}

.content{
    color: var(--mahirut-color);
}
.content-paragraph{
    color: #fff;
}
.topic {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
}

.solution-content {
  display: flex;
  justify-content: space-between;
}

.solution-content .list {
  display: flex;
  flex-direction: column;
  width: 20%;
  margin-right: 50px;
  position: relative;
}

.solution-content .list label {
  height: 60px;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  padding-left: 25px;
  transition: all 0.5s ease;
  color: var(--heading-color);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

#powerElectronics:checked ~ .list label.powerElectronics,
#CAD:checked ~ .list label.CAD,
#EMAG:checked ~ .list label.EMAG,
#civil:checked ~ .list label.civil,
#about:checked ~ .list label.about {
  color: #fff;
}

.solution-content .list label:hover {
  color: #61be7d;
}

.solution-content .slider1 {
  position: absolute;
  left: 0;
  top: 0;
  height: 60px;
  width: 100%;
  border-radius: 12px;
  background: #61be7d;
  transition: all 0.4s ease;
  z-index: 1;
}

#powerElectronics:checked ~ .list .slider1 { top: 0; }
#CAD:checked ~ .list .slider1 { top: 60px; }
#EMAG:checked ~ .list .slider1 { top: 120px; }
#civil:checked ~ .list .slider1 { top: 180px; }
#about:checked ~ .list .slider1 { top: 240px; }

.solution-content .text-content {
  width: 80%;
  height: 82vh;
  padding: 20px 20px;
  overflow-y: auto;
  background: #ffffff0d;
  border-radius: 10px;
}

.solution-content .text {
  display: none;
}

.mobile {display: none;}

.solution-content .text .title {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.solution-content .text p {
  text-align: justify;
  font-weight: 400;
  line-height: 28px;
}

.solution-content .text-content .powerElectronics {
  display: block;
}

#powerElectronics:checked ~ .text-content .powerElectronics,
#CAD:checked ~ .text-content .CAD,
#EMAG:checked ~ .text-content .EMAG,
#civil:checked ~ .text-content .civil,
#about:checked ~ .text-content .about {
  display: block;
}

#CAD:checked ~ .text-content .powerElectronics,
#EMAG:checked ~ .text-content .powerElectronics,
#civil:checked ~ .text-content .powerElectronics,
#about:checked ~ .text-content .powerElectronics {
  display: none;
}

.solution-content input {
  display: none;
}

.solution-content { display: none; }
.solution-content.active { display: block; }
.main-tab.active { font-weight: bold; }

/* Solution Place image */
  .powerelectronics-hero {
      color: var(--text-primary);
      padding: 8rem 5% 4rem;
      background-image: url('./assets/images/solution/power-electronics.png');
      border-bottom: 2px solid var(--mahirut-color);
      background-repeat: no-repeat;
      background-size: cover;    
  }
  .emag-hero {
      color: var(--text-primary);
      padding: 8rem 5% 4rem;
      background-image: url('./assets/images/solution/antenna-solution.png');
      border-bottom: 2px solid var(--body-bg);
      background-repeat: no-repeat;
      background-size: cover;       
  }
  .mech-hero {
      color: var(--text-primary);
      padding: 8rem 5% 4rem;
      background-image: url('./assets/images/solution/cae-solution.png');
      border-bottom: 2px solid var(--body-bg);
      background-repeat: no-repeat;
      background-size: cover;    
  }
  .civil-hero {
    color: var(--text-primary);
    padding: 8rem 5% 4rem;
    background-image: url('./assets/images/solution/civil-solution.png');
    border-bottom: 2px solid var(--body-bg);
    background-repeat: no-repeat;
    background-size: cover; 
}

/* Vertical Tab Responsive */

@media (max-width: 768px) {
  .solution-content {
    flex-direction: column;
    align-items: stretch;
  }

  .solution-content .list {
    flex-direction: row;
    width: 100%;
    margin: 0 0 20px;
    overflow-x: auto;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
  }

  .solution-content .list label {
    z-index: 2;
    flex: 1 0 auto;
    text-align: center;
    height: auto;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    justify-content: center;
    cursor: pointer;
    padding-left: 25px;
    transition: all 0.5s ease;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .solution-content .slider1 {
    height: auto;
    width: 20%;
    top: 0;
    left: 0;
    border-radius: 2;
    z-index: 1;
    background: #61be7d;
    transition: transform 0.3s ease;
  }

  #powerElectronics:checked ~ .list .slider1 {
    transform: translateX(0%);
  }
  #CAD:checked ~ .list .slider1 {
    transform: translateX(100%);
  }
  #EMAG:checked ~ .list .slider1 {
    transform: translateX(200%);
  }
  #civil:checked ~ .list .slider1 {
    transform: translateX(300%);
  }
  #about:checked ~ .list .slider1 {
    transform: translateX(400%);
  }

  .solution-content .text-content {
    width: 100%;
  }

  #powerElectronics:checked ~ .list label.powerElectronics,
  #CAD:checked ~ .list label.CAD,
  #EMAG:checked ~ .list label.EMAG,
  #civil:checked ~ .list label.civil,
  #about:checked ~ .list label.about {
    color: #fff;
    background-color: var(--heading-color);
    border-radius: 15px;
  }

  #vertical-tab {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #solution-image {
    width: 100%;
    height: auto;
    max-height: 414px;
  }
  .mobile {
    display: block;
  }
  .powerelectronics-hero {
    background: url('./assets/images/solution/power-electronics-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .emag-hero {
    background: url('./assets/images/solution/antenna-solution-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .mech-hero {
    background: url('./assets/images/solution/cae-solution-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .civil-hero {
    background: url('./assets/images/solution/civil-solution-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .features-grid {
    grid-template-columns:none;
  }
}



/* Mobile (≤ 480px) Adjustments */
@media (max-width: 480px) {
  .topic {
    font-size: 24px;
    text-align: center;
  }

  .solution-content .list label {
    font-size: 14px;
    padding: 8px 10px;
  }

  .solution-content .text .title {
    font-size: 20px;
  }

  .solution-content .text p {
    font-size: 14px;
    font-weight: 400;
  }

  #solution-image {
    width: 100%;
    height: auto;
    max-height: 414px;
  }
  .powerelectronics-hero {
    background: url('./assets/images/solution/power-electronics-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .emag-hero {
    background: url('./assets/images/solution/antenna-solution-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .mech-hero {
    background: url('./assets/images/solution/cae-solution-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
  .civil-hero {
    background: url('./assets/images/solution/civil-solution-mobile.png') no-repeat center/cover;
    height: 75vh;
  }
}

/* Scrollbars & Extras */
.text-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.text-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.text-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#solution-image {
  height: auto;
  max-height: 414px;
}



    /* buttons */

    .main-tabs {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
    }

        
    .button-tab {
        align-items: center;
        padding: 1rem 2rem;
        background: var(--dark-card);
        border: 1px solid rgba(104, 192, 130, 0.6) !important;
        border-radius: 8px;
        color: var(--text-secondary) !important;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .button-tab span{
        padding-left: 10px;
    }

    .button-tab i {
        font-size: 1.2rem;
        /* color: var(--mahṆirut-color); */
    }

    .button-tab:hover {
        /* background: rgba(134, 218, 13, 0.1); */
        background: var(--mahirut-color);
        transform: translateY(-2px);
        border-color: var(--mahirut-color);
        color: var(--paragraph-color) !important;
    }

    .button-tab.active {
        background: var(--dark-card) !important;
        border-color: var(--mahirut-color) !important;
        color: var(--paragraph-color) !important;
    }

    .button-tab.active:hover {
      background: var(--mahirut-color) !important;
      transform: translateY(-2px);
      border-color: var(--mahirut-color) !important;
      color: var(--paragraph-color) !important;
    }




    
/* solutions card */
.overview-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgb(0 0 0 / 15%);
    border: 1px solid rgba(134, 218, 13, 0.1);
}

.overview-card h3 {
    /* color: var(--mahirut-color); */
    margin-bottom: 1rem;
}

.text-justify{
    line-height: 28px;
    text-align: justify;
}

.problem-statement-image {
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
}

.problem-statement-image img {
    /* width: 100%; */
    height: auto;
    object-fit:contain;
    transition: transform 0.3s ease;
}

.problem-statement-image img:hover {
    transform: scale(1.05);
}



/* process  */


/* process */
.process {
    padding: 0;
    list-style: none;
}
.process h5 {
    color: var(--heading-color);
}

.process li span {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    background: var(--mahirut-color);
    border-radius: 40px;
    z-index: 1;
    font-size: 22px;
}

.process li::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    top: 0;
    left: 30px;
    background: var(--mahirut-color);
}

.process li {
    position: relative;
    display: flex;
    padding-bottom: 5px;
}

.step-process{
    color: var(--mahirut-color);
    padding-top:8px;
}

#process-list{
    margin-top: 16px;
    padding-left: 16px;
}

#process-list li::after {
    width: 0px;
}


.process li:last-child {
    padding-bottom: 0;
}

.process li:last-child:after {
    display: none;
}

.process li p {
    margin: 0;
}

/* solutin tab */

.solution-overview h2 {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.solution-overview h3

.solution-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.solution-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefits-image, .specifications-image {
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
}

.benefits-list img, .specifications-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image covers the container while maintaining its aspect ratio */
    border-radius: 50px; /* Removed !important for maintainability */
    transition: transform 0.3s ease; /* Smooth transition for any transform changes */
}

.specifications-content, .benefits-content {
    background-color: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(134, 218, 13, 0.1);
}

.benefits-list, .specifications-list {
    list-style: none;
    padding: 0;
}

.benefits-list li, .specifications-list li {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 24px;
    font-family: "Open Sans", sans-serif;
}

.benefits-list li:before, .specifications-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--mahirut-color);
}

.benefits-list li:hover, .specifications-list li:hover {
    /* background-color: rgba(134, 218, 13, 0.1); *//*Light background on hover */
    transform: translateY(-2px); /* Slight lift effect */
    transition: transform 0.2s ease, background-color 0.3s ease; /* Smooth transition for hover effect */
}

.benefits-image img:hover, .benefits-list img:hover, .specifications-image img:hover {
    transform: scale(1.05); /* Slight zoom-in effect on hover */
    transition: transform 0.3s ease; 
}



/* Features Section  &  Applications Section */
.applications-section, .features-section {
    margin-bottom: 2rem;
}

/* Chaining styles for h3 in both .features-section and .applications-section */
.features-section h3, .applications-section h3 {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2rem;
}

.features-grid, .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card, .application-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--mahirut-color);
    /* border: 1px solid rgba(134, 218, 13, 0.1); */
    transition: all 0.3s ease;
}

.feature-card:hover, .application-card:hover {
    transform: translateY(-5px);
    border-color: var(--mahirut-color);
    box-shadow: 0 5px 15px rgba(134, 218, 13, 0.1);
}

.feature-card i, .application-card i {
    font-size: 2rem;
    color: var(--mahirut-color);
    margin-bottom: 1rem;
}

.feature-card h4, .application-card h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p, .application-card p {
    color: var(--text-secondary);
}


/*  */

.brochure-download-form label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.brochure-download-form {
    background-color: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
}
.brochure-download-form .form-control {
    background-color: var(--body-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.brochure-download-form .form-group {
    margin-bottom: 1rem;
}
.download-brochure-btn {
    width: 100%;
    background-color: var(--mahirut-color);
    color: var(--paragraph-color-grey);
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-brochure-btn:hover {
    background-color: #161c2c;
    color: var(--mahirut-color);
    border: 1px solid var(--mahirut-color);
    box-shadow: 0 0 20px rgba(134, 218, 13, 0.2) !important;
    transition: background-color 0.3s ease;

}


.academic-datasheet-section {
    margin: 3rem 0;
    background-color: var(--body-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgb(0 0 0 / 15%);
}

.datasheet-highlights h4{
    color: var(--text-primary);
}
.datasheet-highlights ul {
    list-style-type: none;
    color: var(--text-primary);
    padding: 0;
}

.datasheet-highlights li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.datasheet-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--body-bg);
}


@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .img-fluid {
        /* width: 256px; */
    }

}

.benefits-image img, .steps-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.ts-paragraph-secondary{
    color: var(--text-secondary);
}

.form-check-input {
    margin-top: .5em !important;
}

.btn:focus-visible {
    color: var(--paragraph-color);
    background-color: var(--heading-color);
    border-color: var(--heading-color);
    outline: 0;
    box-shadow: var(--bs-btn-focus-box-shadow);
}


/* antenna Tabs */
.antenna-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}


.antenna-tab-button {
    flex: 1; /* Allow buttons to grow and fill the space */
    min-width: 120px; /* Set a minimum width for buttons */
    padding: 10px; /* Add padding for better touch targets */
    margin: 5px; /* Add margin between buttons */
    background-color: var(--body-bg); /* Button background color */
    color: var(--paragraph-color); /* Button text color */
    border: 1px solid var(--paragraph-color); /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s; /* Smooth background color transition */
  }
  
  .antenna-tab-button:hover {
    background: var(--mahirut-color) !important;
    transform: translateY(-2px);
    border-color: var(--mahirut-color) !important;
    color: var(--paragraph-color) !important;
  }
  
  .antenna-tab-button.active {
    background: var(--dark-card) !important;
    border-color: var(--mahirut-color) !important;
    color: var(--paragraph-color) !important;
    font-weight: 600;
  }  
  
  .antenna-tab-button.active:hover {
    border: 1px solid var(--heading-color); /* Remove default border */
    background-color: var(--body-bg); 
    color: var(--heading-color); /* Button text color */
  }


.antenna-tab-content {
    display: none;
    padding: 20px;
    border: 1px solid var(--body-bg);
    border-radius: 8px;
    background: var(--body-bg);
    color: var(--text-primary);
    box-shadow: 4px 4px 15px rgb(0 0 0 / 15%);
}

.antenna-tab-content.active {
    display: block;
}

.antenna-image {
    display: block; /* Makes the image a block element */
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 100%; /* Ensures the image is responsive */
    height: auto; /* Maintains aspect ratio */
    max-height: 350px;
    padding: 10px 0; /* Adds some space around the image */
}

/* Media Queries for Smaller Screens */
@media (max-width: 600px) {
    .antenna-tab-button {
        flex: 1 1 100%; /* Make buttons full width on small screens */
        margin: 5px 0; /* Adjust margin for vertical spacing */
    }
}
