/* =============================================
   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;
}

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

.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;
}

/* 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;
}

/* ── Tablet ≤ 768px ────────────────────────── */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
    .logo { font-size: 17px; margin-right: 0; }
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 0;
        padding: 5px 0;
    }
    .nav-links a { display: block; padding: 10px 5px; border-bottom: 1px solid #eee; font-size: 15px; }
    .nav-buttons { margin-left: 10px; }
    .section { padding: 40px 20px; }
    .section h1 { font-size: 26px; }
    .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%; }
}

/* ── Mobile ≤ 480px ────────────────────────── */
@media (max-width: 480px) {
    .logo   { font-size: 15px; }
    .section { padding: 30px 15px; }
    .section h1 { font-size: 22px; }
    .section h2 { font-size: 18px; }
    .section h3, .section p, .section ul { font-size: 14px; }
    .team-card  { width: 100%; }
    .courses-table thead { display: none; }
    .courses-table tr    { display: block; border: 1px solid #ccc; margin-bottom: 12px; padding: 10px; }
    .courses-table td    { display: block; border: none; padding: 4px 0; font-size: 14px; }
    .submit-btn { width: 100%; max-width: 100%; }
    .footer { padding: 18px 15px; font-size: 13px; }
}
