.navbar-custom {
    background: linear-gradient(rgba(0,0,0, 0.1), rgba(0,0,0,0.3)); 
    border-bottom: 1px solid #F1F1F1;
    /* background: rgba(62, 20, 23, 1); */
  }

  .navbar {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  }
  .navbar.fade-out {
    opacity: 0;
    visibility: hidden;
  }
  .navbar.fade-in {
    opacity: 1;
    visibility: visible;
  }
  /* hero video start */

header {
  position: relative;
  background-color: black;
  height: 75vh;
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}

header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

header .container {
  position: relative;
  z-index: 2;
}

header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(62,20,23,0.1), rgba(0, 0, 0, 0.9));;
  opacity: 0.5;
  z-index: 1;
}

.black-button {
  height: auto;
  width: auto;
  padding: 20px;
  border-radius: 20px;
  background-color: black;
  color: white;
  text-decoration: none;
  /* box-shadow: 20px 20px 5px 12px rgba(62,20,23,0.1); */
}

/* Media Query for devices withi coarse pointers and no hover functionality */

/* This will use a fallback image instead of a video for devices that commonly do not support the HTML5 video element */

@media (pointer: coarse) and (hover: none) {
  header {
    background: url('/public/assets/images/ngs_building_cropped.png') black no-repeat center center scroll;
  }

  header video {
    display: none;
  }
}

  /* hero video end */

  /* Set the height of the carousel to 95vh */
  .carousel-item {
    height: 70vh;
    position: relative; /* To position the overlay */
  }

  /* Make sure the image covers the carousel item */
  .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  /* Apply a gradient overlay */
  .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(62,20,23,0.1), rgba(0, 0, 0, 0.9)); /* Original gradient */

    z-index: 1; /* Ensure the gradient is above the image */
  }

  
  .about-section {
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(62,20,23,0.1)); /* Original gradient */
  }

  .about-section h1 {
    font-size: 72px;
    font-style: bold;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)); /* Gradient colors */
    -webkit-background-clip: text; /* Works in Webkit browsers like Chrome/Safari */
    background-clip: text; /* Standard syntax */
    color: transparent; /* Makes the text transparent */
  }

  .light-white-text {
    color: #F7DEE0;
  }


  .sticky-custom-tab {
    height: 5rem;
    max-height: 97px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(62,20,23,1), rgba(62, 20, 23, 0.9));
    border: 1px solid  #A68588;
  }

  .tabs-container {
    position: sticky;
    top: 0;
    z-index: 1050;
    overflow: visible;
  }

  /* .sticky-custom-tab a {
    color:  #A68588;
  } */

  .sticky-custom-tab .nav-link {
    color: #A68588;
  }

  /* Custom active tab color */
  .sticky-custom-tab .nav-link.active {
    color: white; /* Optional: to change the text color */
  }
  
  /* Optional: Change the hover state color */
  .sticky-custom-tab .nav-link:hover {
    color: white; /* Hover color */
  }

  #story-tab {
    border-right: 1px solid #A68588;
  }

  #legacy-tab {
    border-right: 1px solid #A68588;
  }

  .card-img-top-custom {
    width: 9.79rem;  /* remove if not required */
    height: 14.214rem;
    object-fit: cover;
  }


  #pastPresidents .card {
    /* height: 20rem;
    width: 100%; */
    width: 9.787rem;  /* remove if not required */
    height: 14.213rem;
  }

  #pastVicePresidents .card {
    /* height: 12rem;
    width: 100%; */
    width: 9.787rem;  /* remove if not required */
    height: 14.213rem;
  }

  #benefactors .card {
    /* height: 20rem;
    width: 100%; */
    width: 9.787rem;  /* remove if not required */
    height: 14.213rem;
  }

  


  table {
    width: 100%;
    border-collapse: collapse; /* Ensures borders are collapsed */
    table-layout: fixed;
    background-color: transparent; /* Background color for the table */
  }

  .col-equal {
    width: 33.33%; /* This will give each column 1/3 of the table width */
  }

  /* Add borders to table cells (th and td) */
  th, td {
    border: 1px solid #A68588; /* Border color */
    padding: 40px; /* Padding inside cells */
    text-align: center; /* Align text to the left */
    color: #F7DEE0;
  }



  /* Legacy tab styles */

  #legacy {
    height: 100vh;
    width: 100%;
    background-color: #FFF9EE;
  }
  

   /* Remove any background, borders or styling from the tabs */
  #legacy .nav-link {
    background: none;
    border: none;
    padding: 0;
    color: #3E1417; /* Darker text color */
    font-weight: bold;
    cursor: pointer;
    text-align: left;
  }
  

  /* Increase vertical space between items */
  #legacy .nav-item {
    margin-bottom: 40px; /* Increased space between items */
    font-size: 16px;
    font-weight: lighter;
  }

  /* Active item - add a longer vertical bar to the right side */
  #legacy .nav-link.active {
    color: #3E1417;
    border-right: 2px solid #3E1417; /* Vertical active indicator */
    padding-right: 20px; /* Padding to space out the active bar */
    font-size: 22px;
  }

   /* Disabled item */
   #legacy .nav-link.disabled {
    color: #3E1417;
    border-right: none; /* Vertical active indicator */
    cursor: pointer;
  }

  /* Remove the vertical line from the timeline */
  .timeline {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    position: relative;
  }

  .timeline::before {
    content: none; /* Removed the vertical line */
  }

  /* Each timeline item (tab) */
  .timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 35px;
    color: #3E1417; /* Darker text color */
    cursor: pointer;
  }

  /* Active item styling - optional (optional, can be removed) */
  /* .timeline-item.active::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    border: 2px solid white;
  } */

  /* Styling for each tab content */
  #legacy .tab-content {
    /* background-color: #f8f9fa; */
    padding: 20px;
    /* border-radius: 5px; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  }

  /* Make the tabs scrollable when necessary */
  #legacy .tab-content {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
  }

  /* Smooth Fade-In-Up Animation */
  #legacy .tab-pane {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
  }

  .silver-jubilee-image {
    height: 27.125rem;
    width: 48.312rem;
    background: url('/assets/images/sjv1.PNG');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    position: relative;
  }

  .silver-jubilee-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 85%, rgba(255, 255, 255, 0.5)); /* More visible gradient */
    z-index: 1;
  }


  .golden-jubilee-image {
    height: 27.125rem;
    width: 48.312rem;
    background: url('/assets/images/golden_jubilee_apj.PNG');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    position: relative;
  }

  .golden-jubilee-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 85%, rgba(255, 255, 255, 0.5)); /* More visible gradient */
    z-index: 1;
  }


  .diamond-jubilee-image {
    height: 27.125rem;
    width: 48.312rem;
    background: url('/assets/images/diamond_jubilee.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    position: relative;
  }

  .diamond-jubilee-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 85%, rgba(255, 255, 255, 0.5)); /* More visible gradient */
    z-index: 1;
  }


  .view-photos-cta {
    position: absolute;
    right: -50px;
    bottom: 20px;
    border-radius: 50px;
    height: 100px;
    width: 100px;
    background-color: #3E1417;
    color: white;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-weight: lighter;
    padding: 20px;
    border: 2px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .golden-text {
    color:#A68126;
  }

  .kalam-image {
    height: 100px;
    width: 100px;
    background: url('/assets/images/abdul_kalam.jpg');
    background-position: center;
    background-size: contain;
    position: relative;
  }

  .kalam-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 85%, rgba(255, 255, 255, 0.5)); /* More visible gradient */
    z-index: 1;
  }

  #milestones .view-photos-cta {
    right: -10px;
    bottom: 20px;
  }

  /* Keyframes for fade-in-up animation */
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  /* Responsive styling for smaller screens */
  @media (max-width: 767px) {
    .timeline {
      flex-direction: row;
      justify-content: space-between;
    }

    .timeline-item {
      padding-left: 0;
    }

    .timeline::before {
      top: 10px;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
    }

    .timeline-item.active::before {
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
    }

    #legacy {
      max-height: 100vh;
      width: 100%;
      background-color: white;
      overflow-y: auto;
      scrollbar-width: none;
    }

    #members {
      max-height: 100vh;
      width: 100%;
      background-color: #3E1417;
      overflow-y: auto;
      scrollbar-width: none;
    }
  }



  /* Horizontal scrolling images */

  /* Style for each scroll area */
 .scroll-wrapper {
  width: 100%;    /* Full width */
  height: 50vh;   /* Full height for each scroll container */
  overflow: hidden; /* Hide overflow to simulate horizontal scrolling */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px; /* Add space between scroll areas */
}

