/* Base styles and variables */
:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --accent-color: #8fbc8f;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --light-text: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Header styles */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(44, 85, 48, 0.8), rgba(44, 85, 48, 0.8)), url('https://images.unsplash.com/photo-1418065460487-3e41a6c84dc5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* About section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #e8f5e8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-image-content {
    text-align: center;
    padding: 30px;
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Previous Movements section */
.previous-movements {
    background-color: #f1f8e9;
}

.movements-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.reference-item {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.reference-item:last-child {
    margin-bottom: 0;
}

/* Manifesto section */
.manifesto {
    background-color: #f1f8e9;
}

/* Manifesto Layout */
.manifesto-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.manifesto-content {
    flex: 1;
}

.manifesto-sidebar {
    width: 300px;
}

/* Manifesto subtitles */
.manifesto-content h3 {
    font-size: 1.4rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.manifesto-content h3:first-of-type {
    margin-top: 0;
}

/* Grid layouts for principles and demands */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.demands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Principle cards with left-aligned icons */
.principle-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.principle-card:hover {
    transform: translateY(-5px);
}


.principle-content {
    line-height: 1.5;
    margin-bottom: 0;
}

.principle-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.principle-card p {
    font-size: 1.0rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Demand cards with left-aligned icons */
.demand-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: left;
}

.demand-card:hover {
    transform: translateY(-5px);
}

.demand-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.demand-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.demand-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.demand-content p {
    font-size: 1.0rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Manifesto sidebar */
.manifesto-actions {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.manifesto-actions h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.manifesto-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-manifesto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
}

.btn-manifesto .btn-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Get involved section */
.get-involved {
    background-color: var(--light-color);
    text-align: center;
}

.involved-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.involved-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Get Involved Section - Adjustments for 2/5 width layout */
.involved-row2 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch; /* Make cards equal height */
}

/* First row specific styles - make sign-manifesto card 2/5 width */
.involved-card.sign-manifesto {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: transparent;
    box-shadow: none;
}

.involved-card2 {
    flex: 0 0 calc(60% - 30px);
    max-width: calc(60% - 30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.involved-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.involved-card:hover {
    transform: translateY(-5px);
}


.involved-card.sign-manifesto h3 {
    font-size: 1.2rem;
    margin-bottom: 0; /* Remove bottom margin since we're using flex row */
}

.involved-card.sign-manifesto p {
    font-size: 1rem;
    max-width: 800px;
    align-items: right;
    margin-bottom: 0; /* Remove bottom margin */
    flex: 1; /* Allow text to take remaining space */
}

.involved-card.sign-manifesto .btn {
    font-size: 1.5rem;
    padding: 15px 30px;
    flex-shrink: 0; /* Prevent button from shrinking */
    white-space: nowrap; /* Keep button text on one line */
}

/* Newsletter form */
.newsletter-form {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.newsletter-form h3 {
    color: white;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group button {
    white-space: nowrap;
}

.form-message {
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: block;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ffcccc;
    display: block;
}

/* Resources section */
.resources {
    background-color: #f1f8e9;
}

.references-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.reference-list {
    list-style: none;
    counter-reset: reference-counter;
}

.reference-list li {
    counter-increment: reference-counter;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50px;
}

.reference-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reference-list li::before {
    content: "[" counter(reference-counter) "]";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.reference-citation {
    font-style: italic;
    margin-bottom: 5px;
}

.reference-link {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Contact section */
.contact {
    background-color: #f1f8e9;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    margin-right: 30px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

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

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

.footer-links a {
    color: #ccc;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Signers Section Styles */
.signers {
    background-color:var(--light-color);
    padding: 80px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow);
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    min-width: 80px; /* Fixed width ensures alignment */
}

.stats-text h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.stats-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.9rem;
}

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

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(44, 85, 48, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: white;
    margin-bottom: 30px;
}

.signers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.signers-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
}

.signers-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.signers-table tr:last-child td {
    border-bottom: none;
}

.signers-table tr:hover {
    background-color: #f9f9f9;
}

.promoter-row {
    background-color: #f0f7f0 !important;
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
}

.promoter-row:hover {
    background-color: #e8f5e8 !important;
}

.promoter-row td:first-child {
    font-weight: 700;
    color: var(--primary-color);
}

.institution-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
}

.read-more {
    text-align: center;
    margin-top: 30px;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.tab:hover {
    background-color: #f0f7f0;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive for manifesto */
@media (max-width: 992px) {
    .manifesto-layout {
        flex-direction: column;
    }
    
    .manifesto-sidebar {
        width: 100%;
        order: -1;
    }
    
    .manifesto-actions {
        position: static;
        max-width: 400px;
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .principles-grid,
    .demands-grid {
        grid-template-columns: 1fr;
    }
    
    .principle-card {
        flex-direction: column;
        text-align: center;
    }
    
    .principle-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .demand-header {
        flex-direction: column;
        text-align: center;
    }
    
    .demand-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image, .about-text, .contact-info {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0 0 30px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .manifesto-buttons {
        flex-direction: column;
        align-items: center;
    }

    .form-group {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stats-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .stats-text h3 {
        font-size: 1.1rem;
    }

    .stats-text p {
        font-size: 0.85rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .involved-row2 {
        flex-direction: row; /* Keep them in a row */
        gap: 15px; /* Reduce gap for mobile */
    }
    
    .involved-card.sign-manifesto {
        flex: 0 0 45%; /* Adjust width for mobile */
        max-width: 45%;
        padding: 20px;
    }
    
    .involved-card2 {
        flex: 0 0 calc(55% - 15px); /* Adjust width for mobile */
        max-width: calc(55% - 15px);
        padding: 20px;
    }
    
    /* Adjust button text for mobile */
    .involved-card.sign-manifesto .btn {
        font-size: 1.1rem;
        padding: 12px 20px;
        white-space: normal; /* Allow text to wrap */
        word-break: break-word;
    }
    
    /* Adjust text in second card */
    .involved-card2 p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* For very small screens, you might want them to stack */
@media (max-width: 480px) {
    .involved-row2 {
        flex-direction: column; /* Stack vertically on very small screens */
        gap: 20px;
    }
    
    .involved-card.sign-manifesto,
    .involved-card2 {
        flex: 1 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .involved-card.sign-manifesto .btn {
        font-size: 1.2rem;
        padding: 15px 25px;
    }
}