/* Premium Blog Details Style - Ascent24 Technologies */
@import url('assets/css/nunito-josefin.css');

:root {
    --primary: #3f51b5;
    --accent: #5d5fef;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-main: #ffffff;
    --border: #f3f4f6;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(to bottom, #e3effa 0px, #e3effa 300px, #ffffff 300px, #ffffff 100%) no-repeat;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

/* --- Header / Navigation --- */
.details-header {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.details-nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.details-hamburger {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.details-logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.details-logo span {
    color: var(--accent);
}

.details-nav-menu {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.details-nav-item a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4b5563;
}

.details-nav-item a:hover {
    color: var(--text-main);
}

.details-nav-right {
    display: flex;
    align-items: center;
}

.details-search-btn {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

/* --- Author Header --- */
.details-author-section {
    max-width: 960px;
    margin: 2.5rem auto 1rem auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-author-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.details-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fee2e2;
}

.details-author-avatar svg {
    width: 100%;
    height: 100%;
}

.details-author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Capsule Featured Image --- */
.details-capsule-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.details-capsule-container {
    width: 100%;
    height: 280px;
    border-radius: 140px; /* Stadium/pill shape */
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.details-capsule-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-capsule-badge {
    position: absolute;
    bottom: 2rem !important;
    right: 4rem !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 10;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.details-capsule-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

/* Back navigation arrow */
.details-back-arrow {
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    z-index: 10;
}

.details-back-arrow:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-50%) scale(1.05);
}

/* --- Main Layout Grid --- */
.details-content-grid {
    max-width: 960px;
    margin: 3.5rem auto 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2.5rem;
}

/* Date Sidebar Column */
.details-date-sidebar {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding-top: 0.5rem;
    border-right: 1px solid var(--border);
    height: fit-content;
}

.details-date-sidebar .date-part {
    display: block;
    margin: 0.2rem 0;
}

.details-date-sidebar .date-separator {
    color: #cbd5e1;
}

/* Main Text Content Column */
/* Main Content Column */
.details-main-text {
    max-width: 800px;
    width: 100%;
    min-width: 0;
}

.details-title {
    font-size: 2.2rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.details-read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
}

.details-intro-p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

/* --- Article Elements & Styling --- */
.details-article-content {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.details-article-content p {
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 1.6rem;
    line-height: 1.8;
}

.details-article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 3rem 0 1.2rem 0;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}

.details-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 2rem 0 1rem 0;
}

/* TOC */
.toc {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin: 2.5rem 0;
}

.toc-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.toc ol {
    padding-left: 1.5rem;
}

.toc ol li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.toc ol li a {
    color: var(--accent);
    font-weight: 500;
}

.toc ol li a:hover {
    text-decoration: underline;
}

/* Verdict box */
.quick-verdict {
    background-color: #0b192c;
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
}

.qv-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.qv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.qv-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.qv-card-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.c-tl .qv-card-name { color: #38bdf8; }
.c-sf .qv-card-name { color: #fdba74; }
.c-wt .qv-card-name { color: #a5b4fc; }

.qv-best {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.8rem;
    display: block;
}

.qv-card p {
    font-size: 0.85rem !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
}

/* Software card blocks */
.sw-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 3rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.sw-header {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.sw-slab {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem;
}

.sw-slab.tally { background-color: #0c4a6e; }
.sw-slab.sap { background-color: #065f46; }
.sw-slab.custom { background-color: #c2410c; }

.sw-head {
    padding: 1.5rem;
    flex-grow: 1;
}

.sw-verdict-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.vp-blue { background-color: #e0f2fe; color: #0369a1; }
.vp-green { background-color: #d1fae5; color: #047857; }
.vp-saffron { background-color: #ffedd5; color: #c2410c; }

.sw-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.sw-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.sw-body {
    padding: 1.8rem;
}

/* Feature tables */
.feat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.feat-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
}

.feat-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.feat-ok { color: #059669; font-weight: 600; }
.feat-part { color: #d97706; font-weight: 600; }
.feat-no { color: #dc2626; font-weight: 600; }

/* Cost box */
.cost-box {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.cost-box.tally-cost { background-color: #f0f9ff; border-left: 4px solid #0284c7; }
.cost-box.sap-cost { background-color: #ecfdf5; border-left: 4px solid #10b981; }
.cost-box.custom-cost { background-color: #fff7ed; border-left: 4px solid #f97316; }

.cost-icon {
    font-size: 1.5rem;
}

.cost-content .cost-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.cost-content .cost-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.4rem;
}

.cost-content p {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* Callout */
.callout {
    padding: 1.5rem 1.8rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.callout.c-red { background-color: #fef2f2; border-left: 4px solid #ef4444; }
.callout.c-ind { background-color: #eef2ff; border-left: 4px solid #6366f1; }
.callout.c-saf { background-color: #fffaf0; border-left: 4px solid #f59e0b; }
.callout.c-teal { background-color: #f0fdfa; border-left: 4px solid #14b8a6; }

.ctag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.callout p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

/* Who box */
.who {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.who-tally { background-color: #f0f9ff; }
.who-sap { background-color: #ecfdf5; }
.who-custom { background-color: #fff7ed; }

.who-lbl {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: block;
}

.who ul {
    list-style: none;
    padding-left: 0;
}

.who ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.who ul li::before {
    content: '✓';
    font-weight: 700;
    color: var(--accent);
}

/* mid image and figures */
.mid-img {
    margin: 2.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.mid-img img {
    width: 100%;
    display: block;
}

.mid-img figcaption {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: #f8fafc;
    border-top: 1px solid var(--border);
    font-style: italic;
}

/* Compare table wrapper */
.compare-wrap {
    overflow-x: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.compare-table th {
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #ffffff;
    text-align: center;
}

.compare-table th:first-child {
    text-align: left;
    background-color: #f8fafc;
    color: var(--text-main);
}

.th-tally { background-color: #0c4a6e; }
.th-sap { background-color: #065f46; }
.th-custom { background-color: #c2410c; }

.compare-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: #4b5563;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
}

.cg { color: #16a34a; font-weight: 600; }
.cr { color: #dc2626; font-weight: 600; }
.ca { color: #d97706; font-weight: 600; }

/* Decision tree */
.decision-tree {
    background-color: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3.5rem 0;
}

.dt-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.dt-step {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.dt-content {
    flex: 1;
    min-width: 0;
}

.dt-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dn1 { background-color: #0284c7; }
.dn2 { background-color: #10b981; }
.dn3 { background-color: #f97316; }
.dn4 { background-color: #6366f1; }

.dt-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dt-content p {
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
}

.dt-result {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.6rem;
}

.dr-tally { background-color: #e0f2fe; color: #0369a1; }
.dr-sap { background-color: #d1fae5; color: #047857; }
.dr-custom { background-color: #ffedd5; color: #c2410c; }

/* FAQ Accordions */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.faq-q {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background-color: #ffffff;
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #eef2ff;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.faq-question {
    font-weight: 700;
    font-size: 0.98rem;
}

.faq-a {
    padding: 0 1.5rem 1.5rem 3.25rem;
    background-color: #ffffff;
}

.faq-a p {
    font-size: 0.92rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* A24 Pitch block */
.a24 {
    background: linear-gradient(135deg, #0b192c 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
}

.a24-ey {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #38bdf8;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.a24 h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.a24 p {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    max-width: 700px;
    margin: 0 auto 2rem auto !important;
}

.stall {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 0.5rem;
}

.a24-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.a24-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
}

.a24-btn {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.a24-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

/* --- Details Footer Action Bar --- */
.details-action-bar {
    max-width: 960px;
    margin: 4rem auto;
    padding: 1.2rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.details-action-left {
    display: flex;
    gap: 1.8rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
}

.action-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.action-item.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.action-item.liked span {
    color: #ef4444;
}

.details-action-right {
    display: flex;
    gap: 1.2rem;
}

.details-action-right svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    cursor: pointer;
    color: #4b5563;
}

.details-action-right svg:hover {
    color: var(--text-main);
}

/* --- Related Posts / Recent Articles Section --- */
.details-related-section {
    width: 100%;
    margin: 3rem 0 0 0;
    padding: 2rem 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.details-related-inner {
    max-width: 100%;
    margin: 0;
    position: relative;
}

/* Ensure no watermark background text is shown */
.details-related-section::before {
    display: none !important;
}

.details-related-header {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.details-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.details-related-subtitle {
    display: none !important;
}

.details-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.related-img-area {
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}

.related-img-area img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-title {
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
}

.related-card-title a:hover {
    color: #cf6011;
}

.related-card-desc {
    display: none !important;
}

.related-date {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: auto;
    margin-bottom: 0.5rem;
    display: block;
}

.related-read-more {
    display: inline-block;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-read-more:hover {
    color: #cf6011;
    text-decoration: underline;
}

/* Remove arrow indicator */
.related-read-more::after {
    display: none !important;
}


/* Footer Section */
.details-footer {
    background-color: #0b192c;
    color: #94a3b8;
    padding: 4rem 2rem 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

.details-footer a {
    color: #cbd5e1;
}

.details-footer-logo {
    height: 30px;
    margin-bottom: 1.5rem;
}

.details-footer p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.details-footer-bottom {
    max-width: 960px;
    margin: 2rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* --- Tablet Breakpoint --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .details-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Media Queries --- */
@media (max-width: 768px) {

    body {
        background: linear-gradient(to bottom, #e3effa 0px, #e3effa 240px, #ffffff 240px, #ffffff 100%) no-repeat;
    }

    .details-nav-menu {
        display: flex;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #ffffff;
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 1.8rem;
        align-items: center;
        z-index: 999;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    }

    .details-nav-menu.active {
        left: 0;
    }

    .details-nav-item a {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .details-capsule-container {
        height: 180px;
        border-radius: 30px; /* softer rounded on mobile */
    }

    .details-header {
        padding: 1rem;
    }

    .details-back-arrow {
        left: 1.5rem;
        top: 1.5rem;
        transform: none;
        width: 36px;
        height: 36px;
    }

    .details-capsule-badge {
        bottom: 1rem !important;
        right: 1.5rem !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        font-size: 0.65rem;
    }

    .details-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .details-main-text {
        width: 100%;
        min-width: 0;
    }

    .details-meta-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .details-date-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
        text-align: left;
        display: flex;
        gap: 0.5rem;
    }

    .details-date-sidebar .date-separator {
        display: none;
    }

    .details-title {
        font-size: 1.6rem;
    }

    .quick-verdict {
        padding: 1.2rem 1rem;
    }

    .a24 {
        padding: 2rem 1.2rem;
        margin: 2.5rem 0;
    }

    .details-action-bar {
        padding: 1.2rem 1rem;
        margin: 2.5rem auto;
        flex-wrap: wrap;
        gap: 1rem;
    }

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

    .details-related-grid {
        grid-template-columns: 1fr;
    }

    .details-related-section {
        padding: 3.5rem 1.2rem;
    }

    .details-footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Footer link color overrides */
footer {
    background-color: #000; /* ensure dark background */
    color: var(--white-color);
}
footer a {
    color: var(--white-color) !important;
    text-decoration: none;
}
footer a:hover {
    color: var(--theme-color) !important;
}
footer h3 {
    color: var(--white-color) !important;
}
