/* Navbar overlay for carousel - FIXED POSITIONING */
.navbar-wrapper {
    font-family: Arial, sans-serif;
    position: fixed !important; /* Force fixed positioning */
    top: 30px !important; /* Ensure enough space from top */
    left: 0 !important; /* Start from left edge */
    right: 0 !important; /* Extend to right edge */
    width: 100% !important; /* Full width container */
    z-index: 9999 !important; /* Very high z-index */
    padding: 0 !important; /* No padding on wrapper */
    margin: 0 !important; /* No margin on wrapper */
    display: flex !important; /* Flex for centering */
    justify-content: center !important; /* Center the navbar */
    align-items: flex-start !important; /* Align to top */
    pointer-events: none; /* Allow clicks to pass through wrapper */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make the actual navbar clickable */
.navbar-wrapper .navbar-desktop,
.navbar-wrapper .navbar-mobile {
    pointer-events: auto;
}
/* Dropdown Container */
.navbar-links li {
    position: relative; /* needed for positioning dropdown */
}

.navbar-links li .dropdown-menu {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%; /* below parent */
    left: 0;
    background-color: var(--navbar-green);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 999;
    min-width: 200px;
}

/* Dropdown Links */
.navbar-links li .dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--white);
    font-weight: normal;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-links li .dropdown-menu li a:hover {
    background-color: #228B22; /* Darker green instead of orange */
    color: var(--white);
}

/* Show dropdown on hover (desktop) */
.navbar-links li:hover .dropdown-menu {
    display: block;
}

.navbar-desktop {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 90% !important; /* Navbar width */
    max-width: 1000px !important; /* Max width */
    z-index: 20 !important;
    display: block !important;
    visibility: visible !important;
    margin: 0 auto !important; /* Center the navbar */
}

/* Desktop Navbar */
.navbar-desktop-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 18px 40px !important;
    border-radius: 60px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1) !important;
    background: linear-gradient(135deg, var(--navbar-green) 0%, #228B22 100%) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255,255,255,0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Add subtle glow effect */
.navbar-desktop-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.navbar-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2; /* Above the glow effect */
}

.navbar-logo img {
    width: 36px; /* Slightly larger logo */
    height: 36px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Logo shadow */
}

.navbar-logo span {
    font-weight: 700; /* Bolder text */
    font-size: 1.2rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Text shadow */
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 32px; /* More spacing between links */
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2; /* Above the glow effect */
}

.navbar-links li a {
    text-decoration: none;
    font-weight: 600; /* Slightly bolder */
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
    padding: 8px 16px; /* Add padding for better hover area */
    border-radius: 25px; /* Rounded hover area */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Text shadow */
}

.navbar-links li a:hover {
    color: #90EE90; /* Light green hover instead of orange */
    background-color: rgba(255,255,255,0.1); /* Subtle background on hover */
    transform: translateY(-1px); /* Slight lift effect */
}

/* Mobile Navbar */
.navbar-mobile {
    display: block;
}

.navbar-mobile-top {
    text-align: center;
}

.mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.mobile-links li a {
    text-decoration: none;
    font-weight: bold;
    color: var(--white);
    transition: color 0.2s;
}

.mobile-links li a:hover {
    color: #90EE90; /* Light green hover instead of orange */
}

/* Bottom Tab Bar */
.navbar-mobile-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 2px solid var(--navbar-border);
    background-color: var(--navbar-green); /* Green background instead of orange */
}

.bottom-tabs {
    display: flex;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    justify-content: space-around;
}

.bottom-tabs li button {
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

.bottom-tabs li button.active {
    color: #90EE90; /* Light green for active state instead of navbar-green */
    font-weight: bold;
}

/* Color Classes */
.navbar-green {
    background-color: var(--navbar-green);
    color: var(--white);
}

.navbar-orange {
    background-color: var(--navbar-orange);
    color: var(--white);
}

.navbar-border {
    border-color: var(--navbar-border);
}

/* Default (mobile first) */
.navbar-desktop {
    display: none;
}

.navbar-mobile {
    display: block;
}

/* Show desktop only on larger screens */
@media (min-width: 768px) {
    .navbar-desktop {
        display: block;
    }
    .navbar-mobile {
        display: none;
    }
}

/* Mobile adjustments for floating navbar */
@media (max-width: 767px) {
    .navbar-wrapper {
        position: relative !important; /* Not floating on mobile */
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 0 !important;
        justify-content: flex-start !important;
    }
    
    .navbar-wrapper .navbar-desktop {
        width: 100% !important;
        margin: 0 !important;
        animation: none !important;
    }
    
    #main-content {
        margin-top: 0 !important; /* Remove top margin on mobile */
    }
}

/* Landing wrapper */
#landing {
    position: relative;
    overflow: hidden;
}

/* Wrapper for background image */
.landing-bg {
    position: relative;
    width: 100%;
    height: 100vh; /* full viewport height */
    overflow: hidden;
}

/* Background image */
.landing-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keep proportions, cover area */
    display: block;
}

/* Dark overlay on top of the image */
/* #landing::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.863) 15%, 
        rgba(34, 139, 34, 0.9) 40%
    );
    opacity: 0.5;
    z-index: 1; /* sits above image, below content */
/* }  */

/* Content wrapper */
#landing .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: white;
    max-width: 80%;
    z-index: 10; /* increased from 2 to 10 - above gradient and other overlays */
    display: flex;
    align-items: center;
    gap: 20px;
    pointer-events: none; /* allow clicks to pass through */
}

/* Make links and buttons clickable */
#landing .overlay-content a,
#landing .overlay-content button {
    pointer-events: auto;
}

