
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


/* General body styling */
body {
   
  /*   font-family: Arial, Helvetica, sans-serif; */ 

  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;


    font-weight:normal;
    margin: 0px;
    padding: 0px;
    text-align: center;
    justify-content: center;
    gap:1px;
    width:100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Include padding and border in the element's total */
    overflow-y: auto; /* Ensure content is scrollable if it overflows */
    background-color: #f4f4f4;
  

}

/* Header styling */
header {
    position: fixed;
    width: 100%;
    background-color: #fff;
    color: #fff;
    height:65px;
    text-align: center;
    top: 0px;
    padding-top: 0px; 
    z-index: 1000;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    }

/* Make the image responsive */
@media (max-width: 768px) {
    header {
        height:55px;
      }
}


/* Footer styling */
footer {
    background-color: rgb(34, 29, 29);
    color:#fff;
    width: 100%;
    position:static;
    width: 100%;
    height:80px;
    bottom: 0px;
    text-align: center;
    z-index: 1000;
    font-size: 10px;
    font-weight:normal;

 
}   


/* Container for the content */
.content {
    position: relative;
    margin-top: 90px; /* Same height as header */
    margin-bottom: 0px; /* Same height as footer */
    height:335px;
    width:100%;
    
   /* background: url('images/electronic-engineering.jpg') no-repeat center center;
    background-size:cover; /* Ensures the image covers the entire area */

    display: flex; 
    justify-content: center;
 
    border: 2px solid lightgray; /* Border color and width */
    border-radius: 5px; /* Adjust the radius for rounded corners */
    
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Include padding and border in the element's total */
    overflow: hidden; /* Ensures the image fits within the border */

}

/* Container for the content */
.content-pages {
    position: relative;
    margin-top: 90px; /* Same height as header */
    margin-bottom: 0px; /* Same height as footer */
    height:150px;
    width:100%;
    
   /* background: url('images/electronic-engineering.jpg') no-repeat center center;
    background-size:cover; /* Ensures the image covers the entire area */

    display: flex; 
    justify-content: center;
 
    border: 2px solid rgba(0, 0, 0, 0.1); /* Border color and width */
    border-radius: 5px; /* Adjust the radius for rounded corners */
    
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Include padding and border in the element's total */
    overflow: hidden; /* Ensures the image fits within the border */

}


.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire area */
    position: absolute;
    top: 0;
    left: 0;
}


 /* Align image to the left */
 img.left-align {
    float: left;
    margin-right: 0px; /* Optional: Adds some space to the right of the image */
    margin-left: 5px; /* Optional: Adds some space to the right of the image */
    margin-top: 0px;
    margin-bottom: 5px;
    max-width: 25%;
    height:60px;
   
 }

 /* Make the image responsive */
@media (max-width: 768px) {
    img.left-align {
        height:50px;
    
      }
}


  
 /* Align image to the right */
 img.right-align {
    float: right;
    margin-right: 20px; /* Optional: Adds some space to the right of the image */
    margin-left: 10px; /* Optional: Adds some space to the right of the image */
    margin-top: 5px;
    margin-bottom: 10px;
    max-width: 15%;
    
 }

 @media (max-width: 768px) {
    img.right-align{
    margin-right: 5px; /* Optional: Adds some space to the right of the image */
    margin-left: 10px; /* Optional: Adds some space to the right of the image */
 
      }
}

/* Button styling */
.button-custom {
    font-size: 10px;
    font-weight: bold;
    background-color:  rgba(0, 0, 0); /* Black with 50% opacity */
    color: #fff;
    border-radius: 8px;
    border-color: #fff; /* Optional: Removes default border */
    padding: 10px 8px; /* Optional: Adds some padding */
     cursor: pointer; /* Optional: Changes cursor to pointer on hover */
     flex:1;
    
}

/* Make the buttons responsive */
@media (max-width: 768px) {
    .button-custom  {
        font-size: 6px;
        padding: 6px 6px;
        border-radius: 6px;
      }
}

/* Styling the navigation container */
.navbar {
    display: flex;
    justify-content:space-around;
    align-items: center;
    background-color:#fff;
    padding: 0px 0px;
}

