/* Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1em;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    transition: color 0.3s ease, transform 0.3s ease; /* Added transition */
}

.logo:hover { /* Added hover effect */
    color: #3498db;
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease; /* Ensured transition is present */
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://upload.wikimedia.org/wikipedia/commons/c/c1/Mata_Bambarbaini_Temple.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    color: #fff;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 1.5em;
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8em 1.8em;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background-color: #2ecc71;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    color: #fff;
}


/* Info Sections */
.site-main {
    padding: 3rem 0;
}

.info-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-icon {
    margin-right: 10px;
    font-size: 1.8rem;
    transition: transform 0.3s ease; /* Added transition */
}

.info-section h2:hover .section-icon { /* Added hover effect for section icons */
    transform: scale(1.2) rotate(5deg);
}


.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.grid-layout.reverse .text-content {
    order: 2;
}
.grid-layout.reverse .image-content {
    order: 1;
}


.image-content img {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.image-content img:hover { /* Added hover effect */
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Ward List Styling */
.ward-list {
    list-style: none;
    padding-left: 0;
    columns: 2; /* Display in two columns */
    -webkit-columns: 2;
    -moz-columns: 2;
    gap: 1.5rem;
}

.ward-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ward-list li:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
}


/* Signup Section / Contact */
.signup-section {
    background-color: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.signup-form .form-group {
    margin-bottom: 1.5rem;
}

.signup-form label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.signup-form input[type="text"]:focus,
.signup-form input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Advertise Section Enhancements */
.advertise-section {
    background-color: #eaf5ff; /* Light blue background */
    padding: 4rem 2rem; /* More padding */
    border-radius: 8px;
    text-align: center; /* Center align content */
}

.advertise-section .section-title {
    color: #1a5276; /* Darker blue for title */
}

.advertise-section .lead-text {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advertise-benefits {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.benefit-item:hover { /* Enhanced hover effect */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    color: #1a5276;
    margin-bottom: 0.5rem;
}

.advertise-section h3 {
    font-size: 1.5rem;
    color: #1a5276;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.options-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    display: inline-block; /* Center the list */
    text-align: left; /* Align text within list items */
}

.options-list li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.7rem;
    padding-left: 1.5em;
    position: relative;
}

.options-list li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #27ae60; /* Green check */
    position: absolute;
    left: 0;
    top: 2px;
}

.advertise-section .email-link {
    font-weight: 500;
    color: #1a5276;
}

.advertise-section .btn-lg {
    padding: 1em 2.5em;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Location Section */
#location {
    padding: 3rem 0;
    background-color: #fff; /* Or any other desired background */
}

#location .container-fluid { /* New class for full-width */
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 40%; /* Aspect ratio for the map, adjust as needed */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer Redesign */
.site-footer {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #bdc3c7; /* Light gray text */
    padding: 4rem 0 2rem; /* Increased padding */
    font-family: 'Roboto', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-about,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 220px; /* Ensure they don't get too squeezed */
    margin-bottom: 1.5rem;
}

.site-footer h4 {
    font-family: 'Merriweather', serif;
    color: #ecf0f1; /* Lighter heading color */
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db; /* Accent color line */
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #bdc3c7;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links ul li a:hover {
    color: #3498db; /* Accent color on hover */
    padding-left: 5px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.5rem; /* Larger icons */
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Allows transform */
}

.social-icons a:last-child {
    margin-right: 0;
}

.social-icons a:hover {
    color: #3498db; /* Accent color on hover */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3e5062; /* Subtle separator line */
    font-size: 0.85rem;
    color: #95a5a6; /* Slightly darker gray for copyright */
}

.footer-bottom p {
    margin-bottom: 0;
    color: #95a5a6;
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
    color: #7f8c8d; /* Slightly lighter than copyright for differentiation */
    margin-top: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.modal .form-group {
    margin-bottom: 1rem;
}

.modal label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #333;
}

.modal input[type="text"],
.modal input[type="email"],
.modal textarea,
.modal select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.modal textarea {
    resize: vertical;
    min-height: 80px;
}

.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal textarea:focus,
.modal select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.modal .btn-primary {
    width: 100%;
    padding: 0.9em 1.8em;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1.1rem; }

    .site-header .container {
        flex-direction: column;
    }
    .logo {
        margin-bottom: 0.5rem;
    }
    .main-nav ul {
        justify-content: center;
        padding-top: 0.5rem;
    }
    .main-nav ul li {
        margin: 0 10px;
    }

    .grid-layout {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .grid-layout.reverse .text-content,
    .grid-layout.reverse .image-content {
        order: initial; /* Reset order for stacked layout */
    }
    .image-content {
        margin-top: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center; /* Center text for stacked items */
    }

    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline */
    }

    .footer-about,
    .footer-links,
    .footer-social {
        width: 100%; /* Full width for stacked items */
        max-width: 350px; /* Optional: constrain width for better readability */
    }

    .social-icons {
        text-align: center; /* Center social icons */
    }

    .advertise-benefits {
        flex-direction: column;
        align-items: center;
    }

    .benefit-item {
        max-width: 90%; /* Full width on small screens */
        margin-bottom: 2rem;
    }

    .options-list {
        padding-left: 1rem;
    }
}
