/* Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
    position: relative;
    width: 100%;
    max-width: 1250px; /* JDD - controls largest size of box */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.column,
.columns {
    width: 100%;
    float: left;
    box-sizing: border-box;
}

.logo.column {
    margin-top: 10px;
}

/* For devices larger than 400px */
@media (min-width: 400px) {
    .container {
        width: 95%;
        padding: 0;
    }

    .logo.column {
        margin-top: 20px;
    }
}

/* For devices larger than 700px */
@media (min-width: 700px) {
    .container {
        width: 95%;
    }

    .column,
    .columns {
        margin-left: 4%;
    }

    .column:first-child,
    .columns:first-child {
        margin-left: 0;
    }

    .logo.column {
        display: flex;
        justify-content: center;
        align-items: center; /* Optional: vertical centering */
        width: 100%;
        margin-top: 25px;
    }
}


/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* NOTE
html is set to 62.5% so that all the REM measurements
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
    font-size: 62.5%;
}

body {
    font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
    font-weight: 400;
    font-style: normal;
    font-family: "Cabin", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #222;
}

em, i {
    font-style: italic;
}

strong, b {
    font-weight: 700;
}

strong em, b i {
    font-weight: 700;
    font-style: italic;
}

p {
    margin-top: 0;
}


/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
    color: #1EAEDB;
}

a:hover {
    color: #0FA0CE;
}


/* Clearing
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Self Clearing Goodness */
.container:after,
.row:after,
.u-cf {
    content: "";
    display: table;
    clear: both;
}

/* Shared
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.logo {
    max-width: 100%;
}

.logo-img {
    width: 100%;
    height: auto;
    max-width: 700px;
}

.card-name {
    font-weight: bold;
    font-style: italic;
    color: #222;
}

.email {
    font-style: italic;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1.4rem;
    color: #666;
}

.hashtag {
    font-family: "Courier New", Courier, monospace;
}


/* Nav
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.intra-page-nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 0.75em 0; /* vertical spacing only */
}

.intra-page-nav {
    display: inline-block;
    background: #689E4D;
    border-radius: 12px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    padding: 0.5em 1em;
    margin: 0 .5em;
    font-family: 'Cabin', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 550px) {
    .intra-page-nav {
        font-size: 95%;
    }
}

.intra-page-nav a {
    margin: 0 .5em;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.intra-page-nav a:hover,
.intra-page-nav a.active {
    color: yellow;
    border-bottom: 1px solid yellow;
    padding-bottom: 2px;
}

[id] {
    scroll-margin-top: 73px; /* keeps section banner from being hidden */
}

@media (max-width: 550px) {
    [id] {
        scroll-margin-top: 91px;
    }
}

/* Section Header
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.section-header.accent-left {
    width: 100%;
    margin: 1rem auto 0 auto; /* top, right, bottom, left */
    padding: 1.5rem 2rem;
    background: linear-gradient(to right, #F6D29B, #F6D29B 55%, #FAE6C1);
    border-left: 8px solid #AD763A;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25); /* offset-x offset-y blur-radius color */
}

.section-content {
    width: 100%;
    margin: 0;
    padding: 1rem 1.2rem;
    text-align: left;
}

.section-header.accent-left h2 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    width: 100%;
}

@media (max-width: 550px) {
    .section-header.accent-left,
    .section-content {
        padding: 1rem 1.2rem;
    }

    .section-header.accent-left h2 {
        font-size: 1.9rem;
    }
}

/* QUOTE Section
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.quote-clamp {
    display: inline-block;
    text-align: center;
    font-style: italic;
    white-space: nowrap;
    font-size: clamp(4px, 3vw, 15pt);
}

.quote-clamp-container {
    text-align: center;
}

.quote-clamp .author {
    text-align: right;
    margin-top: 10px;
    font-style: italic;
    font-size: 75%
}

.quote-text {
    font-weight: normal;
    color: #555;
    margin: 1.0rem 0;
}

.author {
    color: #999;
    font-weight: normal;
}

/* Normal Paragraphs Section
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.paragraphs {
    text-align: left;
}

.paragraphs p {
    font-size: 2.0rem;
    color: #444;
    margin: 0 auto;
    padding: 1rem 0;
}

@media (max-width: 550px) {
    .paragraphs p {
        font-size: 1.8rem;
    }
}

/* FAQ Section
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.faq-list {
    counter-reset: faq-counter;
    padding: 1rem 1rem;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    counter-increment: faq-counter;
    margin-bottom: 1em;
    margin-top: .5em;
    padding-left: 2.0em;
    position: relative;
    line-height: 1.5;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item::before {
    content: counter(faq-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #888;
    font-size: 1.2em;
}

.faq-list h4 {
    font-size: 2.0rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #8B4513;
}

.faq-list p {
    font-size: 2.0rem;
    color: #444;
    padding: 1rem 0;
}

@media (max-width: 550px) {
    .faq-list h4 {
        font-size: 1.8rem;
    }

    .faq-list p {
        font-size: 1.8rem;
    }

    .faq-item::before {
        font-size: 1.0em;
    }
}

/* ACKNOWLEDGEMENT Section
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.credit {
    text-align: right;
    font-style: italic;
    margin-right: 26%;
}

@media (max-width: 550px) {
    .credit {
        margin-right: 10%;
    }
}

/* CARDS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    max-width: 200px;
}

.card-image {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    object-fit: contain;
    border: 3px solid #ddd;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.card-description {
    margin-top: 10px;
    font-size: 1.8rem;
    color: #333;
    line-height: 1.4;
}

/* Two-card pair layout */
.card-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 420px; /* Accommodates two 200px cards plus gap */
}

.card-pair-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.card-pair .card-image {
    max-width: 200px;
}

.card-pair-description {
    font-size: 1.8rem;
    color: #333;
    line-height: 1.4;
}

@media (max-width: 550px) {
    .card-container {
        gap: 15px;
    }

    .card-item {
        max-width: 100px;
    }

    .card-image {
        max-width: 100px;
        border: 1px solid #ddd;
        box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
    }

    .card-description {
        font-size: 1.4rem;
        margin-top: 8px;
    }

    /* Mobile adjustments for card pairs */
    .card-pair {
        max-width: 210px; /* Two 100px cards plus gap */
    }

    .card-pair-images {
        gap: 8px;
        margin-bottom: 8px;
    }

    .card-pair .card-image {
        max-width: 100px;
    }

    .card-pair-description {
        font-size: 1.4rem;
    }
}

/* Progressive reveal styles */
.card-sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
    padding: 0 0 20px 0;
    margin-left: 50px;
}

@media (max-width: 550px) {
    .card-sequence {
        gap: 15px;
        padding: 0 0 10px 0;
        justify-content: left;
        margin-left: 0;
    }
}

.card-professor {
    display: block;
    max-width: 180px;
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
    padding: 0 0 0 0;
    cursor: pointer;
}

@media (max-width: 550px) {
    .card-professor {
        border: none;
        box-shadow: none;
        padding: 0 0 0 0;
        max-width: 90px;

    }
}

.reveal-button-v2 {
    display: flex;
    width: 200px;
    height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px dashed #2196f3;
    border-radius: 12px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.reveal-button-v2:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 550px) {
    .reveal-button-v2 {
        width: 100px;
        height: 140px;
    }
}

/* CARD ANIMATION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@keyframes slideOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-out {
    animation: slideOutDown 0.4s ease forwards;
}

.slide-in {
    animation: slideInUp 0.4s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hidden {
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
