:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0f172a;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--surface-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Mobile Menu Media Query */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        display: none;
        border-top: 1px solid #e2e8f0;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
    }

    .auth-buttons {
        flex-direction: column;
        width: 90%;
        margin-top: 20px;
        display: flex;
        gap: 15px;
    }

    .auth-buttons .btn {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Member List Styles */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.member-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-item.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.member-header {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.member-header:hover {
    background-color: #f8fafc;
}

.member-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    color: var(--text-light);
    margin-top: 4px;
    display: inline-block;
}

.member-role.manager {
    background: #dbeafe;
    color: #1e40af;
}

.member-role.mentor {
    background: #fce7f3;
    color: #9d174d;
}

.member-role.coordinator {
    background: #fef3c7;
    color: #92400e;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.member-item.active .toggle-icon {
    transform: rotate(180deg);
}

.member-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.member-item.active .member-details {
    max-height: 500px;
    /* Arbitrary large height */
    border-top: 1px solid #e2e8f0;
}

.detail-content {
    padding: 20px;
}

.bio-section {
    margin-bottom: 15px;
}

.bio-section p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

.team-tags {
    display: flex;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Member List Styles */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.member-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-item.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.member-header {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.member-header:hover {
    background-color: #f8fafc;
}

.member-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    color: var(--text-light);
    margin-top: 4px;
    display: inline-block;
}

.member-role.manager {
    background: #dbeafe;
    color: #1e40af;
}

.member-role.mentor {
    background: #fce7f3;
    color: #9d174d;
}

.member-role.coordinator {
    background: #fef3c7;
    color: #92400e;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.member-item.active .toggle-icon {
    transform: rotate(180deg);
}

.member-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.member-item.active .member-details {
    max-height: 500px;
    /* Arbitrary large height */
    border-top: 1px solid #e2e8f0;
}

.detail-content {
    padding: 20px;
}

.bio-section {
    margin-bottom: 15px;
}

.bio-section p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

.team-tags {
    display: flex;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Member List Styles */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.member-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-item.active {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.member-header {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.member-header:hover {
    background-color: #f8fafc;
}

.member-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    color: var(--text-light);
    margin-top: 4px;
    display: inline-block;
}

.member-role.manager {
    background: #dbeafe;
    color: #1e40af;
}

.member-role.mentor {
    background: #fce7f3;
    color: #9d174d;
}

.member-role.coordinator {
    background: #fef3c7;
    color: #92400e;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.member-item.active .toggle-icon {
    transform: rotate(180deg);
}

.member-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.member-item.active .member-details {
    max-height: 500px;
    /* Arbitrary large height */
    border-top: 1px solid #e2e8f0;
}

.detail-content {
    padding: 20px;
}

.bio-section {
    margin-bottom: 15px;
}

.bio-section p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.team-tag {
    font-size: 0.75rem;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-color);
}

/* Event Detail Responsive */
.event-grid {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.hero-meta {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.file-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.file-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.file-card-link:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .event-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Calendar Responsive */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .calendar-table thead {
        display: none;
    }

    .calendar-table,
    .calendar-table tbody,
    .calendar-table tr,
    .calendar-table td {
        display: block;
        width: 100%;
    }

    .calendar-table tr {
        margin-bottom: 20px;
        background: var(--surface-color);
        border: 1px solid #e2e8f0;
        border-radius: var(--border-radius);
        padding: 15px;
        box-shadow: var(--box-shadow);
    }

    .calendar-table td {
        padding: 10px 0;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
    }

    .calendar-table td:last-child {
        border-bottom: none;
        padding-top: 15px;
        justify-content: center;
    }

    .calendar-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        margin-right: 15px;
        font-size: 0.9rem;
    }

    /* Specific adjustments for content inside cells */
    .calendar-table td .event-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-table td .event-image {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
}