    :root {
      --primary-deep: #17458f;
      --gold: #f7a81b;
      --blue-bright: #0067c8;
      --raspberry: #d41367;
      --teal: #00adbb;
      --light-blue: #b9d9eb;
      --white: #ffffff;
      --black: #1e2b3c;
      --soft-bg: #f6f8fa;
      --border-light: #e9ecf0;
      --transition-default: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    body {
      font-family: 'Barlow', sans-serif;
      color: var(--black);
      background-color: var(--white);
      margin: 0;
      padding: 0;
    }

    .project-details-page {
      padding: 3rem 0;
      background-color: var(--soft-bg);
    }

    .container {
      max-width: 1320px;
    }

    /* Breadcrumb */
    .breadcrumb {
      background: transparent;
      padding: 0;
      margin-bottom: 1.5rem;
    }
    .breadcrumb-item a {
      color: var(--primary-deep);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }
    .breadcrumb-item a:hover {
      color: var(--raspberry);
    }
    .breadcrumb-item.active {
      color: var(--raspberry);
      font-weight: 500;
    }
    .breadcrumb-item + .breadcrumb-item::before {
      color: var(--border-light);
    }

    /* Main card */
    .project-card {
      background: white;
      border-radius: 24px;
      border: 1px solid var(--border-light);
      box-shadow: 0 8px 20px rgba(0,0,0,0.02);
      overflow: hidden;
    }

    /* Image area – improved with cover */
    .image-section {
      padding: 1.5rem;
      background: var(--soft-bg);
      border-bottom: 1px solid var(--border-light);
    }

    .main-image-wrapper {
      background: var(--soft-bg);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.02);
      height: 400px; /* fixed height for banner effect */
      width: 100%;
    }

    .main-image {
      width: 100%;
      height: 100%;
      object-fit: cover; /* fills the container, crops if needed */
      transition: opacity 0.3s ease;
    }

    .image-sidebar {
      height: 100%;
      max-height: 440px;
      overflow-y: auto;
      padding-right: 0.5rem;
    }

    .thumbnail-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .thumbnail-item {
      cursor: pointer;
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid transparent;
      transition: var(--transition-default);
      flex-shrink: 0;
    }
    .thumbnail-item:hover {
      border-color: var(--primary-deep);
    }
    .thumbnail-item.active {
      border-color: var(--raspberry);
      box-shadow: 0 0 0 2px rgba(212,19,103,0.2);
    }
    .thumbnail-image {
      width: 100%;
      height: 80px;
      object-fit: cover;
      display: block;
    }

    .empty-placeholder {
      text-align: center;
      padding: 3rem;
      background: white;
      border-radius: 16px;
    }
    .empty-placeholder i {
      color: var(--border-light);
    }

    /* Project info */
    .project-title {
      font-size: 2.2rem;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 1rem;
      line-height: 1.2;
    }

    .category-badge {
      background: var(--light-blue);
      color: var(--primary-deep);
      font-weight: 600;
      padding: 0.5rem 1rem;
      border-radius: 40px;
      display: inline-block;
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.2rem;
      background: var(--soft-bg);
      padding: 1.5rem;
      border-radius: 16px;
      margin-bottom: 2rem;
    }

    .info-item {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
    }
    .info-icon {
      color: var(--raspberry);
      font-size: 1.3rem;
      min-width: 24px;
      text-align: center;
    }
    .info-content {
      flex: 1;
    }
    .info-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: var(--primary-deep);
      font-weight: 600;
      margin-bottom: 0.2rem;
    }
    .info-value {
      font-size: 1rem;
      color: var(--black);
      font-weight: 500;
      word-break: break-word;
    }

    /* Side stats card */
    .stats-card {
      background: var(--soft-bg);
      border-radius: 16px;
      padding: 1.5rem;
      border: 1px solid var(--border-light);
      height: fit-content;
    }
    .stats-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 1.2rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--gold);
    }
    .stat-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.75rem;
      font-size: 0.95rem;
    }
    .stat-label {
      color: #666;
    }
    .stat-value {
      font-weight: 600;
      color: var(--primary-deep);
    }

    /* Description */
    .description-section {
      margin: 2rem 0;
    }
    .description-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 1.5rem;
    }
    .description-content {
      background: var(--soft-bg);
      padding: 1.5rem;
      border-radius: 16px;
      line-height: 1.8;
      font-size: 1.05rem;
      color: var(--black);
    }

    /* Gallery grid */
    .gallery-section {
      margin: 2rem 0;
    }
    .gallery-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--primary-deep);
      margin-bottom: 1.5rem;
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 1rem;
    }
    .gallery-item {
      position: relative;
      cursor: pointer;
      border-radius: 12px;
      overflow: hidden;
      aspect-ratio: 4 / 3;
    }
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .gallery-item:hover img {
      transform: scale(1.05);
    }
    .gallery-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .gallery-item:hover .gallery-overlay {
      opacity: 1;
    }
    .gallery-overlay span {
      background: white;
      color: var(--primary-deep);
      padding: 0.4rem 0.8rem;
      border-radius: 40px;
      font-weight: 500;
      font-size: 0.9rem;
    }

    /* Costs table */
    .costs-section {
      margin: 2rem 0;
    }
    .costs-table {
      width: 100%;
      border-collapse: collapse;
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    }
    .costs-table thead th {
      background: var(--primary-deep);
      color: white;
      font-weight: 600;
      padding: 1rem;
      text-align: left;
    }
    .costs-table tbody td {
      padding: 1rem;
      border-bottom: 1px solid var(--border-light);
    }
    .costs-table tfoot th {
      background: var(--soft-bg);
      padding: 1rem;
      font-size: 1rem;
    }
    .costs-table .text-end {
      text-align: right;
    }

    /* Footer buttons */
    .project-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding: 1.5rem;
      border-top: 1px solid var(--border-light);
    }
    .btn-back {
      background: none;
      border: 1px solid var(--border-light);
      padding: 0.6rem 1.5rem;
      border-radius: 40px;
      color: var(--primary-deep);
      font-weight: 500;
      transition: all 0.3s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .btn-back:hover {
      background: var(--primary-deep);
      color: white;
      border-color: var(--primary-deep);
    }
    .share-buttons {
      display: flex;
      gap: 0.75rem;
    }
    .btn-share, .btn-home {
      border: 1px solid var(--border-light);
      background: none;
      padding: 0.5rem 1.2rem;
      border-radius: 40px;
      color: var(--primary-deep);
      font-weight: 500;
      transition: all 0.3s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .btn-share:hover, .btn-home:hover {
      background: var(--raspberry);
      color: white;
      border-color: var(--raspberry);
    }

    /* Modal */
    .modal-content {
      border: none;
      border-radius: 24px;
      overflow: hidden;
    }
    .modal-header {
      border: none;
      padding: 1rem 1rem 0;
    }
    .modal-body {
      padding: 1rem;
      text-align: center;
    }
    .modal-body img {
      max-height: 70vh;
      width: auto;
      max-width: 100%;
      object-fit: contain;
    }
    .modal-footer {
      border: none;
      justify-content: center;
      padding: 1rem;
    }

    /* Responsive improvements */
    @media (max-width: 992px) {
      .main-image-wrapper {
        height: 350px;
      }
      .image-sidebar {
        max-height: 250px;
        overflow-y: hidden;
        overflow-x: auto;
        padding-right: 0;
        margin-top: 1rem;
      }
      .thumbnail-list {
        flex-direction: row;
        gap: 0.5rem;
      }
      .thumbnail-item {
        flex: 0 0 100px;
      }
      .thumbnail-image {
        height: 70px;
      }
    }

    @media (max-width: 768px) {
      .main-image-wrapper {
        height: 280px;
      }
      .project-details-page {
        padding: 1.5rem 0;
      }
      .project-title {
        font-size: 1.8rem;
      }
      .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
      }
      .info-item {
        gap: 0.5rem;
      }
      .stats-card {
        margin-top: 1rem;
      }
      .project-footer {
        flex-direction: column;
        align-items: stretch;
      }
      .share-buttons {
        justify-content: center;
      }
      .btn-back, .btn-share, .btn-home {
        text-align: center;
        justify-content: center;
      }
      .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
      }
    }

    @media (max-width: 576px) {
      .main-image-wrapper {
        height: 220px;
      }
      .project-title {
        font-size: 1.5rem;
      }
      .category-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
      }
      .info-label {
        font-size: 0.75rem;
      }
      .info-value {
        font-size: 0.9rem;
      }
      .description-content {
        font-size: 0.95rem;
        padding: 1rem;
      }
      .costs-table thead th, 
      .costs-table tbody td,
      .costs-table tfoot th {
        padding: 0.75rem;
        font-size: 0.9rem;
      }
      .thumbnail-item {
        flex: 0 0 80px;
      }
    }
  
