/* ―――――――――――――――――――――――――――――――――― */
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ―――――――――――――――――――――――――――――――――― */
/* Global Styles */
body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0); /* white → light gray */
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    color: #333; /* dark gray text */
}

main {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

main a {
    color: #b22222; /* firebrick red links */
    text-decoration: none;
}

main a:hover {
    color: #ff4c4c; /* brighter red on hover */
    text-decoration: underline;
}

h1, h2 {
    text-align: center;
    font-family: Georgia, serif;
    color: #444; /* slightly lighter dark gray */
}

h3 {
    text-align: left;
    font-family: Georgia, serif;
    color: #444;
}

p {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

/* ―――――――――――――――――――――――――――――――――― */
/* Banners */
.banner {
    width: 100%;
    height: auto;
    display: block;
}

.inline-banner {
    width: 50%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* ―――――――――――――――――――――――――――――――――― */
/* Figure Grid */
.figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* 
       auto-fit = automatically fill as many items as possible per row
       minmax(220px, 1fr) = never shrink smaller than 220px, but expand to fill space
    */
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

/* Individual figure styling */
figure {
    box-shadow: 4px 4px 8px #aaa;
    border-radius: 12px;
    background: white; /* protects transparency */
    overflow: hidden;
}

/* Images fill full width of their figure container */
figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption */
figcaption {
    padding: 10px;
    background-color: #f0d6d6;
    color: #333;
    text-align: center;
    border-radius: 0 0 12px 12px;
}


/* ―――――――――――――――――――――――――――――――――― */
/* Footer */
footer {
    text-align: center;
    font-size: 0.85em;
    background-color: #555; /* dark gray */
    color: white;
    padding: 1% 0;
}

footer a {
    color: #ff6666; /* light red links */
    text-decoration: none;
}

footer a:hover {
    color: #ff4c4c; /* brighter red on hover */
    text-decoration: underline;
}

/* ―――――――――――――――――――――――――――――――――― */
/* Tab Navigation */
.tab-bar {
    display: flex;
    justify-content: center;
    background-color: #888; /* medium gray */
    margin: 0 0 20px 0;
    width: 100%;
}

.tab-bar a {
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    margin-right: 10px;
}

.tab-bar a:hover {
    background-color: #f0d6d6; /* light red/pink highlight */
    color: #333;
}

.tab-bar a.active {
    background-color: #ff4c4c; /* bright red active tab */
    color: white;
}

/* ―――――――――――――――――――――――――――――――――― */
/* iFrame Container (About Us Page) */
.iframe-container {
    text-align: center;
    margin: 20px 0;
}

.iframe-container iframe {
    max-width: 100%;
    height: auto;
}
