*{
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html{
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
  }
  
  body{
    height: 100%;
  }


/* Navbar */
#navbar {
    transition: top 0.3s ease-in-out;
  }

.navbar {
    position: fixed;  /* Fixed for all pages */
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.6s ease, box-shadow 0.6s ease; 
    background-color: rgb(20, 19, 19); /* Default background color */
    box-shadow: 0 0 13px -3px rgba(0, 0, 0, 0.4); /* Default shadow */
}

.navbar {
    position: absolute;
    background-color: transparent; 
    box-shadow: none; 
}

.navbar.scrolled {
    background-color: #1d3020; /* Background when scrolled */
    box-shadow: 0 0 13px -3px rgba(0, 0, 0, 0.4); /* Add shadow when scrolled */
}


.navbar.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1d3020; /* Background when navbar becomes fixed */
    box-shadow: 0 0 13px -3px rgba(0, 0, 0, 0.4); /* Shadow when fixed */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar-item {
    position: relative;
  }
  

.navbar-item {
    position: relative;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #1d3020af;
    list-style: none;
    padding: 0;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .dropdown-menu li {
    margin: 0;
  }
  
  .dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    white-space: nowrap;
  }
  
  .dropdown-link:hover {
    background-color: #f1f1f1;
    color: #000;
  }
  
  .navbar-item.dropdown:hover .dropdown-menu {
    display: block;
  }  

.navbar-content {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
}

.navbar-content img{
    width:50px;
    justify-content: center;
}
  
@media (max-width: 992px) {
    .navbar-content img {
        display: none; /* Hide logo in toggler mode */
    }
    .navbar-content {
        background-color: #1d3020;
    }
}

.navbar-content-left,
.navbar-content-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-content-right .navbar-logo {
    display: none;
  }

.navbar-link {
    font-size: 1rem;
    font-weight: 500;
    line-height: 3.2;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
}

.navbar-link.active {
    font-weight: bold;
    color: #ff6600; 
    border-bottom: 2px solid #ff6600;
}

.navbar-link:hover {
    text-decoration:none;
    color: #ff6600; 
}

.navbar.active .navbar-link {
    color: #000;
}

.navbar-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2.875rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.3rem;
    background: transparent;
    cursor: pointer;
    color: #1d3020;
    transition: border-color 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .navbar-toggler {
        display: flex;
    }

}

@media (max-width: 700px) {
    .navbar-content {
        padding: 0.75rem 1rem; /* Smaller padding */
        font-size: 14px; /* Reduce font size */
    }

    .navbar-content-left,
    .navbar-content-right {
        gap: 1rem; /* Adjust the gap between items */
    }

    .navbar-link {
        font-size: 0.9rem; /* Smaller font size for links */
        line-height: 2.5; /* Adjust line height */
    }

    .navbar-toggler {
        width: 2.5rem; /* Smaller toggler button */
        height: 2.5rem;
    }

    .navbar-toggler-icon {
        width: 1rem; /* Smaller icon width */
        height: 1px; /* Thinner bars */
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        top: -0.5rem;
        bottom: -0.5rem;
    }
    
    .navbar-content img {
        width: 40px; /* Smaller logo size */
    }
}


.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 1);
}

.navbar.active .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
}

.navbar-toggler-icon {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 2px;
    border-radius: 10px;
    background-color: #fff;
    transition: top 0.1s 0.1s, bottom 0.1s 0.1s, transform 0.1s, opacity 0s 0.1s;
}

.navbar.active .navbar-toggler-icon {
    background-color: #1d3020;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    background-color: #fff;
    transition: inherit;
}
  
.navbar-toggler-icon::before {
    top: -0.625rem;
}
  
.navbar-toggler-icon.open::before {
    top: 0;
    transform: rotate(-90deg);
}
  
.navbar-toggler-icon::after {
    bottom: -0.625rem;
}
  
.navbar-toggler-icon.open::after {
    bottom: 0;
    opacity: 0;
}

.navbar-toggle-content {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Montserrat", sans-serif;
}

