.motobaza-search-wrap {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.motobaza-search-wrap h1,
.motobaza-search-wrap h2 {
    margin-bottom: 20px;
    font-size: 28px;
    background-color: #b5bdbca6;
    padding: 5px 15px;
}

.wp-block-social-links,
.wp-block-page-list {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.wp-block-page-list {
    list-style: none;
}

@media (min-width: 1100px) {
    .wp-block-page-list {
        padding: 0;
    }
}

.wp-block-pages-list__item {
    background-color: #b5bdbca6;
    padding: 5px;
}

/* Search form */
.motobaza-search-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.motobaza-search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.motobaza-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.motobaza-search-field input[type="text"] {
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
}

.motobaza-search-field-input {
    flex: 1;
}

.motobaza-search-field-input input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.motobaza-btn {
    padding: 10px 24px;
    font-size: 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.motobaza-btn:hover {
    background: #005a87;
}

.motobaza-search-hint {
    color: #666;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Card layout (matches reference site) */
.row {
    display: flex;
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.col-lg-9 {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-lg-3 {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 15px;
    box-sizing: border-box;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
}

/* Card detail */
.course-side-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.csd-title {
    background: #2c3e50;
    color: #fff;
    padding: 16px 20px;
}

.csd-title b {
    font-size: 18px;
}

.csd-content {
    padding: 10px 20px 20px;
}

.csdc-lists ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csdc-lists li {
    display: flex;
    justify-content: space-between;
}

.csdc-lists li:last-child {
    border-bottom: none;
}

.csdc-odd {
    padding-right: 10px;
    padding-bottom: 10px;
}

.csdc-even {
    padding-left: 10px;
    padding-bottom: 10px;
}

.csdc-left {
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
    margin-right: 10px;
}

.csdc-right {
    text-align: right;
    color: #222;
}

.csdc-lists hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 5px 0 10px;
    width: 100%;
}

/* Sidebar info card */
.course-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.course-content {
    padding: 20px;
}

.course-content span {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.course-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* No results */
.motobaza-no-results {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.motobaza-no-results p {
    margin: 0;
    font-size: 16px;
}

/* Responsive — tablets */
@media (max-width: 1024px) {
    .csdc-lists .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .csdc-lists .col-lg-6.csdc-even, .csdc-lists .col-lg-6.csdc-odd {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Responsive — mobile */
@media (max-width: 768px) {
    .motobaza-search-row {
        flex-direction: column;
        align-items: normal;
    }

    .motobaza-search-field input[type="text"] {
        min-width: unset;
        width: 100%;
    }

    .col-lg-9,
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-lg-3 {
        margin-top: 20px;
    }

    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .csdc-lists li {
        flex-direction: column;
    }

    .csdc-right {
        text-align: left;
    }
}
