/**
 * ContentGo Akademi Sidebar Styles
 * ═══════════════════════════════════════════════════════════
 * 6px Grid System Compliant
 * Primary: #3B3198 | Dark: #32257E | White: #FFFFFF
 * ═══════════════════════════════════════════════════════════
 */

/* Akademi Sidebar Container */
.cg-akademi-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO CARD
═══════════════════════════════════════════════════════════ */

.cg-video-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #32257E 0%, #3B3198 100%);
    box-shadow: 0 4px 16px rgba(59, 49, 152, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: block;
}

.cg-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(59, 49, 152, 0.2);
}

.cg-video-card__badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    z-index: 2;
}

.cg-video-card__thumb {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.cg-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.cg-video-card__content {
    padding: 36px 24px 24px;
    text-align: center;
}

.cg-video-card__title {
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 18px 0;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cg-video-card__title strong {
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-top: 6px;
}

.cg-video-card__play {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cg-video-card:hover .cg-video-card__play {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cg-video-card__play svg {
    width: 24px;
    height: 24px;
    fill: #FFFFFF;
    margin-left: 4px;
}

.cg-video-card__author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cg-video-card__author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cg-video-card__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.cg-video-card__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg-video-card__author-name {
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
}

.cg-video-card__author-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.cg-video-card__brand-logo {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: 500;
}

.cg-video-card__brand-logo span {
    color: #30EFC0;
}

/* ═══════════════════════════════════════════════════════════
   E-BOOK CARD
═══════════════════════════════════════════════════════════ */

.cg-ebook-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(59, 49, 152, 0.06);
    display: flex;
    gap: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cg-ebook-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(59, 49, 152, 0.12);
}

.cg-ebook-card__cover {
    flex-shrink: 0;
    width: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59, 49, 152, 0.15);
}

.cg-ebook-card__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.cg-ebook-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cg-ebook-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #32257E;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cg-ebook-card__description {
    font-size: 12px;
    color: #677489;
    line-height: 1.5;
    margin: 0 0 18px 0;
    flex: 1;
}

.cg-ebook-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #3B3198;
    text-decoration: none;
    transition: color 0.15s ease, gap 0.15s ease;
}

.cg-ebook-card__link:hover {
    color: #32257E;
    gap: 12px;
}

.cg-ebook-card__link svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   BLOG CARD
═══════════════════════════════════════════════════════════ */

.cg-blog-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(59, 49, 152, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cg-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(59, 49, 152, 0.12);
}

.cg-blog-card__badge {
    display: inline-block;
    background: #F0F2FF;
    color: #3B3198;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cg-blog-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #32257E;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cg-blog-card__excerpt {
    font-size: 12px;
    color: #677489;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.cg-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #3B3198;
    text-decoration: none;
    transition: color 0.15s ease, gap 0.15s ease;
}

.cg-blog-card__link:hover {
    color: #32257E;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   MORE BUTTON
═══════════════════════════════════════════════════════════ */

.cg-akademi__more {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.cg-akademi__more-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #FFFFFF;
    border: 2px solid #3B3198;
    border-radius: 66px;
    font-size: 12px;
    font-weight: 600;
    color: #3B3198;
    text-decoration: none;
    transition: all 0.15s ease;
}

.cg-akademi__more-link:hover {
    background: #3B3198;
    color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .cg-ebook-card {
        flex-direction: column;
    }
    
    .cg-ebook-card__cover {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
}
