/*------------------------------------------------- ACCORDION --------------------------------------------------------*/
.custom-accordion {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-accordion .accordion-item {
    box-shadow: 0 0 0 0.1px #fff;
    border-radius: 10px;
    position: relative;
}

.custom-accordion .accordion-item.active {
    display: block;
}

.custom-accordion .accordion-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
    background: #2556a7;
    font-weight: bold;
    transition: background 0.3s, border-left 0.3s;
    font-size: 22px;
    color: #fff;
}

.custom-accordion .accordion-header:hover {
    background: #f0f0f0;
    color: #2556a7;
}

.custom-accordion .accordion-item.active .accordion-header:hover {
    background: #2556a7;
    color: #fff;
}

.custom-accordion .accordion-item.active:last-child .accordion-header {
    border-radius: 0;
}

.custom-accordion .accordion-item.active:last-child .accordion-header:hover {
    border-radius: 0;
}

.custom-accordion .accordion-item.active .accordion-header {
    background: #cecece;
    color: #2556a7;
}

.accordion-header .header-inner {
    width: 100%;
    margin-left: 17%;
    transition: margin-left 0.3s;
}

@media (max-width: 1024px) {
    .accordion-header .header-inner {
        margin-left: 0;
    }
}

.custom-accordion .accordion-content {
    max-height: 0;
    background: #e2e3e3;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content .content-inner {
    width: 100%;
    margin-left: 17%;
    transition: margin-left 0.3s;
}
@media (max-width: 1024px) {
    .accordion-content .content-inner {
        margin-left: 0px;
    }
}

.category-name {
    flex-grow: 1;
    padding-left: 10px;
}

.category-index-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #fff;
    color: #2556a7;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    flex-shrink: 0;
}

.index-category-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ------------------------------------------------- COURSE CARDS -------------------------------------------------- */
.course-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 5px;
    width: 66%;
}

@media (max-width: 1024px) {
    .course-container {
        width: 100%;
    }
}

.course-card {
    width: 25%;
    background: transparent;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.data-container {
    padding: 10px 0;
    flex-grow: 1;
}

.course-thumbnail {
    width: 100%;
    aspect-ratio: 842 / 484;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.course-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.course-title {
    font-size: 16px;
    color: #2556a7;
    padding-top: 10px;
}

.course-data-container {
    display: flex;
    flex-direction: row;
}

.course-index-box {
    width: 56px;
    height: 56px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    color: #2556a7;
}

.course-play {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.course-button {
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: #2556a7;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.course-button:hover {
    background: #fff !important;
	color: rgb(37, 86, 167) !important;
}

.course-button.disabled {
    background: #ccc !important;
    cursor: not-allowed;
    position: relative;
	display: flex;
    align-items: center;
    justify-content: center;
	overflow: visible;
}

.course-button.disabled::before {
    content: "Cumpără un abonament ca să accesezi toate cursurile.";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);         
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    visibility: hidden;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    max-width: 280px;
    width: max-content;
    text-align: center;
    pointer-events: none;             
    z-index: 20;
    white-space: normal;                
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.course-button.disabled:hover::before,
.course-button.disabled:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.course-button.disabled .button-text {
    filter: blur(20px);
    color: transparent;
}

.course-button.disabled::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url('/wp-content/uploads/lock.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.course-button.disabled:hover::after {
    animation: jump-shaking 2s infinite;
    will-change: transform;
}

@keyframes jump-shaking {
    0% { transform: rotate(0) }
    35% { transform: rotate(10deg) }
    55% { transform: rotate(-10deg) }
    65% { transform: rotate(10deg) }
    75% { transform: rotate(-10deg) }
    100% { transform: rotate(0) }
}

@media (max-width: 1124px) {
    .course-card {
        width: 33.33%;
    }
}

@media (max-width: 868px) {
    .course-card {
        width: 50%;
    }
}

@media (max-width: 580px) {
    .course-card {
        width: 100%;
    }
}

/*──────────────── DASHBOARD STATS – new layout ───────────────*/
.dashboard-stats{
    width:100%;
    max-width:1140px;
    /* margin:20px auto 30px auto; */
    margin:auto;
    padding:50px 0 20px; /* top 50px, right 0, bottom 20px, left 0 */
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}


.stats-card{
    flex:1 1 260px;
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:10px;
    padding:15px 20px;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
}

.stats-icon{
    width:46px;height:46px;
    margin-right:15px;
    background:url('/wp-content/uploads/tick.svg') center/100% no-repeat;
    filter:grayscale(100%);
}

.stats-card.completed .stats-icon{
    background-image:url('/wp-content/uploads/check.svg');
}

.stats-label{
    font-size:14px;
    color:#777;
}

.stats-value{
    font-size:24px;
    font-weight:700;
    color:#2556a7;
}

/*──────────────── TIME SPENT CHART CARD ───────────────*/
.time-spent-card{
    width:100%;
    max-width:1140px;
    margin:0 auto 50px;         
    background:#fff;
    border-radius:10px;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
    padding:20px 25px 30px;
}


.time-spent-card h3{
    margin:0 0 10px 0;
    color:#2556a7;
    font-size:20px;
    font-weight:700;
}

.time-spent-card canvas{
    width:100% !important;
    height:350px !important;
}
