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

:root {
    --primary: #0b63ce;
    --primary-dark: #084b9f;
    --primary-light: #eaf3ff;
    --text: #172033;
    --muted: #6b7280;
    --border: #e3e8ef;
    --background: #f5f7fb;
    --white: #ffffff;
    --success: #16a34a;
    --shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}


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

.post-header {
    width: 100%;
    min-height: 76px;
    padding: 12px 6%;
    background: var(--white);
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 100;
}

.post-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.post-logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.post-logo-text {
    display: flex;
    flex-direction: column;
}

.post-logo-text strong {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.post-logo-text span {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.header-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);
    color: var(--text);

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: 0.25s ease;
}

.header-home:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}


/* =========================
   MAIN
========================= */

.post-ad-page {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 55px 0 70px;
}


/* =========================
   INTRO
========================= */

.post-intro {
    text-align: center;
    margin-bottom: 35px;
}

.marketplace-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 14px;

    border-radius: 30px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.post-intro h1 {
    margin-top: 15px;

    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;

    color: var(--text);
}

.post-intro p {
    margin-top: 9px;

    color: var(--muted);
    font-size: 15px;
}


/* =========================
   PROGRESS
========================= */

.post-progress {
    width: 100%;
    margin-bottom: 30px;

    padding: 20px 25px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);

    display: flex;
    align-items: center;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #9aa3b2;
    white-space: nowrap;
}

.progress-step > span {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf0f4;
    color: #7c8491;

    font-size: 14px;
    font-weight: 700;
}

.progress-step strong {
    display: block;
    font-size: 13px;
}

.progress-step small {
    display: block;
    margin-top: 2px;

    font-size: 10px;
    color: #9aa3b2;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.active > span {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(11, 99, 206, 0.25);
}

.progress-step.active small {
    color: var(--muted);
}

.progress-line {
    flex: 1;
    height: 1px;

    margin: 0 18px;

    background: var(--border);
}


/* =========================
   MAIN CARD
========================= */

.post-card {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);

    overflow: hidden;
}

.card-heading {
    padding: 27px 30px;

    display: flex;
    align-items: center;
    gap: 15px;
}

.heading-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 12px;

    background: var(--primary-light);
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
}

.card-heading h2 {
    font-size: 21px;
    font-weight: 750;
}

.card-heading p {
    margin-top: 4px;

    color: var(--muted);
    font-size: 13px;
}

.divider {
    height: 1px;
    background: var(--border);
}


/* =========================
   SELECTED CATEGORY
========================= */

.selected-category {
    margin: 25px 30px;

    padding: 18px 20px;

    border: 1px solid #d8e5f5;
    border-radius: 13px;

    background: #f7fbff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.selected-category > div {
    display: flex;
    flex-direction: column;
}

.selected-category span {
    margin-bottom: 4px;

    color: #7b8798;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.selected-category strong {
    color: var(--primary);
    font-size: 14px;
}

