* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* HEADER & LOGO STYLING */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    margin-bottom: 50px;
}

header h1 {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #f0f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
}

/* MENU BUTTON */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(180deg, #1d3557 0%, #0f1f2e 100%);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 999;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 12px;
}

.sidebar h3 {
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.sidebar a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.sidebar a:hover {
    color: #667eea;
    padding-left: 10px;
}

/* FEATURES SECTION */
.features {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 60px 20px;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    color: #333;
    width: 320px;
    padding: 0;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

.feature-card h3 {
    margin: 25px 0 12px 0;
    color: #667eea;
    font-size: 1.4em;
    font-weight: 700;
    padding: 0 20px;
}

.feature-card p {
    font-size: 0.95em;
    color: #666;
    padding: 0 20px 25px 20px;
    line-height: 1.6;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 60px;
    box-shadow: 0 -10px 40px rgba(102, 126, 234, 0.15);
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.puffy-nav {
    background-color: #f5f5f5;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    margin: 0 auto 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.puffy-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.puffy-nav a {
    text-decoration: none;
    color: #444;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.puffy-nav a.active,
.puffy-nav a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}


.container {
    background: white;
    color: #333;
    padding: 40px;
    margin: 30px auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.quiz-list a {
    display: block;
    padding: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin: 15px 0;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.quiz-list a:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}


@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    .features {
        gap: 25px;
        padding: 40px 15px;
        flex-wrap: wrap;
    }

    .feature-card {
        width: 100%;
        max-width: 350px;
    }

    .container {
        width: 95%;
        padding: 25px;
    }

    .puffy-nav {
        padding: 15px 20px;
    }

    .puffy-nav ul {
        gap: 10px;
    }

    .puffy-nav a {
        padding: 10px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    header h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    header p {
        font-size: 1em;
    }

    .features {
        gap: 20px;
        padding: 30px 15px;
        flex-wrap: wrap;
    }

    .feature-card {
        width: 100%;
        padding: 0;
    }

    .feature-card h3 {
        font-size: 1.2em;
        margin: 20px 0 10px 0;
    }

    .feature-card p {
        font-size: 0.9em;
        padding: 0 15px 20px 15px;
    }

    .puffy-nav {
        padding: 12px 15px;
    }

    .puffy-nav ul {
        gap: 8px;
    }

    .puffy-nav a {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}
/* ========== QUIZ PAGE DESIGN ========== */


.question {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: left;
    transition: 0.3s;
}

.question:hover {
    transform: translateY(-3px);
}

/* Question text */
.question p {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

/* Answer options */
.question label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: 0.2s;
}

.question label:hover {
    background: rgba(102,126,234,0.1);
}


.answer-correct {
    background: rgba(40, 167, 69, 0.15);
    border-left: 4px solid #28a745;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    color: #155724;
}


.answer-wrong {
    background: rgba(220, 53, 69, 0.15);
    border-left: 4px solid #dc3545;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    color: #721c24;
}

/* RESULT BOX */
#result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}
