/* =========  GLOBAL LAYOUT  ========= */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* vertical stacking: header – main – footer */
    min-height: 100vh;
    /* full‑viewport baseline */
}

/* MAIN AREA GROWS, PUSHING FOOTER DOWN WHEN NEEDED */
main {
    flex: 1;
    /* the magic line */
}

/* =========  SHARED NAV  ========= */
nav {
    font-family: Arial, sans-serif;
    background: #333;
    padding: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 15px;
    position: relative; /* dropdown pozisyonu için gerekli */
}

nav a,
nav button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

nav a.active {
    color: #C4B5FD;
    font-weight: bold;
    border-bottom: 2px solid #C4B5FD;
    padding-bottom: 2px;
}

/* ========= DROPDOWN MENÜ ========= */
nav .dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: #1F2937;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-direction: column;
}

nav .dropdown-content li {
    margin: 0;
}

nav .dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    text-align: left;
}

nav .dropdown-content a:hover {
    background-color: #4B5563;
}

nav li:hover .dropdown-content {
    display: block;
}

nav li {
    margin: 0 15px;
    position: relative;
    padding-bottom: 25px; /* ↓ Hover alanını genişletir */
}


/* =========  SHARED FOOTER  ========= */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    /* NO position:absolute / fixed  → footer flows naturally */
}
