/* ==========================================================
   Ramco Classes card – custom design
   ========================================================== */

.ramco-card__image-link {
    display: block;
    margin: 0;
    position: relative;
}
.ramco-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0;
}
/* Courses: shorter, fixed-height banner per the client mock (its cards use
   110px; a bit taller here since real course copy runs longer than the
   mock's placeholder text). Classes grid keeps the 16:9 ratio above. */
.ramco-courses .ramco-card__image {
    height: 145px !important;
    aspect-ratio: auto;
    object-fit: cover !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Delivery-method badge overlaid on the course image */
.ramco-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}
.ramco-badge__icon {
    flex-shrink: 0;
}
.ramco-badge--in-person {
    background: #0874d1;
}
.ramco-badge--live-virtual {
    background: #079657;
}
/* Not wired up yet — no course currently has a RAMCO delivery-method value
   that maps here (see docs/course-cards-2026-09-08.md open item). Left in
   place so it's a one-line change if RAMCO adds one. */
.ramco-badge--online {
    background: #6828b7;
}
.ramco-badge--multiple,
.ramco-badge--default {
    background: #d1d5db;
    color: #1f2937;
}

.ramco-card__meta {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #555;
}
.ramco-card__provider {
    font-weight: 600;
    color: #333;
}
.ramco-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.15rem;
}
.ramco-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.ramco-card__meta-icon {
    flex-shrink: 0;
    color: #888;
}

/* Courses: lighter provider/meta/description treatment per the client mock.
   Scoped so the classes grid keeps its current styling above. */
.ramco-courses .ramco-card__provider {
    font-weight: 400;
    font-size: 13px;
    color: #506b8f;
}
.ramco-courses .ramco-card__meta-item {
    font-size: 13px;
    color: #506b8f;
}
.ramco-courses .ramco-card__desc {
    font-size: 14px;
    line-height: 1.32;
    color: #506b8f;
}

.ramco-card__divider {
    border: none;
    border-top: 1px solid #dde3e8;
    margin: 0;
    transform: scaleY(0.5);
    transform-origin: top;
}

/* Tighten the card: trim body padding and kill the dead space
   above the footer button. */
.ramco-card__body {
    padding: 0.85rem 1.1rem 0.55rem;
}

.ramco-card__price {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #222;
    margin: 0 !important;
    padding: 0.35rem 1rem 0.45rem !important;
}
.ramco-card__price--text {
    font-size: 1.05rem !important;
}
.ramco-card__footer .button {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.ramco-card__footer {
    padding: 0 !important;
}
.ramco-card__footer .button {
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Courses footer: price left, button right, bottom-aligned, per the client
   mock. The price block and the WooCommerce loop button are already
   siblings inside .ramco-card__footer, so flexbox alone re-arranges them —
   no markup change needed. Classes grid keeps its stacked full-width
   layout above. */
.ramco-courses .ramco-card__footer {
    padding: 12px 15px 14px !important;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.ramco-courses .ramco-card__price {
    font-size: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ramco-courses .ramco-card__price--text {
    font-size: 15px !important;
}
.ramco-courses .ramco-card__footer .button {
    display: block !important;
    width: auto !important;
    min-width: 132px;
    margin-left: auto !important;
    padding: 11px 20px !important;
    border-radius: 4px !important;
    background-color: #0874d1 !important;
    border-color: #0874d1 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.ramco-courses .ramco-card__footer .button:hover,
.ramco-courses .ramco-card__footer .button:focus {
    background-color: #045ea9 !important;
    border-color: #045ea9 !important;
}

/* Grid / list view toggle, per the client mock. */
.ramco-view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 12px;
}
.ramco-view-toggle__btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 5px;
    background: #eef3f8;
    color: #0a3a75;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}
.ramco-view-toggle__btn.is-active {
    background: #003f84;
    color: #fff;
}

/* List view: image left, title/meta/description and footer stacked on the
   right. Toggled by adding .list-view to ul.products via the view-toggle
   buttons above. */
.ramco-courses ul.products.list-view {
    grid-template-columns: 1fr !important;
}
.ramco-courses ul.products.list-view li.product.ramco-card {
    display: grid !important;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "image body" "image footer";
}
.ramco-courses ul.products.list-view .ramco-card__image-link {
    grid-area: image;
    height: 100%;
}
.ramco-courses ul.products.list-view .ramco-card__image {
    height: 100% !important;
    min-height: 205px;
}
.ramco-courses ul.products.list-view .ramco-card__body {
    grid-area: body;
}
.ramco-courses ul.products.list-view .ramco-card__footer {
    grid-area: footer;
}

@media (max-width: 767px) {
    .ramco-courses ul.products.list-view li.product.ramco-card {
        display: flex !important;
        flex-direction: column;
    }
    .ramco-courses ul.products.list-view .ramco-card__image {
        height: 145px !important;
        min-height: 145px;
    }
}

@media (max-width: 767px) {
    ul.products li.ramco-card {
        width: 100% !important;
        float: none !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    ul.products:has(li.ramco-card) {
        grid-template-columns: 1fr !important;
    }
}

.ramco-card__title,
.ramco-card__title a {
    font-size: 20px !important;
}

/* Courses: smaller title per the client mock (classes grid keeps 20px
   above). */
.ramco-courses .ramco-card__title,
.ramco-courses .ramco-card__title a {
    font-size: 17px !important;
    line-height: 1.18;
}

/* Single product page */
.single-product .woocommerce-product-gallery--without-images {
    display: none !important;
}
.single-product .posted_in {
    display: none !important;
}

.single-product .woocommerce-product-gallery--without-images ~ .summary {
    width: 100% !important;
    float: none !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.single-product .woocommerce-breadcrumb {
    display: none !important;
}

.single-product .single-product-category {
    display: none !important;
}

.single-product .related.products {
    display: none !important;
}
