/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* 
  NOTE: For the forms to work properly, you need to include Brevo's CSS and JavaScript:
  
  Add to your page header:
  <link rel="stylesheet" href="https://sibforms.com/forms/end-form/build/sib-styles.css">
  
  Add to your page footer:
  <script defer src="https://sibforms.com/forms/end-form/build/main.js"></script>
*/

/* CSS Variables */
:root {
    --primary-green: #299b8e;
    --primary-green-dark: #237a70;
    --primary-green-light: #3fb5a8;
    --secondary-yellow: #f7b801;
    --secondary-yellow-dark: #e6a700;
    --text-dark: #293340;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Scoped Reset & Base - Only affects accelerator page */
.accelerator-page * {
    box-sizing: border-box;
}

.accelerator-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.accelerator-page .container {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.accelerator-page section {
    padding: 3rem 0;
}

/* Location Selector */
.location-selector {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.location-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.location-tab {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.location-tab.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.location-tab:hover:not(.active) {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Typography - Scoped to accelerator page only */
.accelerator-page h1, 
.accelerator-page h2, 
.accelerator-page h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.accelerator-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.accelerator-page h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* About section title and main content - left aligned */
.accelerator-page .about-section h2,
.accelerator-page .about-section h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.accelerator-page .about-section h2 {
    margin-bottom: 1.5rem;
}

/* About section paragraphs - left aligned, overriding center default */
.accelerator-page .about-section .container > p {
    text-align: left !important;
    max-width: none !important;
    margin: 0 0 1rem 0 !important;
}

/* Center align descriptive text under section titles */
.accelerator-page section > .container > p:first-of-type {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.accelerator-page h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.accelerator-page p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Application Deadline Styling */
.application-deadline {
    background: rgba(247, 184, 1, 0.1);
    border: 2px solid var(--secondary-yellow);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.application-deadline p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.deadline-reminder {
    background: rgba(247, 184, 1, 0.1);
    border: 1px solid var(--secondary-yellow);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.deadline-reminder p {
    margin: 0;
    color: var(--text-dark);
}

/* Buttons - Scoped to accelerator page */
.accelerator-page .btn-primary, 
.accelerator-page .btn-secondary, 
.accelerator-page .btn-outline,
.accelerator-page .btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accelerator-page .btn-primary {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.accelerator-page .btn-primary:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-1px);
}

.accelerator-page .btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.accelerator-page .btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

.accelerator-page .btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-light);
}

.accelerator-page .btn-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* NEW: Donate Button Styling */
.accelerator-page .btn-donate {
    background: var(--secondary-yellow);
    color: var(--text-dark);
    border-color: var(--secondary-yellow);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(247, 184, 1, 0.3);
}

.accelerator-page .btn-donate:hover {
    background: var(--secondary-yellow-dark);
    border-color: var(--secondary-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 184, 1, 0.4);
}

.accelerator-page .btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

.accelerator-page .btn-full {
    width: 100%;
}

/* Partner Buttons Group - Existing styling */
.partner-buttons-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.partner-buttons-group > * {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

/* Hero Section */
.hero {
    background: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero-content {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-green-light) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Community Image Section */
.community-image-section {
    background: var(--bg-white);
    padding: 2rem 0;
}

.community-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.community-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(41, 155, 142, 0.3) 0%, 
        rgba(41, 155, 142, 0.2) 50%, 
        rgba(41, 155, 142, 0.25) 100%
    );
    pointer-events: none;
}

/* Info Cards */
.info-section {
    background: var(--bg-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
}

/* About Section */
.about-section {
    background: var(--bg-white);
}

.about-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.about-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.about-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

/* Success List - Only tick marks, no bullets */
.success-list {
    list-style: none;
    margin: 2rem 0;
    padding-left: 0;
}

.success-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    list-style-type: none;
}

.success-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Doughnut Section */
.doughnut-section {
    background: var(--bg-white);
}

.doughnut-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.doughnut-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.doughnut-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.doughnut-image-container {
    text-align: center;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.doughnut-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.doughnut-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
}

/* Timeline */
.timeline-section {
    background: var(--bg-white);
}

.timeline-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.timeline-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.timeline-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.timeline-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1;
}

.timeline-date {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
    font-size: 1rem;
}

/* Team */
.team-section {
    background: var(--bg-white);
}

.team-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.team-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.team-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-green-light);
}

.member-info h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.linkedin-link {
    color: #0077b5;
    text-decoration: none;
}

.linkedin-link:hover {
    opacity: 0.7;
}

.member-title {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Partners */
.partners-section, .community-partners-section {
    background: var(--bg-white);
}

.partners-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.partners-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.partners-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.community-partners-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.community-partners-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.community-partners-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.partner {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-align: center;
}

.partner img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.partner h3 {
    margin-bottom: 0.5rem;
}

.partner h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.partner h3 a:hover {
    color: var(--primary-green);
}

.partner p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Partner Form Section */
.partner-form-section {
    background: var(--bg-white);
    text-align: center;
}

.partner-form-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.partner-form-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.partner-form-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.partner-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.partner-form-intro {
    margin-bottom: 2rem;
}

.partner-form-intro h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.partner-form-intro p {
    color: var(--text-gray);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* NEW: Support Section - Compact design */
.support-section {
    background: var(--bg-white);
    text-align: center;
    padding: 2rem 0; /* Smaller padding than other sections */
}

.support-section .container {
    background: linear-gradient(135deg, rgba(247, 184, 1, 0.1) 0%, rgba(247, 184, 1, 0.05) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem; /* Smaller padding than other containers */
    box-shadow: var(--shadow);
    border: 1px solid rgba(247, 184, 1, 0.2);
    max-width: 800px; /* Smaller max-width for compact feel */
    margin: 0 auto;
}

.support-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Smaller than h2 */
    text-align: center;
}

.support-section p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-section .btn-donate {
    margin-top: 0.5rem;
}

/* Focus Areas */
.focus-section {
    background: var(--bg-white);
}

.focus-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.focus-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent sticking to top border */
}

.focus-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent sticking to bottom border */
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.focus-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    align-items: center; /* FIXED: Center align icons instead of flex-start */
}

.focus-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.focus-content h3 {
    margin-bottom: 0.5rem;
}

.focus-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Registration Section */
.registration-section {
    background: var(--bg-white);
    text-align: center;
}

.registration-section .container {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem; /* FIXED: Even more top/bottom spacing for this important section */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    color: white;
}

.registration-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.registration-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.registration-section h2 {
    color: white;
    font-size: 2.5rem;
}

.registration-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Fixed registration info container positioning */
.registration-info {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.registration-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: none;
}

.registration-info strong {
    color: white;
}

.secondary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.accelerator-page .registration-section .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.accelerator-page .registration-section .btn-outline:hover {
    background: white;
    color: var(--primary-green);
}

/* Contact */
.contact-section {
    background: var(--bg-white);
    text-align: center;
}

.contact-section .container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem; /* FIXED: Better top/bottom spacing */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.contact-section h2:first-child {
    margin-top: 0; /* FIXED: Prevent title sticking to top border */
}

.contact-section .container > *:last-child {
    margin-bottom: 0; /* FIXED: Prevent content sticking to bottom border */
}

.contact-footer {
    font-style: italic;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* Bento Box Sections - Add margin for proper spacing */
.hero-content,
.about-section .container,
.doughnut-section .container,
.timeline-section .container,
.team-section .container,
.partners-section .container,
.community-partners-section .container,
.partner-form-section .container,
.support-section .container,
.focus-section .container,
.registration-section .container,
.contact-section .container {
    margin: 0 auto;
    max-width: 1200px;
}

/* Add responsive margins for bento boxes */
@media (min-width: 768px) {
    .hero-content,
    .about-section .container,
    .doughnut-section .container,
    .timeline-section .container,
    .team-section .container,
    .partners-section .container,
    .community-partners-section .container,
    .partner-form-section .container,
    .support-section .container,
    .focus-section .container,
    .registration-section .container,
    .contact-section .container {
        margin: 0 1.5rem;
    }
}

/* Modal - NOT scoped, positioned relative to body - UPDATED WITH OVERFLOW FIXES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start; /* Changed from center */
    justify-content: center;
    min-height: 100vh; /* Ensure full height */
    padding-top: 2rem; /* Space from top */
    padding-bottom: 2rem; /* Space from bottom */
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 4rem); /* Better height calculation */
    overflow-y: auto; /* Allow scrolling within modal */
    position: relative;
    margin: auto 0; /* Center vertically when content fits */
    display: flex;
    flex-direction: column;
}

/* Partner modal adjustments - larger and better scrolling */
#partner-modal .modal-content {
    max-width: 600px;
    max-height: calc(100vh - 4rem);
}

