/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4f46e5;
}

.nav-logo {
    height: 32px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #4f46e5;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #6b7280;
}

.lang-toggle:hover {
    background: #f9fafb;
    border-color: #4f46e5;
    color: #4f46e5;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section white background*/

.hero {
    background: url('assets/images/background.png') center bottom/contain no-repeat;

    background-color: white;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    padding: 60px 20px;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section.alt {
    background: #f8fafc;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1f2937;
}

.section-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b7280;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Research News Section */
.news-container {
    margin-top: 32px;
}

.news-card {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.news-description {
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.see-more-button {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.see-more-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.article-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.article-summary {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-read {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.article-read:hover {
    color: #4338ca;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Program Steps */
.program-steps {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.step i {
    color: #10b981;
    font-size: 1.5rem;
    margin-top: 4px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Video Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 700px;
    margin: 32px auto 0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

/* Download Section */
.download-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.qr-codes {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 180px;
    height: 180px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.qr-code p {
    margin-top: 12px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.download-buttons a {
    transition: transform 0.2s ease;
    display: block;
}

.download-buttons a:hover {
    transform: scale(1.05);
}

.store-badge {
    height: 60px;
    width: auto;
}

/* Join Form */
.join-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.join-form {
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-button {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.submit-button:hover {
    background: #4338ca;
}

.form-note {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.contact-card a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: #4338ca;
}

/* Footer */
.footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 32px 20px;
    text-align: center;
}

.footer-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Article Page Styles */
.article-page {
    padding-top: 80px;
}

.article-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1f2937;
}

.article-meta {
    color: #6b7280;
    margin-bottom: 32px;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.article-video {
    margin-bottom: 24px;
}

.video-button {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.video-button:hover {
    background: #4338ca;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    line-height: 1.7;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 32px 0 16px;
    color: #1f2937;
}

.article-content h1 {
    font-size: 2rem;
    font-weight: 800;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 16px;
    color: #374151;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: #374151;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 16px;
    margin: 24px 0;
    color: #6b7280;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .nav-menu.show {
        display: flex;
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
        min-width: unset;
    }

    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .section {
        padding: 60px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .join-form {
        padding: 24px;
    }

    .article-header {
        padding: 20px 16px;
    }

    .article-content {
        padding: 0 16px 40px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back button */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
}

.back-button:hover {
    background: #f9fafb;
    border-color: #4f46e5;
    color: #4f46e5;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}
