/* Prevent lateral scrolling on mobile */
/* Ensure no lateral scrolling */
body, html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
  
  h1, h2 {
    font-weight: 700;
  }
  
  footer {
    font-size: 0.9rem;
  }
  
  header .btn-primary {
    background-color: #007bff;
    border: none;
  }
  /*NAV AND HEADER STYLES*/

  /* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020; /* Ensures it stays above other elements */
    background-color: rgba(255, 255, 255, 0.8); /* Transparent white background */
    backdrop-filter: blur(5px); /* Adds a subtle blur effect for a modern look */
    border-bottom: 1px solid #ccc; /* Medium grey bottom border */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add subtle shadow for better visibility */
  }

@media (min-width: 991px){
  .offcanvas-menu{
    visibility: hidden;
  }
}

/* Off‑canvas Menu & Overlay for Mobile */
@media (max-width: 991px) {
  .navbar{
      border: none;
      outline: none !important;
      box-shadow: none !important;
  }
  .navbar-toggler {
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }
    
    .navbar-toggler:focus {
      outline: none !important;
      box-shadow: none !important;
    }
  .offcanvas-menu {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right: 1px solid #000000;
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden off-screen */
    width: 250px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
    transition: left 0.3s ease;
    z-index: 1200;
    padding: 1rem;
  }
  .offcanvas-menu .nav-item:first-child {
      margin-top: 143px;
    }
  .offcanvas-menu.open {
    left: 0;
  }
  
  .offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    z-index: 1190;
  }
  
  .offcanvas-overlay.show {
    display: block;
    
  }
   /* Style for mobile nav links in the offcanvas menu */
    .offcanvas-menu .nav-link {

      display: block;
      padding: 0.75rem 1rem;
      background: transparent;
      /* Define a transparent border by default to reserve space */
      border: 2px solid transparent;
      border-radius: 8px;
      color: #000000; /* vibrant pink text */
      transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
      box-sizing: border-box;
      font-weight: bold;
    }
    
    .offcanvas-menu .nav-link:hover,
    .offcanvas-menu .nav-link:focus,
    .offcanvas-menu .nav-link:active {
      background: #000;
      /* Keep the border color transparent so no visible border appears */
      border-color: transparent;
      color: #ff0000 !important;
      outline: none;
      box-shadow: none;
    }
  
}



  /* HERO STYLES*/
  .hero-section {
    height: 75vh; /* Adjust height as needed */
    max-height: 800px; /* Optional: Prevents image from becoming too large */
    overflow: hidden;
    position: relative;
  }
  
  .hero-section img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
  
  .hero-overlay {
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent black overlay over the image */
  }
  
  .text-panel {
    background: rgba(0, 0, 0, 0.4); /* Opaque panel with transparency */
    border-radius: 8px; /* Rounded corners for the panel */
    padding: 20px;
    max-width: 800px; /* Optional: Limits the width of the text panel */
  }
  /* Small viewport adjustments */
@media (max-width: 576px) {
    .hero-section img {
      object-position: right; /* Aligns image to the left on small screens */
    }
  }
  /* Styles specific to the left-aligned hero section */
.hero-left-aligned {
    background-color: #f8f9fa; /* Light grey background for contrast */
  }
  
  .hero-left-aligned .hero-left-img {
    border-radius: 10px; /* Rounded edges for the image */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  }
  
  .hero-left-aligned .hero-left-title {
    color: #343a40; /* Dark grey for the title */
  }
  
  .hero-left-aligned .hero-left-lead {
    font-size: 1.25rem; /* Slightly larger lead text */
    color: #6c757d; /* Muted grey for the lead text */
  }
  
  .hero-left-aligned .hero-left-text {
    font-size: 1rem;
    color: #495057; /* Standard dark grey for body text */
  }
  
  .hero-left-aligned .text-warning {
    color: #ffc107; /* Bright yellow for playful emphasis */
  }

  /*STYLES FOR HISTORY PAGE*/

  .history-timeline img {
    max-height: 400px; /* Limits image height for consistency */
    object-fit: cover; /* Ensures image remains visually appealing */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Adds subtle shadow for depth */
  }
  
  .history-timeline h2 {
    color: #343a40; /* Dark grey for titles */
  }
  
  .history-timeline p {
    font-size: 1rem;
    color: #6c757d; /* Muted grey for text */
  }
  .img-half {
    max-width: 80%; /* Reduce image size to 50% */
    height: auto;   /* Maintain aspect ratio */
  }
  
  .figure {
    text-align: center; /* Center-align figure and caption */
    margin-bottom: 1rem; /* Add spacing below figure */
  }
  
  .figure-caption {
    font-size: 0.9rem; /* Smaller font for captions */
    color: #6c757d;    /* Muted grey color for captions */
  }
  .hover-overlay {
    transition: opacity 0.3s ease;
  }
  
  .position-relative:hover .hover-overlay {
    opacity: 1;
  }
  img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
  .counter {
    font-size: 2.5rem;
    color: #007bff; /* Primary color for emphasis */
    transition: all 0.3s ease-in-out;
  }
  
  .counter:hover {
    transform: scale(1.1); /* Subtle zoom on hover */
  }



  /*GALLERY STYLES*/
  
   /* Masonry Layout Styling */
   .masonry {
    column-count: 3; /* Number of columns */
    column-gap: 1rem; /* Space between columns */
  }
  .masonry-item {
    break-inside: avoid; /* Prevent breaking inside columns */
    margin-bottom: 1rem; /* Space between items */
  }
  .masonry-item img {
    width: 100%; /* Ensure images fit their containers */
    display: block; /* Remove inline spacing for images */
    border-radius: 0.5rem; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  }
  .masonry-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    transition: transform 0.3s ease;
  }