@import url('https://fonts.cdnfonts.com/css/aller');
@import url('https://fonts.cdnfonts.com/css/spin-cycle');

.cv-container {
    padding: 0 1rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cv-section {
    margin-bottom: 3.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header h2 {
    font-size: 18pt;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

.gold-line {
    height: 2px;
    background: var(--gold);
    width: 100%;
    opacity: 0.5;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cv-card {
    background: var(--navy-dark);
    border: 1px solid rgba(229, 190, 86, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cv-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cv-badge {
    background: rgba(39, 72, 97, 0.4);
    color: var(--gold);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 14pt;
    font-weight: 700;
    align-self: flex-start;
    border: 1px solid rgba(229, 190, 86, 0.3);
}

.cv-card-body h3 {
    font-size: 17pt;
    color: #fff;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.cv-card-body h3 .osu a{
    font-family: 'Aller', sans-serif;
}

.cv-card-body h3 .osu a:hover{
    color: var(--gold-light);
}

.cv-card-body h3 .occ a{
    font-family: 'Spin Cycle OT', sans-serif;
}

.cv-card-body h3 .occ a:hover{
    color: var(--gold-light);
}

.cv-card-body h3 a {
    color: #fff;
    text-decoration: none;
}

.institution {
    display: block;
    color: var(--gold-light);
    font-style: italic;
    font-size: 15pt;
    margin-bottom: 0.8rem;
}

.cv-card-body p {
    line-height: 1.2 !important;
    font-size: 14pt;
    color: rgba(255, 241, 204, 0.8);
    margin: 0.2rem 0;
}

.cv-header-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.cv-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(235, 199, 101, 0.2);
}

.profile-right h2 {
    font-size: 24pt;
    color: var(--gold);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.job-title {
    font-size: 16pt;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.contact-line a, .contact-line span {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13pt;
    opacity: 0.9;
    transition: color 0.3s;
}

.contact-line a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.contact-line i {
    color: var(--gold);
    margin-right: 5px;
}

.skills-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skills-group h4 {
    color: var(--gold);
    font-size: 15pt;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(229, 190, 86, 0.2);
    padding-bottom: 0.2rem;
    display: inline-block;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.cv-tag {
    background: rgba(39, 72, 97, 0.5);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13pt;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
    font-weight: 300;
}

@media (min-width: 850px) {
    .cv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cv-header-profile {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: center;
        gap: 3rem;
    }

    .cv-photo {
        width: 180px;
        height: 180px;
    }

    .contact-line {
        justify-content: flex-start;
    }
    
    .skills-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    .cv-grid article:nth-last-child(1):nth-child(odd) {
        grid-column: span 2;
        width: 50%;
        margin: 0 auto;
    }
}