/* ---------- GLOBAL STYLES ---------- */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

/* ---------- HEADER ---------- */
header {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-sizing: border-box;
}
/* 1. Hide the logo image on the home page */
.home-page header img {
  display: none;
}

/* 1. Hide the logo image on the home page and display on all other pages*/
body:not(.home-page) header img {
  /* Set your desired width here. 
     This will override the inline width="250" on all pages other than home. */
  width: 250px; /* Example size: Adjust this value as needed */
  height: auto; 
}

/* 1. Hamburger Button (Hidden by default on large screens) */
.menu-toggle {
  display: none; /* Hide on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: rgb(0, 0, 0); /* Use your existing link color */
  cursor: pointer;
  padding: 5px;
  z-index: 20; /* Ensure it's above the menu */
}

/* 2. Navigation List Styling */
nav ul {
  list-style: none;
  display: flex; /* Default desktop view: horizontal */
  gap: 15px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: color 0.3s;
}
nav ul li a:hover {
  text-decoration: underline;
}

/* --- MOBILE VIEW (Max-width 768px) --- */
@media (max-width: 768px) {
  
  header {
    /* Keep the logo and menu button on one row */
    padding: 10px 20px;
  }

  /* Show the hamburger button */
  .menu-toggle {
    display: block; 
  }

@media (max-width: 768px) {
  
  /* ... existing header and menu-toggle styles ... */

  /* Hide the menu links and prepare for vertical display */
  nav ul {
    position: absolute; /* Change to 'absolute' or 'fixed' if preferred, but it must be removed from the flow if it's over the content */
    top: 100%;       /* Position it right below the header */
    right: 0;
    width: 100%;     /* Make it full width for a cleaner look */
    
    /* 🎯 CRITICAL CHANGE 1: Start closed with max-height: 0 */
    max-height: 0; 
    overflow: hidden; /* Hide the content that spills over */
    
    /* Reset background-color property: use background-color: rgba(255, 144, 21, 0.95); or similar */
    background-color: rgba(255, 144, 21, 0.95); 
    flex-direction: column; 
    align-items: center;
    padding-top: 0;       /* Reset padding since content is hidden */
    padding-bottom: 0;    /* Reset padding since content is hidden */
    
    /* 🎯 CRITICAL CHANGE 2: Replace transform with transition on max-height */
    transform: none; /* Remove translateX from here */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
  }
  
  /* ... rest of the mobile styles ... */
}

  /* Class added by JavaScript to show the menu */
nav ul.active {
    /* 🎯 CRITICAL CHANGE 4: Animate to a height larger than the content 🎯 */
    max-height: 500px; /* Needs to be larger than the actual content height */
    
    /* Reintroduce padding for visible links */
    padding-top: 10px; 
    padding-bottom: 20px; 
    
    /* Remove transform: translateX(0); */
    transform: none; 
}

  nav ul li {
    width: 80%;
    text-align: center;
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
}

/* --- DESKTOP MEDIA QUERY (Min-width 768px) --- */
@media (min-width: 768px) {
  header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 1%;
  }
  /* Ensure the navigation is always visible and horizontal on desktop */
  nav ul {
    transform: translateX(0) !important; 
    display: flex !important;
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  width:100%;
  height: 80vh;
  background: url('../images/home_image\ 1920x1080.webp') no-repeat center center/100% auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
  padding: 0 10%;
  box-sizing: border-box;
}
.hero img {
  margin-bottom: -40px;
  max-width: 90%;
  height: auto;
  width: 600px;
}
.hero .btn {
  background: #FF9015;
  color: #fdfdfd;
  padding: 20px 35px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.hero .btn:hover {
  background: #ffdb4d;
}
.hero-headline {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Move the start of the text to the center horizontally */
  transform: translate(-50%,-50%); 
  text-align: center;
  color: #f0f0f0; /* white color */
  font-size: 80px; /* BIG */
  font-weight: 800; /* BOLD */
  letter-spacing: 2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
   z-index: 5;
  width: 90%; /* Give it a width so centering works reliably */
  padding: 0; /* Remove unnecessary padding-left */
}

/* Media Query to adjust size on smaller screens */
@media (max-width: 768px) {
   .hero-headline {
    font-size: 50px;
    top: 50%; /* Keep it centered vertically on mobile */
    left: 50%; /* Keep it centered horizontally on mobile */
    transform: translate(-50%, -50%); /* Use translate for perfect centering */
    width: 90%;
  }
}

/* Malayalam About Section */
.about-malayalam {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 10%;
  text-align: justify;
  line-height: 1.9;
  font-size: 20px;
  color: #222;
  font-family: 'Noto Sans Malayalam', sans-serif;
}


/* ---------- PEOPLE ABOUT US / TESTIMONIALS SECTION ---------- */

/* ---------- PEOPLE ABOUT US / TESTIMONIALS SECTION ---------- */
.testimonials {
  padding: 60px 5%; /* Adjust padding for spacing */
  background-color: #fff; /* White background as per image */
  text-align: center;
}

.testimonials-header {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.testimonials-header span:first-child {
  color: #FF8500; /* Dark color for 'PEOPLE' */
}

.testimonials-header span:last-child {
  color: #6b6b6b; /* Dark green for 'ABOUT US' */
}

.testimonials-subheader {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto 50px auto; /* Centered, with space below */
  line-height: 1.5;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  border-top: 1px solid #ddd; /* Top border for the grid as a whole */
  border-left: 1px solid #ddd; /* Left border for the grid */
  max-width: 900px; /* Max width for the grid container */
  margin: 0 auto;
}

.review-card {
  display: flex;
  align-items: flex-start; /* Align text to the top */
  padding: 30px;
  text-align: left;
  border-right: 1px solid #ddd; /* Vertical separator */
  border-bottom: 1px solid #ddd; /* Horizontal separator */
}

.reviewer-avatar {
  width: 70px; /* Size of the circle */
  height: 70px;
  border: 2px solid #888; /* Grey border for avatar */
  border-radius: 50%; /* Make it a circle */
  /* Remove the following three lines, as they are no longer needed to center the SVG
  display: flex;
  align-items: center;
  justify-content: center; */
  margin-right: 20px;
  flex-shrink: 0; /* Prevent avatar from shrinking */
  /* Add overflow hidden to clip the image within the border radius */
  overflow: hidden; 
}

/* REMOVED: .reviewer-avatar svg styles are removed */

/* NEW STYLES: For the reviewer photos */
.reviewer-photo {
  width: 100%; /* Fill the 70px width of the parent */
  height: 100%; /* Fill the 70px height of the parent */
  object-fit: cover; /* Important: Ensures the image covers the area without distorting */
  display: block; /* Removes any default inline spacing issues */
}

.reviewer-designation {
  /* NEW: Force the designation onto its own line */
  display: block; 
  
  font-size: 14px; /* A fixed size is usually better than '0.7em' when using display: block */
  font-weight: 400; /* Makes it lighter than the name */
  text-transform: none; /* Removes the uppercase transformation */
  color: #666; /* A slightly lighter color than the name */
  
  /* ADJUSTMENTS: Remove margin-left and add margin-top for spacing */
  margin-left: 0; 
  margin-top: 5px; /* Adds a small vertical space between the name and designation */
}

/* You may also want to slightly adjust the main H4 margin for better spacing overall */
.review-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  /* Reduced bottom margin since the designation now provides the spacing */
  margin: 0 15 5px 0; 
  text-transform: uppercase;
}

.review-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Dots for pagination/indication */
.reviews-dots {
  text-align: center;
  margin-top: 40px;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
}
.dot.active {
  background-color: #FF8500; /* Orange color from your existing palette */
}
@media (min-width: 768px) {
  .reviews-grid {
    /* Tablet/Desktop View: 2 equal columns */
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .review-card {
    /* CRITICAL FIX: Forces the avatar and content to stack vertically */
    flex-direction: column;
    
    /* Center the card content for a cleaner mobile stack */
    text-align: center;
    align-items: center; /* Centers the items (avatar, h4, p) */
  }

  .reviewer-avatar {
    /* Removes the right margin that was pushing the content */
    margin-right: 0;
    /* Adds bottom margin to separate the avatar from the text below it */
    margin-bottom: 15px; 
  }
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 0 5%;
  margin-top: 40px;
  text-align: center;
}
.gallery h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #6b6b6b;
}
/*.carousel-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  height: 650px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 300%;
  height: 100%;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel-indicators {
  text-align: center;
  margin-top: 15px;
}
.indicator-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
}
.indicator-dot.active {
  background-color: #6A0C0C;
}*/

/* ---------- UPCOMING EVENTS ---------- */
.upcoming {
  padding: 60px 0%;
  background-color: #f0f0f0;
  text-align: center;
}
.upcoming-header {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 40px;
}
.upcoming-header span:first-child {
  color: #FF8500;
}
.upcoming-header span:last-child {
  color: #6b6b6b;
}
.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.upcoming-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
}
.upcoming-image-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: #fff;
}
.upcoming-image-container img {
  width: 100%;
  height: auto;
  display: block;
}
.upcoming-card h4,
.upcoming-card p {
  color: #6b6b6b;
  margin: 0 10px 10px;
}
.upcoming-btn {
  display: inline-block;
  background-color: #FF8500;
  color: #fff;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  margin: 0 0 10px 10px;
  transition: background-color 0.3s ease;
}
.upcoming-btn:hover {
  background-color: #ff9933;
}
/* Video Section */
.intro-video {
  padding: 60px 10%;
  text-align: center;
  background-color: #f9f9f9;
}

