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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/background.jpg') center/cover no-repeat;
    filter: blur(8px) grayscale(100%);
    opacity: 0.3;
    z-index: -1;
}

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

header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #cccccc;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem auto;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    border: 1px solid #333;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    border: 2px solid #666;
}

.btn-secondary {
    background: #222;
    color: white;
    border: 2px solid #666;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border-color: #999;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .member-image img {
        width: 200px;
        height: 200px;
    }
}

/* Team Section Styles */
.team-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.team-member {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    gap: 2rem;
}

.member-image {
    flex-shrink: 0;
}

.member-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.member-info {
    flex: 1;
    color: #333;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.member-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.member-info ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.member-info ul li {
    margin-bottom: 0.5rem;
}

.member-info blockquote {
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-left: 4px solid #333;
    margin: 1rem 0;
    border-radius: 5px;
}

.advisor {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #666;
}

.advisor .member-info h3 {
    color: #000;
    border-bottom-color: #666;
}

/* Contact Form Styles */
.contact-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
    min-width: 150px;
}

/* Mobile responsiveness for contact form */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .contact-form .btn {
        align-self: stretch;
    }
}

/* Events Page Styles */
.events-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.loading-message,
.error-message,
.no-events {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    color: #333;
}

.error-message {
    background: rgba(255, 200, 200, 0.95);
    border-color: #cc0000;
}

.events-section-title {
    color: #ffffff;
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.past-event {
    opacity: 0.7;
    background: rgba(240, 240, 240, 0.95);
}

.event-image {
    width: 200px;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    text-align: center;
}

.date-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upcoming-label {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.past-label {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-content {
    padding: 2rem;
    flex: 1;
    color: #333;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.past-event .event-title {
    border-bottom-color: #999;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsiveness for events */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 200px;
    }
    
    .event-date {
        min-width: auto;
        padding: 1.5rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .events-section-title {
        font-size: 1.5rem;
    }
}

/* Event Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-content {
    padding: 0;
    color: #333;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #eee;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.popup-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.close-popup {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-popup:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.popup-image {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
}

.popup-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-details {
    padding: 1.5rem;
}

.popup-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.popup-details strong {
    color: #222;
    font-weight: 600;
}

.more-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}

.more-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.more-info p {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Event card cursor and click indication */
.event-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.click-for-more {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.time-text {
    display: block;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Mobile popup responsiveness */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-details {
        padding: 1rem;
    }
    
    .close-popup {
        font-size: 1.5rem;
    }
}
