/*
    Author: Vy Le
    Class: CIST1510
    Date: 03/08/2026
    File Name: styles.css
    Project: Georgia Health Access
*/

/* Basic Reset */
body, header, nav, main, footer, h1, h2, h3, p, ul, ol, li, dl, dt, dd, section, article, aside, figure, figcaption, img, a, div {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    background-color: #f6fbfc;
    color: #17323d;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

#wrapper {
    width: 100%;
}

/* Header */
header {
    background-color: #d9eef2;
    text-align: center;
    padding: 20px;
}

header h1 {
    color: #0f4c5c;
    font-size: 1.8em;
}

header h3 {
    color: #245f73;
    font-size: 1em;
    font-weight: normal;
    margin-top: 5px;
}

header img {
    margin: 0 auto;
    max-width: 120px;
}

/* Navigation */
nav {
    background-color: #0f4c5c;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav li {
    display: inline-block;
    border-right: 1px solid #d9eef2;
}

nav li:last-child {
    border-right: none;
}

nav li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: bold;
}

nav li a:hover {
    background-color: #d9eef2;
    color: #0f4c5c;
}

/* Main */
main {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #0f4c5c;
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 20px;
}

h3 {
    color: #245f73;
    font-size: 1.1em;
    margin-bottom: 8px;
}

p {
    margin-bottom: 12px;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 12px;
}

li {
    margin-bottom: 6px;
}

dt {
    font-weight: bold;
    color: #0f4c5c;
    margin-top: 10px;
}

dd {
    margin-left: 20px;
    margin-bottom: 8px;
}

/* Links */
a {
    color: #0f4c5c;
}

a:hover {
    text-decoration: none;
}

/* Hero */
.hero {
    background-color: #d9eef2;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.hero h2 {
    margin-top: 0;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #d0e6eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.card-grid article {
    background-color: #ffffff;
    border: 1px solid #d0e6eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Figure */
figure {
    border: 1px solid #c8dfe4;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

figcaption {
    padding: 10px;
    background-color: #f2f9fa;
    font-size: 0.95em;
}

/* Aside */
aside {
    background-color: #eef7f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #d0e6eb;
    margin-bottom: 20px;
}

/* Two column - tablet+ only */
.two-column article,
.two-column aside {
    margin-bottom: 15px;
}

/* Profile */
.profile-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 15px;
}

.about-profile {
    margin-bottom: 15px;
}

.about-text {
    flex: 1;
}

/* Page Banner */
.page-banner {
    background-color: #d9eef2;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.page-banner h2 {
    margin-top: 0;
}

/* Footer */
footer {
    background-color: #0f4c5c;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

footer p {
    margin-bottom: 6px;
}

footer a {
    color: #ffffff;
}

/* Tablet and up */
@media screen and (min-width: 620px) {

    .two-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .card-grid article {
        margin-bottom: 0;
    }

    .about-profile {
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .profile-photo {
        margin-bottom: 0;
    }
}

/* Desktop */
@media screen and (min-width: 1000px) {

    #wrapper {
        width: 90%;
        margin: 0 auto;
        max-width: 1200px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Print */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }
}
