/* Styles specific to the Project Details page */

.project-header {
  padding: 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.project-header h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.project-header p {
  max-width: 700px;
  margin: 0 auto 25px auto;
  line-height: 1.6;
  
}

.project-block {
  padding: 30px 24px;
  border-bottom: 1px solid var(--border-color);
  /* justify-content: center; */
}

.collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  color: #ff0055;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 16px 32px;
  margin-bottom: 20px;
}

.collapse-btn .collapse-label {
  color: inherit;
  font-size: inherit;
}

.collapse-btn .collapse-icon {
  margin-left: auto;
  flex-shrink: 0;
}

.collapse-btn:hover {
  color: var(--accent-color);
}

.collapse-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 32px;
  transition: max-height 0.5s ease;
}

.collapse-content.active {
  max-height: 8000px;
}

.collapse-content p {
  max-width: none;
  margin: 15px 0 25px 0;
  line-height: 1.6;
  text-align: justify;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 2px solid var(--border-color);
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.project-image:hover {
  transform: scale(1.02);
  border-color: var(--accent-color);
}

/* Lightbox modal for image expansion */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}


.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  border: 3px solid var(--accent-color);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 700px) {
  .image-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-header,
  .project-block,
  .project-intro {
    padding: 32px 16px;
  }
  .project-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .part-desc {
    flex-direction: column;
    gap: 8px;
  }
  .part-desc h4,
  .part-desc .text {
    width: 100%;
    padding: 0;
  }
  .acc_panel {
    margin: 0;
    padding: 16px;
  }
  .lightbox-close {
    top: 12px;
    right: 16px;
  }
  .lightbox-image {
    max-width: 94%;
    max-height: 80%;
  }
}

/* for the detqails */
.project-intro {
  padding: 60px 24px 30px 24px;
  text-align: center;
}

.project-title {
  font-size: 2.4rem;
  margin-bottom: 30px;
  color: #ff0055;
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.meta-box {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 25px;
  min-width: 160px;
}

.meta-label {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.meta-value {
  font-weight: 600;
  color: var(--color-accent);
}

.project-link {
  margin-top: 10px;
}

/* See All  */
.see-all-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

/** Accordion**/
#acc {
  max-width: 100%;
}

.acc {
  margin: 30px 0;
  overflow: hidden;
  padding: 0;
}

.acc_ctrl h2 {
  text-transform: uppercase;
  font-size: 15px;
  margin: 0;
}

.acc_ctrl {
  width: 100%;
  display: flex;
  border: none;
  cursor: pointer;
  outline: none;
  text-transform: uppercase;
  position: relative;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.acc_ctrl.active:before {
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
}

.acc_ctrl.active h2,
.acc_ctrl:focus h2 {
  position: relative;
}

.acc_panel {
  background: var(--bg);
  padding: 8px 0 30px;
  margin: 12px 0 0;
  display: block;
  overflow: hidden;
  color: #fff;
}

.acc_panel p,
.acc_panel h4,
.acc_panel li {
  color: #fff;
}

@media (max-width: 675px) {
  .acc_panel {
    margin: 0;
  }

  .acc_panel .port-img:hover img {
    margin: 0;
    padding: 0;
    transform: scale(1.5);
    transition: 0.5s ease-in;
  }

  .label:after {
    width: 90%;
    margin-left: 2%;
    margin-right: 10%;
  }
}

.part-desc{
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 20px 0;
    gap: 16px;
}

.part-desc h4{
    width: 32%;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
    text-transform: uppercase;
}

.part-desc .text{
    width: 68%;
    min-width: 0;
    padding-right: 12px;
}


.part-desc ol li {
    padding: 0 0 0 25px;
    position: relative;
    margin: 0 0 12px;
}

.part-desc ol li:before {
    background: #fff;
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    top: 11px;
    width: 15px; 
}