/* Global Styles */
p, h1, h2, h3, h4, h5, h6, button {
    font-family: "Roboto", serif;
}

body {
    background-color: #f5f5f9;
    background-size: cover;
    width: auto; 
    overflow-x: hidden;
    font-family: "Roboto", serif;
    margin: 0px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.nav-bar {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #1C539F;
    font-family: "Roboto", serif;
    font-weight: 700 !important;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content .logo-touch-target {
    display: inline-flex;
    height: 60%;
    width: 350px;
}

.nav-content .nav-logo {
    height: 60px;
    margin: 0;
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 200px;
    max-height: 60px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-end;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Profile Section */
.profile {
    background: linear-gradient(135deg, #1d539f 0%, #2563a5 100%);
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
    color: white;
}

.profile h1 {
    font-size: 50px;
    font-weight: 700;
    color: white;
    margin: 18px 0 10px 0;
}

.profile-title {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.profile img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;        
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.profile .profile-picture {
    height: 260px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background-color: white;
    padding: 60px 20px;
    margin-bottom: 50px;
    border-radius: 8px;
    margin: 0 auto 50px auto;
    max-width: 1000px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about h2 {
    font-size: 35px;
    color: #1d539f;
    margin-bottom: 20px;
    border-bottom: 3px solid #1d539f;
    padding-bottom: 15px;
}

.about-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Experience Section */
.experience {
    background-color: #f9f9f9;
    padding: 60px 20px;
    margin-bottom: 50px;
}

.experience h2 {
    font-size: 35px;
    color: #1d539f;
    margin-bottom: 40px;
    border-bottom: 3px solid #1d539f;
    padding-bottom: 15px;
    text-align: center;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    background-color: white;
    padding: 30px;
    border-left: 5px solid #1d539f;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-header h3 {
    font-size: 22px;
    color: #1d539f;
    margin: 0 0 10px 0;
}

.company {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.duration {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin: 0 0 15px 0;
}

.description {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Education Section */
.education {
    background-color: white;
    padding: 60px 20px;
    margin-bottom: 50px;
    margin: 0 auto 50px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.education h2 {
    font-size: 35px;
    color: #1d539f;
    margin-bottom: 40px;
    border-bottom: 3px solid #1d539f;
    padding-bottom: 15px;
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-item {
    padding: 25px;
    border-left: 5px solid #4CAF50;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
}

.education-header h3 {
    font-size: 20px;
    color: #1d539f;
    margin: 0 0 8px 0;
}

.school {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.graduation {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.details {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Hobbies Section */
.hobbies-section {
    background-color: #f5f5f5;
    padding: 60px 20px;
    margin-bottom: 50px;
}

.hobbies-section h2 {
    font-size: 35px;
    color: #1d539f;
    margin-bottom: 10px;
    border-bottom: 3px solid #1d539f;
    padding-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.view-all-link {
    color: #1d539f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #4CAF50;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.hobby-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hobby-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-image img {
    transform: scale(1.05);
}

.hobby-content {
    padding: 20px;
}

.hobby-content h3 {
    font-size: 18px;
    color: #1d539f;
    margin: 0 0 10px 0;
}

.hobby-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Travels Section */
.travels {
    background-color: white;
    padding: 60px 20px;
    margin-bottom: 50px;
    margin: 0 auto 50px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.travels h2 {
    font-size: 35px;
    color: #1d539f;
    margin-bottom: 40px;
    border-bottom: 3px solid #1d539f;
    padding-bottom: 15px;
}

.travels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.travel-item {
    background: linear-gradient(135deg, #1d539f 0%, #2563a5 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.travel-item:hover {
    transform: scale(1.05);
}

.travel-country {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.travel-year {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.travel-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.travel-map-link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.travel-map-link {
    display: inline-block;
    background: linear-gradient(135deg, #1d539f 0%, #2563a5 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travel-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(29, 83, 159, 0.25);
}

.travel-map-section {
    padding: 0 20px 50px 20px;
}

.travel-map {
    width: 100%;
    height: 560px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Footer */
.footer {
    background-color: #1d539f;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* Hobbies Detail Page */
.page-header {
    background: linear-gradient(135deg, #1d539f 0%, #2563a5 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 45px;
    margin: 0 0 10px 0;
}

.header-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.hobbies-detail-section {
    padding: 60px 20px;
    margin-bottom: 50px;
}

.hobbies-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.hobby-card-detail {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card-detail:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hobby-image-large {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hobby-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card-detail:hover .hobby-image-large img {
    transform: scale(1.05);
}

.hobby-content-detail {
    padding: 30px;
}

.hobby-content-detail h3 {
    font-size: 24px;
    color: #1d539f;
    margin: 0 0 15px 0;
}

.hobby-content-detail p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* Back Section */
.back-section {
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.back-link {
    color: #1d539f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }

    .profile h1 {
        font-size: 35px;
    }

    .profile-title {
        font-size: 16px;
    }

    .about h2,
    .experience h2,
    .education h2,
    .hobbies-section h2,
    .travels h2,
    .page-header h1 {
        font-size: 28px;
    }

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

    .hobbies-detailed-grid {
        grid-template-columns: 1fr;
    }

    .travels-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .travel-map {
        height: 440px;
    }

    .experience-item,
    .education-item {
        padding: 20px;
    }

    .header-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        width: 150px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 8px;
    }

    .profile h1 {
        font-size: 28px;
    }

    .profile .profile-picture {
        height: 150px;
        width: 150px;
    }

    .about h2,
    .experience h2,
    .education h2,
    .hobbies-section h2,
    .travels h2 {
        font-size: 24px;
    }

    .travels-container {
        grid-template-columns: 1fr;
    }

    .travel-map {
        height: 360px;
    }
}

/* Old styles preserved */
.banner {
    padding: 20px 0px 50px 0px;
    height: 150px;
    background-color: #1d539f;
}

.banner .logo {
    max-width:180px;
    max-height:60px;
    width: auto;
    height: auto;
}

.banner .title {
    color: white;
    font-size: 50px;
    font-weight: 700;
}
/* Timeline Page */
.tl-header {
    background: linear-gradient(135deg, #1d539f 0%, #2563a5 100%);
    color: white;
    padding: 48px 20px 56px;
}

.tl-header .container {
    max-width: 720px;
}

.tl-header h1 {
    margin: 0 0 6px 0;
    font-size: 38px;
    font-weight: 700;
    color: white;
}

.tl-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
}

.tl-main {
    max-width: 720px;
    margin: -28px auto 80px;
    padding: 0 20px;
}

/* Timeline compose card */
.tl-compose {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(29, 83, 159, 0.12);
    padding: 28px;
    border-top: 4px solid #1C539F;
}

.tl-compose h2 {
    margin: 0 0 18px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1d539f;
}

.tl-field-row {
    display: flex;
    gap: 14px;
}

.tl-field {
    flex: 1;
    margin-bottom: 14px;
}

.tl-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.tl-field input,
.tl-field textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: "Roboto", serif;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tl-field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.tl-field input:focus,
.tl-field textarea:focus {
    outline: none;
    border-color: #1d539f;
    background-color: white;
}

.tl-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tl-status {
    font-size: 14px;
    color: #4CAF50;
    min-height: 1em;
}

.tl-status.error {
    color: #c0392b;
}

.tl-submit {
    background-color: #1C539F;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 26px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tl-submit:hover {
    background-color: #16417d;
}

.tl-submit:disabled {
    background-color: #9db4d4;
    cursor: default;
}

/* Timeline feed rail */
.tl-feed-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 44px 0 22px;
}

.tl-feed-heading h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1d539f;
}

.tl-count {
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    color: #999;
}

.tl-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.tl-feed::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #d7ddea;
}

.tl-post {
    position: relative;
    padding-left: 68px;
    margin-bottom: 26px;
}

.tl-post:last-child {
    margin-bottom: 0;
}

.tl-avatar {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #f5f5f9;
    box-shadow: 0 0 0 2px #d7ddea;
    background-color: #d7ddea;
    display: block;
}

.tl-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    padding: 16px 20px;
}

.tl-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tl-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1d539f;
}

.tl-card-date {
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.tl-card-content {
    margin: 0;
    font-size: 15px;
    color: #555;
    white-space: pre-line;
}

.tl-empty {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 36px 0;
}

.tl-post.tl-new .tl-card {
    animation: tl-pop 0.45s ease;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.45);
}

@keyframes tl-pop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

@media (max-width: 560px) {
    .tl-field-row {
        flex-direction: column;
        gap: 0;
    }

    .tl-card-meta {
        flex-direction: column;
        gap: 2px;
    }
}
