/*
    File: css/styles.css
    Author: Cole Perkins
    Date Created: 2026-04-12
    Date Last Modified: 2026-04-12
    Description: Main stylesheet for the RAMS Unified Arts website.
                 Uses school colors (red, navy blue, white) with a clean,
                 modern design. Fully responsive for mobile/tablet/desktop.
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #C41E3A;
    --red-dark: #9B1B30;
    --red-light: #E8425A;
    --navy: #1B2A4A;
    --navy-dark: #0F1C33;
    --navy-light: #2D4270;
    --blue: #2E5EAA;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gold: #D4A843;
    --gold-light: #F0D78C;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 48px;
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-img {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand .logo-img {
    height: 32px;
    width: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
    background: rgba(196, 30, 58, 0.06);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, var(--red-dark) 100%);
    overflow: hidden;
    padding-top: 64px;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,42,74,0.78) 0%, rgba(27,42,74,0.55) 50%, rgba(196,30,58,0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 750px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================== QUICK LINKS ===================== */
.quick-links {
    background: var(--white);
    padding: 48px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.quick-card:hover {
    background: var(--white);
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quick-icon {
    font-size: 2rem;
}

.quick-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* ===================== VALUES ===================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.value-card {
    padding: 32px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================== ABOUT ===================== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-highlights {
    margin-top: 20px;
}

.about-highlights li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-weight: 500;
    color: var(--gray-700);
}

.about-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.7;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================== SPOTLIGHT ===================== */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.spotlight-card {
    padding: 32px 28px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.spotlight-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.spotlight-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* ===================== CTA ===================== */
.cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.cta .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

.cta .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-brand p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ===================== PROGRAMS PAGE ===================== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
}

.program-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.program-section:last-of-type {
    border-bottom: none;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.program-icon {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.program-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.program-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.program-info p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.program-info ul {
    margin-top: 12px;
}

.program-info li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.program-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.6;
}

.curriculum-grid {
    display: grid;
    gap: 16px;
}

.curriculum-card {
    padding: 20px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--red);
}

.curriculum-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.curriculum-card ul {
    margin: 0;
}

.curriculum-card li {
    padding: 3px 0 3px 16px;
    font-size: 0.88rem;
    color: var(--gray-600);
}

.curriculum-card li::before {
    width: 6px;
    height: 6px;
    top: 11px;
}

/* ===================== TEAM PAGE ===================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--red);
}

.team-card-img {
    height: 220px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-card-img .placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.team-card-body {
    padding: 24px;
}

.team-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-card-body .team-role {
    font-size: 0.9rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card-body .team-email {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-card-body .team-email:hover {
    color: var(--blue);
}

/* ===================== HOMEWORK PAGE ===================== */
/* Tab Switcher */
.hw-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 4px;
    max-width: 300px;
}

.hw-tab {
    flex: 1;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.hw-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.hw-tab:hover:not(.active) {
    color: var(--gray-700);
}

.hw-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hw-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.hw-filter-btn:hover,
.hw-filter-btn.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.hw-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.hw-week-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.hw-week-header .hw-date {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hw-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 48px;
}

.hw-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.hw-card:hover {
    box-shadow: var(--shadow-md);
}

.hw-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
}

.hw-card-icon {
    font-size: 1.5rem;
}

.hw-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    flex: 1;
}

.hw-card-toggle {
    font-size: 1.2rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.hw-card.open .hw-card-toggle {
    transform: rotate(180deg);
}

.hw-card-body {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.hw-card.open .hw-card-body {
    padding: 20px 24px;
    max-height: none;
}

.hw-grade-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}

.hw-grade-row:last-child {
    border-bottom: none;
}

.hw-grade-label {
    font-weight: 600;
    color: var(--navy);
}

.hw-grade-content {
    color: var(--gray-600);
}

.hw-grade-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.hw-grade-section:last-child {
    border-bottom: none;
}

.hw-grade-label-header {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.hw-day-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.hw-day-even {
    background: var(--gray-50);
}

.hw-day-odd {
    background: var(--white);
}

.hw-no-hw {
    font-size: 0.88rem;
    color: var(--gray-400);
    font-style: italic;
}

.hw-day-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 2px;
}

.hw-day-items {
    display: grid;
    gap: 6px;
}

.hw-assignment-item {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.hw-due-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
    background: rgba(196, 30, 58, 0.08);
    padding: 1px 8px;
    border-radius: 100px;
    vertical-align: middle;
}

.hw-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.hw-link {
    font-size: 0.82rem;
    color: var(--blue);
}

.hw-link:hover {
    text-decoration: underline;
}

/* AI Teacher Tool */
.ai-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
}

