/* ✅ Projects Hero Section - Header ke neeche se start hoga */
.projects-hero-section{
  position: relative;
  width: 100%;

  /* ✅ CRITICAL: Remove any top positioning */
  margin-top: 0;
  padding-top: 0;
  top: 0;

  /* ✅ Height settings */
  height: 40vh;
  min-height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background-image: url("images/constructionproject.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ✅ Desktop: Hero section ko topbar + header ke neeche push karo */
@media (min-width: 992px) {
  .projects-hero-section {
    margin-top: calc(60px + 80px); /* topbar 60px + header 80px = 140px */
  }
  
  /* ✅ When scrolled and topbar hidden */
  body.nav-scrolled .projects-hero-section {
    margin-top: 80px; /* only header height */
  }
}

/* ✅ Mobile/Tablet: NO margin needed because body already has padding-top */
@media (max-width: 991px) {
  .projects-hero-section {
    margin-top: 0; /* Header CSS already has body padding-top: 80px */
    padding-top: 0;
  }
}

/* overlay */
.projects-hero-section__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

/* content */
.projects-hero-section__content{
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 18px;
  max-width: 1100px;
}

.projects-hero-section__title{
  font-size: 64px;
  font-weight: 900;
  color: #c40000;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ✅ remove underline */
.projects-hero-section__title::after{
  display: none !important;
  content: none !important;
}

.projects-hero-section__breadcrumb{
  margin-top: 14px;
  font-size: 22px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.projects-hero-section__link{
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.projects-hero-section__link:hover{
  color: #ffcc00;
}

.projects-hero-section__slash{
  color: rgba(255,255,255,0.85);
}

.projects-hero-section__current{
  color: #ffffff;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */

/* ✅ Laptop 1024 */
@media (max-width: 1024px) and (min-width: 769px) {
  .projects-hero-section {
    height: 45vh;
    min-height: 240px;
  }

  .projects-hero-section__title { 
    font-size: 50px; 
  }
  
  .projects-hero-section__breadcrumb { 
    font-size: 20px; 
  }
}

/* ✅ Tablet 768 */
@media (max-width: 768px) {
  .projects-hero-section{
    height: 45vh;
    min-height: 260px;
  }

  .projects-hero-section__title { 
    font-size: 44px; 
  }
  
  .projects-hero-section__breadcrumb { 
    font-size: 18px; 
  }
}

/* ✅ Mobile 520 */
@media (max-width: 520px) {
  .projects-hero-section{
    height: 42vh;
    min-height: 260px;
    background-position: center right;
  }

  .projects-hero-section__content { 
    padding: 0 14px; 
  }
  
  .projects-hero-section__title { 
    font-size: 34px; 
  }
  
  .projects-hero-section__breadcrumb { 
    font-size: 16px; 
  }
}
/* projects section css */
.projects-filter-section{
  padding: 70px 16px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.projects-filter-container{
  max-width: 1200px;
  margin: 0 auto;
}

.projects-filter-heading{
  text-align: center;
  margin-bottom: 28px;
}

.projects-filter-small{
  color: #c40000;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
}

.projects-filter-title{
  font-size: 35px;
  font-weight: 900;
  color: #222;
  margin: 0;
}

/* Tabs */
.projects-filter-tabs{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.projects-filter-btn{
  border: none;
  padding: 12px 22px;
  font-weight: 800;
  background: #d50d0d;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 15px;
}

.projects-filter-btn:hover{
  filter: brightness(0.92);
}

.projects-filter-btn.active{
  background: #083e74;
  color: #ffcc00;
}

/* Grid */
.projects-filter-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ✅ 1024px+ => 3 */
  gap: 34px;
}

/* Card */
.projects-filter-card{
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}

.projects-filter-img{
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* same look */
  overflow: hidden;
}

.projects-filter-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.projects-filter-card:hover .projects-filter-img img{
  transform: scale(1.08);
}

/* Overlay content (show only on hover) */
.projects-filter-overlay{
  position: absolute;
  inset: 0;
  background: rgba(196,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.35s ease;
  text-align: center;
}

.projects-filter-overlay p{
  color: #fff;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.projects-filter-card:hover .projects-filter-overlay{
  opacity: 1;
  transform: translateY(0);
}

/* Bottom bar */
.projects-filter-bottom{
  background: #083e74;
  color: #ffcc00;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
}

.projects-filter-bottom h3{
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* ✅ max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  line-height: 1.15;
}


.projects-filter-plus{
  width: 58px;
  height: 58px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #083e74;
  font-size: 22px;
  flex-shrink: 0;
  margin-left: 14px;
}

/* Some cards red bottom like screenshot */
.projects-filter-bottom-red{
  background: #083e74;
  position: relative;
}
.projects-filter-bottom-red::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:70px;
  height:100%;

}
.projects-filter-bottom-red .projects-filter-plus{
  position: relative;
  z-index: 2;
}

/* Filter hide animation */
.projects-filter-card.hide{
  display: none;
}
@media (max-width: 1024px){
    .projects-filter-bottom h3{ font-size: 20px; }
}

/* ✅ Tablet 768px => 2 cards */
@media (max-width: 768px){
  .projects-filter-title{ font-size: 44px; }
  .projects-filter-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .projects-filter-overlay p{ font-size: 16px; }
  .projects-filter-bottom h3{ font-size: 19px; }
}

/* ✅ Mobile 520px => 1 card */
@media (max-width: 520px){
  .projects-filter-title{ font-size: 22px; }
  .projects-filter-tabs{ gap: 10px; }
  .projects-filter-btn{ width: 100%; max-width: 320px; }
  .projects-filter-grid{ grid-template-columns: 1fr; gap: 20px; }
  .projects-filter-plus{ width: 54px; height: 54px; }
}
