:root {
    /* Gold Colors */
    --gold-primary: #ffbd00;
    --gold-light: #ffd14c;
    
    /* Black Colors */
    --black-primary: #000000;
    --black-light: #4c4c4c;
    --black-lighter: #999999;
    --black-lightest: #cccccc;
    
    /* Gray Colors */
    --gray-lighter: #d4d5d6;
    --gray-lightest: #e9eaea;
    
    /* Text and Background Colors */
    --text-primary: #202020;
    --background-gray-dark: #333333;
    --background-gray-light: #f8f8f8;
    --white-primary: #ffffff;
    --gray-border: #e5e5e5;
    --blue-accessible: #27729B;
    
    /* UWM Color Palette */
    --uwm-gold: #ffbd00;
    --uwm-gold-light: #ffd14c;
    --uwm-black: #000000;
    --uwm-black-light: #4c4c4c;
    --uwm-black-lighter: #999999;
    --uwm-black-lightest: #cccccc;
    --uwm-gray-lighter: #d4d5d6;
    --uwm-gray-lightest: #e9eaea;
    --uwm-text: #202020;
    --uwm-bg-gray-dark: #333333;
    --uwm-bg-gray: #f8f8f8;
    --uwm-bg-white: #ffffff;
    --uwm-border: #e5e5e5;
    --uwm-blue-accessible: #27729B;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background-color: var(--uwm-gray-lighter);
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.header {
    background-color: var(--uwm-bg-white);
    border-bottom: 1px solid var(--uwm-border);
    padding: 1rem 0;
    width: 100%;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uwm-text);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--uwm-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--uwm-gold);
    padding-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--uwm-text);
    margin-bottom: 0.5rem;
}

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

.nav-title-section {
    flex: 1;
}

.nav-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uwm-text);
}

.nav-tagline {
    margin: 0;
    color: var(--uwm-black-light);
    font-size: 0.9rem;
}

.nav-items {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color: var(--uwm-blue-accessible);
    text-decoration: none;
    font-weight: 500;
}

.nav-item:hover,
.nav-item:focus {
    color: #1e5a7a;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

.page {
    padding: 2rem 0;
}

/* Two-column grid for side-by-side sections */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.two-column-grid > div {
    display: flex;
    flex-direction: column;
}

.two-column-grid .instructions-section {
    flex: 1;
}

@media (max-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

/* Main activity container */
.activity-container {
    background-color: var(--uwm-bg-white);
    padding: 2rem;
    border: 1px solid var(--uwm-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact page two-column layout */
.contact-content.contact-flex {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-image-container {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-image {
    width: 160px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-link {
    color: var(--uwm-blue-accessible);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.contact-link:hover,
.contact-link:focus {
    color: #1e5a7a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-content.contact-flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .contact-image-container {
        justify-content: center;
        margin-bottom: 1rem;
    }
    .contact-info {
        width: 100%;
    }
    .contact-links {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Introduction section */
.introduction-section {
    background-color: var(--uwm-bg-gray);
    border: 2px solid var(--uwm-border);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: auto;
}

.introduction-section img {
    float: left;
    width: 350px;  /* adjust to your preferred size */
    height: auto;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

/* Instructions section */
.instructions-section {
    background-color: var(--uwm-bg-gray);
    border: 2px solid var(--uwm-border);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Column width control for 4-column pronoun tables */
.reference-table .col-person   { width: 28%; }
.reference-table .col-pronoun  { width: 14%; }
.reference-table .col-meaning  { width: 30%; }
.reference-table .col-example  { width: 28%; }

/* Category buttons - 4x3 grid */
.category-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid var(--uwm-gold);
    background-color: transparent;
    color: var(--uwm-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.category-btn-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
    padding-bottom: 0.5rem;
}

.category-btn:hover,
.category-btn:focus {
    background-color: var(--uwm-gold);
    color: var(--uwm-black);
}

.category-btn.selected {
    background-color: var(--uwm-gold);
    color: var(--uwm-black);
}

/* Question section */
.question-section {
    margin-bottom: 1rem;
}

.question-box {
    background-color: var(--uwm-bg-gray);
    border: 2px solid var(--uwm-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.question-box .question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--uwm-text);
}

.placeholder-text {
    color: var(--uwm-black-light);
    font-style: italic;
    margin: 0;
}

.response-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Answer section */
.answer-section {
    margin-bottom: 1rem;
}

.answer-box {
    background-color: var(--uwm-bg-gray);
    border: 2px solid var(--uwm-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.answer-text-q-a {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--uwm-text);
}

.answer-text-plus {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--uwm-text);
}

.verb-info {
    font-style: italic;
    color: var(--uwm-black-light);
    font-size: 1rem;
}

.next-question-section {
    text-align: center;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border: 2px solid;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-primary {
    border-color: var(--uwm-blue-accessible);
    background-color: var(--uwm-blue-accessible);
    color: var(--uwm-bg-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-positive {
    border-color: #16a34a;
    background-color: #16a34a;
    color: var(--uwm-bg-white);
}

.btn-positive:hover,
.btn-positive:focus {
    background-color: #15803d;
    border-color: #15803d;
}

.btn-negative {
    border-color: #dc2626;
    background-color: #dc2626;
    color: var(--uwm-bg-white);
}

.btn-negative:hover,
.btn-negative:focus {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-neutral {
    border-color: #ffd14c;
    background-color: #ffd14c;
    color: var(--uwm-bg-white);
}

.btn-neutral:hover,
.btn-neutral:focus {
    background-color: #ffbd00;
    border-color: #ffbd00;
}

.hidden {
    display: none !important;
}

.next-question-section {
    text-align: center;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    background-color: var(--uwm-bg-white);
}

th, td {
    border: 1px solid var(--uwm-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

thead tr {
    background-color: #f0f4ff;
}

th {
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:hover {
    background-color: #f5f7f9;
}

/* Column widths for 4-column pronoun/reference tables */
.col-person   { width: 28%; }
.col-pronoun  { width: 14%; }
.col-meaning  { width: 30%; }
.col-example  { width: 28%; }

/* Conversation starters */
.conversation-display {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.conversation-line {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.conversation-line:last-child {
    margin-bottom: 0;
}

/* Embedded video iframes */
.instructions-section iframe {
    display: block;
    width: 100%;
}

/* Footer - fixed to bottom */
.footer {
    background-color: #000000;
    text-align: center;
    padding: 2rem 0;
    color: #ffffff;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .category-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-items {
        gap: 1rem;
    }
    
    .activity-container {
        padding: 1.5rem;
    }
    
    .response-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-buttons {
        grid-template-columns: 1fr;
    }
    
    .activity-container {
        padding: 1rem;
    }
}