body {
    font-family: 'Poppins', sans-serif;
    margin: 0 auto;
    padding: 0;
    color: #333;
    /* Dark grey for text */
    background-color: #f4f4f4;
    max-width: 1000px;
}

header {
    text-align: center;
    padding: 40px 20px;
    /* Increased padding */
}

.logo {
    max-width: 300px;
    /* Adjust logo width as needed */
}

h1 {
    color: #228b22;
    /* Primary color for slogan */
    margin-top: 20px;
}

footer {
    background-color: #333;
    /* Dark grey for footer */
    color: #fff;
    /* White text for footer */
    padding: 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 0 0 10px;
}

p {
    line-height: 1.6;
    /* Improve readability */
}



.screenshots {
    padding: 40px 20px 50px 20px;
    text-align: center;
}

.screenshots h2 {
    color: #228b22;
    font-size: 2em;
    font-weight: 700;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
    }    
}

@media (max-width: 800px) {
    footer {
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 801px) {
    footer a+a:before {
        content: '|';
        margin-right: 10px;
    }
}

.screenshot-container {
    max-width: 500px;
}

.screenshot-container img {
    max-width: 100%;
    /* Image scales to container width */
    height: auto;
}

.screenshot-container {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    /* Add filter transition */
    background-color: #fff;
}

.screenshot-container:active {
    /* Style while the mouse is clicked */
    transform: scale(1.1);
    /* Slightly larger when clicked */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* More prominent shadow */
}

.screenshots hr {
    border: none;
    height: 1px;
    margin: 20px auto;
    /* Center the line */
    width: 80%;
    /* Adjust width as needed */
}

.about {
    padding: 40px 20px;
    text-align: center;

    overflow: hidden;
    position: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    margin: 40px 20px 50px 20px;
    /* Add some space below */
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
    /* Include padding and border in element's total width and height */
}

.about-content {
    /* Container for content with max-width */
    max-width: 800px;
    margin: 0 auto;
    /* Center the content */
}

.about h2 {
    color: #228b22;
    margin-bottom: 25px;
    margin-top: 15px;
    font-size: 2em;
    /* Larger title */
    font-weight: 700;
    /* Bold title */
}

.about p {
    line-height: 1.7;
    color: #333;
    font-size: 1.1em;
    /* Slightly larger text */
    margin-bottom: 30px;
    /* Space below paragraph */
}

.about-highlight {
    /* Style for highlighted words/phrases */
    color: #228b22;
    /* Primary color for highlights */
    font-weight: 600;
}

/* Optional: Add a subtle separator line */
.about hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 40px auto;
    width: 80%;
}


.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0 20px 10px 20px;
    flex-wrap: wrap;
}

.cta-buttons a {
    transition: transform 0.2s;
    /* Add filter transition */
}

.cta-intro {
    text-align: center;
    margin-bottom: 20px;
    /* Space between text and buttons */
    padding: 0 20px;
}

.cta-intro p {
    font-size: 1.1em;
    /* Adjust font size as needed */
    color: #555;
    /* Adjust color as needed */
}

.svg-icon {
    width: 24px;
    height: 24px;
    fill: #228b22;
    /* Sets the color */
}

.svg-icon-xl {
    width: 48px;
    height: 48px;
}

.svg-icon-alpha {
    opacity: 0.5;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    /* Prevent scrollbars on the overlay */
}

.lightbox-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    /* Use flexbox for centering */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

.lightbox img {
    max-width: 95%;
    /* Adjust as needed */
    max-height: 95%;
    /* Adjust as needed */
    display: block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    /* Or cover, depending on your needs */
}


.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1;

    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    /* Slightly transparent by default */
    transition: opacity 0.3s ease;
    /* Smooth transition for opacity */
    padding: 10px;
    /* Add some padding for easier clicking */
    background-color: rgba(0, 0, 0, 0.3);
    /* Semi-transparent black background */
    border-radius: 5px;
    /* Rounded corners */
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


@media (hover: hover) and (pointer: fine) {
    .screenshot-container:hover {
        transform: scale(1.02);
    }

    .grid-item:hover {
        transform: scale(1.02);
    }

    .feature-block:hover {
        border-color: #ddd;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        transform: scale(1.02);
    }

    .cta-buttons a:hover {
        transform: scale(1.1);
    }

    /*
    .about:hover {
        border-color: #ddd;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        transform: scale(1.02);
    }
    */

    .lightbox-prev:hover,
    .lightbox-next:hover {
        opacity: 1;
        /* Fully opaque on hover */
        background-color: rgba(0, 0, 0, 0.5);
        /* Darker background on hover */
    }

    .partner-item:hover {
        transform: scale(1.02);
    }

}


.blog {
    padding: 40px 20px 0px 20px;
    text-align: center;
}

.blog h2 {
    color: #228b22;
    font-size: 2em;
    font-weight: 700;
}



.blog .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "A B C";
    gap: 20px;
    padding: 10px;
}

@media (max-width: 800px) {
    .blog .grid-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "A B"
            "C C";
        /* C spans 2 columns (centered) */
    }

    .blog .grid-container .grid-item:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {
    .blog .grid-container {
        grid-template-columns: unset;
        grid-template-areas: none;
    }

    .blog .grid-container .grid-item:nth-child(3) {
        grid-column: unset;
    }
}

