:root {
/*    --color-primary: #2C348C;*/
    --color-primary: #041826;
    --color-dark: #2a2a2a;
    --color-light: #ffffff;
    --color-grey: #f7f7f7;
    --max-width: 1200px;
    --transition-speed: 0.3s;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.5;
    background: var(--color-light);
    margin: 0;
    padding: 0;
}

.wrapper {
    padding-top: 70px;
    flex: 1 0 auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

header {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 70px;
}

nav .logo {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* Replace text logo with SVG logo */
nav .logo img {
    max-height: 50px;
    width: auto;
}

.lang-container {
    left: 1rem;
}

.lang-switch {
    background: var(--color-primary);
    border: 2px solid var(--color-light);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    color: var(--color-light);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-speed);
    appearance: none;
    -webkit-appearance: none;
}

.lang-switch:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 4px;
    background: var(--color-light);
    transition: background var(--transition-speed);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-light);
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    text-decoration: underline;
    color: #46B6FF;
}

.banner {
    width: 100%;
/*    min-height: 4500px;*/
    min-height: 95vh;
    background: url("../images/banner.webp") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
    position: relative;
    transition: max-height 0.6s ease;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 1rem;
}

.banner-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.banner-content a.btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-light);
    padding: 0.75rem 1.25rem;
    border-radius: 0.3rem;
    margin-top: 0.5rem;
    border: 2px solid var(--color-light);
    transition: all var(--transition-speed);
    font-weight: bold;
}

.banner-content a.btn:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: justify;
}

.hidden {
    display: none;
}

.news-section {
    transition: max-height 0.6s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.news-card {
    background: var(--color-grey);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    margin-bottom: 1rem;
}

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

.news-card img {
    width: 100%;
    display: block;
    height: auto;
}

.news-card .card-content {
    padding: 1rem;
}

.news-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.news-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card a.read-more {
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: underline;
    color: var(--color-primary);
}

/* Topics Section */
.topics-section {
    transition: max-height 0.6s ease;
    overflow: hidden;
    margin-top: 3rem;
}

.topics-section h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.topic-box {
    background: var(--color-grey);
    border-radius: 4px;
    padding: 1rem;
    transition: transform var(--transition-speed);
    margin-bottom: 1rem;
}

.topic-box:hover {
    transform: translateY(-2px);
}

.topic-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.topic-box p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.topic-box img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    height: auto;
    object-fit: cover;
}

footer {
    background: #222;
    color: #999;
    padding: 1.5rem 1rem;
    margin-top: 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
}

.footer-content a {
    color: #bbb;
}

.footer-content a:hover {
    color: #fff;
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.contact-form-section {
    padding: 2rem;
    max-width: 600px;
    margin: 3rem auto;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.contact-form-section h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-form-section p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

.contact-form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

.form-important {
    position: absolute;
    left: -9999px;
}

.form-status {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 700;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    max-width: 800px;
}

.form-group-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.form-group-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

#content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

#content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

#content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

#content h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

#content h4 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

#content table {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

#content ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

#content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--color-light), var(--color-primary), var(--color-light));
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        background: var(--color-primary);
        flex-direction: column;
        width: 200px;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #menu-toggle:checked~.menu-icon+.nav-links {
        display: flex;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner.hidden,
    .news-section.hidden,
    .topics-section.hidden {
        display: none;
    }

    .lang-container {
        padding: 0.75rem 1rem;
    }
}