
/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --color-1: #0f1016;
  --text-color: #f0f0f0;
  --accent-color: #068617;
  --overlay-color: rgba(15, 16, 22, 0.7); /* Overlay color with transparency */

}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



html {
  font-size: 12pt;
  font-family: Poppins, Segoe UI, Tahoma, sans-serif;
}


/* Navigation Bar */
nav {
  height: 60px;
  background-image: url('images/kdknkdnd.png'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 71, 4, 0.9); /* Overlay */
  z-index: 1;
}

.links-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  z-index: 2; /* Ensure links are above overlay */
}

nav a {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  z-index: 2; /* Ensure links are above overlay */
}

.links-container a:not(.home-link):hover {
  background-color: var(--accent-color);
  color:#ffffff;
}



nav .home-link {
  margin-right: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav .home-link .logo {
  height: 55px; /* Adjust according to your design */
  width: auto;
}


.line1 {
  font-family: Poppins, Segoe UI, Tahoma, sans-serif;
  display: flex;
  line-height: 1.2;
  flex-direction: column;
  justify-content: left;
  margin-left: -20px;
  color: var(--text-color);
  font-size: 1.1rem; /* Adjust font size */
  font-weight: 400; /* Adjust weight */
}



nav svg {
  fill: var(--text-color);
  z-index: 2; /* Ensure icons are above overlay */
}

#sidebar-active {
  display: none;
}

.open-sidebar-button, .close-sidebar-button {
  display: none;
}

.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color:  rgb(255, 255, 255); /* Green color */
  color: rgb(16, 41, 6);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #218838; /* Darker green on hover */
  color: white;
}

.wrapper {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

main {
  padding: 20px;
}

footer{
  position: relative; /* Ensure the nav is positioned relative for the pseudo-element */
  background-image: url('images/kdknkdnd.png'); /* Path to your background image */
  background-size: cover; /* Adjusts the image to cover the entire nav */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents repeating the image */
  padding: 10px;
  overflow: hidden; /* Ensures nothing spills out of the nav */
  z-index: 1;
}

footer::before {
  content: ''; /* Required for pseudo-elements */
  position: absolute; /* Position absolutely within the nav */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 71, 4, 0.9); /* Green color with 90% opacity */
  z-index: -1; /* Overlay should be above the background image */
}

footer > * {
  position: relative; /* Ensure the nav content is above the overlay */
  z-index: 2; /* Content should be above the overlay */
}

#home {
  height: 92vh; /* Adjust this value as needed */
  position: relative;
  overflow: hidden;
  margin: 0;
}

#intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the section */
  z-index: -1;
}


.hover-popup {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(194, 139, 0, 0.9); /* Black transparent background */
  transform: translateY(100%);
  transition: transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.popup-text {
  color: #ffffff;
  font-size: 20px;
  text-align: left;
  padding: 10px;
  margin: 0;
}


#home:hover .hover-popup {
  transform: translateY(0); /* Slide up the popup */
}


/* Section Styling */
section {
  padding: 50px;
  text-align: center;
}


#mission {
  position: relative;
  background-image: url('images/Donate.png'); /* Ensure correct path to your background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px;
  overflow: hidden;
  border-radius: 5px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}


#mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 71, 4, 0.8); /* Slightly more transparent green overlay */
  z-index: 1;
}

#mission > * {
  position: relative; /* Ensure the nav content is above the overlay */
  z-index: 2; /* Content should be above the overlay */
  color: #ffffff
}




/* 280th Anniversary Section */
#anniversary {
  background-image: url('images/1775b615718992ee092cb93102190b09.jpg'); /* Ensure correct path to your background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0;
  position: relative;
  height: 100vh;
  overflow: hidden;
}


#anniversary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3); /* Slightly more transparent green overlay */
  z-index: 1;
}

#anniversary > * {
  position: relative; /* Ensure the nav content is above the overlay */
  z-index: 2; /* Content should be above the overlay */
  color: #ffffff
}


#anniversary h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff; /* St Jago color */
  margin-bottom: 20px;
  text-align: center;
}

