body, h1, h2, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #004346; /* Dark teal from your palette */
    padding: 20px;
    margin: 0;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 850px;
    background-color: #F7F7FF; /* Light background from your palette */
    padding: 20px;
    border: 2px solid #00C49A; /* Bright teal accent */
    position: relative;
    overflow: hidden;
}

.title {
    font-size: 2.5rem;
    margin: 10px 0;
    color: #172A3A; /* Dark blue-gray */
}

.subtitle {
    font-size: 1.3rem;
    margin: 20px 0;
    color: #172A3A; /* Darker blue-gray */
}

.small-subtitle {
    font-size: 1.1rem;
    color: #004346; /* Dark teal */
    margin: 10px 0;
}

/* Back button */
.back-button-container {
    text-align: left;
    margin-bottom: 20px;
}

.back-button-container.top {
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(0, 196, 154, 0.1); /* Light teal background */
    color: #00C49A; /* Bright teal */
    text-decoration: underline;
    border: 1px solid #00C49A;
    font-size: 0.95rem;
}

.experience-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.experience-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 196, 154, 0.1); /* Light teal background */
    border: 1px solid #00C49A; /* Bright teal */
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #172A3A; 
    font-weight: bold;
    font-size: 1.3rem;
}

.experience-item p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.experience-item p:last-child {
    margin-bottom: 0;
}

.experience-item ul {
    margin: 10px 0;
    padding-left: 20px;
}

.experience-item ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

figure {
    margin: 20px auto;
    text-align: center;
    max-width: 300px;
}

img {
    max-width: 100%;
    height: auto;
    border: 1px solid #00C49A; /* Bright teal */
}

figcaption {
    margin-top: 5px;
    font-style: italic;
    color: #004346; /* Dark teal */
    font-size: 0.9rem;
}

a {
    color: #00C49A; /* Bright teal */
    text-decoration: underline;
}

a:hover {
    color: #004346;
}

/* Other elements from the second CSS */
.smaller-subtitle {
    font-size: 0.9rem;
    color: #172A3A;
    margin: 5px 0 15px 0;
    font-style: italic;
}

.about-section {
    margin: 20px 0;
    padding: 10px;
    background: rgba(0, 196, 154, 0.1);
    border: 1px solid #00C49A;
}

.about-title {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #172A3A;
}

.about-text {
    text-align: center;
    line-height: 1.5;
    font-size: 1rem;
    padding: 5px;
}

.about-text ul {
    display: inline-block;
    text-align: left;
    margin: 10px auto;
    padding-left: 20px;
    width: 80%;
}

.about-text li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.image-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 15px;
}

.image-figure {
    display: inline-block;
    margin: 10px;
    vertical-align: top;
}

.image {
    width: 180px;
    height: 180px;
    border: 1px solid #00C49A;
}

.image-description {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #004346;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: none;
    margin: 5px;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
   
    .title {
        font-size: 2rem;
    }
   
    .experience-item {
        padding: 15px;
    }
    
    .image-container {
        flex-direction: column;
        align-items: center;
    }
}