@media (max-width: 992px) {
    .navbar-toggle-content {
        visibility: hidden;
        position: absolute;
        top: 94px;
        left: 0;
        z-index: -1;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 1rem;
        width: 100%;
        padding: 1.5rem 2rem;
        box-shadow: 0 10px 12px -8px rgba(0, 0, 0, 0.4);
        background-color: #a3b1c1;
    }
    .navbar.active .navbar-toggle-content {
        visibility: visible;
        backdrop-filter: blur(0);
        background-color: #fff;
    }
}

/* Full Page Image Styles */
.home-page {
    position: relative;
    height: 100vh;
    overflow: hidden;
}
  
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;

    /* Animation settings */
    -webkit-animation: changeBackground 30s ease-in-out infinite; /* Safari prefix */
    animation: changeBackground 30s ease-in-out infinite;
    -webkit-transition: background-image 1s ease-in-out, transform 1s ease-in-out; /* Added transition for scale */
    transition: background-image 1s ease-in-out, transform 1s ease-in-out;
}

/* Keyframes for background animation */
@-webkit-keyframes changeBackground {
    0% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424939/Snapinsta.app_404010624_281267201033195_4797310245388320963_n_1080_wh8m17.jpg');
        -webkit-transform: scale(1);
        transform: scale(1); /* No zoom */
    }
    20% {
        -webkit-transform: scale(1.1); /* Zoom in */
        transform: scale(1.1); /* Zoom in */
    }
    33% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732428022/DJI_0212_eunyrj.jpg');
        -webkit-transform: scale(1); /* No zoom */
        transform: scale(1);
    }
    53% {
        -webkit-transform: scale(1.1); /* Zoom in */
        transform: scale(1.1); /* Zoom in */
    }
    66% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424940/WhatsApp_Image_2024-09-18_at_9.40.27_AM_c2mjuf.jpg');
        -webkit-transform: scale(1); /* No zoom */
        transform: scale(1);
    }
    86% {
        -webkit-transform: scale(1.1); /* Zoom in */
        transform: scale(1.1); /* Zoom in */
    }
    100% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424939/Snapinsta.app_404010624_281267201033195_4797310245388320963_n_1080_wh8m17.jpg');
        -webkit-transform: scale(1); /* Reset zoom */
        transform: scale(1);
    }
}

@keyframes changeBackground {
    0% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424939/Snapinsta.app_404010624_281267201033195_4797310245388320963_n_1080_wh8m17.jpg');
        transform: scale(1); /* No zoom */
    }
    20% {
        transform: scale(1.1); /* Zoom in */
    }
    33% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732428022/DJI_0212_eunyrj.jpg');
        transform: scale(1); /* No zoom */
    }
    53% {
        transform: scale(1.1); /* Zoom in */
    }
    66% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424940/WhatsApp_Image_2024-09-18_at_9.40.27_AM_c2mjuf.jpg');
        transform: scale(1); /* No zoom */
    }
    86% {
        transform: scale(1.1); /* Zoom in */
    }
    100% {
        background-image: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(131, 131, 131, 0) 50%, #1d3020 100%), 
            url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424939/Snapinsta.app_404010624_281267201033195_4797310245388320963_n_1080_wh8m17.jpg');
        transform: scale(1); /* Reset zoom */
    }
}

