:root {
    --bg-blue: #6ea8da;
    --container-green: #90b89c;
    --accent-red: #cc8e81;
    --text-black: #000000;
    --white: #ffffff;
    --header-btn-bg: #000000;
    --header-btn-text: #ffffff;
    --input-bg: #ffffff;
    --button-yellow: #e8c060; /* For volunteer/alerts buttons if needed */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(315deg, var(--accent-red) 40%, #6ea8da 60%);
    color: var(--text-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b87d6f 100%);
    padding: 120px 20px 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-dropdown {
    margin-bottom: 10px;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b87d6f 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background: linear-gradient(135deg, #b87d6f 0%, var(--accent-red) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b87d6f 100%);
    min-width: 180px;
    box-shadow: 0px 8px 24px 0px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 0;
    border: 1px solid var(--accent-red);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content a[data-lang].active,
.mobile-dropdown-content a[data-lang].active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .btn {
    background-color: #333;
}

.logo {
    font-size: 2.5rem;
    color: gold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    transform: scale(1.1);
}

.logo:hover {
    transform: scale(1.2);
}

.logo a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    transition: transform 0.3s ease;
    height: 100%;
    width: auto;
    max-height: 100px;
    transform: scale(1.1);
}

.logo:hover img {
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: var(--container-green);
    opacity: 0.8;
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes footer to bottom */
    z-index: 100;
    position: relative;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 2.5rem;
    color: gold;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    display: block;
}

.footer-text p {
    margin: 2px 0;
    font-weight: bold;
}

.footer-btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b87d6f 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-btn:hover {
    background: linear-gradient(135deg, #b87d6f 0%, var(--accent-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .nav-group {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    header {
        padding: 1rem 1.5rem;
        min-height: 80px;
    }
    
    footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer-content {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-btn {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .footer-logo {
        order: 0;
    }
    
    .footer-text {
        order: 2;
    }
}

/* Common Layout Containers */
.container {
    max-width: 1400px; /* Increased to accommodate sidebar */
    margin: 0 auto;
    padding: 20px 20px 20px 10px;
    width: 100%;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.section-box {
    background-color: var(--container-green);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Index Page Layout */
.main-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-column {
    flex: 2;
    min-width: 0; /* Prevent flex overflow */
}

.sidebar-column {
    flex: 1;
    min-width: 300px;
    height: 1px;
}

.sticky-widget {
    position: fixed;
    top: 180px;
    right: calc((100% - min(1400px, 100%)) / 2 + (min(1400px, 100%) / 6) - 350px);
    width: 550px;
    max-width: calc(100vw - 20px);
    background-color: var(--container-green);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(204, 142, 129, 0.3);
    z-index: 50;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

@media (max-width: 1400px) {
    .sticky-widget {
        right: calc((100vw / 6) - 350px);
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        display: flex;
    }
    
    .content-column {
        display: contents;
    }
    
    .sidebar-column {
        width: 100%;
        height: auto;
    }
    
    .sticky-widget {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
        transform: none;
    }
    
    /* Position donation above Join Our Campaign Team */
    .content-title,
    .content-subtitle,
    .content-image,
    .quote-section {
        order: 0;
    }
    
    .sidebar-column {
        order: 1;
    }
    
    #join-campaign-team {
        order: 2;
    }
    
    /* All other sections after Join Campaign Team */
    .section-box:not(.quote-section):not(#join-campaign-team) {
        order: 3;
    }
}

@media (max-width: 900px) {
    .endorsements-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .sticky-widget {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        margin-bottom: 30px;
        transform: none;
    }
    
    .endorsements-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .endorsements-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .sticky-widget {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

.donation-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.donation-amount-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.donation-other-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #000000;
}

.donation-other-input::placeholder {
    color: #000000;
    opacity: 0.7;
}

.donation-other-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(204, 142, 129, 0.2);
}

.donation-amount-btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b87d6f 100%);
    border: 2px solid var(--accent-red);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.donation-amount-btn:hover {
    background: linear-gradient(135deg, #b87d6f 0%, var(--accent-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* Input and textarea styling */
input::placeholder, textarea::placeholder {
    color: #000000;
    opacity: 0.7;
}

input:focus, textarea:focus {
    caret-color: var(--accent-red);
}

input::selection, textarea::selection {
    background-color: rgba(204, 142, 129, 0.2);
}


/* Bigger Elements Overrides */
/* Volunteer */
.volunteer-big .calendar-box {
    min-height: 500px; /* Bigger */
    font-size: 1.1rem;
}
.volunteer-big .form-box {
    padding: 50px; /* Bigger padding */
}
.volunteer-big .form-input {
    padding: 15px;
    font-size: 1.1rem;
}

/* Alerts */
.alerts-big .alert-card {
    min-height: 400px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.alerts-big .alert-card:hover {
    transform: translateY(-4px);
}

.alerts-big .inner-card-yellow {
    font-size: 1.5rem;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Professional Image Placeholder */
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(144, 184, 156, 0.1) 0%, rgba(204, 142, 129, 0.1) 100%);
    z-index: 1;
}

/* Professional Button Styles */
.primary-btn {
    background: linear-gradient(135deg, var(--container-green) 0%, #7fa88f 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Professional Card Styles */
.professional-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
