/* Updated Header Styles */
.header {
    background-color: #ffffff; /* White background */
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(155, 172, 126, 0.374);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between logo and title */
}

.title-block {
    display: flex;
    flex-direction: column;
}
/* Layout */
.map-wrapper {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 360px; /* map grows, address fixed */
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}
.map-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr; /* map 2 parts, address 1 part */
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  max-width: 1100px; /* optional: center block width */
  margin-left: auto;
  margin-right: auto;
}

.map-section {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.address-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 20px;
  border-left: 4px solid #2d3e1f;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%; /* ensures it scales */
}

.address-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #2d3e1f;
}

.address-card address {
  font-style: normal;
  margin-bottom: 12px;
}

.directions-link {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 600;
  color: #2d3e1f;
}

.directions-link:hover {
  text-decoration: underline;
}

/* Responsive: stack on mobile */
@media (max-width: 860px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }
}

.logo {
    width: 80px;
    height: auto;
}

.h1 {
    font-size: 1.2em;
    color: #3c4f29; /* Pastel dark olive green */
    font-weight: 600;
}

.reg-no {
    font-size: 14px;
    color: #555;
    margin-top: -10px;
    margin-bottom: 10px;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    margin-left: auto; /* Pushes the menu to the right */
}

.navbar-menu li {
    display: inline-block;
}

.navbar-menu a {
    color: #658147; /* Matches the theme */
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: color 0.3s ease;
}


.navbar-menu a:hover {
    color: #729762; /* Lighter green for hover effect */
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #658147; /* Dark olive green */
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.image-wrapper {
    text-align: center;
    margin-top: 20px;
}

.society-photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile Dropdown */
.navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    margin-top: 10px;
    top: 100%;
    right: 0;
    background-color: #f8f9f7;
    width: 50%; /* Full width for mobile */
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-menu.open a {
    padding: 15px 10px;
}
.navbar-menu.open li{
    text-align: right;
    margin-bottom:2%;
    margin-top:2%;
    font-size: 0.8em;
    font-weight: bold;
    border-bottom: 1px solid #eaeaea;

}

.navbar-menu.open a:last-child {  
    margin-top:5px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .navbar-menu {
        display: none; /* Hide menu in mobile view */
    }
    .navbar-menu.open a {
        color: #658147; /* Matches the theme */
        text-decoration: none;
        font-size: 0.8em;
        font-weight: bold;
        transition: color 0.3s ease;
        margin-top:2px;
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: left;
        padding: 0 10px;
    }
    .logo {
        width: 40px;
        height: auto;
    }
    .logo-section .h1{
        font-size: 0.9em;
        font-weight: 700;
    }
    .hamburger {
        display: flex; /* Show hamburger icon */
        position: absolute;
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .nav-list li a {
        font-size: 14px;
    }
}


/* Main Section Styles */
main {
    padding: 40px 20px;
}

.item-list h2 {
    font-size: 2em;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 0; /* Remove any padding that could affect the image */
    margin: 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero .container {
    max-width: 100%; /* Ensure the container spans the full width */
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%; /* Full width */
    height: 65vh; /* Full height of the viewport */
    object-fit: cover; /* Ensures the image scales correctly without distortion */
    filter: brightness(0.85); /* Slight darkening for better text readability */
    animation: fadeIn 3s ease-in-out; /* Smooth fade-in animation */
}

.hero h1 {
    font-size: 3em;
    color: #ffffff;
    position: absolute;
    top: 25%;
    left: 45%; /* Align towards the right */
    animation: slideInFromBottom 3s ease-in-out;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    text-align: right; /* Align text to the right */
}

.hero p {
    font-size: 1.5em;
    color: #ffffff;
    position: absolute;
    top: 32%; /* Adjust placement below the heading */
    left: 35%; /* Align towards the right */
    animation: slideInFromBottom 3s ease-in-out;
    font-weight: 300;
    z-index: 2;
    text-align: right; /* Align text to the right */
}


/* Animation Keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 1.4em;
        right: 5%; /* Align towards the right */
        left: 5%;
        align-items: center;

    }
}


body {
    font-family: Arial, sans-serif;
}

/* Society Updates Section Styles */
.section.updates {
    padding: 40px 20px;
    background-color: #ffffff;  /* Light background for aesthetics */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.section.updates h2 {
    font-size: 1.5em;
    color: #3c4f29;
    margin-bottom: 30px;
    font-weight: 600;
}

.section.gallery-preview{
    padding: 40px 20px;
    background-color: #E7F0DC;  /* Light background for aesthetics */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.section.gallery-preview h2{
    font-size: 1.5em;
    color: #3c4f29;
    text-align: center; /* Center the text */
    margin-bottom: 30px;
    font-weight: 600;
}
.grid-home {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.grid-item-home {
    flex: 1;
    width: 31%;  /* Ensures each item doesn't take more than 50% of width */
    position: relative;
    background-color: #ffffff;  /* White background for each item */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;

}

.grid-item-home img {
    width: 100%;
    height: 40vh;  /* Fixed height for uniformity */
    object-fit: cover;  /* Ensures image doesn't stretch */
    border-radius: 5px;
    margin-top: 15px;

}

.grid-item-home p {
    font-size: 1.2em;
    color: #333;
    font-weight: 500;
    margin-top: 15px;
}

/* Hover effect for the grid items */
.grid-item-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile Support */
@media screen and (max-width: 768px) {
    .section.gallery-preview h2{
        font-size: 1.2em;
    }
    .grid-home {
        flex-direction: column;  /* Stacks the grid items on mobile */
        align-items: center;
    }

    .grid-item-home {
        width: 90%;  /* Takes more space on smaller screens 
        margin-bottom: 20px;  /* Adds space between items */
    }

    .grid-item-home img {
        height: 180px;  /* Slightly reduced height for mobile */
    }

    .section.updates h2 {
        font-size: 1.2em;  /* Adjust heading size on mobile */
    }

    .grid-item-home p {
        font-size: 1em;  /* Adjust text size on mobile */
    }
}
/* Mobile Support for Meeting Section */
@media screen and (max-width: 768px) {
    .section.meetings .container {
        flex-direction: row;  /* Stacks the button and heading on mobile */
    }

    .section.meetings h2 {
        font-size: 1em;  /* Adjust heading size on mobile */
    }

    .btn {
        font-size: 0.9em;  /* Adjust button size on mobile */
    }
}
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #598322;
    border-color: #ffffff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 5%;
}

.btn:hover {
    background: #51af3c;
    transform: scale(1.1);  /* Slight grow effect on hover */

}
.btn1 {
    display: inline-block;
    padding: 15px 30px;
    background: #598322;
    border-color: #ffffff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn1:hover {
    background: #51af3c;
    transform: scale(1.1);  /* Slight grow effect on hover */

}
.section {
    padding: 50px 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh; /* Full viewport height to center vertically */
    background-color: #28572d; /* Optional background for aesthetics */
    margin-top:10px;
    border-radius:10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about {
    padding: 40px 20px; /* Add padding for spacing */
    background-color: #E7F0DC; /* Optional: background color for the section */
    border-radius: 10px; /* Optional: rounded corners */
    margin-bottom:10px;
    width: 88%;
    margin-left:5%;
    margin-right:5%;

}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1 1 50%;
    padding-right: 20px;
}

.about-content .about-text .about-h1{
    color: #3c4f29;
    font: 3em ;
    margin-bottom: 10px;
}

.about-content .about-text .about-p{
    color: #729762;
    font-weight: 500;
}
.about-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .about{
        margin-left: 3%;
        margin-right: 3%;
        width: 85%;
    }
    .about-content {
        flex-direction: column; /* Image moves below the text on smaller screens */
    }

    .about-text, .about-image {
        flex: 1 1 100%;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    .about-image img {
        max-width: 80%; /* Adjust as needed */
    }
}

.members h1 {
    text-align: center;
    color: #3c4f29;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background: #3c4f29;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid-item h3 {
    color: #ffffff;
    margin: 0 0 10px;
}
.grid-item p {
    color: #E7F0DC;
    margin: 0 0 10px;
}


/* Redevelopment page*/

/* Main Container */
.item-list {
    padding: 10px;
    background-color: #3c4f29;
    min-height: 75vh;
}

.item-list h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #ffffff;
}

