/* ============================
   Tirth Detail — CK Editor Content Styling
   ============================ */
:root {
    --tirth-saffron: #ff9f1c;
    --tirth-ocean: #040406;
    --tirth-sand: #f8f5f2;
    --tirth-slate: #4a4e69;
}

.content-body {
    color: var(--tirth-slate);
    font-size: 1rem;
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Headings */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: var(--tirth-ocean);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.content-body h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}

.content-body h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 159, 28, 0.18);
}

.content-body h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    padding-left: 0.85rem;
    border-left: 4px solid var(--tirth-saffron);
}

.content-body h4 {
    font-size: clamp(1.08rem, 1.9vw, 1.25rem);
}

.content-body h5 {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.content-body h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tirth-saffron);
}

.content-body>h1:first-child,
.content-body>h2:first-child,
.content-body>h3:first-child {
    margin-top: 0;
}

/* Paragraphs */
.content-body p {
    margin-bottom: 1.15rem;
    font-size: 1.02rem;
    line-height: 1.85;
}

.content-body p:last-child {
    margin-bottom: 0;
}

/* Inline emphasis */
.content-body strong,
.content-body b {
    color: var(--tirth-ocean);
    font-weight: 700;
}

.content-body em,
.content-body i {
    color: var(--tirth-slate);
    font-style: italic;
}

/* Links */
.content-body a {
    color: var(--tirth-saffron);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 159, 28, 0.5);
    transition: all 0.25s ease;
}

.content-body a:hover {
    color: #e58d14;
    border-bottom-color: var(--tirth-saffron);
    border-bottom-style: solid;
}

/* Lists */
.content-body ul,
.content-body ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.25rem;
}

.content-body li {
    margin-bottom: 0.6rem;
    line-height: 1.75;
    position: relative;
    padding-left: 0.35rem;
}

.content-body ul {
    list-style: none;
    padding-left: 0.25rem;
}

.content-body ul>li {
    padding-left: 1.85rem;
    position: relative;
}

.content-body ul>li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--tirth-saffron);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.15);
}

.content-body ol {
    counter-reset: ck-counter;
    list-style: none;
    padding-left: 0.25rem;
}

.content-body ol>li {
    counter-increment: ck-counter;
    padding-left: 2.4rem;
    position: relative;
}

.content-body ol>li::before {
    content: counter(ck-counter);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--tirth-saffron);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 159, 28, 0.35);
}

.content-body li>ul,
.content-body li>ol {
    margin: 0.5rem 0 0.5rem;
}

/* Blockquote */
.content-body blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem 1rem 2.75rem;
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.06) 0%, rgba(74, 78, 105, 0.04) 100%);
    border-left: 4px solid var(--tirth-saffron);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--tirth-ocean);
    font-size: 0.95rem;
    line-height: 1.65;
}

.content-body blockquote::before {
    content: "\201C";
    position: absolute;
    top: 0.1rem;
    left: 0.7rem;
    font-family: Georgia, serif;
    font-size: 2.4rem;
    color: var(--tirth-saffron);
    opacity: 0.45;
    line-height: 1;
}

.content-body blockquote p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Code & Preformatted */
.content-body code {
    background: rgba(74, 78, 105, 0.08);
    color: #c0392b;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.92em;
    font-family: 'Courier New', monospace;
}

.content-body pre {
    background: var(--tirth-ocean);
    color: #f8f5f2;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.92rem;
}

.content-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Horizontal Rule */
.content-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 159, 28, 0.5), transparent);
    margin: 2rem 0;
}

/* Images */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.25rem 0;
    box-shadow: 0 10px 30px rgba(4, 4, 6, 0.12);
}

.content-body figure {
    margin: 1.5rem 0;
}

.content-body figure img {
    margin: 0;
}

.content-body figcaption {
    font-size: 0.88rem;
    color: var(--tirth-slate);
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.85;
}

/* Tables */
.content-body .table-wrapper,
.content-body figure.table {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(4, 4, 6, 0.06);
    background: #fff;
    border: 1px solid rgba(74, 78, 105, 0.08);
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    min-width: 360px;
    table-layout: auto;
    border: none !important;
}

/* Kill CKEditor's inline border attribute / styles on cells */
.content-body table,
.content-body table tr,
.content-body table th,
.content-body table td {
    border-left: none !important;
    border-right: none !important;
    border-color: rgba(74, 78, 105, 0.08) !important;
}

/* Header (explicit thead) */
.content-body table thead {
    background: linear-gradient(135deg, var(--tirth-saffron) 0%, #ffb84d 100%);
}

.content-body table thead th,
.content-body table thead td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    border: none;
    color: #fff !important;
    vertical-align: middle;
}

.content-body table thead th *,
.content-body table thead td * {
    color: #fff !important;
}

/* Body cells */
.content-body table tbody td,
.content-body table tbody th {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid rgba(74, 78, 105, 0.08);
    color: var(--tirth-slate);
    vertical-align: middle;
    text-align: left;
}

.content-body table tbody tr:nth-child(even) {
    background: rgba(248, 245, 242, 0.55);
}

.content-body table tbody tr:hover {
    background: rgba(255, 159, 28, 0.06);
}

/* Fallback: CKEditor often outputs tables without a <thead>.
   The JS in the blade promotes the first row to <thead>, but this
   keeps things sane if that fails to run. */