.intro-video h3 {
  font-size: 28px;
  color: #004080;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.intro-video video {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 900px;
  width: 100%;
}


/* Events Section - NEW HORIZONTAL CARD STYLE */
.events {
  padding: 60px 5%;
  background-color: #f0f0f0; /* Light gray background to separate from other sections */
  text-align: center;
}

.events h3 {
  font-size: 32px;
  font-weight: 800;
  color: #6b6b6b; /* Using the deep red color from the footer */
  margin-bottom: 40px;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to stack vertically on mobile */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.event-card {
  /* This is the horizontal card structure */
  display: flex;
  flex-direction: column; /* Stack image/content vertically on mobile */
  background: #f9f9f9;
  border: 6px solid #ffffff; /* Deep red border matching footer */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px 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 8px 20px rgba(0, 0, 0, 0.2);
}

.event-image-container {
  width: 100%; /* Full width on mobile */
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-content {
  padding: 20px 15px;
  text-align: center;
}

.event-content h4 {
  color: #6b6b6b; /* Deep red for the title */
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 1px;
}

.event-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.event-buttons {
    margin-top: 15px; /* Space above buttons */
}

.read-btn {
  /* Use the yellow/orange color from the hero/upcoming buttons */
  background: #FF9015;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
  transition: background 0.3s ease;
}

.read-btn:hover {
  background: #ffdb4d;
}

/* Hide the 'Share' button if it's not needed for this card style */
.share-btn {
    display: none; 
}


/* Media Query for Tablet/Desktop (3 Cards Horizontal) */
@media (min-width: 768px) {
  .event-grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns horizontal */
  }

  .event-card {
    /* Revert to vertical card flow on desktop grid, but with the new styling */
    flex-direction: column; 
    height: auto; /* Allow height to adjust */
  }
}



/* ---------- GET IN TOUCH / CONTACT SECTION ---------- */
.contact-section {
  padding: 80px 5%; /* Generous padding top/bottom */
  background-color: #f9f9f9; /* Light grey background */
  text-align: center;
}

.contact-header {
  font-size: 40px;
  font-weight: 800;
  color: #6b6b6b; /* Dark green color from your palette */
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.contact-intro {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 60px auto; /* Centered, with space below */
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 40px; /* Space between cards/items */
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  background-color: #fff; /* White background for each item */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 70px; /* Size of the SVG icon */
  height: 70px;
  margin-bottom: 25px;
  display: block; /* Ensures margin auto works */
  margin-left: auto;
  margin-right: auto;
}

/* Specific styling for text within each contact item */
.contact-item h4 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.contact-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}
/* Style for phone/email links if needed, to remove underline */
.contact-item p a {
    color: #666;
    text-decoration: none;
}
.contact-item p a:hover {
    color: #FF8500; /* Highlight on hover */
}


/* Tablet and Desktop Styles (3 columns) */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns on larger screens */
    gap: 30px;
  }
}

