* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../hero-background.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
}

.tnavbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.856);
    padding: 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    opacity: 0.9;
    transition: 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.btn-donate-top {
    background-color: #00b359;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: lowercase;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn-donate-top:hover {
    background-color: #008f47;
}

.hero-text {
    position: absolute;
    left: 60px;
    bottom: 60px;
    color: white;
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.status {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.4;
}

.counter-box {
    display: inline-block;
    background-color: #000;
    color: white;
    border: 2px solid #fff;
    padding: 10px 45px;
    border-radius: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
}

.donation-container {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.flex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.donation-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 350px;
    text-align: center;
}

.price-header {
    background: #b35900;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tree-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.tree-option {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-option:hover {
    border-color: #00b359;
    color: #00b359;
}

.tree-option.selected {
    border: 2px solid #00b359;
    color: #00b359;
    font-weight: 700;
    background-color: #f0fff7;
}

.custom-amount {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fdfdfd;
}

.btn-submit {
    width: 100%;
    background: #00b359;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.quote-box {
    max-width: 400px;
    text-align: center;
}

.earth-icon img {
    width: 120px;
    margin-bottom: 20px;
}

.quote-text p {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.quote-text cite {
    font-style: normal;
    color: #777;
    font-size: 1rem;
}

.leaderboard-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leaderboard-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.search-box {
    background: #fff;
    border-radius: 25px;
    padding: 5px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px;
}

.filter-group {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s;
    min-height: 44px;
    touch-action: manipulation;
}

.filter-btn.active {
    color: #00b359;
}

.leader-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.leader-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.leader-card:hover {
    transform: translateY(-2px);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.avatar-box img {
    width: 45px;
    height: 45px;
    border-radius: 0;
    object-fit: contain;
}

.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.tree-badge {
    background: #00b359;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
}

.date {
    font-size: 0.75em;
    color: #999;
}

.site-footer {
    background-color: #00b359;
    color: white;
    padding: 60px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-col a, .footer-col p {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-col p {
    display: flex;
    align-items: center;
    gap: 10px;
}

#donation {
    scroll-margin-top: 300px;
}

#leaderboard {
    scroll-margin-top: 70px;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 10px 30px;
    }

    .hero-text {
        left: 30px;
        bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .flex-row {
        gap: 40px;
    }

    .leaderboard-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-actions {
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 12px;
    }

    .btn-donate-top {
        padding: 6px 15px;
        font-size: 12px;
    }

    .hero-text {
        left: 20px;
        bottom: 30px;
        right: 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .status {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .counter-box {
        padding: 8px 25px;
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .donation-container {
        padding: 40px 20px;
    }

    .flex-row {
        flex-direction: column;
        gap: 40px;
    }

    .donation-card {
        width: 100%;
        max-width: 400px;
    }

    .quote-box {
        max-width: 100%;
    }

    .quote-text p {
        font-size: 1.2rem;
    }

    .leaderboard-section {
        padding: 30px 15px;
    }

    .leaderboard-header {
        flex-direction: column;
        gap: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-group {
        width: 100%;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
    }

    .leader-card {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .card-left {
        flex-direction: column;
        text-align: center;
    }

    .card-right {
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .site-footer {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 24px;
    }

    .navbar {
        padding: 8px 15px;
    }

    .nav-actions {
        gap: 10px;
    }

    .hero-text {
        left: 15px;
        bottom: 20px;
        right: 15px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .status {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .counter-box {
        padding: 6px 20px;
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .donation-card {
        padding: 20px;
    }

    .tree-grid {
        grid-template-columns: 1fr;
    }

    .quote-text p {
        font-size: 1rem;
    }

    .earth-icon img {
        width: 80px;
    }

    .section-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .leader-card {
        padding: 12px 15px;
    }

    .avatar-box img {
        width: 35px;
        height: 35px;
    }

    .tree-badge {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}
