/* protech title */

.protech-m-post-title {
    padding: 15px 0;
    margin-bottom: 15px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    color: #333; /* Default color for text */
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

/* Add this class to first two words using a span */
.protech-m-post-title .first-words {
    color: #005929; /* Dark blue for first two words */
}

.protech-m-post-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #8e44ad);
}

.protech-m-post-title:hover {
    color: #333; /* Keep main text black on hover */
}

.protech-m-post-title:hover .first-words {
    color: #4a90e2; /* Change first words color on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .protech-m-post-title {
        padding: 12px 0;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .protech-m-post-title {
        padding: 10px 0;
        margin-bottom: 10px;
    }
}



/* protech excerpt */
.protech-excerpt,
.protech-excerpt p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.protech-excerpt:hover {
    color: #4a4a4a;
}

/* Responsive adjustments for excerpt */
@media (max-width: 768px) {
    .protech-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .protech-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        margin-bottom: 12px;
    }
}



/* new header */

/* -------------------new css- header------------------ */

/* Section heading - Updated with better colors and responsiveness */
.Protech_Nepal_section-heading {
  --primary-color: #1c274a;
  --accent-color: #3498db;
  --hover-color: #1abc9c;
  --button-color: #c00505;
  --button-hover: #2980b9;
  
  font-family: poppins;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  margin-bottom: 5px;
}

.Protech_Nepal_section-heading:before {
  height: 1px;
  content: "";
  position: absolute;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  top: 50%; /* Changed from fixed 50px to percentage */
  transform: translateY(-50%); /* Added to center the line vertically */
}

.Protech_Nepal_section-heading span {
  font-size: 25px;
  background: #fff;
  z-index: 1;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-right: 25px;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  font-family: poppins;
  transition: color 0.3s ease;
}

.Protech_Nepal_section-heading a.Protech_Nepal_all {
  font-weight: 600;
  color: #fff;
  background: var(--button-color);
  font-size: 18px;
  padding: 6px 13px;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  transform: translateY(-2px);
  font-family: 'Hind', sans-serif;
  
}

.Protech_Nepal_section-heading ul li:last-child a,
.Protech_Nepal_all {
  font-weight: 600;
  color: #fff;
  background: var(--button-color);
  font-size: 18px;
  padding: 8px 15px;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Hind', sans-serif;
 
}

.Protech_Nepal_section-heading a.Protech_Nepal_all:hover,
.Protech_Nepal_section-heading ul li:last-child a:hover,
.Protech_Nepal_all:hover {
  background: var(--button-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .Protech_Nepal_section-heading {
    padding: 15px 0;
  }
  
  .Protech_Nepal_section-heading span {
    font-size: 24px;
    padding-right: 15px;
  }
  
  .Protech_Nepal_section-heading a.Protech_Nepal_all,
  .Protech_Nepal_section-heading ul li:last-child a,
  .Protech_Nepal_all {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .Protech_Nepal_section-heading:before {
    top: 50px;
  }
}

@media (max-width: 576px) {
   
  
  .Protech_Nepal_section-heading span {
    font-size: 25px;
    margin-bottom: 10px;
  }
  
  .Protech_Nepal_section-heading:before {
    top: 50px;
  }
  
 
}


/* sticky */

/* Sticky sidebar styling */
.protech-sticky {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 10px;
  height: fit-content;
  margin-bottom: 10px;
}

/* Disable sticky positioning on mobile */
@media (max-width: 767px) {
  .protech-sticky {
    margin-bottom: -20px;
    position: static; /* Removes sticky positioning on mobile */
  }
}

/* Disable sticky positioning on mobile and tablet */
@media (max-width: 991px) {
  .protech-sticky {
    margin-bottom: -20px;
    position: static; /* Removes sticky positioning on smaller screens */
  }
}

/* protech_title2 */

.protech_title2 {
  font-size: 20px; /* Default font size for desktop */
  font-weight: 500; /* Add font weight for better styling */
  color: #333; /* Default text color */
  margin-bottom: 15px; /* Add spacing below the title */
  text-align: center; /* Center align the text */
  margin-top: 10px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .protech_title2 {
    font-size: 18px; /* Slightly smaller font size for tablets */
    margin-bottom: 12px; /* Adjust spacing */
  }
}

@media (max-width: 480px) {
  .protech_title2 {
    font-size: 18px; /* Smaller font size for mobile */
    margin-bottom: 10px; /* Adjust spacing for mobile */
  }
}


/* new category province */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #f4f4f4;
    padding: 20px;
}

.main-header {
    font-size: 30px;
    font-weight: bold;
    color: #b71c1c;
    margin: 0;
    padding-bottom: 10px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;  /* Keep buttons in a single row */
    overflow-x: auto;  /* Add scrolling if content overflows */
    padding-bottom: 10px;  /* Add space below the buttons */
}

.category-btn {
    background-color: white;
    border: 1px solid #ccc;
    padding: 8px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 150px;  /* Prevent buttons from shrinking too small */
}

.category-btn:hover {
    background-color: #e0e0e0;
}

/* Mobile view (smaller screens) */
@media (max-width: 600px) {
    .category-buttons {
        flex-wrap: nowrap;  /* Keep the buttons in one row */
    }

    .category-btn {
        min-width: auto;  /* Allow buttons to adjust based on content */
    }
}


/* new category module */

.protech_suren_header {
  background-color: #f4f4f4;
  padding: 20px;
}

.protech_suren_main-header {
  font-size: 30px;
  font-weight: bold;
  color: #b71c1c;
  margin: 0;
  padding-bottom: 10px;
}

.protech_suren_category-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;  /* Keep buttons in a single row */
  overflow-x: auto;  /* Add scrolling if content overflows */
  padding-bottom: 10px;  /* Add space below the buttons */
}

.protech_suren_category-btn {
  background-color: white;
  border: 1px solid #ccc;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 150px;  /* Prevent buttons from shrinking too small */
}

.protech_suren_category-btn:hover {
  background-color: #e0e0e0;
}

/* Mobile view (smaller screens) */
@media (max-width: 600px) {
  .protech_suren_category-buttons {
      flex-wrap: nowrap;  /* Keep the buttons in one row */
  }

  .protech_suren_category-btn {
      min-width: auto;  /* Allow buttons to adjust based on content */
  }
}

/* new category module end */


/* new category module start */

.protech1_ {
  position: relative;
  text-align: left;
  margin: 40px 0 30px;
  padding-bottom: 5px;
  border-bottom: 3px solid #e94e77; /* static underline */
  font-family: 'Hind', sans-serif;
  
}

.protech1_ {
  font-size: 22px;
  font-weight: 700;
  color: #fcf229;
 
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin: 0;
}

/* Single moving line aligned with border */
.protech1_::after {
  content: "";
  position: absolute;
  bottom: -2px;       /* adjust vertical position */
  left: 0;            /* start from beginning of border */
  width: 30px;
  height: 2px;        /* match border thickness */
  background-color: #caff09; /* customized color */
  border-radius: 2px;
  animation: slideRight 3s linear infinite;
  opacity: 0.9;
}

@keyframes slideRight {
  0% {
    left: 0;
  }
  100% {
    left: calc(100% - 40px); /* end so the 40px line doesn't extend beyond border */
  }
}

/* new category module end */