.content-body table:not(:has(thead)) tr:first-child {
    background: linear-gradient(135deg, var(--tirth-saffron) 0%, #ffb84d 100%);
}

.content-body table:not(:has(thead)) tr:first-child>* {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    padding: 0.9rem 1.1rem;
    border: none;
    vertical-align: middle;
}

.content-body table:not(:has(thead)) tr:first-child>* * {
    color: #fff !important;
}

/* Iframe / video embeds */
.content-body iframe,
.content-body video {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    margin: 1.25rem 0;
    border: 0;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 24px rgba(4, 4, 6, 0.12);
}

/* CK Editor utility classes */
.content-body .text-tiny {
    font-size: 0.7em;
}

.content-body .text-small {
    font-size: 0.85em;
}

.content-body .text-big {
    font-size: 1.4em;
}

.content-body .text-huge {
    font-size: 1.8em;
}

.content-body .image-style-side {
    float: right;
    margin-left: 1.5rem;
    max-width: 50%;
}

.content-body .image-style-align-left {
    float: left;
    margin-right: 1.5rem;
    max-width: 50%;
}

.content-body .image-style-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Mark / highlight */
.content-body mark {
    background: rgba(255, 159, 28, 0.25);
    color: var(--tirth-ocean);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .content-body {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .content-body p {
        font-size: 0.98rem;
    }

    .content-body .image-style-side,
    .content-body .image-style-align-left {
        float: none;
        margin: 1rem 0;
        max-width: 100%;
    }

    .content-body blockquote {
        padding: 0.85rem 1rem 0.85rem 2.25rem;
        font-size: 0.9rem;
    }

    .content-body blockquote p {
        font-size: 0.9rem;
    }

    .content-body blockquote::before {
        font-size: 2rem;
        left: 0.55rem;
    }

    .content-body ul>li,
    .content-body ol>li {
        padding-left: 1.65rem;
    }

    .content-body ol>li {
        padding-left: 2.1rem;
    }

    .content-body ol>li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 575.98px) {
    .content-body table {
        font-size: 0.88rem;
    }

    .content-body table thead th,
    .content-body table thead td,
    .content-body table tbody td,
    .content-body table tbody th {
        padding: 0.65rem 0.75rem;
    }
}

/* ============================
   Quick Guide Sidebar
   ============================ */
.quick-guide {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(4, 4, 6, 0.06);
    overflow: hidden;
    border: 1px solid rgba(74, 78, 105, 0.06);
}

.quick-guide.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

/* Header */
.quick-guide__header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px dashed rgba(74, 78, 105, 0.12);
}

.quick-guide__header-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.18) 0%, rgba(255, 159, 28, 0.06) 100%);
    color: var(--tirth-saffron);
    font-size: 1.35rem;
    position: relative;
}

.quick-guide__header-icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 159, 28, 0.35);
    pointer-events: none;
}

.quick-guide__eyebrow {
    display: block;
    color: var(--tirth-saffron);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.quick-guide__title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--tirth-ocean);
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.1;
}

/* List */
.quick-guide__list {
    list-style: none;
    padding: 0.75rem 0.85rem;
    margin: 0;
}

.quick-guide__item {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.85rem 0.75rem;
    border-radius: 12px;
    transition: background 0.25s ease, transform 0.25s ease;
    position: relative;
}

.quick-guide__item+.quick-guide__item {
    margin-top: 0.15rem;
}

.quick-guide__item+.quick-guide__item::before {
    content: "";
    position: absolute;
    top: -0.15rem;
    left: 4.1rem;
    right: 0.75rem;
    height: 1px;
    background: linear-gradient(to right, rgba(74, 78, 105, 0.12), transparent);
}

.quick-guide__item:hover {
    background: rgba(255, 159, 28, 0.05);
    transform: translateX(2px);
}

.quick-guide__icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tirth-saffron) 0%, #ffb84d 100%);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(255, 159, 28, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-guide__item:hover .quick-guide__icon {
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 8px 18px rgba(255, 159, 28, 0.4);
}

.quick-guide__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.quick-guide__label {
    font-size: 0.72rem;
    color: var(--tirth-slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    opacity: 0.8;
}

.quick-guide__value {
    color: var(--tirth-ocean);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-word;
}

/* CTA */
.quick-guide__cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0.5rem 1.25rem 1.25rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, var(--tirth-saffron) 0%, #ffb84d 100%);
    color: #fff !important;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(255, 159, 28, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
}

.quick-guide__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.quick-guide__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 159, 28, 0.42);
    filter: brightness(1.03);
    color: #fff !important;
}

.quick-guide__cta:hover::after {
    transform: translateX(100%);
}

.quick-guide__cta-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.quick-guide__cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.quick-guide__cta-label {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.quick-guide__cta-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 0.15rem;
}

.quick-guide__cta-arrow {
    font-size: 0.85rem;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.quick-guide__cta:hover .quick-guide__cta-arrow {
    transform: translate(2px, -2px);
}

@media (max-width: 991.98px) {
    .quick-guide.sticky-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    .quick-guide__header {
        padding: 1.25rem 1.25rem 0.85rem;
    }

    .quick-guide__list {
        padding: 0.5rem 0.6rem;
    }

    .quick-guide__item {
        padding: 0.75rem 0.6rem;
        gap: 0.8rem;
    }

    .quick-guide__cta {
        margin: 0.5rem 1rem 1rem;
    }

    .quick-guide__title {
        font-size: 1.15rem;
    }
}