/* Styling the navigation links */
.navbar a {
    text-decoration: none;
    color: grey; /* Grey text color */
    font-size: 20px;
    font-weight: 700;
    padding: 5px 0px;
    padding-top: 20px;
    transition: color 0.3s ease;
    margin: 0; /* Remove default margins */
}

/* Hover effect for navigation links */
.navbar a:hover {
    color: black; /* Change text color on hover */
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .navbar a {
      font-size: 13px;
      padding: 2px 0px;
      padding-top: 15px;
      flex-grow: 0;
      margin-right: 10px; /* Use negative margin to reduce gaps */
      margin-left: 4px; /* Use negative margin to reduce gaps */
    }

  }


  
  @media (max-width: 480px) {
    .navbar a {
      font-size: 10px;
      padding: 2px 0px;
      padding-top: 15px;
      flex-grow: 0;
      margin-right: 0px; /* Use negative margin to reduce gaps */
      margin-left: 4px; /* Use negative margin to reduce gaps */
     }
    
     

  }

  /* Standardize unordered lists */
ul {
    list-style-type: disc; /* Default bullet style */
    margin: 0 0 1em 1.5em; /* Adjust margins */
    padding-left: 10px;
  }
  
  /* Standardize ordered lists */
  ol {
    list-style-type: decimal; /* Default number style */
    margin: 0 0 1em 1.5em; /* Adjust margins */
    padding: 0;
  }
  
  /* Standardize list items */
  li {
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.5; /* Line height for readability */
    padding-left: 10px;
    text-align: left; /* Ensure text is left-aligned */

  }
  
  /* Custom bullet color */
  ul li::marker {
    color: grey; /* Change bullet color */
  }
  
  /* Custom number color */
  ol li::marker {
    color: grey; /* Change number color */
  }


.rounded-image-large {
    max-width: 450px; /* Adjust as needed */
    border: 2px solid rgba(0, 0, 0, 0.1); /* Border color and width */
    background-color: #fff;
    border-radius: 10px; /* Adjust the radius for rounded corners */
    overflow: hidden; /* Ensures the image fits within the border */
    display: inline-block;
    margin:10px;
}

.rounded-image-large img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes bottom space */
}

.rounded-image {
    width: 380px; /* Adjust as needed */
    height:240px;
    border: 2px solid rgba(0, 0, 0, 0.1); /* Border color and width */
    background-color: #fff;
    border-radius: 5px; /* Adjust the radius for rounded corners */
    overflow: hidden; /* Ensures the image fits within the border */
    display: inline-block;
    padding:10px;
    padding-bottom:30px;
    margin-right:50px;
    margin-left:50px;
    margin-top:10px;
    margin-bottom: 20px;
    font-family: "Raleway", sans-serif;
    font-weight:normal;
    font-size: 16px;
    border-radius: 5px;
    color: black;


}

.rounded-image img {
    width: 100%;
    height: 100%; /* Maintains aspect ratio */
  
}
/* Media query for smaller screens */
@media (max-width: 768px) {
    .rounded-image {
        width: 50%; 
        max-width:90%;
        height:50%;
        padding:7px;
        padding-bottom:10px;
        color: black;
    }
}


/* main styling */
main {

    min-height: 110vh;
    text-align: center;
    padding:0px;

    h1 { 
        font-family: "Raleway", sans-serif;
        color:#fff; /* Text color */
        font-style: italic;
        font-size: 50px;
        font-weight:900;
        text-shadow: 
            -1px -1px 0 black, 
            1px -1px 0 black, 
            -1px 1px 0 black, 
            1px 1px 0 black; /* Four shadows to create an outline */
        padding:0px;
       
    }
    /* Media query for smaller screens */
    @media (max-width: 768px) {
    h1 {
        font-size: 30px;
        
    }
    }  
    
    .responsive-text {
        display: inline;
    }
    
    /* Media query for smaller screens */
        @media (max-width: 600px) {
            .responsive-text:before {
                content: '\A'; /* Line break */
                white-space: pre; /* Preserve the line break */
                }
        }
    
    h2 {
        font-family: "Raleway", sans-serif;
        font-size: 30px;
        font-weight:900;
        justify-content: center;
    }
    h3 {
        font-family: "Raleway", sans-serif;
        font-size: 18px;
        font-weight:700;
        justify-content: left;
    }

    a {
        color: black;
        text-decoration: none; /* Removes the underline */
    }
    
    a:hover {
        color: #555; /* Slightly different color on hover */
        text-decoration: underline; /* Adds underline on hover */
    }
}