#anniversary p {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 40px;
}


.left-section {
  height: 85vh;
  background-color: #000000;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  background-image: url('images/Anniversarysec2.png'); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  position: relative; /* Changed from flexbox to relative positioning */
  transform: translateY(-32px);
}

/* Ensure the content in the left section is centered */
.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Positioning the count-up animation at the bottom left */
.countup-container {
  position: absolute;
  bottom: 20px;  /* Adjust as needed */
  left: 20px;    /* Adjust as needed */
}

.countup {
  font-size: 4rem;
  font-weight: bold;
  color: #bec2bf; 
}


.image-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  transform: translateY(15px);
}


.image-collage img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Collage image sizes */
.img1, .img4{
  grid-column: span 1.5;
}

.img1{
  grid-column: span 1; /* Both img1 and img4 span one column */
  aspect-ratio: 1 / 1; /* Maintains a 1:1 aspect ratio */
  height: 300px; /* Or any desired height */
  width: 300px; /* Or any desired width */
}

.img4 {
  grid-column: 2 / 3; /* Second column */
  grid-row: 2 / 2; /* Same row as img1 */
  aspect-ratio: 1 / 1;
  height: 310px;
  width: 300px;
  transform: translateY(-85px); /* Adjust this value to move it higher */
  padding-top: 3%;
}


.img2, .img3 {
  grid-column: span 1;
}



#donations {
  position: relative;
  background-image: url('images/Donate.png'); /* Ensure correct path to your background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px;
  overflow: hidden;
  border-radius: 12px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}


#donations::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 71, 4, 0.8); /* Slightly more transparent green overlay */
  z-index: 1;
}

#donations > * {
  position: relative; /* Ensure the nav content is above the overlay */
  z-index: 2; /* Content should be above the overlay */
  color: #ffffff
}



h1, h2 {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add subtle shadow for better readability */
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

p {
  font-size: 1.2em;
  line-height: 1.6;
}

.donate-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #000000;
  background-color: #ffffff; 
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.donate-button:hover {
  color:#000000;
  background-color: #a6a6a6; 
  transform: scale(1.05);
}

.donate-button:active {
  background-color: #09a21b; 
  transform: scale(0.95);
}

.donate-button:focus {
  outline: 2px solid #09a21b; 
  outline-offset: 2px;
}

a.donate-button {
  text-decoration: none; 
}

#external-links {
  background-color: #f9f9f9;
}

.bg-color{
  background-color: rgb(15, 88, 15);
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hover effect for external links */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Ensure the card size remains consistent */
  /* You might want to specify a fixed width and height if needed */
  width: 100%; /* Adjust as needed */
  height: 100%; /* Adjust as needed */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  transform: translateY(5px);
}

/* Hover effect for external links */
.card:hover {
  transform: translateY(-10px); /* Moves the card up visually */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds shadow for visual effect */
  z-index: 1; /* Ensures card appears above other content */
}

.p-1{
  height: 48vh;
  
}

#credit {
  text-align: left;
}


@media(max-width: 900px) {
  .links-container {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    width: 300px;
    background-color: rgba(4, 23, 2, 1);
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
    transition: 0.75s ease-out;
  }

  nav a {
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 20px 30px;
    justify-content: flex-start;
  }

  .open-sidebar-button, .close-sidebar-button {
    padding: 20px;
    display: block;
    z-index: 2; /* Ensure buttons are above overlay */
  }

  #sidebar-active:checked ~ .links-container {
    right: 0;
  }

  #sidebar-active:checked ~ #overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }

}



@media (max-width: 1200px) {
  .popup-text {
    font-size: 15.5px;
  }
}

@media (max-width: 768px) {
  .popup-text {
    font-size: 13px; /* Smaller text on tablets */
  }

  #intro-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the section */
    z-index: -1;
  }
  

  section {
    padding: 30px; /* Reduce padding for smaller screens */
  }
}

@media (max-width: 480px) {
  .popup-text {
    font-size: 10.5px; /* Even smaller text for mobile */
  }

  section {
    padding: 20px; /* Further reduce padding for mobile */
  }
}