:root {
    --navy: #1a3a5c;
    --light-navy: #2c5282;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --border: #d1d5db;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

nav {
    background: var(--navy);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.page-header {
    background: var(--navy);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 3px solid var(--light-navy);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

section {
    margin-bottom: 50px;
}

h2 {
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

h3 {
    color: var(--light-gray);
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

p {
    margin-bottom: 15px;
    color: #374151;
}

.intro-section p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.school-info {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 4px;
    border-left: 4px solid var(--navy);
}

.thesis-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.thesis-card {
    border: 1px solid var(--border);
    padding: 30px;
    background: white;
}

.thesis-card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.thesis-text {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-gray);
    font-style: italic;
    line-height: 1.7;
}

.btn-link {
    display: inline-block;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid var(--navy);
}

.btn-link:hover {
    color: var(--light-navy);
    border-color: var(--light-navy);
}

.essay-wrapper {
    max-width: 800px;
}

.essay {
    background: white;
}

.essay section {
    margin-bottom: 40px;
}

.essay p {
    text-align: justify;
    line-height: 1.8;
}

.thesis-statement {
    background: var(--light-gray);
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid var(--navy);
    font-style: italic;
}

.callout {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 30px 0;
}

.academy-section {
    margin-bottom: 60px;
}

.academy-header {
    margin-bottom: 30px;
}

.academy-header h2 {
    margin-bottom: 10px;
}

.academy-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.evidence-item {
    border: 1px solid var(--border);
    background: white;
}

/* Make images inside evidence items scale to the container and crop neatly */
.evidence-item img {
    display: block;
    width: 100%;
    height: 200px; /* fixed height keeps grid tidy */
    object-fit: cover; /* crop while preserving aspect ratio */
    border-bottom: 1px solid var(--border);
}

@media (min-width: 1200px) {
    .evidence-item img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .evidence-item img {
        height: 160px;
    }
}

.img-placeholder {
    height: 200px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.9rem;
}

figcaption {
    padding: 20px;
}

figcaption strong {
    display: block;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

figcaption p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.info-box {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 4px;
    border-left: 4px solid var(--navy);
}

.references ol {
    padding-left: 25px;
    line-height: 2;
}

.references li {
    margin-bottom: 10px;
}

footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .content-wrapper {
        padding: 30px 15px;
    }
    
    .evidence-grid {
        grid-template-columns: 1fr;
    }
}
