.owls-course-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.owls-course-back {
    margin-bottom: 20px;
}

.owls-course-back a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    background: #c10909;
    color: #fff;
    text-decoration: none;
}

.owls-course-back a:hover {
    background: #a30707;
    color: #fff;
}

.owls-course-title {
    margin: 0 0 5px;
    color: #c10909;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
}

.owls-course-subtitle {
    margin-bottom: 20px;
    color: #555;
    font-style: italic;
    text-align: center;
}

.owls-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
    gap: 30px;
    align-items: start;
}

.owls-course-info {
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
    line-height: 1.45;
}

.owls-course-description > :first-child {
    margin-top: 0;
}

.owls-course-details {
    margin: 0;
}

.owls-course-details > div {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) 1fr;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #e3e3e3;
}

.owls-course-details > div:last-child {
    border-bottom: 0;
}

.owls-course-details dt {
    font-weight: 700;
}

.owls-course-details dd {
    margin: 0;
}

.owls-course-registration-box {
    padding: 20px;
    border-radius: 8px;
    background: #fef1f1;
}

.owls-course-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.owls-course-placeholder {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eee;
    color: #666;
}

.owls-course-price {
    margin: 15px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.owls-registration-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(193, 9, 9, .18);
}

.owls-registration-form h2 {
    margin-top: 0;
    text-align: center;
}

.owls-registration-intro {
    margin-bottom: 16px;
    color: #555;
    font-size: .92rem;
}

.owls-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.owls-form-field {
    margin-bottom: 13px;
    text-align: left;
}

.owls-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.owls-form-field label span {
    color: #c10909;
}

.owls-form-field input,
.owls-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    color: #222;
}

.owls-form-field input:focus,
.owls-form-field textarea:focus {
    border-color: #c10909;
    outline: 2px solid rgba(193, 9, 9, .12);
}

.owls-registration-form .single_add_to_cart_button {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 18px;
    border: 0;
    border-radius: 4px;
    background: #c10909;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.owls-registration-form .single_add_to_cart_button:hover {
    background: #a30707;
}

.owls-course-unavailable {
    margin-top: 18px;
    padding: 14px;
    border-left: 4px solid #c10909;
    background: #fff;
    font-weight: 700;
}

.owls-registration-fixed-quantity {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.owls-course-registration-box .woocommerce-error,
.owls-course-registration-box .woocommerce-message,
.owls-course-registration-box .woocommerce-info {
    margin: 15px 0;
    text-align: left;
}

@media (max-width: 850px) {
    .owls-course-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .owls-course-container {
        padding: 24px 14px;
    }

    .owls-form-row,
    .owls-course-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}


.owls-course-capacity-status {
    margin: -4px 0 15px;
    padding: 10px 12px;
    border: 1px solid rgba(193, 9, 9, .2);
    border-radius: 5px;
    background: #fff;
    text-align: center;
    font-size: 1.05rem;
}

.owls-form-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: .8rem;
    line-height: 1.35;
}


.owls-course-contact-cta {
    max-width: 850px;
    margin: 36px auto 0;
    padding: 28px 24px;
    border: 1px solid rgba(193, 9, 9, .18);
    border-radius: 10px;
    background: #fef1f1;
    text-align: center;
}

.owls-course-contact-cta h2 {
    margin: 0 0 10px;
    color: #c10909;
}

.owls-course-contact-cta p {
    max-width: 720px;
    margin: 0 auto 18px;
    color: #444;
    line-height: 1.55;
}

.owls-course-contact-button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 4px;
    background: #c10909;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.owls-course-contact-button:hover,
.owls-course-contact-button:focus {
    background: #a30707;
    color: #fff;
}

@media (max-width: 520px) {
    .owls-course-contact-cta {
        padding: 22px 16px;
    }
}
