/* Student Courses - Frontend Styles */

.webeven-sc-courses-wrapper {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.webeven-sc-courses-grid {
    display: grid;
    grid-template-columns: repeat(var(--webeven-per-row, 4), 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Responsive */
@media (max-width: 1024px) {
    .webeven-sc-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .webeven-sc-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .webeven-sc-courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Course Card */
.webeven-sc-course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    display: flex;
    flex-direction: column;
    opacity: 1; /*0*/
    /*transform: translateY(30px);*/
}

/* Visible state - only apply transition when animating in */
.webeven-sc-course-card.webeven-sc-visible {
    opacity: 1;
    /*transform: translateY(0);*/
}

/* When we force no-animation (scroll up), remove transition temporarily */
/*.webeven-sc-course-card.webeven-sc-no-anim {
    transition: none !important;
}

.webeven-sc-course-card.webeven-sc-visible:not(.webeven-sc-no-anim) {
    transition: opacity 0.6s ease, transform 0.6s ease;
}*/

.webeven-sc-course-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Image */
.webeven-sc-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #1a1a2e;
}

.webeven-sc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.webeven-sc-course-card:hover .webeven-sc-card-image img {
    transform: scale(1.08);
}

/* Overlay - top controls + bottom gradient with title/common text */
.webeven-sc-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    /* Gradient: bottom black 80% → top transparent */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.40) 35%,
        rgba(0, 0, 0, 0) 70%
    );
}

.webeven-sc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px;
}

.webeven-sc-card-bottom {
    padding: 14px 16px 16px;
}

.webeven-sc-card-category {
    background:rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(5px);
    color: #ffffff;
	border:1px solid rgba(255, 255, 255, 0.4); 
    font-size: 12px;
    font-weight: normal;
    padding: 4px 10px !important;
    border-radius: 20px;
    letter-spacing:0;
}

.webeven-sc-card-icon {
    width: 32px;
    height: 32px;
    background: var(--webeven-icon-bg, rgba(255, 255, 255, 0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BD9E3C;
}

.webeven-sc-card-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.webeven-sc-default-icon svg {
    width: 16px;
    height: 16px;
    fill: #BD9E3C;
}

/* Title & Common text now inside image overlay */
.webeven-sc-card-title {
    margin: 0 0 4px !important;
    font-size: 24px;
    font-weight: 700;
    color: var(--webeven-title-color, #ffffff);
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.webeven-sc-card-common {
    margin: 0;
    font-size: 14px;
    color: var(--webeven-common-color, rgba(255, 255, 255, 0.85));
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Body (description, badges, price, button) */
.webeven-sc-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.webeven-sc-card-desc {
    margin: 0 0 14px !important;
    font-size: 14px;
    color: #222222;
    line-height: 1.55;
    flex: 1;
}

/* Badges */
.webeven-sc-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}

.webeven-sc-badge {
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

/* Footer */
.webeven-sc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.webeven-sc-card-price {
    font-size: 20px;
    font-weight: 700;
}

.webeven-sc-view-btn {
    background: none;
    border: none;
    color: #0054A6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.webeven-sc-view-btn:hover {
    color: #0B878F;
	background-color:transparent !important;
}

/* ========== MODAL ========== */
.webeven-sc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.webeven-sc-modal.webeven-sc-open {
    opacity: 1;
    visibility: visible;
}

.webeven-sc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.webeven-sc-modal-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 32px 28px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    z-index: 1;
}

.webeven-sc-modal.webeven-sc-open .webeven-sc-modal-container {
    transform: scale(1);
    opacity: 1;
}

.webeven-sc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none !important;
    background: #f3f4f6 !important;
    border-radius: 8px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #6b7280 !important;
    transition: background 0.2s, color 0.2s;
    padding: 0 !important;
    line-height: 1;
    font-size: 20px;
    font-weight: 400;
    z-index: 2;
}

.webeven-sc-modal-close svg {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.webeven-sc-modal-close svg path {
    stroke: currentColor;
    stroke-width: 2;
}

.webeven-sc-modal-close:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

.webeven-sc-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0B878F;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.webeven-sc-modal-title{
    margin: 0 0 12px !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.webeven-sc-modal-desc {
    margin: 0 0 24px !important;
    font-size: 14px;
    color: #222222;
    line-height: 1.6;
}

.webeven-sc-modal-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.webeven-sc-modal-feature {
    background: var(--webeven-modal-feature-bg, #f8fafc);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
	border: 1px solid #e5e7eb;
}

.webeven-sc-feature-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
}

.webeven-sc-feature-sub {
    font-size: 13px;
    color: #222222;
}

.webeven-sc-modal-btn {
    display: block;
    width: 100%;
    background: #BD9E3C; /*var(--webeven-cat-bg )*/
    color: #fff !important;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.webeven-sc-modal-btn:hover {
    background: #b8911f;
    transform: translateY(-1px);
}

/* Body lock when modal open */
body.webeven-sc-modal-open {
    overflow: hidden;
}

/* No courses */
.webeven-sc-no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}
