/* Contents Page Styles */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.content-card:hover {
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.1);
}

.section-header {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.section-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(217, 119, 6, 0.05));
    border-radius: 12px;
    padding: 1rem;
    margin: -1rem;
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(59, 130, 246, 0.1); }
}

.content-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.content-card:hover .content-icon {
    transform: rotate(10deg) scale(1.1);
}

.video-placeholder {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 138, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
}

.badge-custom {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: 3rem 0;
    opacity: 0.3;
}

/* Staggered animations */
.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

/* Clickable cards */
.clickable-card {
    cursor: pointer;
    user-select: none;
}

.clickable-card:active {
    transform: scale(0.95) !important;
}

.play-icon {
    transition: all 0.3s ease;
}

/* Content Modal */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.animate-modal-in {
    animation: modalIn 0.3s ease-out;
}

.animate-modal-out {
    animation: modalOut 0.3s ease-in;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-blue);
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--primary-blue);
}

.loading-animation {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-blue);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}