/* General Styles */
:root {
    --primary-color: #8B0000; /* Dark Red */
    --secondary-color: #DAA520; /* Goldenrod */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --background-dark: #222;
    --background-light: #333;
    --font-primary: 'Cinzel Decorative', cursive; /* For headings */
    --font-secondary: 'Open Sans', sans-serif; /* For body text */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--background-dark);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px; /* Add some padding on the sides */
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin: 0;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    text-align: justify;
    margin-bottom: 15px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-color);
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.section {
    padding: 60px 0;
    text-align: center;
}

.alternate-bg {
    background-color: var(--background-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 10px 0;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#branding {
    text-align: left;
}

#branding h1 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 2em;
    letter-spacing: 2px;
}

#branding p {
    margin: 0;
    font-size: 0.9em;
    color: var(--light-color);
    text-align: left;
    font-style: italic;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-color);
    text-transform: uppercase;
    font-size: 1.1em;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    background: var(--primary-color);
    border-radius: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover; /* Replace with your image */
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for better text readability */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--light-color);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* About Section */
#about p {
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Section */
.team-members {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.team-member {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-member h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1.4em;
}

.team-member p {
    font-size: 0.9em;
    color: var(--light-color);
    text-align: center;
}

.team-member p:first-of-type { /* Role */
    font-weight: bold;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 10px;
}


/* Events Section */
.event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.event-item {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
}

.event-item h3 {
    color: var(--secondary-color);
    font-size: 1.6em;
    margin-top: 0;
}

.event-item p {
    text-align: left;
    color: var(--light-color);
    font-size: 0.95em;
}

.event-item p strong {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-form {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--dark-color);
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    background-color: var(--background-dark);
    color: var(--light-color);
    font-family: var(--font-secondary);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-info {
    margin-top: 40px;
    text-align: center;
}

.contact-info p {
    font-size: 1.1em;
    color: var(--light-color);
}

.contact-info p strong {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    #branding {
        margin-bottom: 15px;
    }

    nav ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--dark-color);
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex; /* Show when active */
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
        margin-top: 10px;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .team-members, .event-list {
        flex-direction: column;
        align-items: center;
    }

    .team-member, .event-item {
        max-width: 80%;
    }
}