/* Larger desktop screens */
@media (min-width: 1024px) {
  .contact-header {
    font-size: 48px;
  }
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }
  .event-image {
    width: 100%;
  }
  .event-content {
    width: 100%;
    text-align: center;
  }
}


/* ---------- TEAM SECTION NATIONAL ---------- */
.team-section {
    background-color: #f9f9f9; /* Light grey background */
    padding: 80px 5%; /* Generous vertical padding */
    text-align: center; /* Center content horizontally */
}

.team-header {
    font-size: 48px; /* Large font size for the title */
    font-weight: 800;
    color: #333; /* Dark color for the title */
    margin-bottom: 50px; /* Space below the title */
    letter-spacing: 2px;
    text-transform: uppercase; /* All caps as in the image */
}

.team-image-container {
    max-width: 620px; /* Matches your specified image width */
    margin: 0 auto; /* Centers the image container */
    padding: 20px; /* Padding around the image inside the container */
    background-color: #fff; /* White background for the image frame */
    border-radius: 12px; /* Slightly rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Soft shadow */
    box-sizing: border-box; /* Include padding in width/height */
}

.team-image-container img {
    max-width: 100%; /* Ensures image is responsive and fits container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    border-radius: 8px; /* Slightly rounded image corners */
}



/* ---------- EMIRATE COMMITTEE SECTION ---------- */
.emirate-committees-section {
    background-color: #f0f2f5; /* A slightly different background color to distinguish it */
    padding: 80px 5%;
    text-align: center;
}

