/* ==========================================
       1. GLOBAL DESIGN SYSTEM
       ========================================== */
    :root {






      --shadow: 0 10px 28px rgba(0,0,0,.28);

      --r2: 14px;
      --max: 1120px;

    }

    .afs-project-detail {
      font-family: var(--font);
      color: var(--ink);
      background: linear-gradient(180deg, var(--bg), var(--bg2));
      padding: 24px 16px;
      min-height: 100vh;
    }
    .wrap { max-width: var(--max); margin: 0 auto; }
    a { color: inherit; }

    /* ==========================================
       2. HEADER & NAVIGATION BAR
       ========================================== */
    .nav-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0 20px;
      border-bottom: 1px solid var(--stroke);
      margin-bottom: 30px;
    }
    .back-link {
      text-decoration: none;
      font-weight: 900;
      color: var(--accent);
      font-size: 14px;
    }
    .back-link:hover { text-decoration: underline; }

    /* ==========================================
       3. HERO SECTION
       ========================================== */
    .project-hero {
      margin-bottom: 40px;
    }
    .kicker {
      color: var(--accent);
      font-weight: 900;
      letter-spacing: .5px;
      margin: 0 0 8px;
      font-size: 13px;
      text-transform: uppercase;
    }
    .project-hero h1 {
      margin: 0 0 16px;
      font-size: clamp(26px, 4vw, 42px);
      line-height: 1.15;
    }

    /* ==========================================
       4. TWO-COLUMN LAYOUT
       ========================================== */
    .project-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 32px;
      align-items: start;
    }

    .project-main {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    /* AUTOMATIC PURE-CSS SLIDESHOW (7 IMAGES) */
    .slideshow-container {
      position: relative;
      background: #ffffff; /* Clean light canvas so drawings display naturally */
      border: 1px solid var(--stroke);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 100%;
      height: 720px; /* Stretched downwards for full portrait sheet scaling */
    }

    .slideshow-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      animation: slideFade7 21s infinite ease-in-out;
    }

    .slideshow-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 10px;
    }

    /* Staggered 3-second intervals over a 21s total loop duration */
    .slideshow-slide:nth-child(1) { animation-delay: 0s; }
    .slideshow-slide:nth-child(2) { animation-delay: 3s; }
    .slideshow-slide:nth-child(3) { animation-delay: 6s; }
    .slideshow-slide:nth-child(4) { animation-delay: 9s; }
    .slideshow-slide:nth-child(5) { animation-delay: 12s; }
    .slideshow-slide:nth-child(6) { animation-delay: 15s; }
    .slideshow-slide:nth-child(7) { animation-delay: 18s; }

    @keyframes slideFade7 {
      0%, 11% { opacity: 1; visibility: visible; }
      14.28%, 97.1% { opacity: 0; visibility: hidden; }
      100% { opacity: 1; visibility: visible; }
    }

    .slideshow-hint {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: rgba(20, 40, 56, 0.85);
      padding: 6px 14px;
      border-radius: 99px;
      font-size: 11px;
      color: var(--ink);
      pointer-events: none;
      z-index: 10;
      border: 1px solid rgba(255,255,255,0.1);
    }

    .meta-desc p {
      font-size: 15px;
      line-height: 1.6;
      color: var(--muted);
      margin: 0 0 16px;
    }
    .meta-desc strong {
      color: var(--ink);
    }

    /* Right Column Spec Panels */
    .project-sidebar {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .spec-panel {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--stroke);
      border-radius: var(--r2);
      padding: 20px;
      box-shadow: var(--shadow);
    }
    .panel-title {
      margin: 0 0 14px;
      font-size: 16px;
      font-weight: 900;
      color: var(--accent);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      padding-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    /* Tables */
    .tech-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px;
      text-align: left;
    }
    .tech-table th {
      color: var(--ink);
      font-weight: 900;
      padding: 6px 8px;
      border-bottom: 2px solid var(--stroke);
    }
    .tech-table td {
      padding: 8px;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      color: var(--muted);
      vertical-align: top;
    }
    .tech-table tr:last-child td { border-bottom: none; }
    .qty-badge {
      font-weight: 900;
      color: var(--accent);
    }

    /* Custom WhatsApp Button Style */
    .btn-whatsapp {
      display: inline-block;
      text-align: center;
      text-decoration: none;
      font-weight: 900;
      border-radius: 999px;
      padding: 15px 24px;
      border: 2px solid var(--accent);
      color: #1a2c3c;
      background: var(--accent);
      transition: all .15s ease;
      font-size: 14px;
      box-shadow: 0 4px 12px rgba(244,160,0,0.2);
    }
    .btn-whatsapp:hover {
      transform: translateY(-1px);
      background: #caa502;
      border-color: #caa502;
    }

    /* Responsive adjustments */
    @media (max-width: 860px) {
      .project-grid { grid-template-columns: 1fr; gap: 24px; }
      .slideshow-container { height: 540px; }
    }

    /* EMBEDDED FOOTER */
    .embed-footer {
      margin-top: 36px;
      border-radius: var(--r);
      border: 1px solid var(--stroke);
      background: rgba(255,255,255,.03);
      box-shadow: var(--shadow);
      padding: 18px 16px;
      text-align: center;
    }
    .embed-footer .footer-nav {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
      margin: 0 0 10px;
      font-weight: 900;
    }
    .embed-footer .footer-nav a {
      color: var(--accent);
      text-decoration: none;
    }
    .embed-footer .footer-nav a:hover { text-decoration: underline; }
    .embed-footer .footer-meta {
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.5;
      margin: 0 auto;
      max-width: 95ch;
    }
    .embed-footer .footer-meta a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 900;
    }
    .embed-footer .footer-meta a:hover { text-decoration: underline; }
    .copyright-footer {
      margin-top: 18px;
      text-align: center;
      font-size: 11px;
      color: var(--muted);
      letter-spacing: 0.3px;
    }
