/* General Reset */

body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Modern font for better aesthetics */
    
}

header {
    background-color: #343a40;
    color: #fff;
    padding: 10px 0;
}

/* Navigation Bar */
.navbar {
    background-color: #2642cd;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .logo a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #16a085;
}

.navbar .logo img{
    width: 55px;
    height: 55px;
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    vertical-align: middle; /* Align the image vertically in the middle */
   
}

.upload-form, .gallery-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.upload-form h2, .gallery-container h2 {
    margin-top: 0;
}

.upload-form label, .upload-form input, .upload-form textarea, .upload-form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.upload-form input, .upload-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.upload-form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.upload-form button:hover {
    background-color: #555;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gallery-item h3 {
    margin: 10px 0;
}

.gallery-item p {
    margin: 5px 0;
}

/* Hero Section */

#hero {
    background-image: url('frontpic.jpg'); 
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    margin-bottom: 30px;
}

#hero h1 {
    font-size: 2.5rem;
}

#hero .btn {
    display: inline-block;
    margin-top: 20px;
    background-color: #fff;
    color: #2642cd;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

#hero .btn:hover {
    background-color: #16a085;
    color: #fff;
}

/* About Section */
/* Opening Hours Section */
#opening-hours {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    margin-top: 40px; /* Add spacing between sections */
    margin-top: 244px;
    width: 300px;
    max-width: 300px; /* Same width as the Become Member box */
    position: absolute;
    top: 100px;  /* Same top value to align with Become a Member */
    right: 20px; /* Position it to the right */
    border: 2px solid #2642cd;
}

#opening-hours h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2642cd;
    margin-bottom: 15px;

}

#opening-hours .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#opening-hours .hours-list li {
    font-size: 1.2rem;
    color: #34495e;
    margin: 5px 0;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2642cd;
    padding: 5px 0;
}

#opening-hours .hours-list li:last-child {
    border-bottom: none;
}
#about{
    margin-bottom: 30px;
    margin-top: -20px;
}

h2 {
    margin-bottom: 15px;
    color: #2642cd;
    text-align: center;
}

.about-box, .committee-container {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 10px auto;
    max-width: 700px;
    border: 2px solid #2642cd;
}

.committee-container {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 700px;
    border: 2px solid #2642cd;
}

.committee-container ul {
    list-style: disc; /* Use disc for bullet points */
    padding-left: 20px; /* Add padding to align the bullet points */
}

.committee-container ul li {
    margin-bottom: 10px;
    font-weight: 500;
}

.about-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.about-box ul li {
    list-style: disc;
}

.location-box a {
    color: #1abc9c;
    text-decoration: none;
}

.location-box a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    background-color: #343a40;
    color: #fff;
    width: 100%;
}


/* Membership Section */
#membership {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    margin-top: 244px;
    position: absolute; /* Position to the left */
    top: 100px; /* Adjust this based on your layout */
    left: 20px; /* Position it 20px from the left edge */
    width: 300px; /* Adjust the width as needed */
    border: 2px solid #2642cd;
}

.membership-content {
    text-align: center;
}

.membership-content h2 {
    font-size: 1.8rem;
    color: #2642cd;
}

.membership-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.membership-content .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2642cd;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.membership-content .btn:hover {
    background-color: #16a085;
    color: #fff;
}

.membership-content h3 {
    font-size: 1.4rem;
    color: #2642cd;
    margin-top: 20px;
}

.member-benefits {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

.member-benefits li {
    margin-bottom: 10px;
    padding-left: 20px;
    text-align: left;
    position: relative;
}

.member-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1abc9c;
}
/* Find Us Here Section on the Right */
#find-us-right {
   
max-width: 600px;
margin: 50px auto;
padding: 5px;
background: #fff;
border-radius: 8px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
text-align: center;
padding-top: 5px;
border:2px solid #2642cd;
}

.find-us-right-content {
    text-align: center;
}

.find-us-right-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.find-us-right-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.find-us-right-content a {
    color: #1abc9c;
    text-decoration: none;
}