@media (max-width: 767px) {
    .hero-image {
        /* Enable animation */
        -webkit-animation: changeBackgroundMobile 20s ease-in-out infinite; /* Shorter duration for mobile */
        animation: changeBackgroundMobile 20s ease-in-out infinite;

        /* Adjust background size and position for smaller screens */
        background-size: cover;
        background-position: center;
    }

    /* Keyframes for mobile background animation */
    @-webkit-keyframes changeBackgroundMobile {
        0% {
            background-image: 
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(131, 131, 131, 0.205) 50%, #1d3020 100%), 
                url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424939/Snapinsta.app_404010624_281267201033195_4797310245388320963_n_1080_wh8m17.jpg');
            -webkit-transform: scale(1); /* No zoom */
            transform: scale(1);
        }
        50% {
            background-image: 
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(131, 131, 131, 0.233) 50%, #1d3020 100%), 
                url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732428022/DJI_0212_eunyrj.jpg');
            -webkit-transform: scale(1.05); /* Slight zoom in */
            transform: scale(1.05);
        }
        100% {
            background-image: 
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(131, 131, 131, 0.13) 50%, #1d3020 100%), 
                url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424940/WhatsApp_Image_2024-09-18_at_9.40.27_AM_c2mjuf.jpg');
            -webkit-transform: scale(1); /* Reset zoom */
            transform: scale(1);
        }
    }

    @keyframes changeBackgroundMobile {
        0% {
            background-image: 
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(131, 131, 131, 0.096) 50%, #1d3020 100%), 
                url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424939/Snapinsta.app_404010624_281267201033195_4797310245388320963_n_1080_wh8m17.jpg');
            transform: scale(1); /* No zoom */
        }
        50% {
            background-image: 
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(131, 131, 131, 0.192) 50%, #1d3020 100%), 
                url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732428022/DJI_0212_eunyrj.jpg');
            transform: scale(1.05); /* Slight zoom in */
        }
        100% {
            background-image: 
                linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(131, 131, 131, 0.151) 50%, #1d3020 100%), 
                url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732424940/WhatsApp_Image_2024-09-18_at_9.40.27_AM_c2mjuf.jpg');
            transform: scale(1); /* Reset zoom */
        }
    }
}

.hero-main-title {
    text-align: center;
}

.hero-content {
    text-transform: capitalize;
    color: rgb(111, 156, 68);
}

.hero-content h1 {
    font-family: "Zilla Slab", serif;
    font-weight: 700;
    font-style: normal;
}

.quote {
    font-size: 12.5vw;
    justify-content: center;
    text-align: center;
    margin-top: 12%;
    padding: 0%;
    color: rgb(219, 224, 216);
    font-family: "Tangerine", cursive;
}

.hero-content-title {
    display: inline-block;
    background-size: cover;
    background-position: center;
    font-size: 18vh; /* Maintain consistent font size */
    line-height: 1; /* Consistent line height */
    padding: 0%;
    transition: transform 0.8s ease-in, opacity 0.8s ease-in;
    -webkit-transition: transform 0.8s ease-in, opacity 0.8s ease-in; /* Safari */
    transform-origin: center;
    opacity: 1;
    transform: scale(1); /* Initial scale */
    height: 30vh; /* Reserve consistent height */
    overflow: hidden; /* Prevent overflow */
}

/* Safari-specific fix using media query */
@supports (-webkit-appearance: none) {
    .hero-content-title {
        position: relative; /* Ensures layout stability in Safari */
        will-change: transform; /* Hint to Safari for smoothness */
    }
}

.hero-content-title.larger {
    transform: scale(1.5); /* Scale up instead of changing font size */
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
    .hero-content-title {
        font-size: 10vh;
        height: 28vh; /* Adjusted for medium screens */
    }

    .hero-content-title.larger {
        transform: scale(1.4); /* Smaller scaling factor for smaller height */
    }

    .quote {
        font-size: 10vw; 
        margin-top: 24%; 
    }
}

@media (max-width: 760px) {
    .hero-content-title {
        font-size: 9vh;
        height: 26vh; /* Reserved height for scaling */
    }

    .hero-content-title.larger {
        transform: scale(1.3); /* Adjusted scale for small screens */
    }

    .quote {
        font-size: 8vh;
        margin-top: 38%; 
    }
}

@media (max-width: 480px) {
    .hero-content-title {
        font-size: 6vh;
        height: 24vh; /* Adjusted for extra small screens */
    }

    .hero-content-title.larger {
        transform: scale(1.2); /* Even smaller scaling for limited space */
    }

    .quote h4 {
        line-height: 1.2;
        font-size: 6vh;
    }

    .quote {
        font-size: 5vw;
        margin-top: 64%; 
    }
}
/* cards */
.headingfirst {
    font-size: 2.8rem;
    color: white;
    background-color: #1d3020;
    font-family: "Quando", serif;
    font-weight: 400;
    text-align: center;
    padding-left: 80px;
}

