/* Simplified styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #B2BEB5;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: visible;
}

header {
    background: #35424a;
    color: #ffffff;
    padding: 2px 0 1px 20px;
    font-size: 27px;
    overflow: visible;  /* Ensure dropdown is not cut off */
    position: relative;  /* Establish a new stacking context */
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 25px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline-block;
    padding: 0px 20px 10px 20px;
    position: relative;
}

#branding {
    display: inline-block;  /* Makes branding only as wide as its content */
}

.navbar {
    background: #35424a;
    padding: 0px 0;
    text-align: center;
}

.navbar a {
    color: #ffffff;
    padding: 0px 40px;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
}

.navbar a:hover {
    background: #35424a;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;  /* Ensure dropdown content is properly positioned */
    background-color: #35424a;
    min-width: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;  /* High z-index to ensure it appears on top */
    top: 100%;  /* Position below the dropdown */
    left: 50%;
    transform: translateX(-50%);  /* Aligns the center of the dropdown with the center of the parent */
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
	text-transform: none;
    text-decoration: none;
	font-size: 17px;
    display: block;
    overflow: visible;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
	color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
    width: auto;  /* Ensure the width adapts to content */
}

.main-content {
    padding: 20px;
    background: #ffffff;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

.contact-info {
	width: 200px;
	word-wrap: break-word; /* This will break the word at the edge of the container */
}

.profile-img {
    float: left;
    margin-right: 20px;
}

.profile-img img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    border: 3px solid #f4f4f4;
}

.info-section {
    overflow: hidden;
}

.info-section h2 {
    margin-top: 0;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    margin-bottom: 10px;
}

/* Add this section to your CSS file */
.degree-title {
    font-size: 1.2em;  /* Adjust the font size as needed */
}

.centered-content {
    text-align: center; /* Centers text */
    width: 100%; /* Ensures the div takes the full width of its parent */
}

.centered-content img {
    display: block; /* Makes the image a block element */
    margin: 0 auto; /* Auto margins center the block element horizontally */
    max-width: 600px; /* Restricts the maximum width to enhance layout control */
    width: 100%; /* Makes the image responsive */
}

.image-right {
    float: right; /* Aligns the image to the right */
    margin-left: 20px; /* Adds space between the text and the image */
    width: 50%; /* Sets the width of the image to half of its container */
    max-width: 400px; /* Ensures the image does not exceed 300px */
}

.image-left {
    float: left; /* Aligns the image to the left */
    margin-right: 20px; /* Adds space between the text and the image */
    width: 50%; /* Sets the width of the image to half of its container */
    max-width: 400px; /* Ensures the image does not exceed 300px */
}

.image-gallery .gallery {
    display: grid; /* Using grid for better control over columns */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Creates as many 180px columns as the container width allows */
    gap: 10px; /* Space between images */
    padding: 10px; /* Padding around the entire gallery for some breathing room */
    justify-items: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
}

.image-gallery .gallery img {
    width: 100%; /* Makes the image fill the cell */
    height: auto; /* Keeps the image aspect ratio intact */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Subtle shadow for depth */
}



ul {
    list-style-type: none; /* Removes bullet points */
}

/* Style for the modal background */
.modal {
    /*display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
	top: 0;
	left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
	
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
	
    margin: auto;  
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


.language-switcher {
    position: absolute;
    top: 30px;  /* Adjust this value as needed */
    right: 200px;  /* Adjust this value as needed */
    font-size: 0.8em;  /* Make it smaller */
}

.language-switcher a {
    text-decoration: none;
    color: #ffffff; /* Ensure the text color matches the header */
}

.language-switcher a:hover {
    color: #bbb; /* Optional: a slightly different color on hover */
}

footer {
            background: #35424a;
            color: #ffffff;
            text-align: center;
            padding: 20px;
            margin-top: 20px;
}