.find-us-right-content a:hover {
    text-decoration: underline;
}

.event-container {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}
.event-container table {
    width: 100%;
    border-collapse: collapse;
}
.event-container th, .event-container td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}
.event-container img {
    border-radius: 5px;
}

form {
    background-color: #fff; /* Match existing section background */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="file"],
form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

form input[type="file"] {
    padding: 5px;
}

form textarea {
    resize: vertical;
    height: 120px;
}

form button {
    /*background-color: #2642cd; /* Existing button color */
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #2642cd;
}

form input:focus,
form textarea:focus {
    border-color: #2642cd;
    outline: none;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.2);
}

/* Events Section */
.events-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.event:last-child {
    border-bottom: none;
}

.event img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.event-details {
    flex: 1;
}

.event h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #2c3e50;
}

.event p {
    margin: 5px 0;
    color: #555;
}

.event strong {
    color: #2c3e50;
}

/* Gallery Page */
.gallery-title {
    text-align: center;
    margin: 20px 0;
    font-size: 2rem;
    color: #2c3e50;
}

.upload-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.upload-form h2 {
    margin-top: 0;
}

.upload-form label, .upload-form input, .upload-form textarea, .upload-form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.upload-form input, .upload-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.upload-form button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.upload-form button:hover {
    background-color: #555;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gallery-item h3 {
    margin: 10px 0;
}

.gallery-item p {
    margin: 5px 0;
}

/* Login Form */
.login-container {
    max-width: 400px;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-align: center;
}

@media(min-width:1600px){
    #opening-hours {
        
        margin-top: 245px;
        width: 350px;
        max-width: 350px; /* Same width as the Become Member box */
    }

    #membership {
        margin-top: 245px;
        width: 350px; /* Adjust the width as needed */
    }


}

@media(max-width:1500px){


    h1, h2, h3, b {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 1rem;
    }

    #hero h1 {
        font-size: 2.3rem;
    }

    .membership-content h2 {
        font-size: 1.5rem;
    }
    .find-us-right-content h2 {
        font-size: 1.5rem;
        
    }
    #opening-hours {
        
        margin-top: 240px;
        width: 270px;
        max-width: 270px; /* Same width as the Become Member box */
    }

    #membership {
        margin-top: 240px;
        width: 270px; /* Adjust the width as needed */
    }

    .membership-content h3 {
        font-size: 1.2rem;
    }

}

@media(max-width:1460px){

    .about-box, .committee-container {
        width: 600px;
    }

    .about-box{
        margin-top: 15px;
    }

}