.hero-section {
    align-items: flex-start;
    background-image: linear-gradient(to bottom, #1d3020 0%, #1d3020 1%, rgba(255, 255, 255) 100%);
    display: flex;
    min-height: 100%;
    justify-content: center;
    padding: 64px 24px;
}

/* Grid for small devices, 1 column */
.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default to 1 column */
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    max-width: 1200px;
    width: 100%;
}

/* Medium devices: 2 columns for better display */
@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
}

/* Small devices: 1 column to ensure readability */
@media (max-width: 540px) {
    .card-grid {
        grid-template-columns: repeat(1, 1fr); /* Single column */
    }
}

/* Larger screens (desktop): 4 columns */
@media (min-width: 961px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr); /* Four columns */
    }
}

  
  .card{
    list-style: none;
    position: relative;
  }
  
  .card:before{
    content: '';
    display: block;
    padding-bottom: 150%;
    width: 80%;
  }
  
  .card__background{
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    bottom: 0;
    filter: brightness(0.85) saturate(1.2) contrast(0.85);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center;
    transform: scale(1) translateZ(0);
    transition: 
      filter 200ms linear,
      transform 200ms linear;
  }
  

  .card:hover .card__background {
    transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .card:not(:hover) .card__background {
    filter: brightness(0.8) saturate(0.8) contrast(1.2) blur(5px); /* Reduced blur */
}

  
  .card__content{
    left: 0;
    padding: 24px;
    position: absolute;
    top: 0;
  }
  
  .card__category{
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 8px ;
    text-transform: uppercase;
  }
  
  .card__heading{
    color: rgba(255,255,255,0.9);
    font-size: 1.9rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
    line-height: 1.4;
    word-spacing: 100vw;
  }


 /* orgs information */
 .staff-section {
    width: 100%;
    padding: 2rem 0;
}

.staff-card {
    display: block;
    margin: 2em auto;
    padding: 1rem;
    border: 2px solid #466347;
    background-color: white;
    font-size: 1.2rem; /* Use rem for responsive text scaling */
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(211, 255, 244, 0.274); 
    max-width: 1300px;
    text-align: justify;
    width: 90%;
    min-width: 300px;
    color: #3e5e40;
    transition: all 0.3s ease-in-out; /* For a smooth transition on hover or resize */
}

.staff-picture {
    position: relative;
    display: block;
    height: auto;
    background-color: white;
    width: 100%;
    margin: auto;
    margin-top: 1em;
    bottom: 3em; /* Adjusted for better responsiveness */
}

.staff-picture img {
    display: block;
    height: 5.4em;
    width: 5.4em;
    max-width: 100%;
    object-fit: cover;
    border-radius: 100%;
    margin: auto;
    border: 5px solid rgb(119, 129, 101);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4); 
}

.staff-description {
    font-family: Arial, sans-serif;
    font-style: normal;
    padding: 20px;
    width: auto;
    height: auto;
    line-height: 1.3em; /* Adjusted for better readability */
    text-indent: 2em; /* Reduced for smaller screens */
    margin-top: -4em; /* Adjusted for responsiveness */
}

.info-title {
    text-align: center;
    font-size: 1.5rem; /* Use rem for scalable font size */
    font-family: Arial, sans-serif;
    margin-bottom: 0.5em;
    color: #3e5e40;
}

/* Media Queries for Responsiveness */

/* For screens smaller than 768px (tablets and small devices) */
@media (max-width: 768px) {
    .staff-card {
        width: 95%; /* Adjust width for tablets */
        font-size: 1.2rem; /* Reduce font size for tablets */
    }

    .staff-picture {
        bottom: 2em; /* Adjust picture positioning */
    }

    .staff-description {
        margin-top: -3em; /* Adjust margin for better spacing */
        text-indent: 1.5em; /* Reduced text-indent */
    }

    .info-title {
        font-size: 1.5rem; /* Slightly smaller title on tablets */
    }
}

/* For screens smaller than 480px (mobile devices) */
@media (max-width: 480px) {
    .staff-card {
        width: 100%; /* Full width for mobile */
        font-size: 1rem; /* Smaller font for mobile */
    }

    .staff-picture {
        bottom: 1.5em; /* Further adjust the image position */
    }

    .staff-description {
        margin-top: -2em; /* Less negative margin for mobile */
        text-indent: 1em; /* Further reduce text-indent */
        line-height: 1.5em; /* Adjust line height for readability */
    }

    .info-title {
        font-size: 1.4rem; /* Small title for mobile */
    }
}


  /* places card with map */
