/* ==========================================================================
   Portfolio Detail Page Stylesheet (portfolio-detail.css)
   Pimbal Technology - Clean Design System & Responsive Layout
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-blue: #005df8;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #262626;
  --gray-900: #171717;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* BRAND BLUE HERO HEADER */
.project-hero-header {
  background: var(--brand-blue);
  color: var(--white);
  padding: 130px 20px 60px;
  border-radius: 0;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
  color: var(--white);
  font-weight: 600;
}

.project-hero-body {
  max-width: 950px;
}

.project-category {
  display: inline-block;
  background: var(--white);
  color: var(--brand-blue);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0;
  margin-bottom: 20px;
}

.project-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 20px;
}

.project-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 36px;
}

.project-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 28px;
}

.meta-item {
  text-align: left;
}

.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

/* FEATURED IMAGE BANNER */
.featured-image-section {
  padding: 40px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.featured-image-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 21/9;
  background: var(--gray-200);
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PORTFOLIO LAYOUT WRAPPER (MAIN CONTENT + 360PX STICKY SIDEBAR) */
.portfolio-layout-container {
  padding: 60px 20px;
  background: var(--white);
}

.portfolio-layout-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 40px !important;
  align-items: start;
}

/* MAIN CONTENT SECTIONS */
.detail-section {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.entry-body p {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* CHALLENGE GRID */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.challenge-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-radius: 0;
  transition: all 0.3s ease;
}

.challenge-item:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.challenge-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border-radius: 0;
}

.challenge-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.challenge-item p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* STRATEGY STEPS */
.strategy-steps {
  margin-top: 30px;
}

.strategy-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

.strategy-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--brand-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  border-radius: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.step-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* IMPACT RESULTS */
.impact-lead {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 30px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--black);
  color: var(--white);
  padding: 32px 20px;
  text-align: center;
  border-radius: 0;
  border-top: 4px solid var(--brand-blue);
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
}

.result-number {
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  aspect-ratio: 16/10;
  background: var(--gray-200);
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--gray-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* TESTIMONIAL BLOCK */
.testimonial-section-block {
  background: var(--brand-blue);
  color: var(--white);
  padding: 48px 36px;
  border-radius: 0;
  margin-top: 40px;
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-icon {
  font-size: 36px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: var(--white);
  overflow: hidden;
  border: 2px solid var(--white);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.author-title {
  font-size: 13px;
  opacity: 0.85;
}

/* STICKY SIDEBAR & WIDGETS */
.sidebar {
  width: 100%;
  position: sticky;
  top: 100px;
}

.project-summary-widget {
  background: var(--brand-blue);
  color: var(--white);
  padding: 28px;
  margin-bottom: 30px;
  border-radius: 0;
}

.project-summary-widget h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.project-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.project-summary-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
}

.project-summary-list li strong {
  color: var(--white);
}

.btn-project-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--brand-blue);
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

.btn-project-cta:hover {
  background: var(--gray-100);
  color: var(--brand-blue);
}

.sidebar-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 28px;
  margin-bottom: 30px;
  border-radius: 0;
}

.sidebar-section h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--black);
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 10px;
}

.recent-post {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.recent-post:last-child {
  margin-bottom: 0;
}

.recent-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: 0;
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-info h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

.recent-info h4 a {
  color: var(--black);
  text-decoration: none;
}

.recent-info h4 a:hover {
  color: var(--brand-blue);
}

.recent-date {
  font-size: 12px;
  color: var(--gray-600);
}

/* MERGED SIDEBAR PROJECT PROPOSAL FORM WIDGET */
.widget-project-form-container {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 8px 30px rgba(0, 93, 248, 0.08);
}

.sidebar-project-form input:focus,
.sidebar-project-form select:focus,
.sidebar-project-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 93, 248, 0.1);
}

/* RELATED PROJECTS SECTION */
.related-projects-section {
  background: var(--white);
  padding: 80px 20px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.related-container {
  max-width: 1400px;
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px;
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.related-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--gray-200);
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 0;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.06);
}

.related-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.related-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
}

/* 2-COLUMN ACCORDION FAQS */
.faq-section-block {
  background: var(--gray-50);
  padding: 80px 20px;
  border-top: 1px solid var(--gray-200);
}

.faq-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--brand-blue);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px 24px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1199px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .sidebar {
    position: static;
  }

  .portfolio-layout-wrapper {
    grid-template-columns: 1fr !important;
  }

  .challenge-grid,
  .gallery-grid,
  .related-grid,
  .faq-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .project-hero-header {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .featured-image-wrapper {
    aspect-ratio: 16/9;
  }

  .project-meta {
    flex-direction: column;
    gap: 16px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-section-block {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .project-hero-header {
    padding: 90px 16px 32px;
  }

  .portfolio-layout-container,
  .featured-image-section,
  .faq-section-block {
    padding-left: 16px;
    padding-right: 16px;
  }
}
