/* ----------------------------
   Reset & basic styling
----------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    text-align: center;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* ----------------------------
   Header
----------------------------- */
header {
    background-color: #B03070;
    color: white;
    padding: 25px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header .header-top h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    background-color: #B03070;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ----------------------------
   Main content
----------------------------- */
main {
    padding: 40px 20px;
}

/* ----------------------------
   Buttons
----------------------------- */
button, .btn {
    background-color: #be0963;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

button:hover, .btn:hover {
    background-color: #B03070;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ----------------------------
   Profile button (matches Courses button)
----------------------------- */
.profile-btn {
    background-color: #FFB347;
    color: white;
}

.profile-btn:hover {
    background-color: #FFA500;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ----------------------------
   Footer
----------------------------- */
footer {
    background-color: #F0F0F0;
    padding: 25px 0;
    font-size: 0.9rem;
    color: #555;
    margin-top: 50px;
    border-top: 1px solid #e0d4de;
}

/* ----------------------------
   Auth & Profile Containers
----------------------------- */
.auth-container, .profile-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 30px 35px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: left;
}

.auth-container input,
.profile-container input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.auth-container input:focus,
.profile-container input:focus {
    border-color: #D63384;
    box-shadow: 0 0 5px rgba(214,51,132,0.3);
}

.auth-container button {
    width: 100%;
    background-color: #D63384;
    color: white;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.auth-container button:hover {
    background-color: #B03070;
    transform: scale(1.05);
}

.auth-container a {
    color: #D63384;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* ----------------------------
   Profile Page
----------------------------- */
.profile-container h1 {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.profile-container p {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.profile-container .btn {
    display: block;
    margin-bottom: 20px;
}

/* ----------------------------
   Home Page Hero
----------------------------- */
.home-container {
    max-width: 700px;
    margin: 150px auto 60px auto;
    padding: 40px;
    background: #F7EBAB;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.home-container h1 {
    font-size: 2.5rem;
    color: #D63384;
    margin-bottom: 20px;
    font-weight: 700;
}

.home-container p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #444;
}

.home-container .auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.home-container .auth-links a.btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.home-container .auth-links a.btn:first-child {
    background-color: #D63384;
    color: #fff;
}

.home-container .auth-links a.btn:last-child {
    background-color: #FFB347;
    color: white;
}

.home-container .auth-links a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ----------------------------
   Reset Email Form (optimized)
----------------------------- */
.reset-container {
    max-width: 600px; /* bigger for email input */
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.reset-container h2 {
    margin-bottom: 15px;
}

.reset-container p {
    margin-bottom: 20px;
}

.reset-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.reset-container input[type="email"] {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    max-width: 100%;
}

.reset-container button {
    width: 50%;
    max-width: 300px;
}

/* ----------------------------
   Responsive Design
----------------------------- */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .auth-container, .profile-container, .reset-container {
        margin: 30px 15px;
        padding: 20px;
    }
    button, .btn {
        width: 100%;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .home-container h1 {
        font-size: 1.8rem;
    }
    .home-container p {
        font-size: 0.95rem;
    }
    .reset-container button {
        width: 80%;
    }
}
/* ----------------------------
   Quiz question spacing fix
----------------------------- */
.quiz-container .question p {
    margin-bottom: 12px; /* gap between question text and answers */
}

.quiz-container .question > div {
    margin-bottom: 8px; /* gap between each answer */
}
