body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f6fc;
}

header {
    background-color: #0057a8;
    color: white;
    text-align: center;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

p {
    font-size: 22px;
}
nav {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0057a8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 17px;
}

nav ul li a:hover {
    color: #0057a8;
}
.about {
    background-color: white;
    margin: 40px auto;
    padding: 40px;
    max-width: 900px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about h2 {
    color: #0057a8;
    font-size: 32px;
    margin-bottom: 20px;
}

.about p {
    color: #444;
    line-height: 1.8;
    font-size: 18px;
}
.opportunities {
    text-align: center;
    padding: 50px 20px;
}

.opportunities h2 {
    color: #0057a8;
    font-size: 32px;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background-color: white;
    width: 250px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    color: #0057a8;
    font-size: 22px;
}

.card p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.news {
    text-align: center;
    padding: 50px 20px;
}

.news h2 {
    color: #0057a8;
    font-size: 32px;
    margin-bottom: 40px;
}

.news-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.news-card {
    background: white;
    width: 280px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card h3 {
    color: #0057a8;
    font-size: 20px;
}

.news-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.news-card {
    background: white;
    width: 280px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.contact {
    background-color: #0057a8;
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 40px;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.contact p {
    font-size: 18px;
    margin: 10px;
}
footer {
    background-color: #003d75;
    color: white;
    text-align: center;
    padding: 25px 20px;
}

footer p {
    margin: 8px;
    font-size: 16px;
}
.logo {
    display: flex;
    flex-direction: column;
    color: #0057a8;
}

.logo span {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo small {
    font-size: 14px;
    color: #555;
}
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo .eurodesk {
    color: #0057a8;
    font-size: 28px;
    font-weight: bold;
}

.logo .belediye {
    color: #f5b400;
    font-size: 18px;
    font-weight: bold;
}

.logo .genclik {
    font-size: 18px;
    font-weight: bold;
}

/* Gençlik Meclisi harf renkleri */
.genclik b:nth-child(1) {
    color: #e63946;
}

.genclik b:nth-child(2) {
    color: #457b9d;
}

.genclik b:nth-child(3) {
    color: #2a9d8f;
}

.genclik b:nth-child(4) {
    color: #f4a261;
}

.genclik b:nth-child(5) {
    color: #9b5de5;
}

.genclik b:nth-child(6) {
    color: #00b4d8;
}

.genclik b:nth-child(7) {
    color: #e76f51;
}

.genclik b:nth-child(8) {
    color: #ff006e;
}

.genclik b:nth-child(9) {
    color: #8338ec;
}

.genclik b:nth-child(10) {
    color: #3a86ff;
}

.genclik b:nth-child(11) {
    color: #06d6a0;
}

.genclik b:nth-child(12) {
    color: #ffbe0b;
}

.genclik b:nth-child(13) {
    color: #fb5607;
}

.genclik b:nth-child(14) {
    color: #118ab2;
}
.hero-button {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 35px;
    background-color: rgba(245, 180, 0, 0.85);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s;
}

.hero-button:hover {
    background-color: #d99c00;
    transform: scale(1.05);
}

header h1 {
    line-height: 1.3;
}

header p {
    margin-top: 15px;
}
.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}
.hero-logo {
    width: 300px;
    height: auto;
    margin-bottom: 25px;
}
.hero-logo {
    width: 90%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
}
.moving-text {
    font-size: 42px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    position: relative;
    animation: hareket 6s ease-in-out infinite;
    margin-top: 0;
    margin-bottom: 10px;
}

@keyframes hareket {
    0% {
        left: -150px;
    }

    50% {
        left: 150px;
    }

    100% {
        left: -150px;
    }
}
/* Mobil Uyum */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
         align-items: center;
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
    }

    .logo {
        text-align: center;
    }

    .hero-logo {
        width: 95%;
        max-width: 350px;
        height: auto;
    }

    .moving-text {
        font-size: 24px;
    }

    .hero-button {
        font-size: 16px;
        padding: 12px 25px;
    }

    h2 {
        font-size: 26px;
    }

    .cards,
    .news-cards {
        flex-direction: column;
        align-items: center;
    }

    .card,
    .news-card {
        width: 90%;
        max-width: 350px;
    }

    .about,
    .contact {
        margin: 20px;
        padding: 25px;
    }

    .about p,
    .contact p {
        font-size: 16px;
    }
}
.menu-button {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #0057a8;
}


/* Telefon görünümü */
@media (max-width: 768px) {

    .menu-button {
        display: block;
    }

    nav {
        position: relative;
    }

    nav ul {
    display: none;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    }

    nav ul.active {
        display: flex;
    }

}
@media (max-width: 768px) {

    nav ul {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 15px auto !important;
        padding: 20px 0 !important;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        text-align: center;
    }
}
/* Masaüstü menü düzeltme */
@media (min-width: 769px) {

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    nav ul li {
        width: auto !important;
    }

    .menu-button {
        display: none !important;
    }
}