* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===============================
   NAVIGATION
   =============================== */
nav {
    background: #e74c3c;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.nav-logo img {
    width: 30px;
    height: 30px;
}

.nav-brand-text {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    user-select: none;
    color: white;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    max-height: 500px;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border-radius: 5px;
    margin: 0 0.5rem;
}

.dropdown-menu a:hover {
    background: #f8f8f8;
    color: #e74c3c;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* MAIN CONTAINER */
.mode-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;

    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;


    padding-top: 90px;
    padding-bottom: 2rem;
}

/*PAGE HEADER */
.page-header {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
}

.page-title {
    color: #e74c3c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-sub {
    color: #777;
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CARDS GRID*/
.mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 1.5rem;
}

/* CARD */
.mode-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.mode-card.selected {
    border: 2px solid #c0392b;
}

/*CARD CONTENT */
.mode-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
    justify-content: center;
}

.mode-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e74c3c;
}

.mode-desc {
    font-size: 0.92rem;
    color: #777;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* LIST */
.mode-list {
    text-align: left;
    margin-bottom: 22px;
    padding-left: 0;
    list-style: none;
    flex: 1;
}

.mode-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.mode-list li::before {
    content: "✔";
    color: #c0392b;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/*BUTTON */
.mode-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: auto;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(192, 57, 43, 0.4);
}

/* RESPONSIVE — Tablet (768px) */
@media (max-width: 768px) {


    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #e74c3c;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>li>a {
        padding: 0.75rem 1rem;
    }

    .dropdown-toggle {
        padding: 0.75rem 1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        margin: 0;
        display: none;
        max-height: none;
        overflow: visible;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: white;
        padding: 0.65rem 1.5rem;
        margin: 0;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }


    .mode-container {
        justify-content: flex-start;
        padding: 90px 1.2rem 2.5rem;
        overflow-y: auto;
    }

    .page-header {
        padding: 1.2rem 0.5rem 1.2rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-sub {
        font-size: 0.92rem;
    }

    
    .mode-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mode-card {
        padding: 22px 20px;
    }

    .mode-name {
        font-size: 1.2rem;
    }

    .mode-desc {
        font-size: 0.9rem;
    }
}

/* RESPONSIVE — Mobile (480px) */
@media (max-width: 480px) {

    nav {
        padding: 0.9rem 1rem;
    }

    .nav-brand-text {
        font-size: 1.1rem;
    }

    .nav-logo {
        width: 34px;
        height: 34px;
    }

    .mode-container {
        padding: 80px 1rem 2rem;
    }

    .page-header {
        padding: 1rem 0 1rem;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .page-sub {
        font-size: 0.88rem;
    }

    .mode-card {
        padding: 18px 16px;
    }

    .mode-icon {
        font-size: 2rem;
    }

    .mode-name {
        font-size: 1.1rem;
    }

    .mode-desc {
        font-size: 0.87rem;
    }

    .mode-list li {
        font-size: 0.86rem;
    }

    .mode-btn {
        padding: 11px;
        font-size: 0.92rem;
    }
}