/* Improved close button positioning */
.modal-close {
    position: sticky; /* Changed from absolute */
    top: 0.5rem;
    right: 0.5rem;
    margin-left: auto;
    margin-bottom: -2.5rem; /* Negative margin to overlap content */
    background: white;
    border: 2px solid var(--border-light);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--primary-green);
}

/* Brevo form container adjustments */
.brevo-form {
    padding: 1.5rem; /* Reduced from 2rem for better fit */
    flex: 1;
    overflow-y: auto;
}

/* Better spacing for mobile forms */
.brevo-form h2 {
    color: var(--primary-green);
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    text-align: center;
    font-size: 1.6rem; /* Slightly smaller */
    margin-top: 0;
}

.brevo-form p {
    color: var(--text-gray);
    font-size: 0.95rem; /* Slightly smaller */
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    line-height: 1.4;
}

/* Brevo form styling overrides */
.brevo-form .sib-form {
    background: transparent !important;
}

.brevo-form #sib-container,
.brevo-form #sib-container-partner {
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Form input styling */
.brevo-form .form__entry .entry__field .input {
    width: 100% !important;
    padding: 0.875rem !important;
    border: 2px solid var(--border-light) !important;
    border-radius: var(--radius) !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: border-color 0.2s ease !important;
    background: white !important;
}

