/* Educational Popups CSS - Redesigned */

.edu-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 28, 57, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.edu-popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.edu-popup-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    height: 85vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.edu-popup-header {
    background: #061C39;
    padding: 1.25rem 2rem;
    border-bottom: 3px solid #FFC000;
    position: relative;
    flex-shrink: 0;
}

.edu-popup-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    display: inline-block;
    vertical-align: middle;
}

.edu-popup-title {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.3;
    margin: 0;
    max-width: calc(100% - 80px);
}

.edu-popup-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 700;
}

.edu-popup-close:hover {
    background: #FFC000;
    border-color: #FFC000;
    color: #061C39;
    transform: translateY(-50%) scale(1.1);
}

.edu-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.edu-popup-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #061C39;
    margin-bottom: 1.25rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.edu-popup-body p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.edu-popup-body ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.edu-popup-body ul li {
    padding: 0.65rem 0 0.65rem 1.75rem;
    position: relative;
    font-size: 0.95rem;
    border-left: 3px solid #FFC000;
    margin-bottom: 0.65rem;
    background: linear-gradient(90deg, rgba(255, 192, 0, 0.05) 0%, transparent 100%);
    border-radius: 4px;
}

.edu-popup-body ul li::before {
    content: '•';
    position: absolute;
    left: 0.65rem;
    color: #FFC000;
    font-size: 1.3rem;
    line-height: 1;
}

.edu-popup-highlight {
    background: linear-gradient(135deg, rgba(255, 192, 0, 0.1) 0%, rgba(6, 28, 57, 0.05) 100%);
    border-left: 4px solid #FFC000;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 600;
    color: #061C39;
    font-size: 1rem;
    line-height: 1.6;
}

.edu-popup-quote {
    font-style: italic;
    color: #64748b;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid #e2e8f0;
    margin: 1.25rem 0;
    background: #f8fafc;
    border-radius: 4px;
}

/* Scrollbar styling for popup body */
.edu-popup-body::-webkit-scrollbar {
    width: 8px;
}

.edu-popup-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.edu-popup-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.edu-popup-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .edu-popup-modal {
        max-width: 95%;
        height: 90vh;
        max-height: none;
        border-radius: 8px;
    }
    
    .edu-popup-header {
        padding: 1rem 1.5rem;
    }
    
    .edu-popup-title {
        font-size: 1.25rem;
        max-width: calc(100% - 60px);
    }
    
    .edu-popup-close {
        width: 32px;
        height: 32px;
        right: 1rem;
    }
    
    .edu-popup-body {
        padding: 1.5rem;
    }
    
    .edu-popup-subtitle {
        font-size: 1.05rem;
    }
    
    .edu-popup-body p,
    .edu-popup-body ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .edu-popup-modal {
        height: 95vh;
    }
    
    .edu-popup-header {
        padding: 0.875rem 1rem;
    }
    
    .edu-popup-icon {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    
    .edu-popup-title {
        font-size: 1.1rem;
    }
    
    .edu-popup-body {
        padding: 1.25rem;
    }
}