.emirate-committees-header {
    /* Fluid typography for large titles, similar to previous suggestion */
    font-size: clamp(36px, 6vw + 1rem, 60px); /* Larger font for the main section title */
    font-weight: 800;
    color: #222;
    margin-bottom: 60px; /* More space below the main title */
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.emirate-committees-grid {
    display: grid;
    /* Two columns for larger screens, stacking for smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; /* Space between grid items */
    max-width: 1200px; /* Max width for the grid to prevent it from getting too wide */
    margin: 0 auto; /* Center the grid */
}

.emirate-committee-item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); /* Slightly stronger shadow */
    padding: 25px; /* Padding inside each committee item */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emirate-committee-item:hover {
    transform: translateY(-8px); /* Subtle lift effect on hover */
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.emirate-committee-item h3 {
    font-size: 30px; /* Font size for emirate names (Dubai, Abu Dhabi, etc.) */
    font-weight: 700;
    color: #444;
    margin-bottom: 25px; /* Space between emirate name and image */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.committee-image-wrapper {
    max-width: 320px; /* Max width for individual images */
    width: 100%; /* Ensures it scales down */
    margin: 0 auto;
    border-radius: 10px; /* Rounded corners for the image wrapper */
    overflow: hidden; /* Ensures image corners are also rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Light shadow around individual images */
}

.committee-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px; /* Image corners matching the wrapper */
}

/* Media query for smaller screens: stack committees in a single column */
@media (max-width: 768px) {
    .emirate-committees-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 30px; /* Slightly less gap when stacked */
    }

    .emirate-committees-header {
        margin-bottom: 40px;
    }
}

