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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.5;
    color: #2c2c2c;
    background-color: #ffffff;
}

/* Navigation */
.navbar {
    background: #3b82f6;
    padding: 1.5rem 0;
    border-bottom: 3px solid #60a5fa;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: normal;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 0;
    transition: color 0.2s ease;
    font-weight: normal;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #dbeafe;
    border-bottom: 2px solid #dbeafe;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    font-weight: normal;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Georgia', serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.math-symbols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.symbol {
    font-size: 3rem;
    color: #3b82f6;
    text-align: center;
    font-weight: bold;
}

.symbol:nth-child(2) { animation-delay: 0.5s; }
.symbol:nth-child(3) { animation-delay: 1s; }
.symbol:nth-child(4) { animation-delay: 1.5s; }
.symbol:nth-child(5) { animation-delay: 2s; }
.symbol:nth-child(6) { animation-delay: 2.5s; }
.symbol:nth-child(7) { animation-delay: 3s; }
.symbol:nth-child(8) { animation-delay: 3.5s; }



/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border: 2px solid #3b82f6;
    border-radius: 0;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #60a5fa;
    border-color: #60a5fa;
}

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

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    color: #3b82f6;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: normal;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    text-align: center;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3b82f6;
    font-weight: normal;
}

.feature-card h3 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: normal;
    font-family: 'Georgia', serif;
}

/* About Section */
.about-section {
    background: #f8f8f8;
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
    margin-bottom: 4rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: normal;
    color: #3b82f6;
    font-family: 'Georgia', serif;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* Events Page */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
    transition: transform 0.3s ease;
    display: flex;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card.featured {
    border: 3px solid #4a90e2;
}

.event-card.past {
    opacity: 0.7;
}

.event-date {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.day {
    font-size: 2rem;
    font-weight: bold;
}

.month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-title {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.event-status {
    color: #28a745;
    font-weight: 600;
}

/* Magazine Page */
.featured-article {
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card.featured {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.article-image {
    background: linear-gradient(135deg, #e8f4fd, #d1e9fb);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    min-width: 200px;
    flex-shrink: 0;
}

.article-image.small {
    min-height: 120px;
    min-width: 150px;
}

.image-placeholder {
    font-size: 3rem;
}

.article-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    background: #4a90e2;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-title {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.magazine-content {
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
}

.sidebar-title {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.puzzle-card,
.fact-card,
.submit-card {
    background: #f8fbff;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.puzzle-card h4,
.fact-card h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.archive-section {
    margin-bottom: 3rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.archive-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
}

.archive-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 0.5rem;
}

.archive-item ul {
    list-style: none;
}

.archive-item li {
    margin-bottom: 0.5rem;
}

.archive-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-item a:hover {
    color: #4a90e2;
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, #e8f4fd, #d1e9fb);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.join-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.join-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #3b82f6;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #60a5fa;
}

.footer-content p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .math-symbols {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .symbol {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card.featured {
        flex-direction: column;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        min-width: 100%;
        min-height: 150px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .join-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .about-section,
    .join-section {
        padding: 2rem 1rem;
    }
} 