/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* Buttons - Universal button styling */
.btn, 
button.btn,
a.btn,
.hero-buttons a,
.hero-buttons button,
.gain-actions a,
.doughnut-cta a,
.secondary-actions a,
.contact-section a,
.partner-buttons-group a,
.partner-buttons-group button,
.support-section a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
    font-family: inherit;
}

/* Specific button types */
.btn-primary,
#register-btn,
#register-main,
#partner-form-btn,
.doughnut-cta .btn {
    background-color: #299b8e;
    color: white;
}

.btn-primary:hover,
#register-btn:hover,
#register-main:hover,
#partner-form-btn:hover,
.doughnut-cta .btn:hover {
    background-color: #237a70;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 155, 142, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #299b8e;
    border: 2px solid #299b8e;
}

.btn-secondary:hover {
    background-color: #299b8e;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.btn-outline:hover {
    border-color: #299b8e;
    color: #299b8e;
    transform: translateY(-2px);
}

.btn-donate {
    background-color: #f7b801;
    color: #1f2937;
    border: 2px solid transparent;
}

.btn-donate:hover {
    background-color: #e6a700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 184, 1, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* Location Selector - Centered */
.location-selector {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.location-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
}

.location-tab {
    background: #f3f4f6;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.location-tab.active {
    background: #299b8e;
    color: white;
}

/* Hero Section */
.hero {
    padding: 3.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, rgba(41, 155, 142, 0.05) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: #299b8e;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

.hero-description {
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

.application-deadline {
    background: #f7b801;
    padding: 1.75rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.application-deadline p {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2.5rem 0;
}

/* Gains Section in Hero */
.gains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.gain-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    height: 100%;
    min-height: 320px;
}

.gain-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.gain-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.gain-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gain-content h3 {
    margin-bottom: 0.75rem;
}

.gain-content p {
    flex: 1;
    margin-bottom: 1.5rem;
}

.gain-actions {
    margin-top: auto;
}

.gain-actions .btn {
    width: 100%;
}

/* Info Cards Section */
.info-section {
    padding: 3.5rem 0;
    background: white;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
}

/* Gain Section */
.gain-section {
    padding: 3.5rem 0;
    background: #f9fafb;
}

.gain-section h2 {
    text-align: center;
    margin-bottom: 1.25rem;
}

.gain-section > .container > p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    color: #6b7280;
}

.gain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* Community Image Section */
.community-image-section {
    padding: 3.5rem 0;
    background: white;
}

.community-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.community-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(41, 155, 142, 0.9) 0%, rgba(35, 122, 112, 0.8) 100%);
    opacity: 0.1;
}

/* About Section */
.about-section {
    padding: 3.5rem 0;
    background: #f9fafb;
}

.about-section .container {
    max-width: 900px;
}

.success-list {
    list-style: none;
    margin: 1.75rem 0;
}

.success-list li {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25rem;
    border-left: 4px solid #299b8e;
}

.success-list strong {
    color: #299b8e;
}