/* Navigation styling */
nav {
    background-color:rgba(0, 0, 0, 0.1);;
    padding: 10px;
    text-align: right;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    text-align: left;
}

nav a:hover {
    text-decoration: underline;
}


.slider {
    width: 70vw;
    margin: auto;
    overflow: hidden;
    position: relative;
    
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 20%; /* Display 4 items in a line */
    box-sizing: border-box;
    position: relative;
    margin:13px;
    font-weight:700;
    font-size: 16px;
    border-radius: 5px;

}

.slide img {
 
    width: 100%; /* Adjust as needed */
    height:150px;
    border: 2px solid rgba(0, 0, 0, 0.1); /* Border color and width */
    background-color: bisque;
    border-radius: 15px; /* Adjust the radius for rounded corners */
    overflow: hidden; /* Ensures the image fits within the border */
    display: block;
    padding:8px;
    padding-bottom: 60px;

 
}

.title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: black;
    padding: 6px 6px;
    font-weight:700;
    font-size: 14px;
    border-radius: 5px;

}
.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.navigation button {
   
    font-size: 10px;
      font-weight:900;
      background-color:  rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
      color: #fff;
      border-radius: 8px;
      border-color: #fff; /* Optional: Removes default border */
      padding: 8px 8px; /* Optional: Adds some padding */
      cursor: pointer; /* Optional: Changes cursor to pointer on hover */
  
  }
  


/* Media query for smaller screens */
@media (max-width: 768px) {
    .slider {
        width: 95vw;
        
    }
  
  
    .slide {
        min-width: 50%; /* Display 3 items in a line on smaller screens */
       
        }


        .slide img {
 
            width: 100%; /* Adjust as needed */
            height:100px;
    
            padding:6px;
            padding-bottom: 30px;
         
        }
    

    .title {
        font-size: 9px; /* Adjust title size for smaller screens */
        left: 7px; /* Adjust title position for smaller screens */
        bottom: 7px;
        }

    .navigation button {
        font-size: 6px;
        padding: 6px 6px; /* Adjust button size for smaller screens */
       }

}


.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    gap: 20px; /* Add gap between items */
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px; /* Add margin for fallback */
    width: 30%;
    box-sizing: border-box;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    max-width: 100%;
    border-radius: 5px;
}

.product-card h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.product-card p {
    color: #555;
}

@media (max-width: 768px) {
    .product-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}

.producttabs {
    margin-bottom: 40px;
}
.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-top: 20px;
}
.tab {
    font-size: 12px;
    padding: 10px 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f9f9f9;
    margin-right: 0px;
    transition: background-color 0.3s;
}
.tab:hover {
    background-color: #e9e9e9;
}
.tab.active {
    background-color: #fff;
    border-bottom: 2px solid #fff;
}
.tab-content {
    display: none;
    padding: 20px;
    border: none;
    border-top: none;
}
.tab-content.active {
    display: block;
}
@media (max-width: 600px) {
    .tab {
        padding: 8px 16px;
        font-size: 12px;
    }
    .tab-content {
        padding: 15px;
        font-size: 14px;
    }
}
@media (max-width: 400px) {
    .tab {
        padding: 6px 12px;
        font-size: 10px;
    }
    .tab-content {
        padding: 10px;
        font-size: 12px;
    }
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    padding: 20px;
    grid-template-areas:
        "news1 news1 news2"
        "news1 news1 news3"
        "news4 news4 news4";
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
 }

.news-item:hover {
    transform: scale(1.05);
}

.news-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.news-item h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.news-item p {
    color: #555;
}

.news-item.large {
    grid-area: news1;
    grid-column: span 2;
    grid-row: span 2;
}

.news-item.full {
    grid-area: news1;
    grid-column: span 3;
    grid-row: span 2;
}


#news2 {
    grid-area: news2;
}

#news3 {
    grid-area: news3;
}

#news4 {
    grid-area: news4;
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "news1"
            "news2"
            "news3"
            "news4";
    }
    .news-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .news-item.full {
        grid-column: span 1;
        grid-row: span 1;
    }

    .news-item{
        font-size:12px;
    }
}
