@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --main-beige: #FFF4EC;
    --card-beige: #FFF8F1;
    --soft-red: #E2B84A; /* #8E2C34; */
    --soft-green: #2F4A32;
    --card-green: #436646;
    --udem-blue: #002d62;
    --red : #61060e;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    background-color: var(--soft-green);
    color: white;
}

/* --- Navbar --- */
header {
    background-color: var(--soft-green);
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 80px;
    width: auto;
}

/* Menu */
nav .menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav .menu li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

nav .menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}
nav .menu li a:hover::after,
nav .menu li a.active::after {
    width: 100%;
}

nav .menu li a:hover,
nav .menu li a.active {
    color: var(--soft-red);
}

/* Language button */
nav .lang a {
    display: inline-block; 
    padding: 6px 14px;
    border-radius: 6px;
    background-color: var(--udem-blue);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}
nav .lang a:hover {
    background-color: var(--soft-red);
    transform: translateY(-2px);
}

/* Responsive menu */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .menu {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }

    nav .lang {
        margin-top: 12px;
    }
}

/* --- Section Intro --- */
.intro {
    text-align: center;
    padding: 60px 20px;
}

.intro h1 {
    color: var(--soft-red);
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2em;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Resources cards --- */
.resources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 40px 20px;
}

.resources-list .card {
    background-color: var(--card-green);
    border-radius: 12px;
    padding: 25px 20px;
    width: 300px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resources-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.resources-list ul {
    color: white;        /* bullet color */
}

.resources-list h2 {
    color: var(--soft-red);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.resources-list h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 3px;
    width: 50%;
    background-color: var(--soft-red);
    border-radius: 2px;
}

.resources-list ul {
    list-style: disc inside;
    padding-left: 0;
    margin: 0;
}

.resources-list ul li {
    margin-bottom: 12px;
    font-weight: 500;
}

.resources-list ul li a {
    text-decoration: none;
    color: #FFF8F0;
    transition: 0.3s;
}

.resources-list ul li a:hover {
    color: var(--soft-red);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 25px;
    background-color: var(--soft-green);
    color: black;
    font-size: 0.95em;
    margin-top: 30px;
}

footer a {
    color: var(--red);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
