/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0052a3;
    text-decoration: none;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s;
}

nav a:hover::after,
nav li.active a::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Preseli_Hills_from_Foel_Drygarn.jpg/1280px-Preseli_Hills_from_Foel_Drygarn.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section Styles */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #0066cc;
}

.page-header {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Mynydd_Preseli_from_Foel_Cwmcerwyn.jpg/1280px-Mynydd_Preseli_from_Foel_Cwmcerwyn.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 102, 204, 0.7);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.about-header {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/Preseli_Hills_from_Carn_Ingli.jpg/1280px-Preseli_Hills_from_Carn_Ingli.jpg');
}

.events-header {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/Preseli_Hills_from_Crymych.jpg/1280px-Preseli_Hills_from_Crymych.jpg');
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
}

.feature {
    flex: 0 0 calc(33.333% - 20px);
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.feature h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

/* Events Section */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.event-date {
    background-color: #0066cc;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 1rem;
}

.event-details {
    padding: 20px;
    flex-grow: 1;
}

.event-details h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

.event-time, .event-location {
    color: #666;
    margin-bottom: 5px;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

.news-date {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* Committee Members */
.committee-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
}

.member {
    flex: 0 0 calc(33.333% - 20px);
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.member h3 {
    color: #0066cc;
    margin-bottom: 5px;
}

.member-role {
    font-weight: bold;
    margin-bottom: 15px;
    color: #666;
}

/* Contact Info */
.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.contact-info h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .features, .committee-members {
        flex-direction: column;
    }

    .feature, .member {
        flex: 0 0 100%;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        padding: 10px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 10px 0;
    }
}