/* Logo inside landing */
#landing .overlay-content img {
    width: 80%;  
    height: auto;
}

/* Heading text */
#landing .overlay-content h2 {
    font-weight: bold;
    font-size: 50px;   
    margin-left: 13%;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Paragraph text */
#landing .overlay-content p {
    font-size: 20px;
    line-height: 1.8;
    margin-left: 13%;
    font-weight: bold;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .landing-bg {
        height: auto; /* let content decide height on small screens */
    }

    #landing .overlay-content {
        flex-direction: column;
        text-align: center;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
    }

    #landing .overlay-content h2,
    #landing .overlay-content p {
        margin-left: 0; /* remove desktop margin */
    }

    #landing .overlay-content img {
        width: 150px; /* smaller logo for mobile */
        margin-bottom: 20px;
    }
}

/* Announcements section positioning */
#announcements {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Mobile responsive adjustments for carousel */
@media (max-width: 767px) {
    #landing {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
}

.main-content {
    position: relative;
    z-index: 5;
    background: url('../images/bg.jpg') no-repeat center top;
    background-size: cover;
}

/* contact us */
/* Light green background for the whole contact section */
.contact-section {
    background-color: #D4EDDA; /* light green shade */
    min-height: 100vh;
}

.mySwiper {
    width: 100vw;  /* ✅ take full screen width */
    height: 600px;
    margin-left: calc(-50vw + 50%); /* ✅ cancels container padding */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2; /* ✅ make sure swiper content stays above gradients */
}

/* Slides */
.mySwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s, opacity 0.4s;
    opacity: 0.3;
    transform: scale(0.8);
}

.mySwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.mySwiper .swiper-slide-next,
.mySwiper .swiper-slide-prev {
    opacity: 0.5;
    transform: scale(0.9);
}

/* Card */
.mySwiper .card {
    border-radius: 20px;
    overflow: hidden;
    width: 380px;
    margin: auto;
}

/* ✅ Full-width gradient overlays applied to section */
#events {
    position: relative;
    overflow: hidden; /* keeps gradient inside */
}

#events::before,
#events::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;      /* ✅ cover full section height */
    width: 60%;     /* adjust coverage */
    z-index: 1;     /* behind swiper */
    pointer-events: none;
}

#events::before {
    left: 0;
    background: linear-gradient(
        to right,
        #228B22 14%,
        transparent 70%
    );
    opacity: 0.8;
}

#events::after {
    right: 0;
    background: linear-gradient(
        to left,
        #228B22 14%,
        transparent 70%
    );
    opacity: 0.8;
}

/* Arrows */
.swiper-button-prev,
.swiper-button-next {
    color: #ffffff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent; /* ✅ remove white background */
    box-shadow: none;        /* ✅ remove shadow */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.8;            /* ✅ make button slightly transparent */
    transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1; /* brighter when hovered */
}

/* ✅ Adjust positioning */
.swiper-button-prev {
    left: 60px; /* move a bit inward */
}

.swiper-button-next {
    right: 60px; /* move a bit inward */
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 22px;
    font-weight: bold;
}

/* footer */
.footer {
    background-color: #2d4f2d; /* Dark green background */
    color: #fff;
}

.footer .footer-heading {
    color: #ffb400; /* Orange section titles */
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #ffb400;
}

.footer-bottom {
    background-color: #eaeaea; /* Gray strip at bottom */
    color: #000;
    font-weight: 600;
}
   
.custom-container {
  max-width: 92%; /* you choose */
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================
   Digital ID Flip Card Styles
   ========================== */
.flip-card {
  background-color: transparent;
  width: 500px;   /* increased width */
  height: 320px;  /* increased height */
  perspective: 1000px; /* enables 3D flip */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flip .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the card */
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Navbar scroll effect */
.navbar-wrapper.scrolled {
    top: 15px !important;
}

.navbar-wrapper.scrolled .navbar-desktop {
    width: 85% !important;
    transform: scale(0.95) !important;
}

.navbar-wrapper.scrolled .navbar-desktop-inner {
    padding: 14px 32px !important;
    backdrop-filter: blur(20px) !important;
    background: linear-gradient(135deg, rgba(0, 77, 0, 0.95) 0%, rgba(34, 139, 34, 0.95) 100%) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Smooth navbar logo animation */
.navbar-logo {
    transition: all 0.3s ease;
}

.navbar-logo span {
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Enhanced dropdown styling */
.navbar-links li .dropdown-menu {
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(0, 77, 0, 0.95) 0%, rgba(34, 139, 34, 0.95) 100%);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 20px; /* More rounded dropdown */
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    margin-top: 8px; /* Space from parent */
}

.navbar-links li .dropdown-menu li a {
    border-radius: 15px; /* Rounded dropdown items */
    margin: 4px 8px; /* Spacing around items */
}

.navbar-links li .dropdown-menu li a:hover {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%); /* Gradient hover */
    color: var(--white);
    transform: translateX(4px); /* Slide effect on hover */
}

/* Floating animation - SIMPLIFIED */
@keyframes floatNavbar {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

.navbar-wrapper .navbar-desktop {
    animation: floatNavbar 4s ease-in-out infinite;
}

.navbar-wrapper.scrolled .navbar-desktop {
    animation: none; /* Disable animation when scrolled */
}

/* Ensure the navbar container doesn't get clipped */
html, body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Add a subtle pulse effect on hover */
.navbar-desktop-inner:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.15) !important;
}

/* Smooth transitions for all navbar elements */
.navbar-desktop-inner,
.navbar-links li a,
.navbar-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}