/* Even smaller screens adjustments */
@media (max-width: 480px) {
    .emirate-committees-section {
        padding: 40px 3%;
    }

    .emirate-committee-item {
        padding: 20px;
    }

    .emirate-committee-item h3 {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .emirate-header {
        font-size: 36px;
        margin-bottom: 30px;
    }
    .emirate-grid {
        gap: 20px;
    }
    .emirate-card {
        padding: 15px;
        border-radius: 8px;
    }
    .emirate-card img {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .emirate-header {
        font-size: 28px;
        letter-spacing: 1px;
    }
    .emirate-card img {
        width: 100px;
        height: 100px;
    }
}
/* Responsive adjustments for 2 columns on larger screens */
@media (min-width: 768px) {
    .emirate-committee-header {
        font-size: 36px;
    }
    .emirate-committee-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on desktop/tablet */
        gap: 40px; /* Increase gap on larger screens */
    }
}

@media (max-width: 480px) {
    .emirate-committee-header {
        font-size: 28px;
        letter-spacing: 1px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-header {
        font-size: 36px;
        margin-bottom: 30px;
    }
    .team-image-container {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .team-header {
        font-size: 28px;
        letter-spacing: 1px;
    }
    .team-image-container {
        padding: 10px;
    }
}


/* ---------- JOIN COMMUNITY FORM SECTION ---------- */

.form-header {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 50px;
    line-height: 1.2;
    
    /* --- ALIGNMENT FIX --- */
    text-align: center; 
    
    /* --- COLOR CHANGE --- */
    color: #6b6b6b; /* Grey- Matches image color */
    /* If you want it a different color, change the hex code above. */
}
.form-fields {
    position: relative; 
    z-index: 2;
    max-width: 600px; /* INCREASED MAX-WIDTH to better match the image proportions */
    width: 100%;
    /* Centering the inputs inside the container */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Ensures the fields are centered horizontally */
    margin: 0 auto 20px auto; /* Centers the whole form-fields container relative to its parent */
    padding: 0 20px; /* Add internal padding to ensure spacing from the side borders */
    box-sizing: border-box; 
}

.form-fields input[type="text"],
.form-fields input[type="email"],
.form-fields textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Name and Email fields: ensures they fill the width evenly */
.form-fields .small-input {
    flex: 1 1 calc(50% - 7.5px); /* FIX: Calculate width minus half the gap for perfect 50/50 split */
    min-width: 150px; 
}

/* Message field (Large area) */
.form-fields textarea {
    width: 100%; /* Ensures message field always spans the full width */
    min-height: 150px;
    resize: none;
}

/* Submit Button - UPDATED FOR ALIGNMENT */
.form-fields button[type="submit"] {
    background-color: #FF8500;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Ensures button spans the full width of the fields */
    margin-top: 10px;
}
/* ---------- FOOTER ---------- */
.new-footer {
  background: #6b6b6b;
  color: white;
  padding: 20px 5%;
  display: grid;
  /* Use auto-fit to allow multiple columns on wider screens, ensuring space for emails */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 15px;
  /* Add justify-content to center the entire set of grid items within the footer */
  justify-content: center; 
  margin-top: 50px;
}

/* This is the individual item/section (like the contacts section) */
.new-footer > div { /* Target all direct children of .new-footer */
    /* Ensure the text inside the grid item is centered */
    text-align: center;
}

/* Specific centering for the contact-info text (like the email IDs) */
.new-footer .contact-info {
    /* Set max-width to the size needed for the contact info text */
    max-width: 250px; 
    /* Center the narrow contact block itself within the centered grid column */
    margin: 0 auto; 
}

.new-footer .contact-info p {
    /* CRITICAL FOR SINGLE LINE: Prevents the email from wrapping */
    white-space: nowrap; 
}

/* --- The rest of your existing CSS below (no changes needed here) --- */

.new-footer .footer-logo-section img {
  width: 300px;
  margin-bottom: -80px;
}
.new-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.new-footer ul li {
  margin-bottom: 10px;
}
.new-footer ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}
.new-footer ul li a:hover {
  color: #ffcc00;
}
.copyright {
  margin-top: 0px;
  font-size: 14px;
  text-align: center; 
  grid-column: 1 / -1; 
}

/* ---------- Desktop responisve---------- */
@media (min-width: 768px) {
  header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 1%;
        /* KEEP BELOW lines if NEED CENTERED FOR HEADER
        if header is set to position: absolute; is still active globally */
    left: 50%;
    transform: translateX(-50%);
  }
  /* FOR MOVING MENU (WHEN LOGO HIDDEN) LEFT TO RIGHT */
    .home-page header {
    /* Since the logo (left item) is hidden, we push the menu (right item) to the right. */
    justify-content: flex-end; 
    padding-top: 50px;     /* VERTICAL FIX: Add back padding/space equivalent to the logo height */
    padding-bottom: 50px;
  }
    .menu-toggle {
    display: none !important; /* keeps menu icon OFF on desktop view */
  }
  header img {
    height: 150px;
  }
    .hero img {
    /* Change from -40px (global) to -70px (desktop) 
       Adjust this value (e.g., -60px, -80px) until the gap is right. */
    margin-bottom: -110px; 
  }
  nav ul {
    gap: 25px;
  }
  .gallery {
    padding: 0 10%;
  }
  .carousel-container {
    height: 450px;
  }
  .upcoming-grid {
    grid-template-columns: 1fr 1fr;
  }
  .new-footer {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 20px 10%;
    text-align: left;
  }

}
/* ---------- HERO IMEGE ADJUSTMENT FOR MOBILE SECTION ---------- */

@media (max-width: 768px) {
  
  header {
    /* Keep the logo and menu button on one row */
    padding: 10px 0px;
    justify-content: flex-start; /* REMOVES JUSTITY IN MOBILE VIEW : Resets from 'space-between' */ */
  }

   /* header logo size */
    header img {
    height: 120px;
    margin-left: 20px;
    margin-right: auto; /* Auto-margin pushes the next element (menu-toggle) as far right as possible */
  }
    /* FOR MOVING MENU (WHEN LOGO HIDDEN) LEFT TO RIGHT */
    .home-page .menu-toggle {
    margin-left: auto; /* Ensures it grabs all available space and is pushed to the right */
    margin-right: 50px; /* Keep your original right margin */
  }
  

  /* Show the hamburger button */
  .menu-toggle {
    display: block; 
    margin-right: 50px;  /* : Add margin to push the button away from the right edge */
  }
    .home-page header {
    justify-content: flex-end;
    /* 🎯 VERTICAL FIX: Add back padding/space equivalent to the logo height */
    padding-top: 25px; 
    padding-bottom: 25px; 
    /* Adjust '25px' until the hamburger icon looks properly centered vertically. */
  }


  /* Hide the menu links and prepare for vertical display */
  nav ul {
    /* ... existing nav ul styles ... */
  }


  .hero {
    /* This overrides the desktop's '100% auto' */
    background-size: cover; 
    /* Ensures the center of the image is visible on the narrow screen */
    background-position: center center; 
  }

  /* Class added by JavaScript to show the menu */
  nav ul.active {
    /* ... */
  }
    .about-malayalam {
    font-size: 15px; /* Decreases the font size from 20px */
    line-height: 1.6; /* Adjust line-height slightly for better readability at smaller size */
    padding: 0 7%; /* Reduce horizontal padding for better use of screen space */
  }
  

}
/* --- GALLERY GRID STYLES --- */

.gallery-section h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #6A0C0C; /* Deep red from your existing palette */
    margin-top: 40px;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    /* Grid: Automatically fits items, minimum width of 250px per column */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 5%;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 250px; /* Fixed height for uniform gallery items */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: #FF9015; /* Orange highlight on hover */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the card without distortion */
    display: block;
}


/* --- LIGHTBOX (MODAL) STYLES --- */

.lightbox {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh; /* Prevents image from being too tall on screen */
    object-fit: contain; 
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #FF9015;
}

/* Image Caption */
.caption {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

/* Modal Animation */
@keyframes zoom {
  from {transform:scale(0.1)} 
  to {transform:scale(1)}
}