.deadline-reminder {
    background: #f7b801;
    padding: 1.75rem;
    border-radius: 12px;
    margin: 1.75rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.deadline-reminder p {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

/* Team Section */
.team-section {
    padding: 3.5rem 0;
    background: white;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 1.25rem;
}

.team-section > .container > p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    color: #6b7280;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    display: block;
    border: 3px solid #3fb5a8;
}

.member-info {
    width: 100%;
}

.member-info h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.linkedin-link {
    color: #299b8e;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.linkedin-link:hover {
    color: #f7b801;
}

.member-title {
    color: #299b8e;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    color: #6b7280;
}

/* Doughnut Section */
.doughnut-section {
    padding: 3.5rem 0;
    background: #f9fafb;
}

.doughnut-section h2 {
    text-align: center;
    margin-bottom: 1.25rem;
}

.doughnut-section p {
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    color: #6b7280;
}

.doughnut-image-container {
    text-align: center;
    margin-bottom: 1.75rem;
}

.doughnut-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.doughnut-cta {
    text-align: center;
}

.doughnut-cta p {
    margin-bottom: 1.25rem;
}

/* Timeline Section */
.timeline-section {
    padding: 3.5rem 0;
    background: white;
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.timeline {
    display: grid;
    gap: 1.75rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #299b8e, #f7b801);
    border-radius: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.75rem;
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    position: relative;
    margin-left: 1.75rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #299b8e;
    border-radius: 50%;
    z-index: 1;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: #299b8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    background: #237a70;
}

.timeline-content h3 {
    margin-bottom: 0.75rem;
    color: #299b8e;
}

.timeline-date {
    color: #f7b801;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: #6b7280;
}

/* Partners Section - Fixed alignment */
.partners-section {
    padding: 3.5rem 0;
    background: #f9fafb;
}

.partners-section h2 {
    text-align: center;
    margin-bottom: 1.25rem;
}

.partners-section p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    color: #6b7280;
}

.partner-form-container {
    text-align: center;
    margin-bottom: 3.5rem;
}

.partner-buttons-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    justify-items: center;
}

.partner {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    max-width: 250px;
    width: 100%;
}

.partner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Community Partners specific styling */
.partners-section h2:last-of-type {
    margin-top: 3rem;
}

.partner-logo-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    width: 100%;
}

.partner img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner h3 {
    margin-bottom: 0.75rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner h3 a {
    color: #299b8e;
    text-decoration: none;
    font-size: 1.1rem;
}

.partner h3 a:hover {
    text-decoration: underline;
}

.partner p {
    font-size: 0.9rem;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.partner-placeholder {
    width: 80px;
    height: 80px;
    background: #299b8e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.25rem;
}

/* Support Section */
.support-section {
    padding: 3rem 0;
    background: white;
    text-align: center;
}

.support-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

.support-section p {
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

/* Focus Section */
.focus-section {
    padding: 3.5rem 0;
    background: #f9fafb;
}

.focus-section h2 {
    text-align: center;
    margin-bottom: 1.25rem;
}

.focus-section p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    color: #6b7280;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.focus-item {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.focus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.focus-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
}

.focus-content {
    width: 100%;
}

.focus-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.focus-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: center;
}

/* Registration Section */
.registration-section {
    padding: 3.5rem 0;
    background: white;
    text-align: center;
}

.registration-section h2 {
    margin-bottom: 1.25rem;
}

.registration-section p {
    margin-bottom: 1.75rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.registration-info {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.registration-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.secondary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Contact Section */
.contact-section {
    padding: 3.5rem 0;
    background: #f9fafb;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1.25rem;
}

.contact-section p {
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.contact-footer {
    margin-top: 1.75rem;
    font-style: italic;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

.brevo-form {
    padding: 2.75rem 1.5rem 1.5rem;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.brevo-form h2 {
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
    line-height: 1.2;
    text-align: center;
}

.brevo-form > p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    text-align: center;
}

/* Brevo Form Overrides */
#sib-container {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-buttons, .secondary-actions, .partner-buttons-group {
        flex-direction: column;
        align-items: center;
    }
    
    .gains, .cards-grid, .gain-grid, .team-grid, .partners-grid, .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
        margin-left: 0;
        gap: 1rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-icon {
        margin: 0 auto;
    }
    
    .focus-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .brevo-form {
        padding: 2rem 1rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .partners-section h2:last-of-type {
        margin-top: 2.5rem;
    }
    
    .partner-logo-container {
        height: 70px;
    }
    
    .partner {
        min-height: auto;
        max-width: 100%;
    }
    
    .btn, .hero-buttons .btn, .gain-actions .btn, 
    .doughnut-cta .btn, .secondary-actions .btn, 
    .contact-section .btn, .partner-buttons-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .application-deadline {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .partner-buttons-group, .secondary-actions {
        gap: 0.75rem;
    }
    
    .registration-info {
        padding: 1.25rem;
    }
    
    .gains .gain-item {
        min-height: auto;
    }
}