/* General Styles */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --secondary-color: #4caf50;
    --accent-color: #ff9800;
    --light-blue: #bbdefb;
    --light-green: #c8e6c9;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --red: #e53935;
    --blue: #1e88e5;
    --green: #43a047;
    --yellow: #fdd835;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style-position: inside;
}

section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #f0f0f0;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Announcement Banner */
.announcement-banner {
    background-color: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-weight: bold;
    position: relative;
    z-index: 1000;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    padding: 0 20px;
}

.logo-container img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0 20px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/1600x900/?vegetables,healthy-food');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-text ul {
    margin: 20px 0;
}

.sustainability-focus {
    background-color: var(--light-green);
    padding: 20px;
    border-radius: 8px;
}

/* Impact Calculator Section */
.calculator-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.calculator-intro {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.result-card {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.result-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.calculator-history {
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.history-list {
    margin: 20px 0;
}

.history-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.total-impact {
    background-color: var(--light-green);
    padding: 15px;
    border-radius: 4px;
}

/* Pledge Wall Section */
.pledge-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.pledge-intro {
    text-align: center;
    margin-bottom: 30px;
}

.pledge-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.pledge-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pledge-card {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pledge-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.pledge-card .pledge-meta {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

/* Facts Section */
.facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.fact-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    align-items: flex-start;
}

.fact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.fact-content h3 {
    margin-bottom: 10px;
}

.fact-highlight {
    background-color: var(--light-green);
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 500;
}

/* Tracker Section */
.tracker-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.tracker-intro {
    text-align: center;
    margin-bottom: 30px;
}

.tracker-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.tracker-stats {
    margin-top: 40px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.leaderboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.leaderboard {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.leaderboard h3 {
    text-align: center;
    margin-bottom: 20px;
}

.leaderboard-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 250px;
}

.leaderboard-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.bar {
    width: 40px;
    height: calc(var(--bar-height) * 200px);
    margin-bottom: 10px;
}

.red-bar {
    background-color: var(--red);
}

.blue-bar {
    background-color: var(--blue);
}

.green-bar {
    background-color: var(--green);
}

.yellow-bar {
    background-color: var(--yellow);
}

.bar-label {
    margin-bottom: 5px;
}

.bar-value {
    font-weight: 600;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.leaderboard-table th {
    background-color: #f0f0f0;
}

/* Challenge Section */
.challenge-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.challenge-intro {
    text-align: center;
    margin-bottom: 30px;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.spinner {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 3s ease-out;
}

.spinner-inner {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.challenge-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.challenge-list {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.challenge-list ul {
    margin-top: 15px;
    list-style-type: circle;
}

.challenge-list li {
    margin-bottom: 10px;
}

/* Activities Section */
.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.activities-intro {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.activity-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-weight: 500;
}

.activity-link i {
    margin-right: 8px;
}

/* Videos Section */
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3 {
    padding: 15px 20px 5px;
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--light-text);
}

/* Hope Section */
.hope-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.hope-image img {
    width: 100%;
    border-radius: 8px;
}

.hope-content blockquote {
    background-color: var(--light-blue);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-content,
    .leaderboard-container,
    .hope-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .fact-card,
    .video-card {
        flex-direction: column;
    }
    
    .fact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