@media(max-width:1330px){
    .about-box, .committee-container {
        width: 500px;
    }

    .committee-container{
        margin-top: 10px;
    }

    #find-us-right{ 
        max-width: 500px !important;
        width: 100% !important; /* Ensure it doesn't exceed the container width */
        padding: 0px !important;
    }

    .find-us-right-content p {
        font-size: 1.0rem;
    }

    .find-us-right-content h2 {
        font-size: 1.5rem;
    }

}

 @media(max-width:1230px){
    #opening-hours {
        width: 210px;
        max-width: 210px; /* Same width as the Become Member box */
    }

    #opening-hours h2 {
        font-size: 1.2rem;
    }

    #membership {
        width: 210px; /* Adjust the width as needed */
    }   
 }

 @media(max-width:1135px){
    #opening-hours {
        width: 190px;
        max-width: 200px; /* Same width as the Become Member box */
        margin-right:0px;
    }

    #opening-hours h2 {
        font-size: 1.1rem;
    }

    #opening-hours .hours-list li {
        font-size: 0.9rem; /* Decrease the size of the list items */
    }

    #membership {
        width: 190px; /* Adjust the width as needed */
    }

    .membership-content h2 {
        font-size: 1.4rem; /* Decrease the size of the headings */
    }

    .membership-content p {
        font-size: 0.9rem; /* Decrease the size of the paragraphs */
    }

    .membership-content h3 {
        font-size: 1.1rem; /* Decrease the size of the subheadings */
    }

    .membership-content b {
        font-size: 0.9rem;
    }

    .member-benefits {
        font-size: 0.8rem; /* Decrease the size of the list items */
    }

    .about-box, .committee-container {
        width: 450px;
    }

    .about-box{
        margin-bottom: 10px;
    }

    .about-box h2, .committee-container h2 {
        font-size: 1.5rem; /* Decrease the size of the headings */
    }

    .about-box p, .committee-container p {
        font-size: 1rem; /* Decrease the size of the paragraphs */
        text-align: center;
    }

    .about-box ul li, .committee-container ul li {
        font-size: 1rem; /* Decrease the size of the list items */
    }

    .about-box {
        margin-top: 10px;
        margin-bottom: 0px; /* Reduce the bottom margin */
    }

    .committee-container {
        margin-top: 10px; /* Reduce the top margin */
        margin-bottom: 10px; /* Reduce the gap between committee-container and find-us-right */
    }

    #find-us-right {
        max-width: 400px !important;
        width: 100% !important; /* Ensure it doesn't exceed the container width */
        padding: 0px !important;
        margin-top: 10px; /* Reduce the gap between committee-container and find-us-right */
    }

    .find-us-right-content h2 {
        font-size: 1.3rem; /* Decrease the size of the headings */
    }

    .find-us-right-content p {
        font-size: 0.9rem; /* Decrease the size of the paragraphs */
    }

    #about{
        margin-bottom: 15px;
    }

    .committee-container h2{
        font-size: 1.3rem;
    }

    .committee-container ul li{
        font-size: 0.9rem;
    }
}

@media(max-width:1030px){
    #opening-hours {
        width: 180px;
        max-width: 180px; /* Same width as the Become Member box */
    }
    #opening-hours h2 {
        font-size: 1.1rem;
    }

    #membership {
        width: 180px; /* Adjust the width as needed */
    }
    
    #membership h2 {
        font-size: 1.3rem;
    }
    #membership p {
        font-size: 0.9rem;
    }

    .about-box, .committee-container {
        width: 400px;
    }
}


/* Media Query for Responsive Layout */
@media (max-width: 945px) {
    .about-box, .committee-container, #membership, #opening-hours, #find-us-right {
        width: 600px;
        max-width: 600px; /* Ensure the boxes take the full width */
        margin: 10px auto; /* Center the boxes and add some vertical spacing */
        display: block; /* Ensure the boxes are displayed as block elements */
    }

    .about-box {
        margin-top: 10px;
        margin-bottom: 10px; /* Add some vertical spacing */
    }

    .committee-container {
        margin-top: 10px; /* Adjusted to reduce the gap */
        margin-bottom: 0; /* Ensure no extra gap below */
    }

    #membership, #opening-hours {
        margin-top: 5px; /* Reduced margin to minimize gap */
        margin-bottom: 5px; /* Reduced margin to minimize gap */
        position: relative; /* Keep this if necessary */
        align-items: center; /* This property is not needed for block elements */
    }

    #find-us-right {
        margin-top: 10px;
        margin-bottom: 10px; /* Add some vertical spacing */
    }

    #opening-hours {
        margin-top: 15px; /* Reduced margin to minimize gap */
        top:0px;
        margin-bottom: 15px; /* Reduced margin to minimize gap */
        right: 0; /* This property is not needed unless positioning is required */
    }

    #membership {
        margin-top: 15px; /* Reduced margin to minimize gap */
        top:0px;
        margin-bottom: 15px; /* Reduced margin to minimize gap */
        left: 0; /* This property is not needed unless positioning is required */
    }
     /* Adjust navbar for smaller screens */
     .navbar {
        padding: 10px 0;
    }

    .navbar .logo a {
        font-size: 1.2rem;
    }

    .navbar .nav-links li a {
        font-size: 1.2rem;
    }
}


