/* Hero Section */
.hero {
    background-image: url("/static/images/header.jpg");
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.hero input[type="text"] {
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    width: 100%;
    margin-right: 10px; /* Add right margin */
}

.hero button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    background-color: #5cb85c;
    color: #fff;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    align-self: center;
}

.hero button:hover {
    background-color: #4cae4c;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(92, 64, 64, 0.8);
    transition: transform 0.3s ease;
    animation: fadeIn 1.0s ease-in-out;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    animation: fadeIn 0.7s ease-in-out;
}

/* Hover effect for the title and subtitle */
.hero-link:hover .hero-title {
    transform: scale(1.02);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-greeting {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.9em;
}

.user-greeting a {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #d6b378;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.user-greeting a:hover {
    background-color: #c9a15f;
}

.user-privilege {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .hero {
        height: 260px;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .hero form {
        flex-direction: column;
        align-items: stretch;
    }

    .hero input[type="text"],
    .hero button {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 15px;
    }

    .hero input[type="text"],
    .hero button {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}

@media (min-width: 768px) {
    .hero form {
        flex-direction: row;
        justify-content: center;
    }

    .hero input[type="text"] {
        flex: 1;
        margin-bottom: 0;
        margin-right: 10px;
    }

    .hero button {
        width: auto;
    }
}

.hero-content form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

.hero-content button[type="submit"] {
    padding: 10px 20px;
    background-color: #4CAF50; /* Green background */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.hero-content button[type="submit"]:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-content input[type="text"],
    .hero-content button[type="submit"] {
        font-size: 14px;
    }
}
