@import url('https://fonts.googleapis.com/css2?family=Latin+Modern+Math&family=Latin+Modern+Roman&family=Latin+Modern+Mono:wght@400;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Latin Modern Roman', Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fafafa;
    font-size: 16px;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    font-family: 'Latin Modern Roman', Georgia, serif;
    letter-spacing: -0.02em;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Latin Modern Roman', Georgia, serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-family: 'Latin Modern Roman', Georgia, serif;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Latin Modern Roman', Georgia, serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5558e3 0%, #7c3aed 100%);
}

/* Main content */
main {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #0f172a;
    font-family: 'Latin Modern Roman', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

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

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-family: 'Latin Modern Roman', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card p {
    color: #475569;
    margin-bottom: 1.5rem;
    font-family: 'Latin Modern Roman', Georgia, serif;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718096;
    font-size: 0.9rem;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #6366f1;
}

.audience-tag {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Latin Modern Roman', Georgia, serif;
    border: 1px solid rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.2;
}

.blog-post .audience {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 500;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: #1a202c;
}

.blog-post h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: #2d3748;
}

.blog-post p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Math equations */
.math-block {
    background: #f8fafc;
    border-left: 4px solid #6366f1;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-family: 'Latin Modern Math', 'Latin Modern Roman', serif;
    overflow-x: auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 4px solid #6366f1;
}

.inline-math {
    font-family: 'Latin Modern Math', 'Latin Modern Roman', serif;
    background: #f1f5f9;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-size: 0.95em;
    color: #1e293b;
    border: 1px solid rgba(0,0,0,0.1);
    font-style: italic;
}

/* Theorem and proof boxes */
.theorem {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.1);
}

.theorem-title {
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1rem;
    font-family: 'Latin Modern Roman', Georgia, serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proof {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-left: 4px solid #eab308;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.1);
}

.proof::before {
    content: "Proof:";
    font-weight: 700;
    color: #713f12;
    display: block;
    margin-bottom: 1rem;
    font-family: 'Latin Modern Roman', Georgia, serif;
    font-style: italic;
}

.proof::after {
    content: "□";
    float: right;
    font-weight: 700;
    color: #713f12;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #718096;
}

/* Partners section styling */
.partners-section {
    grid-column: span 2;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.partner-category h5 {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Latin Modern Roman', Georgia, serif;
}

.partner-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-category li {
    margin-bottom: 0.4rem;
}

.partner-category a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.2rem 0;
}

.partner-category a:hover {
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post h1 {
        font-size: 2rem;
    }
    
    .partners-section {
        grid-column: span 1;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    main {
        padding: 2rem 0;
    }
}