.places-map{
    background-image: url('https://res.cloudinary.com/dgdbgblvb/image/upload/v1726887298/Screenshot_2024-09-21_at_8.39.43_am_ejux55.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-repeat: no-repeat; 
    background-attachment: fixed;
}

.headingsecond{
    font-size: 2.8rem; /* Reduced for better responsiveness */
    color: black;
    background: rgba(244, 248, 238, 0.63); 

    font-family: "Quando", serif;
    font-weight: 400;
    padding: 1rem;
    text-align: center;
    margin: 0 auto; /* Center the headings */
}

.headingthird {
    font-size: 2.8rem; /* Reduced for better responsiveness */
    background-color: white;
    color: black;
    font-family: "Quando", serif;
    font-weight: 400;
    padding: 1rem;
    text-align: center;
    margin: 0 auto; /* Center the headings */
}

.row {
    position: relative; 
    display: flex;
    justify-content: space-between;
    height: auto;
    padding: 2rem;
    background: rgba(244, 248, 238, 0.63); 
    border-radius: 10px;
    z-index: 2; 
}


.left-half {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; 
    justify-content: center;
    align-items: flex-start;
}

.right-half {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-half iframe {
    width: 90%;
    height: 70%;
    border: none; /* No default border */
    border-radius: 10px; /* Rounded corners for a modern look */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Add soft shadow */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

/* Hover effect */
.right-half iframe:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

/* Card styles */
.card-places {
    max-width: 30%;
    max-height: 56%;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-basis: 18rem; /* Ensures each card has a fixed width */
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.card-places:hover {
    transform: translateY(-10px); /* Lifts the card slightly */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); /* Increases shadow on hover */
}

.card-img-top {
    width: 100%;
    height: 180px;
    display: block;
}

.card-places img{
    object-fit: cover; /* Ensures the image fills the area without distortion */
    overflow: hidden;

}
.card-places-body {
    padding: 1rem;
    background-color: rgb(219, 233, 220);
}

.card-text a{
    text-decoration: none;
}

.card-text {
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 1rem;
    text-decoration: none;
    font-weight:580;
    color: #333;
}

@media (max-width: 1200px) {
    .row {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .left-half, .right-half {
        width: 100%;
    }
    .right-half iframe {
        height: 70%;
        width: 100%;

    }
}

@media (max-width: 768px) {
    .headingfirst, .headingsecond, .headingthird {
        font-size: 2rem;
        padding-left: 0;
    }

    .card-places {
        max-width: 80%;
    }

    .placestogo {
        flex-direction: column;
    }

    .right-half iframe {
        height: 50%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .headingfirst, .headingsecond, .headingthird {
        font-size: 1.5rem;
    }

    .card-places {
        max-width: 100%;
    }

    .right-half iframe {
        height: 50%;
        width: 100%;

    }
}

/* Styling for blogs */
.blog-section {
    padding: 2rem;
    width: 80%;
    margin: auto;
}

.blog-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.blog-card {
    background-color: rgb(245, 244, 239);
    border-radius: 8px;
    overflow: hidden;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1rem;
}

.blog-content .date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #3e5e40;
}

.blog-content p {
    font-size: 1.2rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-all {
    display: block;
    text-align: right !important;
    margin-top: 1rem;
    font-size: 1rem;
    color: rgb(107, 98, 98);
    text-decoration: none;
    font-weight: 500;
}

.read-all:hover {
    color:burlywood;
    text-decoration: underline;
}


@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-card {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* chitwan national park */

.cnp {
    position:relative;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    color: #3e5e40;
    padding: 40px 0; /* Add padding to prevent overlap */
    overflow: hidden;   
}


.cnp  h2 {
    color: #125e19;
    font-size: 222%;
    font-weight: bold;
    margin-top: 0
  }
.cnp  img {
    max-width: 50%;
    height:400px;
    object-fit: cover; /* Ensures the image fills the area without distortion */
    overflow: hidden;
  }

  .content {
    background: rgb(245, 244, 239);
    width: 60%;
    margin-left: 40%;
    position: absolute;
    top: 80px;
    padding: 60px;
    line-height: 1.8rem;
    text-align: justify;
  }

  .content p{
    margin-top: 2%;
    font-size: 18px;
  }

  .content:before {
    content: "";
    border: 2px solid #125e19;
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
  .image {
    width: 46%;
    float: left;
    margin-left:23%;
  }

/* Adjust for screens 1080px and smaller */
@media (max-width: 1080px) {
    .cnp {
        height: 78%; 
    }

    .content {
        width: 70%;
        padding: 30px;
        margin-left: 30%;
    }

    .cnp img {
        height: 250px;
    }

    .image {
        margin-left:12%;
      }

    .cnp h2 {
        font-size: 180%;
    }

    .cnp {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .cnp {
        height: 72%;
    }

    .content {
        width: 100%;
        margin-left: 0;
        padding: 30px;
        position: static; 
    }

    .image {
        display: none; /* Hide image for small screens */
    }

    .cnp h2 {
        font-size: 150%;
    }

    .cnp img {
        height: 200px;
    }
    .cnp:before, .cnp:after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #125e19;
        margin: 10px 0;
    }
}

/* Adjust for screens 480px and smaller */
@media (max-width: 420px) {
    .cnp {
        height: 88%;
    }

    .content {
        width: 100%;
        padding: 20px;
        margin-left: 0;
    }

    .cnp {
        font-size: 16px;
    }

    .cnp h2 {
        font-size: 130%;
    }
    .cnp:before, .cnp:after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #125e19;
        margin: 10px 0;
    }
}



/* details */
.detail {
    position:relative;
    font-size: 18px;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    color: #3e5e40;
    padding: 40px 0; /* Add padding to prevent overlap */
    overflow: hidden;   
    margin-bottom:2%;
}

.detail  h2 {
    color: #125e19;
    font-size: 222%;
    font-weight: bold;
    margin-top: 0
  }
.detail  img {
    max-width: 50%;
    height:400px;
    object-fit: cover; /* Ensures the image fills the area without distortion */
    overflow: hidden;
  }

  .content-second {
    background: rgb(245, 244, 239);
    width: 60%;
    position: absolute;
    top: 80px;
    padding: 60px;
    line-height: 1.8rem;
    text-align: justify;

  }

  .content-second p{
    margin-top: 2%;
    font-size: 18px;
  }

  .content-second:before {
    content: "";
    border: 2px solid #125e19;
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }

  .image-second {
    width: 46%;
    float: right;
    
  }


  @media (max-width: 1080px) {
    .detail{
        height: 70%;
    }
    .content-second {
        width: 72%;
        padding: 30px;
        margin-top: 20px;
    }

    .detail h2 {
        font-size: 180%;
    }

    .detail {
        font-size: 17px;
    }
    .detail  img{
        height:250px;
        margin-left: 20%;
    }
}

  @media (max-width: 768px) {
    .detail{
        height: 82%;
    }

    .content-second {
        width: 100%;
        position: static; /* Remove absolute positioning for smaller screens */
        padding: 30px;
        margin-top: 20px;
    }

    .image-second {
        display: none; /* Hide image for devices smaller than 768px */
    }

    .detail h2 {
        font-size: 150%;
    }
    .detail  img{
        height:240px;
    }
    .detail:before, .detail:after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #125e19;
        margin: 10px 0;
    }
}

@media (max-width: 420px) {
    .detail{
        height: 86%;
    }
    .content-second {
        padding: 20px;
    }

    .detail {
        font-size: 16px;
    }

    .detail h2 {
        font-size: 130%;
    }
    .detail:before, .detail:after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #125e19;
        margin: 10px 0;
    }
}

/* Styling for notice and news */
.notice {
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 20%, rgb(0, 0, 0) 100%); */
    margin-bottom: 0;
}

.news-updates-section {
    padding: 2rem;
    width: 80%; /* Reduced to 90% to ensure spacing on smaller screens */
    margin: 20px auto;
    margin-bottom: 0;
}

.heading {
    font-size: 2.8rem; /* Reduced font size for better readability on smaller screens */
    font-family: "Quando", serif;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center; /* Center-align for a more responsive look */
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust the min size for smaller screens */
    gap: 20px;
}

.news-item {
    background-color: rgb(245, 244, 239);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.news-item:hover {
    transform: translateY(-5px); /* Slight hover effect */
}

.news-item img {
    width: 100%;
    height: 150px; /* Increased the height slightly for more visual impact */
    object-fit: cover;
}

.news-info {
    padding: 10px;
}

.news-info p {
    font-size: 1rem; /* Use rem for better scaling */
    font-weight: bold;
    line-height: 1.2;
    color: black;
}

/* Media Queries for Responsive Design */

/* For screens smaller than 768px (tablets and small devices) */
@media (max-width: 768px) {
    .heading {
        font-size: 2rem; /* Reduced heading size for smaller screens */
    }

    .news-item img {
        height: 120px; /* Slightly smaller images for smaller screens */
    }

    .news-info p {
        font-size: 0.9rem; /* Adjust the font size */
    }
}

/* For screens smaller than 480px (mobile devices) */
@media (max-width: 480px) {
    .news-updates-section {
        width: 95%; /* Reduce width on very small screens */
        padding: 1rem;
    }

    .heading {
        font-size: 1.8rem; /* Further reduce the font size */
    }

    .news-info p {
        font-size: 0.8rem; /* Make text smaller for mobile */
    }
}


@media (max-width: 992px) {
    .heading{
        font-size: 2.5rem;
    }
    .headingfirst{
        font-size: 2.5rem;
    }
    .container h2{
        font-size: 2rem;
    }
    .headingsecond, .headingthird{
        font-size: 2.5rem;
    }
}

/* For small screens (phones) */
@media (max-width: 768px) {
    .heading{
        font-size: 2rem;
    }
    .headingfirst{
        font-size: 2rem;
    }
    .headingsecond, .headingthird{
        font-size: 2rem;
    }
}

/* For extra small screens (very small phones) */
@media (max-width: 480px) {
    .heading{
        font-size: 1.8rem;
    }
    .headingfirst{
        font-size: 1.8rem;
    }
    .headingsecond, .headingthird{
        font-size: 1.8rem;
    }
}

/* gallery */
.gallery {
    background-color: rgb(219, 233, 220);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 48vh;
}

.gallery h2 {
    text-align: end;
}

.gallery img {
    display: block;
    width: 100%;
    height: 260px;  /* Fixed height for uniformity */
    object-fit: cover;  /* Ensures the image scales to fill the container while maintaining aspect ratio */
    border-radius: 10px;  /* Optional: adds rounded corners to the images */
}

.gallery ul {
    padding: 2px;
    margin: 0;
    display: block;
    width: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
    scroll-behavior: smooth;
}

.gallery li {
    width: min(50vw, 350px);
    display: inline-block;
}

.svg-gallery-bottom svg {
    transform: none;
    width: 100%;
    height: auto;  /* Ensures responsiveness */
    display: block;  /* Prevents any inline rendering issues */
    fill: rgb(219, 233, 220);
}

.svg-gallery-top svg {
    transform: rotate(180deg);
    width: 100%;
    height: auto;
    display: block;
    fill: rgb(219, 233, 220);
}


/* events section */
.upcoming-events{
    width:100%;
}

.eventupcoming-events {
    width: 100%;
}

.events-container {
    display: flex;
    gap: 10px; /* Space between cards */
    align-items: stretch; /* Stretch all cards to equal height */
    width: 100%;
    
    overflow-x: auto; /* Allow horizontal scrolling for overflow */
}




h1 {
    font-weight: 400;
    text-align: center;
  }

  .eventcard-container {
    display: grid;
    grid-template-areas: 
      'photo info';
    grid-template-columns: 140px 1fr;
    min-width: 35%;
    background-color: #ffffff;
    line-height: 1.75em;
  }



  .eventphoto-container {
    font-size: 1.5em;
    background-color: #1e5003;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Ensure the photo doesn't shrink */
}

.eventinfo-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spread content evenly */
    background-color: rgb(245, 244, 239);
    flex-grow: 1; /* Allow this container to grow and fill space */
    box-sizing: border-box; /* Include padding in width calculation */
}


.eventnepalidate{
    font-size: 1.2rem;
    color:rgb(230, 231, 229);
}

.event-remaining-days .days-left {
    font-size: 1.5rem;
    font-weight: 550;
    color: #ff6600;
}

/* Event name */
.events-name {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom:0;
    color: #2e4124;
    text-transform:capitalize;
}

/* Event location with icon */
.events-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.events-location::before {
    content: '\f041'; /* Font Awesome map-marker icon */
    font-family: 'FontAwesome';
    margin-right: 5px;
    color: #2e4124;
}

/* Event description */
.events-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Add fallback for unsupported browsers */
    max-height: calc(1.6em * 3); /* 3 lines */
}

/* Event contact with icon */
.eventcontact-link {
    display: inline-block;
    padding: 10px;
    background-color: #256941;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.eventcontact-link:hover {
    background-color: #587c49;
    color:rgb(245, 244, 239);
}

/* FontAwesome icon setup */
.eventcontact-link i {
    margin-right: 5px;
}

.upcoming-events a{
    margin-right: 2%;
    margin-bottom: 2%;
}




/* Responsive Design */
/* For smaller tablets (max-width: 768px) */
@media (max-width: 768px) {
    .eventcard-container {
        grid-template-areas: 'photo' 'info';
        grid-template-columns: 1fr;
        min-width: 100%; /* Make the card take full width */
    }

    .eventphoto-container {
        width: 100%; /* Adjust the photo container to full width */
        height: 110px; /* Adjust height for smaller screens */
    }

    .eventinfo-container {
        padding: 15px;
        height: 200px;
    }

}

/* For mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .eventcard-container {
        grid-template-areas: 'photo' 'info';
        grid-template-columns: 1fr;
        min-width: 90%; /* Make the card take full width */
    }

    .eventphoto-container {
        width: 100%; /* Adjust the photo container to full width */
        height: 80px; /* Reduce height for smaller screens */
    }

    .eventphoto-container {
        height: 150px; /* Adjust for smaller screens */
    }

    .events-name {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }

    .events-description {
        font-size: 0.8rem; /* Smaller font size for description */
    }

    .eventcontact-link {
        display: block;
        text-align: center; /* Center align the text */
        margin: 10px auto;  /* Center horizontally with margin */
        width: fit-content; /* Ensure it doesn't stretch */
    }
}

