a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #B4A87E;
    color: #000048;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

a.border {
border-style: solid;
border-color: #000048;
border-width: 5px;
}

a:hover {
    background-color: #000048;
    color: #B4A87E;
    border-color: #B4A87E;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #000048;
    padding: 10px;
    color: #B4A87E;
    text-align: center;
}

.logo img {
    width: 33%;
    height: auto; /* Maintains the aspect ratio */
    max-width: 800px; /* Ensures the logo doesn't exceed its container */
}
div.fixed {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  border: 3px solid #000048;
}

nav {
    background-color: #000048;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    /* margin-right: 20px; */
}

nav ul li a {
    color: #000048;
    text-decoration: none;
}

section {
    padding: 20px;
}

#services, #contact {
    margin: 10px auto;
    max-width: 800px;
    text-align: center;
    justify-content: space-between;
}

.services-grid {
    display: flex;
    justify-content: space-between; /* Ensures even spacing between items */
    margin-top: 10px;
    flex-wrap: wrap; /* Allows wrapping for responsive layouts */
}

.service {
    position: relative;
    width: 33%;
    overflow: hidden;
    cursor: pointer;
}

.service-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.service-image h2 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.service:hover .service-image {
    opacity: 0.7;
}

.service-description {
    display: none;
    max-width: 800px;
    padding: 10px;
    color: #B4A87E;
    background-color: #000048;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    text-align: justify;
}

.service-description.active {
    display: block;
    order: 1; /* Forces the description to be in the second row */
}

/*.socials a {
    margin-right: 10px;
    text-decoration: none;
    color: #000048;
}
*/

footer {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
}
