/* Education App Styles */
#education-app .app-content {
    height: calc(100% - 44px); /* subtract header height */
    overflow: hidden;
    padding: 0;
    position: relative;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Scrollable list wrapper */
.education-list {
    padding: 16px 16px 80px 16px; /* bottom padding so content is not hidden behind home indicator */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: 100%;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    scrollbar-width: none; /* Firefox scrollbar hide */
}
.education-list::-webkit-scrollbar {
    display: none; /* Safari & Chrome scrollbar hide */
}

/* Card / item container */
.education-item {
    position: relative;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.25); /* glass */
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.2s ease;
}

.education-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Header row inside each education item */
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.university-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.graduation-date {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.degree {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

/* Section titles (Achievements, Courses) */
.section-title {
    font-size: 20px;
    color: #333;
    margin: 10px 0 14px 4px;
    font-weight: 700;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Achievements list */
.achievements-section .achievement-item {
    margin-bottom: 16px;
}

.achievement-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
}

.achievements-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Courses section */
.courses-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-category {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}

.course-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.course-title {
    font-size: 14px;
    color: #333;
}

/* Topics Popup */
.topics-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.topics-popup.active {
    display: flex;
}

.topics-content {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    width: 86%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    animation: popupFade 0.4s ease forwards;
}

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

.topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.topics-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.topics-close {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topics-list li {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .education-list {
        padding: 15px 15px 70px 15px;
    }

    .education-item {
        padding: 16px 18px;
    }

    .university-name { font-size: 17px; }
    .degree { font-size: 14px; }
    .section-title { font-size: 18px; }
    .course-category { font-size: 15px; }
    .course-title { font-size: 13px; }
}
