/*
Theme Name: Eduspace
Author: ModinaTheme
Description: Eduspace - JJ Genz Academy
*/

/* ─── Hero Banner (Extended Deep Blue Canvas) & Overlay ──── */
.breadcrumb-wrapper.details-hero-banner {
    padding-top: 175px !important;
    padding-bottom: 420px !important;
    position: relative !important;
    z-index: 1 !important;
}
.breadcrumb-wrapper.details-hero-banner .page-heading {
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}
.breadcrumb-wrapper.details-hero-banner .page-heading h1 {
    font-size: 44px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    max-width: 950px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* OVERLAPPING DETAIL CARDS (TIGHT BALANCED GAP) */
.courses-details-section.details-hero-section,
.event-details-section.details-hero-section {
    padding-top: 0 !important;
    padding-bottom: 90px !important;
    position: relative !important;
    z-index: 10 !important;
}
.courses-details-section.details-hero-section .courses-details-wrapper,
.event-details-section.details-hero-section .event-details-wrapper {
    margin-top: -370px !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Rounded Cards & Soft Shadow */
.courses-details-section .jj-course-inner-image img,
.event-details-section .details-image img {
    border-radius: 18px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1) !important;
}
.courses-details-section .jj-course-info-card,
.event-details-section .event-details-information {
    border-radius: 18px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
}

@media (max-width: 991px) {
    .breadcrumb-wrapper.details-hero-banner {
        padding-top: 160px !important;
        padding-bottom: 340px !important;
    }
    .breadcrumb-wrapper.details-hero-banner .page-heading h1 {
        font-size: 32px !important;
    }
    .courses-details-section.details-hero-section .courses-details-wrapper,
    .event-details-section.details-hero-section .event-details-wrapper {
        margin-top: -240px !important;
    }
}
@media (max-width: 575px) {
    .breadcrumb-wrapper.details-hero-banner {
        padding-top: 145px !important;
        padding-bottom: 220px !important;
    }
    .breadcrumb-wrapper.details-hero-banner .page-heading h1 {
        font-size: 24px !important;
    }
    .courses-details-section.details-hero-section .courses-details-wrapper,
    .event-details-section.details-hero-section .event-details-wrapper {
        margin-top: -140px !important;
    }
}

/* ─── Universal Uniform Course Card Grid & Fixed Image Aspect ─── */
.popular-courses-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}
.popular-courses-section .row > div[class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}
.courses-card-main-items {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
    width: 100% !important;
}
.courses-card-items,
.courses-card-items.style-2 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}
.courses-card-items:hover,
.courses-card-items.style-2:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 30px rgba(15, 34, 57, 0.12) !important;
}

/* FIXED 220px IMAGE CONTAINER - CROPS ANY IMAGE WITHOUT EXPANDING CARD */
.courses-card-items .courses-image,
.courses-card-items.style-2 .courses-image,
.popular-courses-section .courses-image {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    flex-shrink: 0 !important;
}
.courses-card-items .courses-image img,
.courses-card-items.style-2 .courses-image img,
.popular-courses-section .courses-image img {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}
.courses-card-items:hover .courses-image img,
.courses-card-items.style-2:hover .courses-image img {
    transform: scale(1.06) !important;
}

/* FIXED EQUAL HEIGHT CONTENT */
.courses-card-items .courses-content,
.courses-card-items.style-2 .courses-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 22px !important;
    justify-content: space-between !important;
}
.courses-card-items .courses-content h3,
.courses-card-items.style-2 .courses-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0F2239 !important;
    margin-bottom: 8px !important;
    line-height: 1.35 !important;
    min-height: 48px !important;
    max-height: 48px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.courses-card-items .courses-content h3 a,
.courses-card-items.style-2 .courses-content h3 a {
    color: #0F2239 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.courses-card-items .courses-content h3 a:hover,
.courses-card-items.style-2 .courses-content h3 a:hover {
    color: #2563eb !important;
}
.courses-card-items .courses-content p.jj-course-description,
.courses-card-items.style-2 .courses-content p.jj-course-description {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    flex-grow: 1 !important;
    min-height: 64px !important;
    max-height: 64px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Explore Course Bottom Bar */
.jj-course-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 14px !important;
    margin-top: auto !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
}
.jj-course-bottom .explore-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a447a !important;
    letter-spacing: 0.01em !important;
}
.jj-course-bottom .circle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #1a447a !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}
.courses-card-items.style-2:hover .jj-course-bottom .circle-btn {
    background: #ffb703 !important;
    color: #0F2239 !important;
    transform: translateX(3px) !important;
}





