/* ========================= */
/* GLOBAL */
/* ========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* ========================= */
/* CONTAINER */
/* ========================= */

.dk-container {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================= */
/* HEADER */
/* ========================= */

.dk-blog-header {
    padding: 80px 0 40px;
}

.dk-blog-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.dk-blog-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================= */
/* GRID */
/* ========================= */

.dk-blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 40px;
    padding: 60px 0;
    align-items: start;
    overflow: visible; /* ✅ IMPORTANT */
}

.dk-blog-layout > * {
    min-width: 0;
}

/* ========================= */
/* ✅ STICKY FIX */
/* ========================= */

.dk-blog-section {
    overflow: visible;
}

@media (min-width: 1101px) {

    .dk-left-sidebar,
    .dk-right-sidebar {
        position: sticky;
        top: 110px;
        height: fit-content;
        align-self: start;
    }
}

/* ========================= */
/* SIDEBARS */
/* ========================= */

.dk-left-sidebar,
.dk-right-sidebar {
    min-width: 0;
}

/* ========================= */
/* TOC */
/* ========================= */

.dk-table-of-contents {
    background: #0f0f0f;
    border-radius: 14px;
    padding: 26px;
}

.dk-toc-title {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 16px;
}

.dk-toc-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dk-toc-links li {
    margin-bottom: 10px;
}

.dk-toc-links a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ========================= */
/* CONTENT */
/* ========================= */

.dk-blog-content img {
    max-width: 100%;
    height: auto;
}

/* ========================= */
/* CTA */
/* ========================= */

.dk-highlight-box {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    padding: 28px;
    align-items: center;
}

.dk-highlight-box.no-image {
    grid-template-columns: 1fr;
}

.dk-highlight-box.no-image .dk-highlight-image {
    display: none;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.dk-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #000;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
}

/* REMOVE UNDERLINE */
.dk-blog-content a,
.dk-highlight-box a {
    text-decoration: none !important;
    color: inherit;
}

/* ========================= */
/* AUTHOR */
/* ========================= */

.dk-author-section {
    display: flex;
    gap: 16px;
}

/* ========================= */
/* NAV */
/* ========================= */

.dk-post-navigation {
    display: flex;
    justify-content: space-between;
}

/* ========================= */
/* 🔥 FORM (FINAL WORKING) */
/* ========================= */

.dk-blog-sidebar .dk-contact-form {
    background: linear-gradient(180deg, #0f0f0f, #0b0b0b);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid #1f1f1f;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    color: #ffffff;
}

.dk-contact-form h3 {
    color: #ffffff !important;
    margin-bottom: 20px;
}

/* GRID */
.dk-blog-sidebar .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dk-blog-sidebar .form-group {
    margin-bottom: 16px;
}

/* LABEL */
.dk-blog-sidebar label {
    font-size: 12px;
    color: #bdbdbd !important;
    display: block;
    margin-bottom: 6px;
}

/* INPUT */
.dk-blog-sidebar input,
.dk-blog-sidebar textarea {
    width: 100%;
    padding: 12px;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
}

/* TEXTAREA */
.dk-blog-sidebar textarea {
    min-height: 100px;
}

/* PLACEHOLDER */
.dk-blog-sidebar input::placeholder,
.dk-blog-sidebar textarea::placeholder {
    color: #777;
}

/* FOCUS */
.dk-blog-sidebar input:focus,
.dk-blog-sidebar textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

/* BUTTON */
.dk-blog-sidebar button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #ffffff;
    color: #000;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1100px) {

    .dk-blog-layout {
        grid-template-columns: 1fr;
    }

    .dk-left-sidebar,
    .dk-right-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {

    .dk-left-sidebar {
        display: none;
    }

    .dk-container {
        padding: 0 14px;
    }

    .dk-highlight-box {
        grid-template-columns: 1fr;
    }

    .dk-blog-sidebar .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .dk-author-section {
        flex-direction: column;
        text-align: center;
    }

    .dk-post-navigation {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* ========================= */
/* 🔥 FORCE STICKY TO WORK */
/* ========================= */

/* Step 1: Fix parent wrappers (WordPress issue) */
body,
#page,
.site,
.site-content,
.ast-container {
    overflow: visible !important;
}

/* Step 2: Ensure grid allows sticky */
.dk-blog-layout {
    align-items: start !important;
}

/* Step 3: Sticky itself */
@media (min-width: 1101px) {

    .dk-left-sidebar,
    .dk-right-sidebar {
        position: sticky !important;
        top: 120px;
        height: fit-content;
        align-self: start;
    }

}