@media (max-width: 674px) {
    .about-box, .committee-container, #membership, #opening-hours, #find-us-right {
        width: 400px;
        max-width: 400px; /* Ensure the boxes take the full width */
        margin: 10px auto; /* Center the boxes and add some vertical spacing */
        display: block; /* Ensure the boxes are displayed as block elements */
    }

    /* Adjust font sizes for smaller screens */
    h1, h2, h3 {
        font-size: 1.2rem;
    }

    p, ul, li, a {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    .membership-content h2, .find-us-right-content h2, #opening-hours h2 {
        font-size: 1.3rem;
    }

    #opening-hours b{
        font-size: 1.3rem;
    }

    .membership-content p, .find-us-right-content p, #opening-hours .hours-list li {
        font-size: 0.9rem;
    }

    .membership-content h3 {
        font-size: 1rem;
    }

    .member-benefits {
        font-size: 0.8rem;
    }

    .about-box h2, .committee-container h2 {
        font-size: 1.3rem;
    }

    .about-box p, .committee-container p {
        font-size: 0.9rem;
    }

    .about-box ul li, .committee-container ul li {
        font-size: 0.9rem;
    }
     /* Adjust navbar for smaller screens */
     .navbar {
        padding: 8px 0;
    }

    .navbar .logo a {
        font-size: 1rem;
    }

    .navbar .nav-links li a {
        font-size: 1rem;
    }
}

@media(max-width:465px){
    .about-box, .committee-container, #membership, #opening-hours, #find-us-right {
        width: 350px;
        max-width: 350px; /* Ensure the boxes take the full width */
        margin: 10px auto; /* Center the boxes and add some vertical spacing */
        display: block; /* Ensure the boxes are displayed as block elements */
    }

    /* Adjust font sizes for smaller screens */
    h1, h2, h3 {
        font-size: 1rem;
    }

    p, ul, li, a {
        font-size: 0.7rem;
    }

    .btn {
        font-size: 0.8rem;
    }

    #hero h1 {
        font-size: 1.4rem;
    }

    .membership-content h2, .find-us-right-content h2, #opening-hours h2 {
        font-size: 1.1rem;
    }

    #opening-hours b {
        font-size: 1.1rem;
    }

    .membership-content p, .find-us-right-content p, #opening-hours .hours-list li {
        font-size: 0.8rem;
    }

    .membership-content h3 {
        font-size: 0.9rem;
    }

    .member-benefits {
        font-size: 0.7rem;
    }

    .about-box h2, .committee-container h2 {
        font-size: 1.1rem;
    }

    .about-box p, .committee-container p {
        font-size: 0.8rem;
    }

    .about-box ul li, .committee-container ul li {
        font-size: 0.8rem;
    }

    /* Adjust navbar for smaller screens */
    .navbar {
        padding: 6px 0;
    }

    .navbar .logo a {
        font-size: 0.9rem;
    }

    .navbar .nav-links li a {
        font-size: 0.9rem;
    }

    #find-us-right {
        max-width: 350px !important;
        width: 100% !important; /* Ensure it doesn't exceed the container width */
        padding: 0px !important;
        margin-top: 10px; /* Reduce the gap between committee-container and find-us-right */
    }
}

@media(max-width:405px){
    .about-box, .committee-container, #membership, #opening-hours {
        width: 300px;
        max-width: 300px; /* Ensure the boxes take the full width */
        margin: 10px auto; /* Center the boxes and add some vertical spacing */
        display: block; /* Ensure the boxes are displayed as block elements */
    }

    #find-us-right {
        max-width: 300px !important;
        width: 100% !important; /* Ensure it doesn't exceed the container width */
        padding: 0px !important;
        margin-top: 10px; /* Reduce the gap between committee-container and find-us-right */
    }

    #hero h1 {
        font-size: 1.3rem;
    }
}

@media(max-width:375px){
    .navbar {
        padding: 5px 0;
    }

    .navbar .logo a {
        font-size: 0.8rem;
    }

    .navbar .nav-links li a {
        font-size: 0.8rem;
    }

    #hero h1 {
        font-size: 1.3rem;
    }
}




