/* General Body Styles */
body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Italic, serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* Header and Navigation */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav .logo img {
    height: 60px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #0d47a1; /* Dark Blue */
    font-weight: bold;
    transition: color 0.3s;
}

nav a {
    text-decoration: none;
}
nav a:hover {
    background-color: #5e35b1; /* Light grey background on hover */
    color: #333; /* Darker text color on hover for better contrast */
}

/* This will prevent the hover effect from applying to your "Get In Touch" button */
nav a.cta-button:hover {
    background-color: #0056b3; /* Keep the button's original hover effect */
    color: white;
}

nav .nav-links {
    flex: 1; /* Takes up 1/3 of the space in the center */
    justify-content: center; /* Ensures the links themselves are centered within their container */
}

nav .cta-button {
    justify-content: flex-end; /* Pushes the button to the far right of its container */
    display: flex; /* Required for justify-content to work */
}
.cta-button {
    background-color: #5e35b1; /* Purple */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0d47a1; /* Dark Blue */
}

main {
    width: 90%;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
}

#contact {
    border-top: 1px solid #eee;
}

h1, h2, h3 {
    color: #0d47a1; /* Dark Blue */
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }

/* Hero Section (Home Page) */
.hero { display: flex; align-items: center; gap: 3rem; min-height: 70vh; }
.hero-content { flex: 1; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; }
.hero-image { flex: 0.8; }
.hero-image img { width: 100%; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.learn-more-button { background-color: #0d47a1; color: #fff; padding: 0.8rem 1.8rem; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s; }
.learn-more-button:hover { background-color: #5e35b1; }

/* About Page */
.about-content { display: flex; align-items: center; gap: 3rem; max-width: 1200px; margin: 0 auto; }
.about-text { flex: 1; }
.about-image { flex: 0.7; }
.about-image img { width: 100%; border-radius: 10px; }

/* Services Page */
#services-page { max-width: 1100px; margin: 0 auto; }
.services-intro { text-align: center; font-size: 1.1rem; max-width: 700px; margin: -1rem auto 3rem auto; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.service-item { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.service-item h3 { margin-top: 0; }

/* Contact Section */
.contact-container { display: flex; gap: 2rem; background: #fff; padding: 3rem; border-radius: 8px; max-width: 1200px; margin: 0 auto; }
.contact-info, .contact-form { flex: 1; }
.contact-form form { display: flex; flex-direction: column; }
.contact-form label { margin-bottom: 0.5rem; font-weight: bold; }
.contact-form input, .contact-form textarea { padding: 0.75rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 5px; width: 100%; box-sizing: border-box; }
.contact-form button { background-color: #5e35b1; color: #fff; padding: 0.8rem; border: none; border-radius: 5px; font-size: 1rem; cursor: pointer; transition: background-color 0.3s; }
.contact-form button:hover { background-color: #0d47a1; }

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

/* Events Page and Calendar Styles */
#events-page {
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: -1rem auto 3rem auto;
    color: #555;
}

.calendar-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio (600 / 800 = 0.75) */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border: 1px solid #ddd;
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
.hamburger-menu {
        display: flex; /* Show the hamburger button */
    }
/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: #0d47a1;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}
    .services-grid {
        grid-template-columns: 1fr; /* This will stack the boxes into a single column */
    }
    
    .cta-button {
    display: inline-block;
  }

   .nav-links {
    display: flex !important;          /* make sure nav is visible */
    flex-direction: column;            /* stack links vertically */
    gap: 0;                            /* remove wide gaps if any */
    width: 100%;
    background: transparent;           /* remove dropdown background */
    position: static;                  /* don't overlay the page */
    box-shadow: none;                  /* remove any mobile dropdown shadow */
    margin: 0;                         /* keep it flush */
    padding: 0.25rem 0;                /* small vertical padding */
  }
    
    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

   .nav-links li {
    width: 100%;
    text-align: center;
  }

    .nav-links a {
    display: block;
    padding: 0.8rem 0;
    border-radius: 4px;
    border-bottom: none;               /* optional */
  }
    .nav-links li:last-child a {
        border-bottom: none;
    }
      nav .nav-links {
    flex-wrap: wrap;
  }
    /* Animation for hamburger icon */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Keep other mobile styles */
    .hero, .about-content { flex-direction: column; text-align: center; }
    .contact-container { flex-direction: column; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}
