/* Ensure the page takes up the full height of the viewport */
html {
    height: 100%;
}
body {
    font-family: 'Marianne', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #f0f0f0, #e0e0e0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    background-color: white;
    color: whitesmoke;
}

.logo-container img, .sesar-logo img {
    height: 80px;
}

/* Navigation styling */
nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    background-color: #005599;
    padding: 10px;
    margin: auto;
}

nav ul li {
    margin: 0 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: whitesmoke;
    transition: transform 0.3s ease;
}

.nav-link img {
    height: 30px;
    margin-right: 5px;
}

.nav-link:hover {
    transform: translateY(-5px);
}

/* Main content styling */
main {
    flex: 1; /* Takes up remaining space, pushing footer to bottom */
    position: relative;
    overflow: hidden;
    text-align: center;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./images/backdrop.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(5px);
    z-index: -1;
}

.welcome {
    position: relative;
    z-index: 1;
    color: whitesmoke;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome h1 {
    margin-bottom: 10px;
}

.welcome p {
    font-weight: thin;
    font-size: 1.0em;
}

/* Cards section styling */
.cards {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    opacity: 0.8;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    flex: 1;
    max-width: 180px;
    min-height: 240px;
    background: linear-gradient(to bottom, whitesmoke 30%, rgba(245, 245, 245, 0.5) 30%); /* Upper half whitesmoke, lower half 50% transparent */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 0 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    height: 50px;
    margin-bottom: 10px;
}

.card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card p {
    font-size: 1em;
    color: #1f1e1e;
}


/* Compliance section styling */
.compliance {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    opacity: 0.8;
    position: relative; /* Ensure the pseudo-element is positioned correctly */
    padding-top: 30px; /* Optional: Adds space between the line and the content */
}

.compliance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px; /* Match the width of .compliance-cards */
    border-top: 1px solid rgba(54, 54, 54, 0.5); /* 50% transparent whitesmoke line */
}

.compliance-card {
    flex: 1;
    max-width: 150px;
    max-height: 170px;
    background: linear-gradient(to bottom, whitesmoke 30%, rgba(68, 68, 68, 0.5) 50%); /* Upper half whitesmoke, lower half 50% transparent */
    background-color: transparent; /* Remove background color */
    border: 1px solid whitesmoke; /* Whitesmoke stroke */
    border-radius: 5px;
    padding: 10px;
    margin: 0 15px;
    box-shadow: none; /* Remove box shadow if present */
    text-align: center;
    overflow: hidden;
}

.compliance-card img {
    height: 50px;
    margin-bottom: 10px;
}

.compliance-card h3 {
    font-size: 1.0em;
    color: whitesmoke; /* Whitesmoke text color */
    font-weight: bold;
    margin-bottom: 10px;
}

.compliance-card p {
    font-size: 1em;
    font-weight: thin;
    color: whitesmoke; /* Whitesmoke text color */
}



/* Footer styling */
footer {
    background-color: #003366;
    color: whitesmoke;
    text-align: center;
    padding: 10px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links a {
    color: whitesmoke;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-links a img {
    height: 20px;
    margin-right: 5px;
    margin-left: 15px;
}

.footer-brand a img {
    height: 40px;
}

/* Marianne font definitions */
@font-face {
    font-family: 'Marianne';
    src: url('./fonts/Marianne-Thin.otf') format('otf');
    font-weight: thin;
    font-style: normal;
}
@font-face {
    font-family: 'Marianne';
    src: url('./fonts/Marianne-Regular.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Marianne';
    src: url('./fonts/Marianne-Medium.otf') format('otf');
    font-weight: medium;
    font-style: normal;
}
@font-face {
    font-family: 'Marianne';
    src: url('./fonts/Marianne-Light.otf') format('otf');
    font-weight: light;
    font-style: normal;
}
@font-face {
    font-family: 'Marianne';
    src: url('./fonts/Marianne-ExtraBold.otf') format('otf');
    font-weight: bolder;
    font-style: normal;
}
@font-face {
    font-family: 'Marianne';
    src: url('./fonts/Marianne-Bold.otf') format('otf');
    font-weight: bold;
    font-style: normal;
}
