/* Experience & Education Page Specific Styles */

/* Experience Section */
.experience-section {
    padding: 3rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 3rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.section-title:first-child {
    margin-top: 0;
}

.section-content {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Research Overview */
.research-overview-section {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.research-theme,
.research-interests {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.research-theme:last-child,
.research-interests:last-child {
    margin-bottom: 0;
}

.research-theme strong,
.research-interests strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Education Items */
.education-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.education-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.education-content {
    flex: 1;
    min-width: 0;
}

.education-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.education-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.education-type {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-medium);
}

[data-theme="dark"] .education-type {
    color: var(--primary-dark);
}

.education-details {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.education-details .experience-link {
    margin-left: 0.375rem;
}

/* Experience List Container */
.experience-list {
    position: relative;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Experience Items - Compact List Style */
.experience-item {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.875rem 1rem;
    margin-bottom: 0;
    transition: none;
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.experience-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.375rem;
}

.experience-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.experience-logo-img[src=""],
.experience-logo-img:not([src]) {
    opacity: 0;
}

.experience-content {
    flex: 1;
    min-width: 0;
}

.experience-item:nth-child(even) {
    background-color: var(--bg-light);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item.experience-item-hidden {
    display: none;
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

.experience-role {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-medium);
    white-space: nowrap;
}

[data-theme="dark"] .experience-role {
    color: var(--primary-dark);
}

.experience-details {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
    padding-left: 0.25rem;
}

/* Experience Links */
.experience-link {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.25rem 0.625rem;
    background-color: var(--primary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.experience-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

[data-theme="dark"] .experience-link {
    color: #000000;
}

/* View More Button */
.view-more-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background-color: var(--primary);
    color: var(--text-dark);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .view-more-btn {
    color: #000000;
}

.view-more-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 238, 115, 0.4);
}

.view-more-btn:active {
    transform: translateY(0);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-category {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.skill-category p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* Coursework & Skills - Bubble Style */
.coursework-section {
    margin-bottom: 2rem;
}

.coursework-section:last-child {
    margin-bottom: 0;
}

.coursework-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.skill-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.skill-bubble {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background-color: var(--primary);
    border: 1px solid var(--primary-dark);
    border-radius: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.4;
    white-space: nowrap;
}

[data-theme="dark"] .skill-bubble {
    background-color: var(--bg-light);
    border-color: var(--border);
    color: var(--text-medium);
}

/* Awards Section */
.awards-section {
    margin-bottom: 2rem;
}

.awards-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.awards-list li {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.awards-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .experience-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .education-item {
        padding: 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    .education-logo {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }

    .experience-item {
        padding: 0.75rem 0.875rem 0.75rem 1rem;
        gap: 0.75rem;
    }

    .experience-logo {
        width: 40px;
        height: 40px;
        padding: 0.25rem;
    }

    .education-header h3 {
        font-size: 1rem;
    }

    .experience-header h3 {
        font-size: 0.875rem;
        min-width: 100%;
    }

    .experience-role {
        font-size: 0.75rem;
    }

    .experience-details {
        font-size: 0.8125rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 1.25rem;
    }

    .skill-bubbles {
        gap: 0.5rem;
    }

    .skill-bubble {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.75rem;
    }
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 61px;
    background-color: var(--bg-white);
    z-index: 999;
    padding-top: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Mobile spacing for sticky tabs */

@media (max-width: 768px) {
    .tab-nav {
        top: 53px;
        padding-top: 1rem;
    }
}

.tab-nav.stuck {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-dark);
}

[data-theme="dark"] .tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--text-dark);
    border-bottom-color: var(--primary);
}

[data-theme="dark"] .tab-btn.active {
    color: var(--text-dark);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}