.change-button {
    border: 1px solid var(--primary);

    padding: 8px 16px;

    border-radius: 8px;

    background: var(--white);
    color: var(--primary);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.change-button:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================
   CATEGORIES AREA
========================= */

.categories-area {
    padding: 0 30px 30px;
}

.categories-heading {
    margin-bottom: 15px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.categories-heading h3 {
    font-size: 19px;
    font-weight: 750;
}

.categories-heading p {
    margin-top: 3px;

    color: var(--muted);
    font-size: 12px;
}

.category-count {
    padding: 6px 11px;

    border-radius: 20px;

    background: #f1f4f8;
    color: #697386;

    font-size: 11px;
    font-weight: 600;
}


/* =========================
   CATEGORY ITEM
========================= */

.category-item {
    border: 1px solid var(--border);
    border-radius: 13px;

    margin-bottom: 10px;

    overflow: hidden;

    background: var(--white);

    transition: 0.25s ease;
}

.category-item:hover {
    border-color: #c9d9ed;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}


/* =========================
   CATEGORY MAIN BUTTON
========================= */

.category-main {
    width: 100%;

    min-height: 78px;

    padding: 10px 15px;

    border: 0;

    background: var(--white);

    display: flex;
    align-items: center;

    text-align: left;

    cursor: pointer;

    font-family: inherit;
}

.category-main img {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    object-fit: contain;

    margin-right: 15px;

    border-radius: 10px;
}

.category-info {
    flex: 1;

    display: flex;
    flex-direction: column;
}

.category-info strong {
    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}

.category-info small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}

.category-arrow {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8b95a5;

    font-size: 25px;

    transition: 0.25s ease;
}

.category-main:hover .category-arrow {
    background: var(--primary-light);
    color: var(--primary);
}


/* =========================
   OPEN CATEGORY
========================= */

.category-item.open {
    border-color: #bfd5ef;
}

.category-item.open .category-main {
    background: #f8fbff;
}

.category-item.open .category-arrow {
    transform: rotate(90deg);
    background: var(--primary);
    color: var(--white);
}


/* =========================
   SUBCATEGORY
========================= */

.subcategory-panel {
    display: none;

    padding: 8px 15px 15px 85px;

    background: #f8fafc;

    border-top: 1px solid var(--border);

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.category-item.open .subcategory-panel {
    display: grid;
}

.subcategory-panel button {
    min-height: 42px;

    padding: 9px 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--white);

    color: #394457;

    font-family: inherit;

    font-size: 12px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition: 0.2s ease;
}

.subcategory-panel button:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.subcategory-panel button.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}


/* =========================
   NAVIGATION
========================= */

.post-navigation {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-button,
.next-button {
    min-height: 44px;

    padding: 10px 22px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: 0.25s ease;
}

.back-button {
    border: 1px solid var(--border);

    background: var(--white);
    color: #4b5563;
}

.back-button:hover {
    border-color: #aeb8c7;
    background: #f8fafc;
}

.next-button {
    border: 0;

    background: var(--primary);
    color: var(--white);

    box-shadow: 0 5px 15px rgba(11, 99, 206, 0.2);
}

.next-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.next-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================
   FOOTER
========================= */

.post-footer {
    padding: 30px 20px;

    background: #111827;

    color: #9ca3af;

    text-align: center;

    font-size: 12px;
}

.post-footer p + p {
    margin-top: 5px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

    .post-ad-page {
        width: 94%;
        padding-top: 40px;
    }

    .post-progress {
        padding: 16px;
    }

    .progress-step div {
        display: none;
    }

    .progress-step > span {
        width: 36px;
        height: 36px;
    }

    .progress-line {
        margin: 0 10px;
    }

    .subcategory-panel {
        padding-left: 15px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .post-header {
        min-height: 68px;
        padding: 10px 4%;
    }

    .post-logo-image {
        width: 42px;
        height: 42px;
    }

    .post-logo-text strong {
        font-size: 18px;
    }

    .post-logo-text span {
        font-size: 9px;
    }

    .header-home {
        padding: 8px 13px;
        font-size: 12px;
    }


    .post-ad-page {
        width: 94%;
        padding: 30px 0 45px;
    }

    .post-intro {
        margin-bottom: 25px;
    }

    .post-intro h1 {
        font-size: 30px;
    }

    .post-intro p {
        font-size: 12px;
    }


    .post-progress {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .progress-step > span {
        width: 31px;
        height: 31px;
        font-size: 12px;
    }

    .progress-line {
        margin: 0 5px;
    }


    .post-card {
        border-radius: 15px;
    }

    .card-heading {
        padding: 20px 16px;
    }

    .heading-icon {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .card-heading h2 {
        font-size: 17px;
    }

    .card-heading p {
        font-size: 11px;
    }


    .selected-category {
        margin: 18px 15px;
        padding: 14px;
    }

    .selected-category strong {
        font-size: 12px;
    }

    .change-button {
        padding: 7px 11px;
        font-size: 11px;
    }


    .categories-area {
        padding: 0 15px 20px;
    }

    .categories-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .categories-heading h3 {
        font-size: 17px;
    }


    .category-main {
        min-height: 70px;
        padding: 8px 10px;
    }

    .category-main img {
        width: 48px;
        height: 48px;
        margin-right: 11px;
    }

    .category-info strong {
        font-size: 12px;
    }

    .category-info small {
        font-size: 9px;
    }

    .category-arrow {
        width: 28px;
        height: 28px;
        font-size: 21px;
    }


    .subcategory-panel {
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .subcategory-panel button {
        min-height: 40px;
        font-size: 11px;
    }


    .post-navigation {
        margin-top: 18px;
        padding-top: 15px;
    }

    .back-button,
    .next-button {
        min-height: 40px;
        padding: 9px 15px;
        font-size: 11px;
    }


    .post-footer {
        padding: 25px 15px;
        font-size: 10px;
    }

}