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

.first-section .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/donations-background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.8);
    z-index: -1; 
}

header {
    position: relative;
    z-index: 1;
}

.first-section .first-section-content {
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.first-section h1, .first-section p {
    position: relative;
    z-index: 2;
}

.first-section h1, .first-section p{
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    color: white;
}

.first-section h1{
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.first-section p{
    width: 80%;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.8;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section {
    width: 100%;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.why-donate-section, .donate-options-section{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.why-donate-content, .donate-options-content {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    height: 80%;
}

.donate-options-content{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.why-donate-section:hover .why-donate-content,
.donate-options-section:hover .donate-options-content{
    transform: scale(1.05); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.why-donate-section-left {
    padding: 20px;
    box-sizing: border-box;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-evenly;
}

.why-donate-section-left h2, .donate-options-section h2 {
    color: #2c662d;
    font-size: 24px;
    margin-bottom: 10px;
}

.why-donate-section-left p,
.donate-options-section p {
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.donate-button-sec {
    display: inline-block;
    padding: 10px 20px;
    background: #2c662d;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.donate-button-sec:hover {
    background: #1e4d1f;
}

.donors-section-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    width: 50%;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.donors-section-right h3 {
    text-align: center;
    color: #2c662d;
    font-size: 20px;
    margin-bottom: 10px;
}

#donors-list{
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    height: 80%;
    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;
}

.donation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.donation-buttons button {
    background: #2d6a4f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.donation-buttons button:hover {
    background-color: #40916c;
    transform: scale(1.1);
}

.donation-impact {
    width: 90%;
    box-sizing: border-box;
    background: #e8f5e9;
    margin-top: 20px;
    border-radius: 5px;
    text-align: left;
    color: #2c662d;
    text-align: center;
    overflow-y: auto;
}

.donation-impact h3 {
    color: #2d6a4f;
}

.donation-impact p {
    font-size: 14px;
    margin-left: 15px;
    margin-right: 15px;
}

.adopt-tree-section {
    width: 100%;
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: center;
    color: white;
    background: url('/img/donations-adopt.jpg') no-repeat center center/cover;
    position: relative;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.adopt-tree-content{
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.adopt-tree-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.adopt-tree-section h2,
.adopt-tree-section p,
.adopt-tree-section a {
    position: relative;
    z-index: 2;
}

.adopt-tree-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.adopt-tree-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 20px;
    text-align: justify;
}

.adopt-tree-section a {
    display: inline-block;
    padding: 12px 25px;
    background: #2d6a4f;
    color: white;
    text-decoration: none;
    width: fit-content;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.adopt-tree-section a:hover {
    background-color: #40916c;
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .first-section-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .first-section h1 {
        font-size: 3rem;
    }

    .why-donate-content{
        flex-direction: column;
        height: 95%;
    }

    .donate-options-content{
        height: 95%;
        padding: 20px;
    }

    .donate-options-section{
        box-sizing: border-box;
        height: auto;
    }

    .donation-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        margin: 20px 0;
    }

    .donation-buttons a {
        width: 100%;
        max-width: 250px; 
    }

    .donation-buttons button {
        width: 100%;
    }

    .why-donate-section-left{
        overflow-y: auto;
    }

    .why-donate-section-left, .donors-section-right{
        width: 100%;
        height: 50%;
    }

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

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

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

    .adopt-tree-section{
        height: auto;
        align-items: center;
    }

    .adopt-tree-content{
        width: 90%;
    }
}