/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-bg {
    background-image: url('https://source.unsplash.com/1600x900/?education,technology');
    background-size: cover;
    background-position: center;
}

/* Footer styling */
footer {
    background-color: #1e3a8a; /* Dark blue */
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Ensure main content takes up at least full height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
    margin: 0; /* Remove default margin */
}

main {
    flex-grow: 1; /* Allow main content to grow */
    overflow-y: auto; /* Allow scroll when content overflows */
    padding-bottom: 80px; /* Ensure content doesn't hide behind the footer */
}

/* Additional styles remain unchanged... */

/* Ensure submenu stays visible when hovered */
.nav-item {
    position: relative;
}

.nav-item .submenu {
    display: none; /* Initially hidden */
    position: absolute;
    left: 0;
    top: 100%; /* Place it below the parent */
    background-color: white;
    color: black;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    z-index: 10;
}

.nav-item:hover .submenu,
.nav-item .submenu:hover {
    display: block; /* Show on hover */
}

/* Button Styling */
.answer-button {
    background-color: #1d4ed8;
    color: white;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.answer-button:hover {
    background-color: #2563eb;
}

.answer-button.correct {
    background-color: #22c55e;
}

.answer-button.incorrect {
    background-color: #ef4444;
}

/* Answer Option Styling */
.answer-option {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 12px;
    background-color: #f1f5f9;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.answer-option:hover {
    background-color: #e2e8f0;
}

/* Darker selected answer */
.answer-option.selected {
    background-color: #4b5563; /* Darker grey */
    color: white; /* Text color change for better contrast */
    border: 2px solid #1f2937; /* Dark border for extra contrast */
}

/* Correct Answer Styling */
.correct-answer {
    background-color: #22c55e;
    border: 2px solid #16a34a;
    padding: 10px;
}

/* Hidden answer details */
.hidden {
    display: none;
}

/* Form Container Styling */
.form-container {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.form-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.form-container input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    margin-top: 0.5rem;
}

.form-container button {
    background-color: #1d4ed8;
    color: white;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    margin-top: 1rem;
    font-weight: bold;
}

.form-container button:hover {
    background-color: #2563eb;
}

.form-container a {
    color: #1d4ed8;
    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Social Media Buttons */
.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
}

.social-buttons a.facebook {
    background-color: #3b5998;
}

.social-buttons a.google {
    background-color: #db4437;
}

.social-buttons a.twitter {
    background-color: #1da1f2;
}

/* Responsive Layout for Small Screens */
@media (max-width: 600px) {
    .social-buttons a {
        width: 100%;
        margin-bottom: 10px;
    }
}

.sidebar {
    width: 300px;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
}

.ad img {
    width: 100%;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 5px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

.search-form button {
    background-color: #1d4ed8;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #2563eb;
}

@media (min-width: 640px) {
    .sm\:flex {
        display: flex !important;
    }
}