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

/* =====================================================
   BASE
===================================================== */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #111;
    line-height: 1.6;
}

a {
    color: #0a58ca;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================================================
   CONTAINER
===================================================== */
.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    background: #ffd500;
    border-bottom: 1px solid #e6c200;
    position: relative;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

/* =====================================================
   NAV MENU
===================================================== */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #000;
    font-weight: 500;
    padding: 6px 0;
}

/* =====================================================
   DROPDOWN (FIXED)
===================================================== */
.dropdown {
    position: relative;
}

/* hover bridge – prevents instant close */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

/* menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 999;
}

/* show menu */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* menu links */
.dropdown-menu li a {
    display: block;
    padding: 12px 15px;
    color: #000;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
}

/* =====================================================
   MAIN
===================================================== */
main {
    padding: 40px 0;
}

/* =====================================================
   CARDS
===================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #444;
    margin-bottom: 12px;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */
textarea {
    font-family: inherit;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
}

button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: #333;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #111;
    color: #ccc;
    margin-top: 60px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.footer a {
    color: #ffd500;
}

/* =====================================================
   RESPONSIVE (MOBILE)
===================================================== */
@media (max-width: 768px) {

    .nav-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

}
