/* ==================== */
/* ACADEMY PAGE STYLES  */
/* ==================== */

.academy-page {
    padding-top: 80px;
}

/* Hero Section */
.academy-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.academy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.academy-hero .container {
    position: relative;
    z-index: 1;
}

.academy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.academy-badge i {
    color: #ffd700;
    font-size: 1.1rem;
}

.academy-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.academy-hero > .container > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.academy-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.academy-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.academy-stats .stat i {
    color: #4fc3f7;
    font-size: 1.2rem;
}

/* Modules Section */
.modules-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.modules-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Module Card */
.module-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.module-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-level {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.module-level i {
    color: #22c55e;
}

.module-card h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-card h2 i {
    color: #667eea;
    font-size: 1.4rem;
}

.module-description {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Learning Points */
.learning-points {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0ea5e9;
}

.learning-points h3 {
    font-size: 1.1rem;
    color: #0369a1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.learning-points h3 i {
    color: #fbbf24;
}

.learning-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.learning-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #334155;
    font-size: 0.95rem;
}

.learning-points li i {
    color: #22c55e;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.info-box i {
    font-size: 1.5rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-box.pro-tip {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fde047;
}

.info-box.pro-tip i {
    color: #ca8a04;
}

/* Quiz Section */
.quiz-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid #e9d5ff;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.quiz-header:hover {
    background: rgba(124, 58, 237, 0.05);
}

.quiz-header h3 {
    font-size: 1.3rem;
    color: #7c3aed;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-toggle-icon {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.quiz-section.collapsed .quiz-toggle-icon {
    transform: rotate(-90deg);
}

.quiz-section.collapsed .quiz-header {
    margin-bottom: 0;
}

.quiz-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.quiz-section.collapsed .quiz-content {
    max-height: 0;
    opacity: 0;
}

.quiz-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.quiz-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-question {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question-text {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.quiz-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.quiz-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.quiz-option .option-text {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
}

.quiz-option.correct {
    background: #dcfce7;
    border-color: #22c55e;
}

.quiz-option.correct .option-text {
    color: #166534;
}

.quiz-option.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
}

.quiz-option.incorrect .option-text {
    color: #991b1b;
}

.feedback {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.feedback.correct {
    color: #16a34a;
}

.feedback.incorrect {
    color: #dc2626;
}

.feedback.warning {
    color: #d97706;
}

.quiz-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.quiz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.quiz-result {
    display: none;
    text-align: center;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz-result.perfect {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.quiz-result.good {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.quiz-result.needs-work {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Extra Resources Section */
.extra-resources {
    padding: 4rem 0;
    background: white;
}

.extra-resources .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.extra-resources h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.extra-resources h2 i {
    color: #3b82f6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.resource-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    color: white;
    font-size: 1.5rem;
}

.resource-info {
    flex: 1;
}

.resource-info h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.resource-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.resource-item .download-icon {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.resource-item:hover .download-icon {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .academy-hero {
        padding: 3rem 0;
    }
    
    .academy-hero h1 {
        font-size: 2rem;
    }
    
    .academy-hero > .container > p {
        font-size: 1rem;
    }
    
    .academy-stats {
        gap: 1.5rem;
    }
    
    .academy-stats .stat {
        font-size: 0.9rem;
    }
    
    .module-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .module-card h2 {
        font-size: 1.3rem;
    }
    
    .learning-points {
        padding: 1.25rem;
    }
    
    .learning-points ul {
        grid-template-columns: 1fr;
    }
    
    .quiz-section {
        padding: 1.5rem;
    }
    
    .quiz-question {
        padding: 1rem;
    }
    
    .quiz-option {
        padding: 0.875rem 1rem;
    }
    
    .extra-resources h2 {
        font-size: 1.4rem;
    }
}