/* Style for the scrollable content */
.scroll-box {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.item {
  width: 48.312rem;
  height: 27.125rem;
  margin-right: 40px;
  border-radius: 8px;
  background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#story .scroll-wrapper {
  height: 75vh;
  width: 90vw;
}
#story .item {
  height: 75vh;
  width: 90vw;
}

#story .item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


/* members styles */

#members {
  height: 100vh;
  width: 100%;
  background-color: #3E1417;
}


 /* Remove any background, borders or styling from the tabs */
#members .nav-link {
  background: none;
  border: none;
  padding: 0;
  color: white; /* Darker text color */
  font-weight: normal;
  cursor: pointer;
  text-align: left;
}


/* Increase vertical space between items */
#members .nav-item {
  margin-bottom: 40px; /* Increased space between items */
  font-size: 16px;
  font-weight: lighter;
}

/* Active item - add a longer vertical bar to the right side */
#members .nav-link.active {
  color: white;
  border-right: 2px solid white; /* Vertical active indicator */
  padding-right: 20px; /* Padding to space out the active bar */
  font-size: 22px;
}

 /* Disabled item */
 #members .nav-link.disabled {
  color: white;
  border-right: none; /* Vertical active indicator */
  cursor: pointer;
}

/* Remove the vertical line from the timeline */
.timeline {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  position: relative;
}

.timeline::before {
  content: none; /* Removed the vertical line */
}

/* Each timeline item (tab) */
#members .timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 35px;
  color: white; /* Darker text color */
  cursor: pointer;
}

/* Active item styling - optional (optional, can be removed) */
/* .timeline-item.active::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: #007bff;
  border-radius: 50%;
  border: 2px solid white;
} */

/* Styling for each tab content */
#members .tab-content {
  /* background-color: #f8f9fa; */
  padding: 20px;
  /* border-radius: 5px; */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

/* Make the tabs scrollable when necessary */
#members .tab-content {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: none;
}

/* Smooth Fade-In-Up Animation */
#members .tab-pane {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}