.projects{
  padding-left: 6%;
  padding-right: 6%;
}

.left{
  flex: 1;
}

.right{
  flex: 1;
}

.explore {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}
.explore a {
  color:var(--brand);
  font-weight:600;
  text-decoration:none;
  padding-bottom:6px;
  font-size:15px;
  position: relative;
  
}

.inner_banner {
  position: relative; /* IMPORTANT */
  width: 100%;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Center text on the image */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  width: 80%;
  padding: 20px;
}

.headline {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.subcopy {
  font-size: 18px;
  line-height: 1.6;
}

.p-card img{width:100%; height:200px;}

/* Mobile responsive */

@media (max-width: 768px){
  .project-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .p-card { grid-column: auto; width: 100%; }
  .p-card img { height: 200px; }
  .projects { padding: 36px 4.5%; }
  .dots { bottom: 16px; gap:10px; }
  .p-d-container{
    grid-template-columns: 1fr;
  }
  .headline {
    font-size: 28px;
  }
  .subcopy {
    font-size: 16px;
  } 
}

/* Small phones (≤600) */
@media (max-width: 600px) {
  .projects { padding: 28px 4%; }
  .p-card img { height: 170px; }
  .p-card h3 { padding: 14px; font-size: 0.95rem; }
  .headline { font-size: clamp(18px, 6.2vw, 28px); }
  .subcopy { font-size: 13px; padding: 0 6px; }
  .dot { width: 10px; height: 10px; }
}

/* Very small phones (≤420) */
@media (max-width: 420px) {
  .projects { padding: 20px 3.5%; }
  .p-card img { height: 150px; }
  .p-card h3 { padding: 12px; font-size: 0.92rem; }
  .headline { font-size: 20px; }
  .subcopy { font-size: 12px; }
  .explore a { font-size: 14px; }
}

/* Ultra-narrow (≤360 / ≤340) */
@media (max-width: 360px) {
  .p-card img { height: 130px; }
  .projects { padding-left: 12px; padding-right: 12px; }
  .headline { font-size: 18px; }
  .subcopy { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 340px) {
  .p-card img { height: 120px; }
  .p-card h3 { font-size: 0.9rem; padding: 10px; }
  .dot { width: 9px; height: 9px; }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .p-card, .p-card:hover, .p-card:focus-within { transition: none; transform: none; }
  .dot { transition: none; }
}

.project-category {
    margin-top: 60px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    color: var(--brand)  
}

.category-title::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #ff5a1f;
    position: absolute;
    left: 0;
    bottom: -8px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.p-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.p-card:hover {
    transform: translateY(-6px);
}

.p-card h3 {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
}


/* ============Projects details=================*/

.project-details {
    width: 100%;
    padding: 14px 4%;
    margin: auto;
}

/* Banner */
.pd-banner img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

/* Title */
.pd-title {
    margin: 40px 0;
}

.pd-title h1 {
    font-size: 42px;
    font-weight: 700;
}

/* Sections */
.pd-section {
    margin-bottom: 50px;
}

.pd-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
}

.pd-section h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #ff5a1f;
    position: absolute;
    left: 0;
    bottom: -8px;
}

.pd-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 4 Box Grid */
.pd-meta-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Individual Box */
.meta-card {
    background: #F3F3F3;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.meta-card:hover {
    transform: translateY(-5px);
}

.meta-card span {
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.meta-card strong {
    font-size: 18px;
    font-weight: 600;
}


/* ================= RESPONSIVE ================= */

/* 1400px */
@media (max-width:1400px){

  .pd-title h1{
    font-size:38px;
  }

  .pd-meta-grid{
    gap:20px;
  }
}


/* 1200px */
@media (max-width:1200px){

  .pd-banner img{
    height:380px;
  }

  .pd-title h1{
    font-size:34px;
  }

  .pd-meta-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Tablet */
@media (max-width:992px){

  .project-details{
    padding:20px 6%;
  }

  .pd-banner img{
    height:320px;
  }

  .pd-title{
    margin:30px 0;
  }

  .pd-title h1{
    font-size:30px;
  }

  .pd-section h2{
    font-size:20px;
  }

  .pd-section p{
    font-size:15px;
  }

  .pd-meta-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
  }
}


/* Mobile */
@media (max-width:576px){

  .pd-banner img{
    height:220px;
  }

  .pd-title h1{
    font-size:24px;
  }

  .pd-section{
    margin-bottom:35px;
  }

  .pd-section h2{
    font-size:18px;
  }

  .pd-section p{
    font-size:14px;
  }

  .pd-meta-grid{
    grid-template-columns: 1fr;
    gap:15px;
  }

  .meta-card{
    padding:20px;
  }

  .meta-card strong{
    font-size:16px;
  }
}