/* Extracted from case-detail.php: $pageCSS blocks combined */
.case-detail-hero {
    background: #ffffff;
    color: var(--text-dark);
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--border-color);
}
.case-hero-content { position: relative; z-index: 2; }
.case-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.25; word-break: break-word; overflow-wrap: anywhere; }
.case-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 0.95rem; }
.case-meta-item { display: flex; align-items: center; gap: 8px; opacity: 0.9; }

.cd-top-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

.detail-card { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.06); padding: 24px; position: sticky; top: 90px; }
.detail-card .lead { color: var(--text-light); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #f3f4f6; border-radius: 999px; font-size: 12px; color: var(--text-dark); }
.cta-row { display: flex; gap: 10px; margin-top: 12px; }
.cta-btn { padding: 8px 14px; border-radius: 10px; }
.cta-btn.primary { background: var(--primary-color); color: #fff; }
.cta-btn.secondary { background: #eef2ff; color: var(--primary-color); }

.case-content-section { padding: 32px 0 24px; }
.case-info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 10px; }
.case-info-grid.single { grid-template-columns: 1fr; }
.case-description { font-size: 1.05rem; line-height: 1.75; color: var(--text-light); word-break: break-word; overflow-wrap: anywhere; }
.case-sidebar { background: #f8f9fa; padding: 24px; border-radius: 14px; height: fit-content; position: sticky; top: 90px; }
.case-detail-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.case-detail-item:last-child { border-bottom: none; }
.case-detail-label { font-weight: 600; color: var(--text-dark); }
.case-detail-value { color: var(--text-light); text-align: right; word-break: break-word; overflow-wrap: anywhere; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.case-tag { background: var(--primary-color); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; text-decoration: none; transition: all 0.2s ease; display:inline-flex; align-items:center; gap:6px; }
.case-tag i { font-size: 1rem; line-height: 1; }
.case-tag:hover { background: #1e3a8a; color: white; transform: translateY(-1px); }
.case-challenges { background: white; padding: 16px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin: 8px 0 16px; }
.challenge-item { display: flex; align-items: flex-start; margin-bottom: 18px; padding: 16px; background: #f8f9fa; border-radius: 10px; border-left: 4px solid var(--primary-color); }
.challenge-icon { width: 44px; height: 44px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 16px; flex-shrink: 0; }
.challenge-content h6 { color: var(--text-dark); margin-bottom: 8px; }
.challenge-content p { color: var(--text-light); margin: 0; line-height: 1.6; word-break: break-word; overflow-wrap: anywhere; }
.case-results { background: linear-gradient(135deg, var(--primary-color), #1e3a8a); color: white; padding: 36px 0; border-radius: 15px; margin: 24px 0; }
.result-item { text-align: center; padding: 16px; }
.result-number { font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; display: block; }
.result-label { font-size: 1rem; opacity: 0.9; }
.related-cases { background: #f8f9fa; padding: 12px 0 20px; }
.case-card-small { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: all 0.2s ease; height: 100%; }
.case-card-small:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.case-card-small .case-image { height: 200px; position: relative; overflow: hidden; }
.case-card-small .case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.case-card-small:hover .case-image img { transform: scale(1.05); }
.title-box{position:relative;display:flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:16px;background:linear-gradient(180deg, rgba(44,90,160,.06), rgba(44,90,160,.02));border:1px solid #dbe3f7;box-shadow:0 10px 24px rgba(12,18,32,.08);overflow:hidden;margin-bottom:8px}
.title-box::before{content:"";position:absolute;top:0;left:-30%;width:30%;height:100%;background:linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,0));transform:skewX(-18deg);animation:titleShine 6s linear infinite}
.title-box h2,.title-box h3{margin:0;font-weight:800;letter-spacing:.2px;color:#143a85}
@keyframes titleShine{0%{left:-30%}100%{left:130%}}
.case-results .title-box{background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));border-color:rgba(255,255,255,.55);box-shadow:0 10px 24px rgba(0,0,0,.2)}
.case-results .title-box h2,.case-results .title-box h3{color:#fff}
.case-results .title-box::before{background:linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,0))}
.breadcrumb { background: none; padding: 16px 0; margin-bottom: 0; }
.breadcrumb-item a { color: var(--text-light); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-dark); }
.share-buttons { display: flex; gap: 10px; margin-top: 16px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: white; transition: all 0.2s ease; }
.share-btn:hover { transform: translateY(-2px); color: white; }
.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

@media (max-width: 992px) { .cd-top-grid { grid-template-columns: 1fr; } .detail-card { position: static; top: auto; } }
@media (max-width: 768px) { .case-title { font-size: 1.8rem; } .case-meta { flex-direction: column; gap: 10px; } .case-info-grid { grid-template-columns: 1fr; gap: 24px; } .result-number { font-size: 2rem; } }

/* Enhanced styles and content-card visuals */
.case-hero-content .lead { max-width: 900px; margin: 0 auto; opacity: 0.9; word-break: break-word; overflow-wrap: anywhere; }
.content-card { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)); border-radius: 16px; box-shadow: 0 12px 28px rgba(12,18,32,0.12), inset 0 1px 0 rgba(255,255,255,0.6); padding: 32px; position: relative; }
.content-card::before { content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.08)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Gallery uses about team-card visuals */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-member { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 12px 40px rgba(26, 35, 126, 0.18); background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.55)); transition: transform 0.25s ease, box-shadow 0.3s ease; }
.team-member::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(26,35,126,0.35), rgba(58,106,255,0.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.team-member img { width: 100%; display: block; transition: transform 0.4s ease, filter 0.3s ease; filter: saturate(1.05) contrast(1.05); }
.team-member:hover img { transform: scale(1.06); }
.content-card h3, .content-card h4 { position: relative; color: var(--text-dark); margin-top: 20px; }
.content-card h3::after, .content-card h4::after { content: ""; display: block; width: 60px; height: 3px; background: var(--primary-color); border-radius: 2px; margin-top: 10px; }
.case-detail-hero::before { display: none; }
.case-detail-hero .hero-bg { display: none; }
.hero-image { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 32px rgba(12,18,32,0.14); }
.hero-image img { width: 100%; height: 520px; object-fit: cover; display: block; }
@media (max-width: 768px) { .hero-image img { height: 260px; } }
.hero-image::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Overlay and depth tweaks (without dynamic background-image) */
.case-detail-hero { position:relative; padding:80px 0 36px; color:#0b1220; overflow:hidden; }
.gallery-grid { grid-auto-rows:220px; gap:14px; perspective:800px; }
.gallery-grid img { box-shadow:0 14px 30px rgba(12,18,32,.12); transform:translateZ(0); transition:transform .35s ease, box-shadow .35s ease, filter .35s ease; }
.gallery-grid img:hover { transform:translateZ(18px) scale(1.02); box-shadow:0 24px 40px rgba(12,18,32,.18); filter:saturate(1.08); }
.detail-card { background:rgba(255,255,255,.75); backdrop-filter:blur(8px); border:1px solid rgba(12,18,32,.06); box-shadow:0 18px 40px rgba(12,18,32,.12); }

/* Gallery section responsive grid */
.case-gallery-section { padding: 8px 0 24px; }
.case-gallery-section .gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; grid-auto-rows:180px; }
.case-gallery-section .gallery-grid .grid-item { border-radius:12px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,0.08); background:#fff; }
.case-gallery-section .gallery-grid img { width:100%; height:100%; object-fit:cover; transition:transform .3s ease, filter .3s ease; display:block; }
.case-gallery-section .gallery-grid .grid-item:hover img { transform:scale(1.03); filter:saturate(1.05); }
@media (max-width: 992px){ .case-gallery-section .gallery-grid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:160px; } }
@media (max-width: 576px){ .case-gallery-section .gallery-grid{ grid-template-columns:1fr; grid-auto-rows:200px; } }

/* Neon hero and project info card */
.neon-hero{ position:relative; padding:84px 0 60px; background:radial-gradient(1200px 600px at 25% -10%, #11182f 0%, #0c1430 50%, #0a1228 100%); color:#eaf1ff; overflow:hidden; }
.neon-hero::before{ content:""; position:absolute; inset:0; background-image:linear-gradient(135deg, rgba(0,255,170,.08) 0%, rgba(0,153,255,.08) 100%), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px); mix-blend:screen; pointer-events:none; }
.neon-grid{ display:grid; grid-template-columns:7fr 5fr; gap:36px; align-items:center; }
.neon-title{ font-size:42px; line-height:1.2; margin:0 0 16px; letter-spacing:.2px; }
.neon-lead{ color:#bcd0ff; font-size:18px; margin-bottom:18px; }
.meta-chips{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.meta-chip{ display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.08); color:#cfe3ff; border:1px solid rgba(255,255,255,.12); }
.cta-row .cta-btn{ border-radius:12px; padding:10px 16px; transition:transform .18s ease, box-shadow .18s ease; }
.cta-row .cta-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.25); }
.hero-tilt{ border-radius:18px; overflow:hidden; position:relative; box-shadow:0 30px 60px rgba(0,0,0,.35); }
.hero-tilt img{ width:100%; height:520px; object-fit:cover; display:block; transform:perspective(1000px) translateZ(0); transition:transform .35s ease, filter .35s ease; }
.hero-tilt:hover img{ transform:perspective(1000px) rotateX(1deg) rotateY(-2deg) scale(1.02); filter:saturate(1.08) contrast(1.02); }
.hero-tilt::after{ content:""; position:absolute; inset:auto 20px 20px auto; width:140px; height:140px; background:radial-gradient(closest-side, rgba(0,255,170,.35), rgba(0,255,170,0)); filter:blur(8px); pointer-events:none; }
.project-info-card{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:16px; backdrop-filter:blur(12px); color:#eaf1ff; box-shadow:0 18px 40px rgba(0,0,0,.25); padding:18px 18px 14px; }
.project-info-card .card-title{ font-size:18px; margin-bottom:12px; letter-spacing:.3px; }
.info-row{ display:flex; align-items:flex-start; gap:10px; padding:10px 0; border-top:1px solid rgba(255,255,255,.08); }
.info-row:first-child{ border-top:none; }
.info-label{ width:82px; color:#9fb8ff; }
.info-value{ flex:1; color:#eaf1ff; }
.badge-status{ display:inline-block; padding:6px 10px; border-radius:10px; background:linear-gradient(135deg, #0ad67f, #18bb63); color:#062016; font-weight:600; }
.social-row{ display:flex; gap:10px; padding-top:8px; }
.social-btn{ width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:rgba(255,255,255,.12); color:#eaf1ff; transition:transform .18s ease, background .18s ease; text-decoration:none; }
.social-btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,.22); }
.content-wrap{ display:grid; grid-template-columns:7fr 5fr; gap:36px; }
.content-card{ background:#fff; border:1px solid #e5e7eb; border-radius:16px; box-shadow:0 10px 24px rgba(0,0,0,.06); padding:16px 18px 12px; }
@media (max-width: 992px){ .neon-grid{ grid-template-columns:1fr; gap:22px; } .hero-tilt img{ height:360px; } .content-wrap{ grid-template-columns:1fr; gap:22px; } }
@media (max-width: 576px){ .neon-title{ font-size:32px; } .neon-lead{ font-size:16px; } }
