/* ================================
   LIS 500 - CSS Sheet - Matt Steines & Wuziyang Zhang
   ================================ */

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

body {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #111;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #2255aa;
    text-decoration: underline;
}

a:hover {
    color: #003388;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.4rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* --- Layout --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Nav --- */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #3498db;
}

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

.site-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0;
}

nav {
    margin-top: 0.75rem;
}

.nav-menu {
    list-style: none;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border: 1px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
    border-color: #fff;
}

/* Hide hamburger — nav always visible without JS */
.mobile-menu-toggle {
    display: none;
}

/* Progress bar hidden without JS */
.progress-bar {
    display: none;
}

/* --- Main content --- */
main {
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 4px;
}

.page-title {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.page-intro {
    color: #555;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* --- Hero section (index page) --- */
.hero {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #ddd;
    font-size: 1rem;
}

/* --- Video embed --- */
.video-container {
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.video-container iframe {
    width: 100%;
    height: 394px;
    border: none;
    display: block;
}

.video-caption {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.5rem;
    text-align: center;
}

/* --- Stats section --- */
.stats-section {
    background-color: #f4f4f4;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.stats-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 2rem;
    border: 1px solid #ccc;
    background: #fff;
    min-width: 160px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

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

/* --- Cards (index page) --- */
.intro-cards {
    padding: 2rem 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.4rem 1rem;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #3498db;
    color: #fff;
}
/* --- Quote section --- */
.quote-section {
    background-color: #f4f4f4;
    padding: 2.5rem 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid #3498db;
}

.featured-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    color: #333;
}

.featured-quote footer {
    margin-top: 1rem;
    font-style: normal;
    font-size: 1rem;
    color: #e8f0ff;
}

/* --- Profile image (about page) --- */
.profile-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid #2c3e50;
}

/* --- Content sections --- */
.about-section,
.resource-section,
.hero-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.about-section:last-child,
.resource-section:last-child,
.hero-section:last-child {
    border-bottom: none;
}

.about-section h3,
.resource-section h3,
.hero-section h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

/* --- Content image with caption --- */
.content-image {
    margin: 1.5rem 0;
    border: 1px solid #ddd;
}

.content-image img {
    width: 100%;
}

.content-image figcaption {
    padding: 0.6rem 0.8rem;
    background: #f8f8f8;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* --- Table of contents (resources page) --- */
.toc {
    background: #f8f8f8;
    border-left: 4px solid #3498db;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.toc ul {
    list-style: none;
    margin: 0;
}

.toc li {
    margin-bottom: 0.4rem;
}

.toc a {
    text-decoration: none;
    color: #2255aa;
}

.toc a:hover {
    text-decoration: underline;
}

/* --- Resource list --- */
.resource-list {
    list-style: none;
    margin-left: 0;
}

.resource-list li {
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
    background: #f8f8f8;
    border-left: 4px solid #3498db;
}

.resource-list a {
    font-weight: bold;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.resource-list p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

/* --- Tech hero image --- */
.hero-profile {
    margin: 1.5rem 0 2rem;
}

.hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.hero-profile figcaption {
    padding: 0.6rem;
    background: #f8f8f8;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* --- Highlight cards (tech hero page) --- */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.highlight-card {
    text-align: center;
    padding: 1.2rem;
    background: #f4f4f4;
    border: 1px solid #ddd;
}

.highlight-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.highlight-card strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

/* --- Team layout (about page) --- */
.team-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    border: 1px solid #ddd;
    padding: 1.5rem;
    background: #fafafa;
}

.team-member h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
}

.team-member h4 {
    color: #444;
    margin-top: 1.5rem;
}

.team-member .major {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
}

.team-member-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
}

.team-member-section:last-child {
    border-bottom: none;
}

/* --- Highlight box --- */
.highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #3498db;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}

.highlight-box h5 {
    color: #2c3e50;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.highlight-box p {
    margin: 0;
    font-size: 0.95rem;
}

.lead-text {
    font-size: 1.1rem;
    color: #444;
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.accessibility-statement a {
    color: #e8f0ff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .team-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .video-container iframe {
        height: 220px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
}



/* --- Page Navigation --- */
.page-navigation {
    text-align: center;
    margin: 3rem 0;
}



/* --- Print --- */
@media print {
    header, footer, nav, .btn, .progress-bar, .video-container, .stats-section {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
