/* =============================================
   Hot Beans Web - Stylesheet
   ============================================= */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Navbar ────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 65px;
    border-bottom: 1px solid #ccc;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 30px;
    text-decoration: none;
    color: black;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a:hover { text-decoration: underline; }

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* Mobile menu hidden by default on desktop */
.mobile-menu { display: none; }

/* Right-side nav buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 30px;
}

.nav-dash {
    font-size: 14px;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.nav-dash:hover { text-decoration: underline; }

.btn-signup {
    padding: 7px 16px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-login {
    padding: 7px 16px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-signup:hover { background-color: #f0f0f0; }
.btn-login:hover  { background-color: #333; }

/* ── Sections ──────────────────────────────── */
.section {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 30px;
    border-bottom: 1px solid #ddd;
}

.section h1 { font-size: 32px; margin-bottom: 20px; text-align: center; }
.section h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.section h3 { font-size: 18px; margin-top: 30px; margin-bottom: 10px; }
.section p  { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.section ul { font-size: 15px; line-height: 2; padding-left: 20px; }
.section hr { margin: 50px 0; border: none; border-top: 1px solid #ddd; }

/* ── Team Cards ────────────────────────────── */
.team-container {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-card {
    border: 1px solid #ccc;
    padding: 25px 20px;
    width: 200px;
    text-align: center;
}

.team-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    margin-bottom: 12px;
    content-visibility: auto;
}

.team-card h3 { margin: 0 0 10px 0; font-size: 16px; }
.team-card p  { font-size: 14px; text-align: left; line-height: 1.6; }

/* ── Courses Table ─────────────────────────── */
.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 15px;
}

.courses-table th { background-color: black; color: white; padding: 12px 15px; text-align: left; }
.courses-table td { padding: 12px 15px; border-bottom: 1px solid #ddd; }
.courses-table tr:hover { background-color: #f5f5f5; }
.courses-table a  { color: black; }

/* ── Application Form ──────────────────────── */
.apply-form { margin-top: 25px; }
.apply-form label { font-size: 15px; font-weight: bold; }

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.apply-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}

.submit-btn {
    padding: 11px 28px;
    background-color: black;
    color: white;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover { background-color: #333; }

/* ── Auth Pages ────────────────────────────── */
.auth-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #ccc;
}

.auth-error   { background-color: #ffe0e0; border: 1px solid #cc0000; color: #cc0000; padding: 10px 15px; margin-bottom: 20px; font-size: 14px; }
.auth-success { background-color: #e0ffe0; border: 1px solid #009900; color: #007700; padding: 10px 15px; margin-bottom: 20px; font-size: 14px; }

/* ── Footer ────────────────────────────────── */
.footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 25px;
    font-size: 14px;
    color: #555;
    margin-top: auto;
}

/* ── Mobile / Tablet ≤ 768px ───────────────── */
@media (max-width: 768px) {

    /* Single-row bar: logo on left, hamburger on right */
    .navbar {
        padding: 0 15px;
        height: 55px;
        flex-wrap: nowrap;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    /* Push content down so it doesn't hide under the fixed navbar */
    body { padding-top: 55px; }

    .logo {
        font-size: 16px;
        margin-right: 0;
        flex: 1;
    }

    /* Hide desktop nav links and auth buttons */
    .nav-links  { display: none !important; }
    .nav-buttons { display: none !important; }

    /* Show hamburger */
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        margin-left: 0;
        padding: 8px;
        flex-shrink: 0;
    }

    /* Mobile dropdown menu */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 2px solid #ccc;
        z-index: 99;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        /* Smooth slide in/out */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu.open {
        max-height: 400px;
        opacity: 1;
    }

    .mobile-menu a,
    .mobile-menu-link {
        display: block;
        padding: 14px 20px;
        text-decoration: none;
        color: black;
        font-size: 16px;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu a:hover,
    .mobile-menu-link:hover { background-color: #f5f5f5; }

    .mobile-menu-btn {
        width: 100%;
        text-align: left;
        background: white;
        border: none;
        cursor: pointer;
        font-size: 16px;
    }

    .mobile-menu .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu .mobile-auth .btn-signup,
    .mobile-menu .mobile-auth .btn-login {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        text-align: left;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        background: white;
        color: black;
        cursor: pointer;
    }

    .mobile-menu .mobile-auth .btn-login {
        background: white;
        color: black;
        font-weight: bold;
    }

    .mobile-menu .mobile-auth .btn-signup:hover,
    .mobile-menu .mobile-auth .btn-login:hover {
        background-color: #f5f5f5;
    }

    /* Sections */
    .section    { padding: 40px 20px; }
    .section h1 { font-size: 24px; }
    .section h2 { font-size: 20px; }
    .team-card  { width: 45%; }
    .courses-table th, .courses-table td { padding: 10px 8px; font-size: 13px; }
    .apply-form input[type="text"],
    .apply-form input[type="email"],
    .apply-form input[type="tel"],
    .apply-form input[type="password"],
    .apply-form textarea { max-width: 100%; }
}

/* ── Small Mobile ≤ 480px ──────────────────── */
@media (max-width: 480px) {
    .logo       { font-size: 15px; }
    .section    { padding: 30px 15px; }
    .section h1 { font-size: 20px; }
    .section h2 { font-size: 17px; }
    .section h3, .section p, .section ul { font-size: 14px; }
    .team-card  { width: 100%; }

    /* Stack courses table as cards */
    .courses-table          { font-size: 14px; }
    .courses-table thead    { display: none; }
    .courses-table tbody tr {
        display: block;
        border: 1px solid #ccc;
        margin-bottom: 15px;
        padding: 12px;
        border-radius: 3px;
    }
    .courses-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        gap: 10px;
    }
    .courses-table td:last-child { border-bottom: none; }
    .courses-table td::before {
        content: attr(data-label);
        font-weight: bold;
        font-size: 12px;
        color: #555;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .submit-btn { width: 100%; max-width: 100%; }
    .footer     { padding: 18px 15px; font-size: 13px; }
}
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: black;
}