.section{
    height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.main-header .logo{
    background-image: url("/img/logo-2.png");
}

.first-section {
    flex-direction: column;
    color: white;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
        url('/img/index-background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.first-section h1 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section p{
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.8;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section-btns {
    text-align: center;
}

.first-section-btns a {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    font-size: 1.2rem;
    color: white;
    background-color: #4CAF50;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.first-section-btns a:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

/* Second section */

.second-section{
    padding: 20px;
}

.second-section-left {
    height: 100%;
    box-sizing: border-box;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.second-section-top {
    height: 70%;
}

.second-section-top h2 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: #2E7D32;
    border-bottom: 2px solid #2E7D32;
    padding-bottom: 5px;
}

.second-section-top p {
    font-size: 1rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 20px;
}

.second-section-bottom {
    height: 30%;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.second-section-bottom h3 {
    font-size: 1.8rem;
    color: #4CAF50;
    margin-bottom: 1px;
}

.trees-planted-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.second-section-bottom p {
    font-size: 1.2rem;
    text-align: start;
    color: #333;
}

.second-section-bottom .trees-count {
    font-weight: bold;
    color: #2E7D32;
    font-size: 1.5rem;
}

.second-section-right{
    width: 50%;
}

.gallery {
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: auto;
    height: 100vh;
    overflow: hidden;
}

.gallery__strip__wrapper {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.gallery__strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.gallery__strip.one {
    animation-name: move-down-up;
}

.gallery__strip.two {
    animation-name: move-up-down;
}

.photo {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.photo__image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.photo__image img {
    width: 80%;
    border-radius: 5px;
}

@keyframes move-down-up {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(50%);
    }
}

@keyframes move-up-down {
    0% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}

.third-section {
    border-top: solid 5px #219150;
    border-bottom: solid 5px #219150;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9); 
    background-image: url('/img/adopt-background-2.png');
    background-size: contain;
    background-position: center;
    background-blend-mode: lighten;
}

.third-section h2, .fourth-section h2, .fifth-section h2, .sixth-section h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2E7D32;
    text-align: center;
    position: relative;
}

.fifth-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    color: #2E7D32;
}

.third-section h2::after, .fourth-section h2::after, .fifth-section h2::after, .sixth-section h2::after, .fifth-section h3::after{
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #27ae60;
    margin: 10px auto 0;
    transition: width 0.3s ease-in-out;
}

.third-section:hover h2::after, .sixth-section:hover h2::after, .fourth-section:hover h2::after, .fifth-section:hover h2::after  {
    width: 150px; 
}

.third-section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.third-section-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
    width: calc(25% - 20px);
    border: 2px solid var(--text);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.third-section-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.third-section-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.third-section-card:hover .image-overlay{
    opacity: 1;
}

.image-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.image-overlay h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #27ae60;
    margin: 5px auto 0;
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.third-section-card:hover .image-overlay h3::after {
    width: 100px;
}

.image-overlay p {
    font-size: 1rem;
    font-style: italic;
}

.image-overlay a {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.image-overlay a:hover {
    background: #219150;
}

.third-section-p {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: #2c3e50;
}

/*fourth section*/
.fourth-section {
    display: flex;
    flex-direction: column;
    border-bottom: solid 5px #219150;
}

.fourth-section-container {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 80%;
    padding: 20px;
    box-sizing: border-box;
}

.map-container {
    box-sizing: border-box;
    padding: 20px;
    width: 50%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.regions-info-container {
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 10px;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.region-card {
    cursor: pointer;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.region-card:hover {
    transform: scale(1.05);
}

.region-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #4CAF50;
}

.region-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.region-card h3::after {
    content: "";
    display: block;
    width: 40%;
    height: 3px;
    background: #4CAF50;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.region-card:hover h3::after {
    width: 100%;
}

.region-description p {
    font-size: 1rem;
    color: #666;
}

/*fifth-section*/
.fifth-section {
    flex-direction: column;
    background-color: #f5f5f5;
    background-color: rgba(255, 255, 255, 0.9); 
    background-image: url('/img/adopt-background-2.png');
    background-size: contain;
    background-position: center;
    background-blend-mode: lighten;
}

.fifth-section-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 70%;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.fifth-section-left, .fifth-section-right {
    width: 48%;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.fifth-section-right{
    justify-content: space-between;
    text-align: center;
}

.fifth-section-left:hover h3::after, .fifth-section-right:hover h3::after  {
    width: 100%; 
}

.fifth-section-left{
    justify-content: space-between;
}

.fifth-section-left-bottom{
   display: flex;
   width: 100%;
   height: 80%;
   padding-left: 20px;
   padding-right: 20px;
   padding-bottom: 20px;
   box-sizing: border-box;
}

.fifth-section-left-bottom-left{
    padding-right: 20px;
    box-sizing: border-box;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: justify;
}

.fifth-section-left-bottom-right {
    width: 40%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.fifth-section-left-bottom-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right;
}

.fifth-section p, .no-donations-message, .no-testimonials-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.fifth-section-left p {
   margin-top: 0px;
}

.fifth-section-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
}

.fifth-section-btn:hover {
    background: #45a049;
}

#donors-list{
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    max-height: 70%;
    overflow-y: auto;
}

.donor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.donor-row div {
    flex: 1;
    text-align: start;
    padding: 5px;
}

.amount {
    font-weight: bold;
    color: #4CAF50;
}

.donor-row:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

/*sixth section*/

.sixth-section{
    flex-direction: column;
    height: auto;
}

.sixth-section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 10px;
    margin-bottom: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    width: 280px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.testimonial-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 10px 0;
}

.testimonial-card p {
    font-size: 1.2rem;
    color: #666;
}

.testimonial-card .role {
    font-weight: bold;
    color: var(--donate-btn);
    margin-top: 10px;
}

@media (max-width: 768px) {

    .first-section-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .first-section h1 {
        font-size: 3rem;
    }
    
    .second-section{
        flex-direction: column;
    }

    .second-section-left, .second-section-right{
        height: 50%;
        width: 100%;
    }

    .second-section-left{
        margin-bottom: 10px;
    }

    .second-section-top{
        height: auto;
        overflow-y: auto;
    }

    .second-section-bottom h3 {
        margin: 0px;
    }

    .second-section-bottom{
        height: fit-content;
        margin-top: 20px;
    }

    .gallery{
        height: 100%;
    }

    .third-section{
        height: auto;
        padding: 20px;
    }

    .third-section-card{
        height: 380px;
        width: calc(75% - 20px);
    }

    .fourth-section{
        height: auto;
        padding: 10px;
    }

    .fourth-section-container{
        flex-direction: column;
        padding-top: 0px;
    }

    .map-container, .regions-info-container{
        height: 50%;
        width: 100%;
    }

    .regions-info-container{
        padding: 0px;
        margin-top: 20px;
    }

    .region-image{
        width: 100px;
        height: 100px;
    }

    .fifth-section-container{
        flex-direction: column;
        height: 80%;
    }

    .fifth-section-left, .fifth-section-right{
        width: 100%;
        height: 50%;
    }

    .fifth-section-left{
        margin-bottom: 20px;
        overflow-y: auto;
    }

    .fifth-section-left-bottom{
        padding-left: 40px;
    }

    .fifth-section-left-bottom-left{
        width: 100%;
    }

    .fifth-section-left-bottom-right{
        display: none;
    }

    .fifth-section-right p {
        text-align: center;
    }

    .donor-row{
        flex-direction: column;
    }

    .donor-row div{
        padding: 3px;
    }


    .amount{
        margin-left: 5px;
        margin-right: 5px;
    }


}