/* Base styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f8f8ff;
    scroll-behavior: smooth;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #1a1a1a;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.title-group {
}

header .title {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    color: #ffd700;
    margin: 0;
}

header .subtitle {
    font-size: .95em;
    color: #f8f8ff;
    padding-top: .5px;
    margin: 0;
    text-align: center;
}

.nav-bar {
    align-self: flex-end;
    padding-bottom: 10px;
}

.nav-bar ul {
    display: flex;
    gap: 30px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav-bar a {
    color: #f8f8ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-bar a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: transparent;
    text-align: center;
    color: white;
    padding: 120px 20px 60px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/the_wayfarers_refuge_banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.9));
    z-index: 2;
}

.hero .content-wrapper {
    position: relative;
    z-index: 3;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.hero h2 {
    font-family: 'Cinzel', serif;
    font-size: 3em;
    margin: 0 0 20px 0;
}

.hero p {
    font-size: 1.25em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    background-color: #007acc;
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #005a9c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 204, 0.3);
}

/* Events Section */
.events {
    display: none;
}

#events {
    padding: 60px 20px;
    background-color: #1a1a1a;
}

.events h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: #1a1a1a;

}

.about-content {
    width: 75%;
    margin: 0 auto;
    text-align: left;
}

.about-content ul {
    padding-left: 20px;
    margin: 20px 0;
}

.about-content li {
    margin-bottom: 15px;
}

.about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: #f8f8ff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}

footer .copyright {
    font-size: 0.8em;
    color: rgba(248, 248, 255, 0.7);
    max-width: 800px;
    margin: 10px auto 0;
}

/* Mod Application Styles */
.mod-application {
    padding: 120px 20px 60px;
    background-color: #1a1a1a;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.form-container h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #ffd700;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #f8f8ff;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    display: block;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    display: block;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-container h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .mod-application {
        padding: 100px 15px 40px;
    }

    .form-container h2 {
        font-size: 1.8em;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px 0;
    }
    .nav-bar {
        width: 100%;
        padding-top: 10px;
    }
    .nav-bar ul {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .hero {
        padding: 60px 20px;
        margin-top: 120px; /* Increase margin to ensure it clears the header */
    }
    .hero h2 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .events, .about {
        padding: 40px 20px;
    }
    .about-content {
        width: 100%;
        padding: 0;
    }
    .about h2, .events h2 {
        font-size: 2em;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Smaller Devices */
@media (max-width: 480px) {
    .header-content {
        padding: 5px 0;
    }
    .nav-bar ul {
        gap: 10px;
    }
    header .title {
        font-size: 1.8em;
    }
    .hero h2 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 0.9em;
    }
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.8em;
    }
    .about h2, .events h2 {
        font-size: 1.8em;
    }
}