:root {
    --primary-color: #00376b;
    --secondary-color: #f9d180;
    --accent-color: #0274be;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

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

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

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

/* Header */
header {
    padding: 20px 0;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-selector {
    display: flex;
    gap: 10px;
}

.language-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.language-label:hover,
.language-label.active {
    color: var(--primary-color);
    background-color: #f0f4f8;
}

/* Hero "Main Space" */
.hero {
    padding: 140px 0 120px;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)),
        url('media/cover/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Philosophy */
.philosophy {
    padding: 60px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* History */
.history {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.history-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Co-founders */
.co-founders {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.founder-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.founder-card.active {
    border-color: var(--primary-color);
    background: var(--bg-white);
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.founder-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--bg-white);
}

.founder-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.founder-role {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 0;
    font-weight: 500;
}

.founder-bio {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 15px;
    display: none;
    text-align: left;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.founder-card.active .founder-bio {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partners / Sponsors / Media */
.partners-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.partners-subsection {
    margin-bottom: 60px;
}

.partners-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.logo-item img {
    max-height: 60px;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.contact .section-title {
    color: var(--bg-white);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-links a {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-links a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

/* Join Us */
.join-us {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-description {
    font-size: 1.1rem;
    margin-bottom: 0;
}

footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
}

/* Schedule Section */
.schedule-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.schedule-container {
    overflow-x: auto;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: var(--text-dark);
    min-width: 600px;
    /* Ensure it doesn't squish too much */
}

.schedule-table th,
.schedule-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.schedule-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.schedule-table tr:hover {
    background-color: #f0f4f8;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 55, 107, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-text,
.error-text {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    padding: 0;
}

.schedule-table tr.schedule-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.schedule-table tr.schedule-row:hover {
    background-color: #f1f7fc;
    /* Slight blue tint similar to hover */
}

.schedule-table tr.expanded {
    background-color: #eaf4fb;
    border-left: 4px solid var(--accent-color);
}

.description-row {
    background-color: #f8f9fa;
    display: none;
    /* Hidden by default */
}

.description-row.show {
    display: table-row;
    animation: fadeInRow 0.3s ease;
}

.description-content {
    padding: 20px;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.error-text {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 1024px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

/* Schedule View Tabs */
.view-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background-color: rgba(0, 55, 107, 0.05);
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Ongoing Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

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

.project-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: left;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.project-card.active {
    border-color: var(--primary-color);
    background: var(--bg-white);
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-summary {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.project-details {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-medium);
    display: none;
    text-align: left;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.project-card.active .project-details {
    display: block;
    animation: fadeIn 0.3s ease;
}