/* =========================
   BASE RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f2f2;
    color: #1a1a1a;
    line-height: 1.7;

    display: flex;
    flex-direction: column;
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;

    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* =========================
   ABOUT SECTIONS
========================= */
.about-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 0 0 320px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.about-section:nth-child(odd) {
    flex-direction: row;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .about-section,
    .about-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================
   HEADER
========================= */
header {
    background: #111;
    color: white;
    padding: 15px 0;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.nav-left a,
.nav-right a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.nav-left a:hover,
.nav-right a:hover {
    color: white;
}

/* =========================
   DROPDOWN MENU (FIXED UNIVERSAL VERSION)
========================= */

.dropdown {
    position: relative;
}

/* MAIN MENU */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: #fff;
    min-width: 220px;

    z-index: 99999;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
}

/* SHOW MAIN DROPDOWN */
.dropdown:hover > .dropdown-menu {
    display: block;
}

/* EACH ITEM */
.dropdown-item {
    position: relative;
}

/* LINKS */
.dropdown-item > a {
    display: block;
    padding: 10px 12px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item > a:hover {
    background: #f2f2f2;
}

/* SUBMENU (CRITICAL FIX) */
.dropdown-submenu {
    display: none;

    position: absolute;
    top: 0;
    left: 100%;

    background: #fff;
    min-width: 220px;

    z-index: 99999;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
}

/* SHOW SUBMENU ON HOVER */
.dropdown-item:hover > .dropdown-submenu {
    display: block;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #111;
    color: #888;
    padding: 12px 10px;
    font-size: 12px;
    text-align: center;
    margin-top: auto;
}

/* MOBILE DROPDOWN FIX */

@media (max-width: 992px) {

    .dropdown-menu {
        display: none;
    }

    .dropdown.open > .dropdown-menu {
        display: block;
    }

    /* disable hover behaviour completely on mobile */
    .dropdown:hover > .dropdown-menu {
        display: none;
    }
}