/* Portfolio 2.1: styles stay inside the plugin's own surfaces. */
.tp-portfolio-wrapper, .tp-single {
    --tp-accent: #e11d48;
    --tp-text: #18202c;
    --tp-muted: #606b7b;
    --tp-surface: #ffffff;
    --tp-soft: #f4f5f7;
    --tp-border: #e3e6eb;
    color: var(--tp-text);
    font-family: inherit;
    line-height: 1.6;
    width: 100%;
    min-width: 0;
}
.tp-portfolio-wrapper.tp-theme-dark, .tp-single.tp-theme-dark, .tp-single {
    --tp-text: #f3f4f6;
    --tp-muted: #94a3b8;
    --tp-surface: #0b0e15;
    --tp-soft: #121722;
    --tp-border: rgba(255, 255, 255, 0.08);
}
.tp-portfolio-wrapper *, .tp-single *, .tp-preview-dialog * { box-sizing: border-box; }
.tp-portfolio-wrapper svg, .tp-preview-dialog svg { fill: none; }
.tp-portfolio-wrapper [hidden], .tp-single [hidden], .tp-preview-dialog [hidden] { display: none !important; }
.tp-portfolio-wrapper a, .tp-single a { text-decoration: none; }
.tp-portfolio-wrapper a:focus-visible, .tp-portfolio-wrapper button:focus-visible,
.tp-single a:focus-visible, .tp-preview-dialog button:focus-visible {
    outline: 2px solid var(--tp-accent, #e11d48);
    outline-offset: 2px;
}
.tp-portfolio-wrapper .tp-portfolio-toolbar { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.tp-portfolio-wrapper .tp-portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: left; width: 100%; }
.tp-portfolio-wrapper .tp-portfolio-filters button,
.tp-portfolio-wrapper .tp-portfolio-reset {
    appearance: none; display: inline-flex; align-items: center; justify-content: center; width: auto; max-width: 100%; min-width: 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; border: 1px solid var(--tp-border); border-radius: 999px;
    background: var(--tp-surface); color: var(--tp-muted); padding: 10px 18px; margin: 0;
    font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; text-transform: none;
    letter-spacing: 0; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.tp-portfolio-wrapper .tp-portfolio-filters button:hover,
.tp-portfolio-wrapper .tp-portfolio-filters button.is-checked {
    background: var(--tp-text); border-color: var(--tp-text); color: var(--tp-surface);
}
.tp-portfolio-wrapper .tp-portfolio-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tp-portfolio-wrapper .tp-search-label { position: relative; display: flex; align-items: center; flex: 1 1 220px; min-width: 0; max-width: min(360px, 100%); margin: 0; }
.tp-portfolio-wrapper .tp-search-label svg { position: absolute; left: 14px; color: var(--tp-muted); pointer-events: none; }
.tp-portfolio-wrapper .tp-portfolio-search,
.tp-portfolio-wrapper .tp-portfolio-sort {
    appearance: auto; width: 100%; min-width: 0; height: auto; border: 1px solid var(--tp-border); border-radius: 10px;
    padding: 11px 14px; margin: 0; background: var(--tp-surface); color: var(--tp-text);
    font: inherit; font-size: 13px; line-height: 1.5; box-shadow: none;
}
.tp-portfolio-wrapper .tp-portfolio-search { padding-left: 42px; }
.tp-portfolio-wrapper .tp-portfolio-search::placeholder { color: var(--tp-muted); opacity: 1; }
.tp-portfolio-wrapper .tp-sort-label { margin: 0; min-width: 0; max-width: 100%; }
.tp-portfolio-wrapper .tp-portfolio-grid {
    display: grid; grid-template-columns: repeat(var(--tp-cols, 2), minmax(0, 1fr));
    gap: var(--tp-gap, 28px); width: 100%; margin: 0; padding: 0; align-items: stretch;
}
.tp-portfolio-wrapper.tp-is-ready[data-layout="masonry"] .tp-portfolio-grid { grid-auto-rows: 8px; align-items: start; }
.tp-portfolio-wrapper .tp-portfolio-item { display: block; float: none; width: auto; max-width: none; padding: 0; margin: 0; min-width: 0; border: 0; background: transparent; box-shadow: none; }
.tp-portfolio-wrapper .tp-portfolio-clean {
    display: flex; flex-direction: column; width: 100%; height: 100%; border: 1px solid var(--tp-border);
    border-radius: 18px; overflow: hidden; background: var(--tp-surface); position: relative;
    box-shadow: 0 4px 16px rgba(15,23,42,.025); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tp-portfolio-wrapper[data-layout="masonry"] .tp-portfolio-clean { height: auto; }
.tp-portfolio-wrapper .tp-portfolio-media { position: relative; overflow: hidden; }
.tp-portfolio-wrapper .tp-portfolio-clean-img { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--tp-soft); border: 0; margin: 0; }
.tp-portfolio-wrapper .tp-portfolio-clean-img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; border: 0; border-radius: 0; transition: transform .5s ease; }
.tp-portfolio-wrapper[data-layout="masonry"] .tp-portfolio-clean-img { aspect-ratio: auto; }
.tp-portfolio-wrapper[data-layout="masonry"] .tp-portfolio-clean-img img { height: auto; }
.tp-portfolio-wrapper .tp-portfolio-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; color: var(--tp-muted); background: radial-gradient(ellipse at 50% 0%, var(--tp-border), transparent 70%), var(--tp-soft); }
.tp-portfolio-wrapper .tp-project-number { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.93); color: #283142; border-radius: 6px; padding: 4px 9px; font-size: 11px; font-weight: 700; letter-spacing: .08em; pointer-events: none; }
.tp-portfolio-wrapper .tp-portfolio-preview { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.95); color: #283142; transition: background .2s, color .2s; }
.tp-portfolio-wrapper .tp-portfolio-preview:hover { background: var(--tp-accent); color: #fff; }
.tp-portfolio-wrapper .tp-portfolio-clean-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; flex: 1; gap: 18px; padding: 24px; margin: 0; }
.tp-portfolio-wrapper .tp-portfolio-meta { flex: 1; min-width: 0; }
.tp-portfolio-wrapper .tp-portfolio-clean-cat { display: block; color: var(--tp-muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; line-height: 1.6; text-transform: uppercase; overflow-wrap: anywhere; margin: 0 0 8px; }
.tp-portfolio-wrapper .tp-portfolio-clean-title { font-size: clamp(18px, 2vw, 23px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; margin: 0; padding: 0; color: var(--tp-text); }
.tp-portfolio-wrapper .tp-portfolio-clean-title a { color: inherit; font: inherit; overflow-wrap: anywhere; }
.tp-portfolio-wrapper .tp-portfolio-clean-title a:hover { color: var(--tp-accent); }
.tp-portfolio-wrapper .tp-portfolio-excerpt { color: var(--tp-muted); font-size: 13px; line-height: 1.75; margin: 10px 0 0; padding: 0; overflow-wrap: anywhere; }
.tp-portfolio-wrapper .tp-portfolio-arrow-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--tp-border); border-radius: 50%; color: var(--tp-text); background: transparent; transition: color .2s, background .2s, border-color .2s; }
.tp-portfolio-wrapper .tp-portfolio-arrow-btn svg { transition: transform .2s; }
.tp-portfolio-wrapper .tp-portfolio-clean:hover .tp-portfolio-arrow-btn,
.tp-portfolio-wrapper .tp-portfolio-arrow-btn:focus-visible { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; }
.tp-portfolio-wrapper .effect-1 .tp-portfolio-clean:hover { transform: translateY(-5px); box-shadow: 0 16px 35px rgba(15,23,42,.10); }
.tp-portfolio-wrapper .effect-2 .tp-portfolio-media::after { content: ''; position: absolute; inset: 0; background: rgba(10,15,24,.16); opacity: 0; pointer-events: none; transition: opacity .25s; }
.tp-portfolio-wrapper .effect-2 .tp-portfolio-clean:hover .tp-portfolio-media::after { opacity: 1; }
.tp-portfolio-wrapper .effect-2 .tp-portfolio-preview, .tp-portfolio-wrapper .effect-2 .tp-project-number { z-index: 1; }
.tp-portfolio-wrapper .effect-3 .tp-portfolio-clean:hover img { transform: scale(1.045); }
.tp-portfolio-wrapper .tp-portfolio-status { font-size: 12px; color: var(--tp-muted); margin: 22px 0 0; }
.tp-portfolio-wrapper .tp-portfolio-no-results, .tp-portfolio-wrapper .tp-portfolio-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--tp-border); background: var(--tp-soft); border-radius: 16px; color: var(--tp-muted); }
.tp-portfolio-wrapper .tp-portfolio-no-results p, .tp-portfolio-wrapper .tp-portfolio-empty p { margin: 0 0 16px; }
.tp-portfolio-wrapper .tp-portfolio-empty p { margin: 0; }
.tp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Native, keyboard-accessible image/video preview. */
.tp-preview-dialog { --tp-accent: #e11d48; width: min(1100px, 94vw); max-width: 94vw; max-height: 94vh; margin: auto; padding: 54px 54px 20px; border: 1px solid #343c49; border-radius: 18px; background: #11151d; color: #f3f4f6; overflow: auto; }
.tp-preview-dialog::backdrop { background: rgba(5,8,15,.88); }
.tp-preview-dialog .tp-preview-media { display: grid; place-items: center; }
.tp-preview-dialog .tp-preview-media img { max-width: 100%; max-height: 73vh; object-fit: contain; display: block; }
.tp-preview-dialog .tp-preview-media iframe, .tp-preview-dialog .tp-preview-media video { width: 100%; aspect-ratio: 16 / 9; border: 0; max-height: 73vh; }
.tp-preview-dialog .tp-preview-caption { text-align: center; margin: 14px 0 0; font: 14px/1.5 system-ui, sans-serif; color: #cbd2de; }
.tp-preview-dialog button { appearance: none; display: grid; place-items: center; position: absolute; padding: 0; width: 38px; height: 38px; border: 1px solid #404957; border-radius: 50%; background: #212733; color: #fff; font: 26px/1 system-ui, sans-serif; cursor: pointer; }
.tp-preview-dialog .tp-preview-close { top: 10px; right: 12px; }
.tp-preview-dialog .tp-preview-prev { left: 8px; top: 45%; }
.tp-preview-dialog .tp-preview-next { right: 8px; top: 45%; }
@media (max-width: 1024px) {
    .tp-portfolio-wrapper .tp-portfolio-grid { grid-template-columns: repeat(var(--tp-cols-tablet, 2), minmax(0, 1fr)); gap: var(--tp-gap-tablet, var(--tp-gap, 28px)); }
}
@media (max-width: 767px) {
    .tp-portfolio-wrapper .tp-portfolio-grid { grid-template-columns: repeat(var(--tp-cols-mobile, 1), minmax(0, 1fr)); gap: var(--tp-gap-mobile, var(--tp-gap, 28px)); }
    .tp-portfolio-wrapper .tp-portfolio-clean-content { padding: 20px; gap: 12px; }
    .tp-portfolio-wrapper .tp-search-label { max-width: none; }
    .tp-portfolio-wrapper .tp-portfolio-toolbar { gap: 16px; margin-bottom: 22px; }
    .tp-portfolio-wrapper .tp-portfolio-filters button { padding: 9px 14px; }
    .tp-preview-dialog { padding: 52px 42px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-portfolio-wrapper *, .tp-single *, .tp-preview-dialog * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .tp-portfolio-wrapper .tp-portfolio-clean, .tp-portfolio-wrapper .tp-portfolio-clean img { transform: none !important; }
}
/* Project detail template: no body, header, or theme-wide overrides. */
/* ================= Project Detail Single Template (Pure Black Edition) ================= */
.tp-single {
    background: #000000 !important;
    color: #f3f4f6;
    --tp-surface: #0b0e14;
    --tp-soft: #121620;
    --tp-border: rgba(255, 255, 255, 0.08);
}
.tp-single .tp-hero-section {
    padding: clamp(48px, 8vw, 92px) 24px 48px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 50% 0%, #151b26 0%, #000000 70%);
}
.tp-single .tp-hero-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--tp-accent, #e11d48);
    margin: 0 0 16px;
}
.tp-single .tp-hero-title {
    font: inherit;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 20px;
    overflow-wrap: anywhere;
}
.tp-single .tp-hero-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}
.tp-single .tp-hero-breadcrumb a { color: inherit; transition: color .2s; }
.tp-single .tp-hero-breadcrumb a:hover { color: var(--tp-accent, #e11d48); }
.tp-single .tp-container { width: min(1140px, 100%); padding: 48px 24px 72px; margin: 0 auto; }

/* Full Website Mockup Showcase with Hover + Wheel Scroll */
.tp-single .tp-mockup-section {
    margin-top: 38px;
}
.tp-mockup-showcase {
    width: 100%;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #090c12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    position: relative;
}
.tp-mockup-safari-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    background: #131720;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}
.tp-mockup-dots {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-shrink: 0;
}
.tp-mockup-dots .tp-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.tp-dot-red { background: #ff5f56; }
.tp-dot-yellow { background: #ffbd2e; }
.tp-dot-green { background: #27c93f; }
.tp-mockup-safari-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 4px;
}
.tp-mockup-address-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #07090e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 18px;
    color: #94a3b8;
    font-size: 12px;
    max-width: 320px;
    width: 100%;
    flex: 1;
    min-width: 0;
}
.tp-mockup-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
}
.tp-mockup-reload {
    color: #64748b;
    flex-shrink: 0;
}
.tp-mockup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.tp-mockup-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 16px;
    letter-spacing: .02em;
    white-space: nowrap;
}
.tp-mockup-scroll-hint svg {
    color: var(--tp-accent, #e11d48);
    animation: tpScrollArrow 1.6s infinite ease-in-out;
}
@keyframes tpScrollArrow {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(2px); }
}
.tp-mockup-zoom-btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    transition: all .2s ease;
    text-decoration: none !important;
}
.tp-mockup-zoom-btn:hover {
    background: var(--tp-accent, #e11d48);
    border-color: var(--tp-accent, #e11d48);
    color: #fff;
    transform: scale(1.05);
}
.tp-mockup-viewport {
    width: 100%;
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: #030407;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(0, 0, 0, 0.25);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: auto;
}
.tp-mockup-viewport::-webkit-scrollbar {
    width: 6px;
}
.tp-mockup-viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}
.tp-mockup-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}
.tp-mockup-viewport::-webkit-scrollbar-thumb:hover {
    background: var(--tp-accent, #e11d48);
}
.tp-mockup-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    border: 0;
}
/* Laptop Device Styling */
.tp-mockup-laptop {
    background: #0d1017;
    border-radius: 16px 16px 4px 4px;
    border: 6px solid #1c222e;
}
.tp-mockup-laptop-top {
    display: grid;
    place-items: center;
    height: 14px;
    background: #141822;
}
.tp-mockup-camera {
    width: 5px;
    height: 5px;
    background: #333d4d;
    border-radius: 50%;
    display: inline-block;
}
.tp-mockup-laptop-bottom {
    height: 16px;
    background: #252d3d;
    border-radius: 0 0 14px 14px;
    position: relative;
}
.tp-mockup-laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #161b24;
    border-radius: 0 0 4px 4px;
}

/* Single Layout Content & Sidebar */
.tp-single .tp-featured-image { width: 100%; margin: 0 0 44px; position: relative; border-radius: 16px; overflow: hidden; background: #0c1017; border: 1px solid rgba(255, 255, 255, 0.08); }
.tp-single .tp-featured-image img { display: block; width: 100%; height: auto; border: 0; }
.tp-single .tp-video-placeholder { min-height: 300px; display: grid; place-items: center; font-size: 18px; color: var(--tp-muted); }
.tp-single .tp-play-btn { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--tp-accent, #e11d48); color: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.4); transition: transform .25s ease, background .25s ease; }
.tp-single .tp-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: #ffffff; color: #000; }
.tp-single .tp-layout-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.tp-single .tp-content-area { min-width: 0; overflow-wrap: anywhere; }

/* Project Overview Card (Prevents horizontal scrolling and formats details) */
.tp-single .tp-overview-box {
    background: #0b0e15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 34px 32px;
    margin-bottom: 36px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
    overflow: hidden;
}
.tp-single .tp-overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.28);
    border-radius: 30px;
    color: var(--tp-accent, #e11d48);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 20px;
}
.tp-single .tp-description {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}
.tp-single .tp-description pre,
.tp-single .tp-description code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    overflow-x: visible !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}
.tp-single .tp-description h2, .tp-single .tp-description h3, .tp-single .tp-description h4 {
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -.02em;
    margin: 24px 0 12px;
}
.tp-single .tp-description h2 { font-size: 24px; }
.tp-single .tp-description h3 { font-size: 20px; }
.tp-single .tp-description > :first-child { margin-top: 0; }
.tp-single .tp-description p, .tp-single .tp-description li {
    font-size: 16px;
    line-height: 1.85;
    color: #cbd5e1;
    margin: 0 0 16px;
}
.tp-single .tp-description p:last-child { margin-bottom: 0; }
.tp-single .tp-description ul, .tp-single .tp-description ol { padding-left: 24px; margin: 18px 0; }
.tp-single .tp-description img, .tp-single .tp-description iframe { max-width: 100%; border-radius: 12px; }
.tp-single .tp-description a { color: var(--tp-accent, #e11d48); text-decoration: underline; text-underline-offset: 3px; }

/* Section Headings */
.tp-single .tp-section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tp-single .tp-section-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--tp-accent, #e11d48);
    border-radius: 2px;
}

/* Gallery Section */
.tp-single .tp-gallery-section { margin-top: 36px; }
.tp-single .tp-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.tp-single .tp-gallery-grid a { display: block; border-radius: 14px; overflow: hidden; background: #0f131a; border: 1px solid rgba(255, 255, 255, 0.08); transition: all .3s ease; }
.tp-single .tp-gallery-grid a:hover { border-color: var(--tp-accent, #e11d48); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.tp-single .tp-gallery-grid img { display: block; width: 100%; height: 250px; object-fit: cover; border: 0; transition: transform .4s ease; }
.tp-single .tp-gallery-grid a:hover img { transform: scale(1.05); }

/* Client Review Section */
.tp-single .tp-testimonial-section {
    margin-top: 38px;
}
.tp-single .tp-review-heading {
    margin-bottom: 16px;
}
.tp-single .tp-testimonial {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--tp-accent, #e11d48);
    border-radius: 0 16px 16px 0;
    background: #0b0e15;
    padding: 30px 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    position: relative;
}
.tp-single .tp-testimonial-stars {
    color: #f59e0b;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    user-select: none;
}
.tp-single .tp-testimonial p {
    margin: 0;
    font-size: 16.5px;
    color: #f1f5f9;
    font-style: italic;
    line-height: 1.75;
}
.tp-single .tp-testimonial footer {
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tp-single .tp-testimonial footer::before {
    content: '—';
    color: var(--tp-accent, #e11d48);
}

/* Modern Redesigned Sidebar */
.tp-single .tp-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #0b0e15;
    padding: 30px 24px;
    min-width: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    position: sticky;
    top: 24px;
}
.tp-single .tp-sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}
.tp-single .tp-sidebar-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.12);
    color: var(--tp-accent, #e11d48);
    border: 1px solid rgba(225, 29, 72, 0.25);
    flex-shrink: 0;
}
.tp-single .tp-sidebar-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 4px;
}
.tp-single .tp-sidebar-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}
.tp-single .tp-status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: tpPulse 2s infinite ease-in-out;
}
@keyframes tpPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}
.tp-single .tp-meta-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tp-single .tp-meta-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all .25s ease;
}
.tp-single .tp-meta-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}
.tp-single .tp-meta-card .tp-meta-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 2px;
}
.tp-single .tp-meta-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-single .tp-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
}
.tp-single .tp-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}
.tp-single .tp-cat-badge {
    color: var(--tp-accent, #e11d48);
}
.tp-single .tp-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.tp-single .tp-tech-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all .2s ease;
}
.tp-single .tp-tech-pill:hover {
    background: var(--tp-accent, #e11d48);
    border-color: var(--tp-accent, #e11d48);
    color: #fff;
    transform: translateY(-1px);
}
.tp-single .tp-live-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--tp-accent, #e11d48);
    color: #ffffff !important;
    padding: 15px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 24px;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
    transition: all .3s cubic-bezier(0.2, 1, 0.22, 1);
    text-decoration: none !important;
}
.tp-single .tp-live-btn svg {
    transition: transform .25s ease;
}
.tp-single .tp-live-btn:hover {
    background: #ffffff;
    color: #000000 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}
.tp-single .tp-live-btn:hover svg {
    transform: translate(3px, -3px);
}

/* Navigation */
.tp-single .tp-post-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 48px; padding-top: 28px; }
.tp-single .tp-post-nav a { display: inline-flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; font-weight: 600; transition: color .2s; }
.tp-single .tp-post-nav a:hover { color: var(--tp-accent, #e11d48); }

/* Contact Section */
.tp-single .tp-contact-section { margin-top: 48px; background: #0c1017; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.tp-single .tp-contact-section h2 { font: inherit; font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.3; color: #ffffff; margin: 0 0 24px; letter-spacing: -.025em; }
.tp-single .tp-contact-section input:not([type="checkbox"]):not([type="radio"]),
.tp-single .tp-contact-section textarea,
.tp-single .tp-contact-section select {
    width: 100%;
    max-width: 100%;
    background: #06080d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color .2s;
}
.tp-single .tp-contact-section input:focus,
.tp-single .tp-contact-section textarea:focus {
    border-color: var(--tp-accent, #e11d48);
    outline: none;
}
.tp-single .tp-contact-section input[type="submit"],
.tp-single .tp-contact-section button[type="submit"] {
    background: var(--tp-accent, #e11d48);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    padding: 15px 36px;
    border-radius: 30px;
    transition: all .3s ease;
}
.tp-single .tp-contact-section input[type="submit"]:hover,
.tp-single .tp-contact-section button[type="submit"]:hover {
    background: #ffffff;
    color: #000000;
}

@media (max-width: 900px) {
    .tp-single .tp-layout-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .tp-mockup-viewport { height: 420px; }
    .tp-mockup-showcase:hover .tp-mockup-img { transform: translateY(calc(-100% + 420px)); }
}
@media (max-width: 600px) {
    .tp-single .tp-container { padding: 28px 18px 48px; }
    .tp-single .tp-hero-section { padding-left: 18px; padding-right: 18px; }
    .tp-single .tp-gallery-grid { grid-template-columns: minmax(0, 1fr); }
    .tp-single .tp-sidebar, .tp-single .tp-contact-section { padding: 24px; }
    .tp-mockup-viewport { height: 320px; }
    .tp-mockup-showcase:hover .tp-mockup-img { transform: translateY(calc(-100% + 320px)); }
    .tp-mockup-browser-bar { padding: 10px 14px; flex-wrap: wrap; }
    .tp-mockup-scroll-hint { display: none; }
}
