body, html {
    height: 100%;
    margin: 0;
    font-family: Futura, sans-serif;
    background-color: #F7F7FD;
    color: #333;
    /* This sets the base font size for the entire document */
    font-size: 85%;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 5em 0;
}

.main-content {
    background-color: white;
    padding: 2em 3em;
    /* Your updated border color */
    border: 1px solid #e590ff;
    width: 80%;
    max-width: 780px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.header {
    margin-bottom: 2.5em;
}

.header h1 {
    color: #2D2AFF;
    font-size: 2.6em;
    /*  updated font weight */
    font-weight: bold;
}

/* Abstract and Profile Section */
.abstract-section {
    padding-bottom: 1.5em;
}

.content-flex {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

.profile-sidebar {
    flex-basis: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    border-radius: 50%;
    width: 110px;
    height: 110px;
    object-fit: cover;
    margin-bottom: 1em;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    /* REMOVED: Individual font-size to use the main rule below */
    margin: 0.5em 0;
}

.abstract {
    flex-grow: 1;
    border-top: 2px solid #f8c207;
    border-bottom: 2px solid #f8c207;
    padding: 1em 0;
}

/* General Section Styling */
.text-section {
    margin-top: 2em;
    padding-bottom: 1.5em;
}

h2 {
    /* Your updated heading color and weight */
    color: #c400ff;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* ================================================ */
/* CHANGE: This one rule now controls all main text */
/* ================================================ */
p, li, .gallery-item .caption {
    font-size: 1.1em; /* Adjust this single value to resize all text at once */
    line-height: 1.6;
}

.text-section ul {
    list-style-position: outside;
    padding-left: 20px;
    margin-top: 1em;
}

.text-section ul li {
    margin-bottom: 0.8em;
}

strong {
    font-weight: bold;
}

/* This rule makes links inherit their color, removes the bold,
   and adds a blue underline */
a {
    color: inherit; /* This makes the link text the same color as the surrounding text */
    font-weight: normal; /* This removes the bold styling */
    text-decoration: underline;
    text-decoration-color: #2D2AFF; /* This makes the underline blue */
}

/* This rule changes the text color to blue when you hover over it */
a:hover {
    color: #2D2AFF;
}

/* Two Column Layout */
.two-column-layout .column p {
    /* REMOVED: Individual font-size to use the main rule above */
    margin-bottom: 1.5em;
}

.two-column-layout {
    display: flex;
    gap: 2.5em;
}

.column {
    flex: 1;
    min-width: 0;
}

/* CV Button Styling */
.cv-button-container {
    margin: 2em 0;
    padding-bottom: 1em;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f8c207;
    /* Your updated button color */
    color: #c400ff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    /* Note: CV Button font size is kept large intentionally */
    font-size: 1.5em;
    text-decoration: none;
}
.cv-button:hover {
    background-color: #eab406;
}
.cv-button .file-icon {
    width: 20px;
    height: 24px;
    /* Your updated icon color */
    fill: #c400ff;
}

/* Image Gallery Styling */
.image-gallery {
    display: flex;
    justify-content: space-around;
    gap: 1.5em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.gallery-item {
    background-color: white;
    border: none;
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    width: 200px;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: none;
}

.gallery-item .caption {
    background-color: transparent;
    color: #333;
    font-weight: normal;
    padding: 10px 3px 3px 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-flex, .two-column-layout, .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    .main-content {
        padding: 1.5em;
        width: 90%;
    }
}