.ai-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.ai-section > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}

.ai-form {
    display: grid;
    gap: 16px;
}

.ai-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ai-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}

.ai-form select,
.ai-form input,
.ai-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.ai-form select option {
    color: var(--gray-800);
    background: var(--white);
}

.ai-form select:focus,
.ai-form input:focus,
.ai-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
}

.ai-form textarea {
    min-height: 100px;
    resize: vertical;
}

.ai-form ::placeholder {
    color: rgba(255,255,255,0.4);
}

.ai-output {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.15);
    min-height: 80px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    display: none;
}

.ai-output.visible {
    display: block;
}

.ai-output h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.ai-btn {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--gold);
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    justify-self: start;
}

.ai-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ai-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Copy button */
.copy-btn {
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* ===================== CONTACT PAGE ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 16px;
    align-items: start;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.contact-details a {
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Extra help banner */
.extra-help-banner {
    margin-top: 48px;
    padding: 32px 40px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.extra-help-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.extra-help-banner p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== SEARCH PAGE ===================== */
.search-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.search-bar-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.4;
    pointer-events: none;
}

.search-bar {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
}

.search-bar:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.search-bar::placeholder {
    color: var(--gray-400);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.search-filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.search-filter-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-filter-group select:focus {
    outline: none;
    border-color: var(--red);
}

.search-count {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    font-weight: 500;
}

.search-results {
    display: grid;
    gap: 12px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.search-result-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-sm);
}

.search-result-icon {
    font-size: 1.8rem;
    text-align: center;
    padding-top: 2px;
}

.search-result-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.search-result-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.search-meta-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.search-meta-tag.grade {
    background: rgba(27, 42, 74, 0.08);
    color: var(--navy);
}

.search-meta-tag.section {
    background: rgba(46, 94, 170, 0.08);
    color: var(--blue);
}

.search-result-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.search-result-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 100px;
}

.search-result-due {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 4px;
}

.search-result-day {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-result-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 500;
}

.search-result-link:hover {
    text-decoration: underline;
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.search-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.search-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.search-empty p {
    font-size: 0.95rem;
}

/* ===================== TEACHER PORTAL ===================== */
.portal-lock-card {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    max-width: 500px;
    margin: 0 auto 32px;
}

.portal-lock-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.portal-lock-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.portal-lock-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.portal-lock-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--gray-400);
    font-style: italic;
}

.portal-denied {
    border-color: var(--red);
    background: rgba(196, 30, 58, 0.02);
}

.portal-signed-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #d1fae5;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #065f46;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-signout-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #065f46;
    background: transparent;
    color: #065f46;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.portal-signout-btn:hover {
    background: #065f46;
    color: white;
}

.nav-teacher {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.82rem !important;
    padding: 6px 12px !important;
    color: var(--gray-500) !important;
}

.nav-teacher:hover,
.nav-teacher.active {
    border-color: var(--navy) !important;
    background: var(--navy) !important;
    color: var(--white) !important;
}

.portal-info {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px 28px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.portal-info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.portal-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.portal-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.portal-action {
    text-align: center;
    padding: 48px 28px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}

.portal-launch-btn {
    font-size: 1.1rem;
    padding: 18px 40px;
}

.portal-action-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.portal-help {
    margin-bottom: 32px;
}

.portal-help h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.portal-help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.portal-help-card {
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.portal-help-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.portal-help-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================== CURRICULUM CARD EXTRAS ===================== */
.curriculum-card .unit-term {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red-dark);
    margin-bottom: 6px;
}

.curriculum-card .unit-summary {
    font-size: 0.92rem;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.55;
}

/* ===================== PHOTO GALLERY ===================== */
.photo-featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    background: var(--gray-100);
}

.photo-featured img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.photo-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.photo-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 16px 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-figure {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-figure figcaption {
    padding: 10px 16px;
    background: var(--gray-100);
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .program-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .ai-form-row {
        grid-template-columns: 1fr;
    }

    .portal-help-grid {
        grid-template-columns: 1fr;
    }

    .portal-info {
        flex-direction: column;
        text-align: center;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .search-result-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-result-icon {
        display: none;
    }

    .search-result-right {
        text-align: left;
        min-width: auto;
    }

    .hw-day-group {
        grid-template-columns: 1fr;
    }

    .hw-day-label {
        padding-bottom: 2px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .ai-section {
        padding: 28px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
