body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

/* Hero Banner */
.hero-image {
    background-image: url('images/main1.jpg'); /* Change if your banner has a different name */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 750px;
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    width: 90%;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4em;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 2em;
}

/* General Sections */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

section:nth-child(even) {
    background: #fff;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
}

.field-image-container {
    text-align: center;
    margin: 40px 0;
}

.field-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* Gallery - Clean Uniform Responsive Grid with Centered Images */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* Centers the whole gallery on the page */
    gap: 30px;                 /* Bigger gap for breathing room */
    padding: 20px 0;
}

.gallery img {
    flex: 1 1 300px;           /* Flexible sizing */
    max-width: 400px;
    height: 280px;             /* Slightly taller for RC photos – adjust as you like */
    object-fit: contain;       /* Shows full image */
    background: #f8f8f8;       /* Light gray background instead of white for softer look */
    padding: 15px;             /* Creates a "frame" around the image */
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.4s ease;
    display: block;            /* Ensures proper centering */
    margin: 0 auto;            /* Centers the img element inside its flex item */
}

.gallery img:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5em; }
    .hero-text p { font-size: 1.4em; }
    .hero-image { height: 400px; }
    .gallery img { width: 100%; height: auto; }
}


/* Event Modal Popup */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.5s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover {
    color: #000;
}

.event-poster {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin: 20px 0;
}

.event-details {
    margin-top: 20px;
    font-size: 1.1em;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.8);}
    to {opacity: 1; transform: scale(1);}
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .event-details {
        font-size: 1em;
    }
}