/* General Body Styles */
html {
    scroll-snap-type: y mandatory; /* Enables vertical snapping */
}

section {
    scroll-snap-align: start; /* Aligns the start of each section to the viewport */
    height: 100vh; /* Makes each section fill the full height of the screen */
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header and Navigation */
header {
    background: #ffffff; /* Dark Blue */
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

/* --- MODIFIED LOGO STYLE --- */
nav .logo {
    /* These properties are no longer needed for an image logo
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    */

    /* Added styles for the image logo */
    display: flex;
    align-items: center; /* Helps with vertical alignment */
}

nav .logo img {
    height: 50px; /* Adjust this value to get the perfect size */
    width: auto; /* Maintains the aspect ratio */
}
/* --- END OF MODIFICATION --- */

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #002147; /* Changed from #fff to dark blue */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFD700; /* Gold */
}

/* Hero Section */
.hero {
    background:url(images/aerial.jpg) no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    padding: 2rem 4rem;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background: #FFD700; /* Gold */
    color: #002147;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
    background-color: #e6c300;
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    padding: 4rem 0;
}

.container {
    width: 80%;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #002147;
}

/* Alternating Section Backgrounds */
#contact {
    background-color: #fff;
}

/* About Section */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Events Section */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.event-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #002147;
    margin-top: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Contact Section */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lora', serif;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

#contact button {
    background: #002147;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #003366;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

#about {
    background: linear-gradient(rgba(0, 33, 71, 0.26), rgba(0, 33, 71, 0.0)) ,url('images/gulmohar.jpg') no-repeat center center/cover;
    color: #fff; /* Changes the text color to white for readability */
}


#about h2 {
    color: #FFD700; /* Gold */
}

/* --- NEW EVENT SLIDER STYLES --- */
/* --- NEW IMAGE-BASED EVENT SLIDER STYLES --- *//* --- FULL-SCREEN EVENT SLIDER STYLES --- */
.event-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.event-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.event-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    line-height: 0;
}

.event-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the whole screen */
    filter: brightness(0.9); /* Darkens the image so text is readable */
}

/* Big title in the center */
.event-slide h2 {
    display: none;
}

/* Text overlay at the bottom */
.event-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 3rem 5% 6rem; /* Increased bottom padding */
    box-sizing: border-box;
    line-height: 1.4;
}

.event-info h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
}

.event-info p {
    margin: 0;
}

/* Slider Buttons */
.event-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 33, 71, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.event-prev-btn {
    left: 2rem;
}

.event-next-btn {
    right: 2rem;
}


#events .section-heading {
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #FFD700; /* Gold */
    background: transparent; /* semi-transparent background */
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

#events {
    position: relative; /* important */
    display: block; /* override flex */
    overflow: hidden; /* prevents heading from spilling */
}

/* Gallery section styles */
/* Gallery full-screen slider */
#gallery {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100vh;
}

/* Overlay heading */
#gallery .section-heading {
    position: absolute;
    top:4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #FFD700;
    background: transparent;
}

/* Slider container */
.gallery-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 33, 71, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.gallery-prev-btn {
    left: 2rem;
}

.gallery-next-btn {
    right: 2rem;
}

/* Contact section fills the entire screen and always shows footer */
#contact {
    min-height: 100vh;          /* full screen */
    display: flex;
    flex-direction: column;     /* stack form + footer */
    box-sizing: border-box;
}

/* Form takes remaining space above footer */
/* Contact section fills the screen and shows footer at bottom */
#contact {
    height: 100vh;              /* exactly one screen */
    display: flex;
    flex-direction: column;     /* stack form + footer */
    box-sizing: border-box;
    padding: 2rem;
}

/* Contact form takes up remaining space above footer */
/* Adjust Contact so footer is visible simultaneously */
#contact {
    min-height: calc(100vh - 80px); /* leave room for footer */
    height: auto;                   /* don't force full 100vh */
    display: flex;

    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}


/* Footer styling stays */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    height: 80px;                  /* fixed height, matches above */
}

/* Team Section */
#team {
    background: #fff;
    color: #002147;
    padding: 4rem 0;
}

#team h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #002147;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 80%;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0.5rem 0 0.3rem 0;
}

.team-member p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}


