* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #112D4E;
    background: #F9F7F7;
    padding: 20px;
    padding-top: 100px;
}

p {
    margin-bottom: 10px;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #3F72AF;
    z-index: 1000;
    transition: width 0.1s ease;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.nav-title {
    font-weight: 600;
    color: #3F72AF;
    font-size: 1.2em;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #112D4E;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3F72AF;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3F72AF;
    color: #F9F7F7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(63, 114, 175, 0.3);
    transition: transform 0.3s, opacity 0.3s, background 0.3s;
    z-index: 998;
    opacity: 0;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #2e5a8a;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #112D4E;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle:hover {
    color: #3F72AF;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #F9F7F7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

header {
    background: #3F72AF;
    color: #F9F7F7;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #F9F7F7;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

.content {
    padding: 40px;
}

section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: #3F72AF;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3F72AF;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

h2:hover {
    color: #2e5a8a;
}

h2 .collapse-icon {
    font-size: 0.7em;
    transition: transform 0.3s;
    margin-left: auto;
}

h2.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

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

.subsection-title {
    font-size: 1.4em;
    color: #2e5a8a;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #2e5a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item {
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e8eef3;
    transition: box-shadow 0.3s ease;
}

.item:hover {
    box-shadow: 0 2px 12px rgba(63, 114, 175, 0.08);
}

h3 {
    font-size: 1.3em;
    color: #112D4E;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

h3 i {
    color: #3F72AF;
    font-size: 0.8em;
}

.item-subtitle {
    color: #3F72AF;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-subtitle i {
    font-size: 0.9em;
}

.date {
    color: #6b7d8f;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date i {
    font-size: 0.9em;
}

ul {
    margin-left: 20px;
    margin-top: 10px;
}

li {
    margin-bottom: 8px;
    color: #112D4E;
}

.link-contact, .link-item {
    color: #3F72AF;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.link-contact:hover, .link-item:hover {
    color: #2e5a8a;
    text-decoration: inherit;
}

.link-contact i, .link-item i {
    width: 30px;
    text-align: center;
    font-size: 1.5em;
}

.link-contact {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding: 20px;
    gap: 20px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e8eef3;
    transition: box-shadow 0.3s ease;
}

.link-contact:hover {
    box-shadow: 0 2px 12px rgba(63, 114, 175, 0.08);
}

.link-item {
    font-size: 0.9em;
    margin-top: 10px;
    padding: 10px;
    gap: 10px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .nav-links {
        position: fixed;
        top: -20px;
        left: -100%;
        bottom: -20px;
        width: 70%;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 998;
        gap: 0;
        margin-left: -20px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #e8eef3;
    }

    .menu-toggle {
        display: block;
    }

    header {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2em;
    }

    .content {
        padding: 20px;
    }

    h2 {
        font-size: 1.5em;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}