/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header and Navigation */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.name-header {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #34495e;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: max-content;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #34495e;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
main {
    width: 80%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.welcome-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.welcome-content {
    flex: 1;
    text-align: justify;
    text-justify: inter-word;
}

.welcome-image {
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-top: 0;
}

/* Media Section */
.media-section {
    margin: 40px 0;
    height: fit-content;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: max-content;
    margin: 0 auto;
    padding: 0 10px;
}

.media-column {
    width: 100%;
}

.media-column img {
    width: 100%;
    height: auto;
    display: block;
}

.video-container {
    position: relative;
    height: auto;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

figure figcaption,
.video-container figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.2;
    color: #666;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 3px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    text-align: justify;
    text-justify: inter-word;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #2c3e50;
    color: white;
    margin-top: 2rem;
}

/* Iframe and Figure Styles */
iframe {
    display: block;
    margin: 0 auto;
}

figure {
    text-align: center;
}

figure img {
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .welcome-container {
        flex-direction: column;
    }

    .welcome-image {
        width: 100%;
        margin-top: 1rem;
    }
}