.fact-container-rhino {
    background-image: 
        linear-gradient(to top, rgba(0, 0, 0, 0.322), rgba(0, 0, 0, 0)),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.308), rgba(0, 0, 0, 0)),
        url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732450080/460981091_2417063458498535_6788533497513088908_n_eishpz.jpg');
    height: 70vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
}

.fact-container-tiger {
    background-image: 
    linear-gradient(to top, rgba(0, 0, 0, 0.151), rgba(0, 0, 0, 0)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.473), rgba(0, 0, 0, 0)),
url('https://res.cloudinary.com/dga2mpvuf/image/upload/v1732427635/1_4_abcheh.jpg');
    height: 75vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
}

.text-overlay {
    color: rgba(240, 224, 195, 0.918);
    font-family: "Bangers", system-ui;
    font-size: 7.6em; /* Adjust size as needed */
    font-weight: bold;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px; /* Optional: rounded corners */
}

@media (max-width: 768px) {
    .fact-container {
        height: 60vh; /* Adjust height for smaller screens */
        padding-bottom: 15px; /* Adjust padding as needed */
    }

    .text-overlay {
        font-size: 5em; /* Slightly smaller font size */
        padding: 8px 16px; /* Adjust padding */
    }
}

/* Media query for mobile devices */
@media (max-width: 480px) {
    .fact-container {
        height: 50vh; /* Smaller height for mobile */
        padding-bottom: 10px;
    }

    .text-overlay {
        font-size: 3em; /* Further reduce font size */
        padding: 6px 12px;
    }
}