.brevo-form .form__entry .entry__field .input:focus {
    outline: none !important;
    border-color: var(--primary-green) !important;
}

/* Form labels */
.brevo-form .entry__label {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem !important;
}

/* Reduced form spacing for better fit */
.brevo-form .sib-form-block {
    margin-bottom: 1rem !important; /* Reduced from 1.25rem */
}

/* Radio button and checkbox styling */
.brevo-form .entry__choice {
    margin-bottom: 0.75rem !important;
}

.brevo-form .entry__choice label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

/* Submit button styling */
.brevo-form .sib-form-block__button {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: none !important;
    padding: 0.875rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.brevo-form .sib-form-block__button:hover {
    background-color: var(--primary-green-dark) !important;
    transform: translateY(-1px) !important;
}

/* Message styling */
.brevo-form .sib-form-message-panel {
    margin: 1rem 0 !important;
    padding: 1rem !important;
    border-radius: var(--radius) !important;
    text-align: center !important;
}

/* Hidden input styling */
.input--hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.1rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    text-align: center;
}

.form-message.success {
    background: #e7faf0;
    color: #085229;
    border: 1px solid #13ce66;
}

.form-message.error {
    background: #ffeded;
    color: #661d1d;
    border: 1px solid #ff4949;
}

/* Modal button styling - More specific targeting */
.modal .btn-primary,
.modal button[type="submit"].btn-primary,
.brevo-form .btn-primary,
.brevo-form button[type="submit"] {
    background: var(--primary-green) !important;
    color: white !important;
    border: 2px solid var(--primary-green) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .btn-primary:hover,
.modal button[type="submit"].btn-primary:hover,
.brevo-form .btn-primary:hover,
.brevo-form button[type="submit"]:hover {
    background: var(--primary-green-dark) !important;
    border-color: var(--primary-green-dark) !important;
    transform: translateY(-1px);
}

.modal .btn-full,
.brevo-form .btn-full {
    width: 100%;
}

/* Override Brevo form button styling to match site theme */
.sib-form-block__button {
    background-color: var(--primary-green) !important;
}

.sib-form-block__button:hover {
    background-color: var(--primary-green-dark) !important;
}

/* =============================================== */
/* IMPROVED MOBILE RESPONSIVE DESIGN */
/* =============================================== */

/* Enhanced Mobile Typography - More Readable */
@media (max-width: 768px) {
    .location-selector {
        padding: 1rem 0; /* More padding */
    }
    
    .location-tabs {
        flex-wrap: wrap;
        gap: 1rem; /* Increased gap */
        justify-content: center;
        padding: 0 1rem; /* Side padding */
    }
    
    .location-tab {
        padding: 0.75rem 1.5rem; /* Bigger touch targets */
        font-size: 0.95rem; /* Readable size */
        min-height: 44px; /* Touch guideline */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 25px; /* More rounded */
    }

    .accelerator-page h1 {
        font-size: 2.25rem; /* Increased from 2rem */
        line-height: 1.1; /* Better line height */
        margin-bottom: 1.5rem; /* More space */
    }
    
    .accelerator-page h2 {
        font-size: 1.875rem; /* Increased from 1.75rem */
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    
    .accelerator-page h3 {
        font-size: 1.25rem; /* Ensure readable size */
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .accelerator-page p {
        font-size: 1rem; /* Increased from smaller sizes */
        line-height: 1.6; /* Better readability */
        margin-bottom: 1.25rem;
    }

    /* Better Section Spacing */
    .accelerator-page section {
        padding: 2.5rem 0; /* Increased from 2rem */
    }
    
    .accelerator-page .container {
        padding: 0 1rem; /* Increased from 0.75rem */
    }
    
    /* Better card spacing */
    .accelerator-page .card {
        padding: 1.75rem; /* Increased from 1.5rem */
        margin-bottom: 1.5rem; /* Add margin between cards */
    }
    
    /* Better content container spacing */
    .hero-content,
    .about-section .container,
    .doughnut-section .container,
    .timeline-section .container,
    .team-section .container,
    .partners-section .container,
    .community-partners-section .container,
    .partner-form-section .container,
    .support-section .container,
    .focus-section .container,
    .registration-section .container,
    .contact-section .container {
        padding: 2.5rem 2rem; /* FIXED: Maintain proper top/bottom spacing on mobile */
        margin: 1rem; /* Better margins */
    }
    
    /* Support section gets less padding on mobile for compactness */
    .support-section .container {
        padding: 2rem 1.5rem; /* Smaller for this compact section */
        margin: 1rem; /* Better margins */
    }
    
    /* Registration section keeps more padding due to importance */
    .registration-section .container {
        padding: 3rem 1.5rem; /* FIXED: Maintain generous spacing */
    }

    /* BETTER HERO SECTION MOBILE */
    .hero {
        padding: 2rem 0; /* Less aggressive reduction */
    }
    
    .hero-content {
        padding: 2rem 1.5rem; /* Better padding */
        margin: 0 1rem; /* Side margins */
        border-radius: 16px; /* Appropriate radius */
    }
    
    .hero-description {
        font-size: 1.1rem; /* Keep readable */
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 1rem; /* Better spacing */
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons > * {
        min-height: 48px; /* Touch-friendly */
        font-size: 1.1rem; /* Readable */
        padding: 1rem 1.5rem; /* Better padding */
    }
    
    .application-deadline {
        padding: 1.5rem; /* More padding */
        margin: 2rem 0; /* Better margins */
    }
    
    .application-deadline p {
        font-size: 1.1rem; /* Keep readable */
    }

    /* BETTER COMMUNITY IMAGE - MOBILE */
    .community-image-section {
        padding: 1.5rem 0; /* Reduce padding on mobile */
    }
    
    .community-image-container {
        margin: 0 1rem; /* Side margins on mobile */
        border-radius: 12px; /* Smaller radius for mobile */
    }
    
    .community-image {
        max-height: 300px; /* Smaller max height on mobile */
    }

    /* BETTER CARDS GRID - MOBILE OPTIMIZED */
    .cards-grid,
    .partners-grid,
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Better gaps */
    }
    
    .card,
    .partner,
    .focus-item {
        padding: 1.75rem; /* Better padding */
        text-align: center; /* Better alignment */
    }
    
    /* FIXED: Focus items center alignment when they stack on mobile */
    .focus-item {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Keep icons centered when stacked vertically */
    }
    
    .card-icon {
        font-size: 3rem; /* Bigger icons */
        margin-bottom: 1.5rem;
    }
    
    .card h3,
    .partner h3,
    .focus-content h3 {
        font-size: 1.25rem; /* Readable headings */
        margin-bottom: 1rem;
    }
    
    .card p,
    .partner p,
    .focus-content p {
        font-size: 1rem; /* Readable body text */
        line-height: 1.5;
    }

    /* BETTER TIMELINE - MOBILE STACKING */
    .timeline-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-bottom: 2rem; /* Better spacing */
    }
    
    .timeline-icon {
        margin-bottom: 1rem; /* Space below icon */
        width: 60px; /* Slightly bigger */
        height: 60px;
        font-size: 1.5rem; /* Bigger icon text */
    }
    
    .timeline-content {
        padding: 1.5rem; /* Better padding */
        width: 100%; /* Full width */
    }
    
    .timeline-date {
        font-size: 1rem; /* More readable */
        margin-bottom: 0.75rem;
    }
    
    .timeline-content p {
        font-size: 1rem; /* Readable text */
        line-height: 1.5;
    }

    /* BETTER TEAM SECTION - MOBILE */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem; /* Better spacing */
    }
    
    .team-member {
        padding: 2rem 1.5rem; /* Better padding */
        text-align: center;
    }
    
    .member-photo {
        width: 120px; /* Slightly bigger */
        height: 120px;
        margin-bottom: 1.5rem;
        border-width: 4px; /* Thicker border */
    }
    
    .member-info h3 {
        font-size: 1.25rem; /* Readable size */
        margin-bottom: 0.75rem;
        flex-direction: column; /* Stack name and LinkedIn */
        gap: 0.5rem;
    }
    
    .member-title {
        font-size: 1rem; /* Readable size */
        margin-bottom: 1rem;
    }
    
    .member-bio {
        font-size: 1rem; /* More readable */
        line-height: 1.5;
    }

    /* BETTER REGISTRATION SECTION - MOBILE */
    .registration-section .container {
        padding: 2rem 1.5rem; /* Better padding */
        margin: 1rem; /* Better margins */
    }
    
    .registration-section h2 {
        font-size: 2rem; /* Keep impactful */
        margin-bottom: 1rem;
    }
    
    .registration-section p {
        font-size: 1.1rem; /* More readable */
        line-height: 1.5;
    }
    
    .registration-info {
        padding: 1.5rem; /* Better padding */
        margin: 2rem 0; /* Better margins */
        border-radius: 12px;
    }
    
    .registration-info p {
        font-size: 1rem; /* Readable size */
        line-height: 1.5;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .secondary-actions > * {
        min-height: 48px; /* Touch-friendly */
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    /* BETTER PARTNER BUTTONS GROUP - MOBILE */
    .partner-buttons-group {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .partner-buttons-group > * {
        flex: none;
        min-width: auto;
        max-width: none;
        min-height: 48px; /* Touch-friendly */
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    /* MUCH BETTER MODAL EXPERIENCE */
    .modal {
        padding: 1rem; /* Increased from 0.5rem */
    }
    
    .modal.active {
        padding-top: 1.5rem; /* More space from top */
        padding-bottom: 1.5rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 3rem); /* Better height calc */
        border-radius: 16px; /* Larger radius for mobile */
    }
    
    /* Much better close button - TOUCH FRIENDLY */
    .modal-close {
        top: 1rem; /* More space from edge */
        right: 1rem;
        width: 44px; /* Apple touch target minimum */
        height: 44px;
        font-size: 1.5rem; /* Bigger X */
        border: none; /* Cleaner look */
        background: rgba(255, 255, 255, 0.9); /* Semi-transparent */
        backdrop-filter: blur(10px); /* Blur effect */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Better shadow */
    }
    
    /* BETTER BREVO FORM MOBILE EXPERIENCE */
    .brevo-form {
        padding: 1.5rem; /* Increased from 1rem */
    }
    
    .brevo-form h2 {
        font-size: 1.5rem; /* Increased from 1.4rem */
        margin-bottom: 1rem; /* Better spacing */
        line-height: 1.2;
    }
    
    .brevo-form p {
        font-size: 1rem; /* Increased from 0.9rem - MUCH more readable */
        line-height: 1.5; /* Better line height */
        margin-bottom: 1.5rem; /* More space */
    }
    
    /* Better form field spacing and sizing */
    .brevo-form .sib-form-block {
        margin-bottom: 1.25rem !important; /* Increased spacing */
    }
    
    .brevo-form .form__entry .entry__field .input {
        padding: 1rem !important; /* Bigger touch targets */
        font-size: 1rem !important; /* Readable text */
        border-width: 2px !important;
        border-radius: 8px !important;
        min-height: 44px !important; /* Touch-friendly */
    }
    
    .brevo-form .entry__label {
        font-size: 1rem !important; /* More readable labels */
        margin-bottom: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    /* Better submit button */
    .brevo-form .sib-form-block__button {
        padding: 1rem 2rem !important; /* Bigger touch target */
        font-size: 1.1rem !important; /* More readable */
        min-height: 48px !important; /* Touch-friendly */
        margin-top: 1.5rem !important; /* More space above */
    }
    
    /* Better radio button and checkbox spacing */
    .brevo-form .entry__choice {
        margin-bottom: 1rem !important; /* More space */
        padding: 0.5rem 0 !important; /* Touch padding */
    }
    
    .brevo-form .entry__choice label {
        font-size: 1rem !important; /* More readable */
        line-height: 1.4 !important;
        padding: 0.5rem !important; /* Touch-friendly area */
    }
}

/* FIXES FOR VERY SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    .accelerator-page .container {
        padding: 0 1rem; /* Keep reasonable padding */
    }
    
    .hero-content,
    .about-section .container,
    .doughnut-section .container,
    .timeline-section .container,
    .team-section .container,
    .partners-section .container,
    .community-partners-section .container,
    .partner-form-section .container,
    .support-section .container,
    .focus-section .container,
    .registration-section .container,
    .contact-section .container {
        padding: 2rem 1.5rem; /* FIXED: Maintain proper top/bottom spacing even on small screens */
        margin: 0.75rem; /* Better margins */
    }
    
    /* Support section stays compact even on small mobile */
    .support-section .container {
        padding: 1.5rem 1.25rem; /* Smaller for this compact section */
        margin: 0.75rem; /* Better margins */
    }
    
    /* Registration section maintains more generous spacing */
    .registration-section .container {
        padding: 2.5rem 1.5rem; /* FIXED: Still more generous for important section */
    }
    
    /* Don't make modal too cramped */
    .brevo-form {
        padding: 1.25rem; /* Don't go below this */
    }
    
    .brevo-form h2 {
        font-size: 1.375rem; /* Keep readable */
    }
    
    .brevo-form p {
        font-size: 1rem; /* Never below 1rem for readability */
    }
    
    /* Keep buttons touch-friendly */
    .modal-close {
        width: 44px;
        height: 44px;
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* Additional fix for very tall forms - landscape mobile */
@media (max-height: 600px) {
    .modal.active {
        align-items: flex-start !important;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 1rem);
        margin: 0;
    }
    
    .brevo-form {
        padding: 1rem;
    }
    
    .brevo-form h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .brevo-form p {
        font-size: 0.95rem; /* Slightly smaller for landscape */
        margin-bottom: 1rem;
    }
}