.blog a {
    text-decoration: none;
    color: #228b22;
}

.blog .grid-item {
    background-color: #fff;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.blog .grid-item .photo {
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center center;
}

.blog .grid-item h3 {
    padding: 10px;
    font-size: 18px;
}









.features {
    padding: 0 20px 40px 20px;
}





/* Container for the grid */
.card-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
    /* Center grid when in single-column mode */
}

/* Grid layout for different screen sizes */
@media (min-width: 1001px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 equal columns */
    }
}

@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: 1fr;
        /* Single column */
    }
}





.feature-block {
    width: 30%;
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
    /* Include padding and border in element's total width and height */
}

/* Card container with 3D perspective */
.card-container {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    width: 100%;
    max-width: 400px;
    /* Limit card width on small screens */
    margin: auto;
    /* Center cards in single-column layout */
}

/* Flip effect */
.card {
    width: 100%;
    height: 360px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d; /* Required for iOS */
    transition: transform 0.6s;
    -webkit-transition: transform 0.6s ease-in-out; /* Required for iOS */
    cursor: pointer;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.card.flipped {
    transform: rotateY(180deg);
}

/* Front & Back styling */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; /* Required for iOS */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    text-align: center;
    padding: 0;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;  
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.card-back{
    justify-content: center;
}
.card-front div{
    margin-top: 20px;
    margin-bottom: 5px;
}
.card-front h2 {
    color: #228b22;
    margin-bottom: 0;
    margin-top: 10px;
    line-height: 1.2;
}

.card-front p {
    line-height: 1.7;
    color: #333;
    padding: 0 15px;
}



.card-back {
    background: #228b22;
    transform: rotateY(180deg);
}
.card-back p{
    color: #fff;
    padding: 15px;
}

#faq{
    padding: 0 20px;
}


.event-item{
    display: flex;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.2s, max-height 0.3s ease-out;
}

.event-list.collapsed .event-item:nth-child(n+4) {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.event-item h3{
    margin-top: 0;
    margin-bottom: 0;
}
.event-item h4{
    margin-top: 0;
    margin-bottom: 10px;
}
.event-item a{
    text-decoration: none;
    color: #228b22;
    margin-top: 5px;
    display: block;
}
.event-item img{
    width: 128px;
    object-fit: contain;
    align-self: center;
    margin-right: 20px;
}
#show-more-events{
    display: none;
    text-align: center;
    text-decoration: none;
    color: #228b22;
}

.event-list.collapsed #show-more-events {
    display: block;
}


@media (max-width: 500px) {
    .event-item{
        flex-direction: column;
    }
    .event-item img{
        margin-right: 0;
        margin-bottom: 20px;
    }
}


.truncated-text {
    cursor: pointer;
    line-height: 20px;
    max-height: 40px; /* Adjust as needed for 1-2 lines */
    overflow: hidden;
    position: relative;
}

.truncated-text:not(.expanded-text)::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    background: white; /* Match background color to hide overflow */
    padding-left: 5px; /* Add some space */
}

.expanded-text {
    max-height: none; /* Remove height limitation */
}

.events{
    padding: 40px 20px 50px 20px;
}
.events p{
    text-align: center;
}
.events h2 {
    color: #228b22;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .event-item:hover {
        transform: scale(1.02);
    }
}



.partners {
    padding: 40px 20px 100px 20px; /* Adjust padding as needed */
    text-align: center;
}
  
.partners h2 {
    margin-bottom: 30px;
    color: #228b22;
    font-size: 2em;
    font-weight: 700;
}
  
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust minmax as needed */
    grid-gap: 20px;
    justify-content: center; /* Center the grid */
    align-items: center;
}
  
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}
  
.partner-item img {
    max-width: 150px; /* Adjust max-width as needed */
    height: auto;
    margin-bottom: 10px;
}
    
/* Responsive adjustments */
@media (max-width: 600px) {
    .partner-grid {
        grid-template-columns: 1fr; /* One column on small screens */
    }
}


header {
    position: relative;
}

#hamburger-btn {
    position: fixed;
    top:10px;
    right:10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 40px;
    width: 40px;
    z-index: 1;
    background-color: #f4f4f4;
    transition: transform 0.2s;
    transform-origin: top right;
}
#hamburger-btn.scrolled{
    transform: scale(0.5);
}

.bar {
    width: 40px;
    height: 4px;
    background-color: #228b22;
    transition: 0.4s;
}

#hamburger-menu {
    position: fixed;
    top: 60px;
    right: 10px;
    background-color: #f9f9f9;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#hamburger-btn.scrolled + #hamburger-menu{
    top: 40px;
}

#hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

#hamburger-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #228b22;
}

#hamburger-menu li a:hover {
    background-color: #eee;
}
#hamburger-menu li:first-child a:hover{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
#hamburger-menu li:last-child a:hover{
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#hamburger-btn.open .bar:nth-child(1) {
    transform: translate(0px,13.5px) rotate(45deg) ;
}

#hamburger-btn.open .bar:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.open .bar:nth-child(3) {
    transform: translate(0,-13.5px) rotate(-45deg);
}

#about{
    padding: 0 20px 60px 20px;
}

#about h2{
    color: #228b22;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.summary{
    font-size: 13px;
    line-height: 18px;
}