/* Table-Like Design */
.table {
    display: table;
    margin-left:5%;
    margin-right:5%;
    width: 90%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table .item {
    display: table-row;
    border-bottom: 1px solid #ddd;
}

.table .item:nth-child(even) {
    background-color: #f8f8f8;
}

.table .item h3,
.table .item p,
.table .item a {
    display: table-cell;
    padding: 15px;
    vertical-align: middle;
}

.table .item h3 {
    font-size: 1.2em;
    color: #3c4f29;
    text-align: left;
}

.table .item p {
    text-align: center;
    font-size: 1em;
    color:#729762;
}

.table .item a {
    text-align: right;
    color: #3c4f29;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.table .item a:hover {
    color: #ffcd00;
}

/* Pagination Styles */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

#pagination button {
    padding: 10px 20px;
    background-color: #004f8c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#pagination button:hover:not([disabled]) {
    background-color: #ffcd00;
}

#pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pagination #current-page {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
}


/* Mobile View */
@media screen and (max-width: 768px) {
    .table {
        display: block;
        margin-left: 3%;
        margin-right: 3%;
        width: 85%;
        overflow-x: auto; /* Enable horizontal scrolling for wide tables */

    }

    .table .item {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }

    .table .item h3,
    .table .item p,
    .table .item a {
        display: block;
        padding: 10px;
        text-align: left;
    }

    .pagination button {
        font-size: 0.9em;
        padding: 8px 10px;
    }
}

/* Apply flexbox to the body and ensure the footer stays at the bottom */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Main content takes available space, pushing the footer down */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Content starts at the top */
}

/* Gallery Section */
.gallery {
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff;
}

.gallery h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #3c4f29;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 20px;
    padding: 10px;
}

/* Postcard Styles */
.gallery-container .postcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 40vh; /* Fixed height for uniform postcard size */

}

.gallery-container .postcard img {
    width: 100%;
    height: 40vh; /* Fixed height for the image section */
    object-fit: cover; /* Ensures images are cropped to fit */

}

.gallery-container .postcard .caption {
    padding: 10px;
    font-size: 1em;
    color: #333;
    text-align: center;
}

.gallery-container .postcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1d1e20;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media screen and (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(1, 1fr); /* 1 column for mobile */
    }

    .header h1 {
        font-size: 1.5em;
    }

    .gallery h2 {
        font-size: 1.5em;
    }
}
