/* Maintain current body and container layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    flex-grow: 1;
    padding: 0 1px;
    /* Small padding on left and right */
}

.contact-section {
    flex-grow: 1;
    padding: 0 15px;
    /* Small padding */
    margin-top: 0;
    /* Remove margin between sections */
}

.jumbotron {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    /* Restored padding */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    /* Remove top margin to reduce space between sections */
}

.jumbotron h1 {
    font-weight: bold;
    color: #343a40;
}

.jumbotron p {
    font-size: 1.2rem;
    color: #6c757d;
}

footer {
    width: 100%;
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    /* Restore footer padding */
    margin-top: 0;
    /* Remove margin */
}

.social-media-links {
    margin-bottom: 5px;
    /* Reduced margin */
}

.social-media-links a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

.social-media-links a:hover {
    color: #ddd;
}

.fa-x-twitter {
    font-size: 24px;
    color: #000;
    margin: 0 10px;
}

.fa-x-twitter:hover {
    color: #1d9bf0;
}

.sponsor {
    text-align: center;
    margin-bottom: 10px;
}

.sponsor img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
}

.carousel-image-container {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.carousel-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-heading {
    position: relative;
    margin-top: -5px;
    /* Reduced margin to bring heading closer to the carousel */
    padding: 1px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    /* Default color */
    z-index: 10;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-heading h1 {
    font-size: 3vw;
    color: #343a40;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-image-container {
        height: 20vh;
    }

    .hero-heading {
        background-color: rgba(255, 255, 255, 0.9);
        /* Lighter background for better visibility */
        padding: 5px;
        margin-top: 1px;
    }

    .hero-heading h1 {
        font-size: 5vw;
    }
}

@media (max-width: 480px) {
    .hero-heading h1 {
        font-size: 6vw;
    }

    .carousel-image-container {
        height: 40vh;
    }

    .hero-heading {
        margin-top: 0;
        background-color: rgba(255, 255, 255, 1);
        /* Solid background for small screens */
    }
}


/* Images Container */
.img-container {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.event-img {
    height: 200px;
    object-fit: cover;
}

h1 {
    color: #004080;
    font-weight: bold;
    text-transform: uppercase;
}

/* Flex layout for committee members section */
#members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding-top: 20px;
    /* Ensure spacing above cards */
}

/* Card style adjustments */
.card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    max-width: 250px;
    /* Limit card width */
    width: 100%;
}

/* Hover effect for cards */
.card:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness for cards */
@media (max-width: 768px) {
    .card {
        max-width: 100%;
        /* Ensure cards take full width on mobile */
    }
}

/* Image container for consistent image size */
.img-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ensure images are responsive and maintain aspect ratio */
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive text adjustments for smaller screens */
.card-body h5,
.card-body p {
    margin: 5px 0;
    text-align: center;
    /* Center align text */
}

/* Adjust heading size for different screen sizes */
h1 {
    color: #004080;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
    padding-bottom: 20px;
}

/* Footer Styling for consistency */
footer {
    width: 100%;
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 0;
}

/* Social media links styles */
.social-media-links {
    margin-bottom: 5px;
}

.social-media-links a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

.social-media-links a:hover {
    color: #ddd;
}

.fa-x-twitter {
    font-size: 24px;
    color: #000;
    margin: 0 10px;
}

.fa-x-twitter:hover {
    color: #1d9bf0;
}

/* Styles for Contact Section */
.contact-form-container {
    background-color: #f4f6f7;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #343a40;
    margin-bottom: 20px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background-color: #004080;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background-color: #0066cc;
}

/* Media Query for small screens */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    padding: 40px 20px;
}

/* Ground Location Text */
.contact-section .row:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Map */
.embed-responsive {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form */
#contact-form {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Club Contacts */
.club-contacts {
    text-align: center;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .embed-responsive {
        max-width: 100%;
    }
}

/* Contact Card Styling */
.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
    margin: auto;
}

.contact-card:hover {
    transform: scale(1.05);
}

.contact-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-role {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 1rem;
    margin: 5px 0;
}

.contact-card i {
    color: #007bff;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 576px) {
    .contact-card {
        padding: 15px;
    }
}

.google-form-container {
    max-width: 100%;
    /* Limit max-width for responsiveness */
    margin: 30px auto;
    /* Center the form horizontally */
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f8f8f8;
}

iframe {
    border-radius: 10px;
    /* Round the iframe corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add shadow for a modern look */
}