/* ═══════════════════════════════════════════
   RESET & ROOT VARIABLES
   ═══════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FEFEFE;
    --bg-secondary: #F7F5F1;
    --bg-hover: #FAF6EE;
    --color-crimson: #8B0000;
    --color-gold: #C6A75E;
    --color-ink: #1C1C1C;
    --color-subtext: #5C5C5C;
    --color-border: #E4E0D8;
    
    --font-display: 'EB Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Noto Serif SC', serif;
    
    --shadow-soft: 0 2px 12px rgba(28, 28, 28, 0.08);
    --shadow-medium: 0 4px 20px rgba(28, 28, 28, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background-color: var(--bg-primary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

nav {
    position: sticky;
    top: 0;
    height: 72px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-seal {
    width: 40px;
    height: 40px;
}

.nav-wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: 0.05em;
}

.nav-center {
    display: flex;
    gap: 2.5rem;
}

.nav-center a {
    font-size: 0.95rem;
    color: var(--color-ink);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--color-crimson);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--color-border);
    border-top: none;
    min-width: 200px;
    flex-direction: column;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    color: var(--color-ink);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: var(--bg-hover);
    color: var(--color-crimson);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.mobile-dropdown-menu a {
    font-size: 1rem;
    color: var(--color-ink);
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn-join {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-crimson);
    background-color: transparent;
    color: var(--color-crimson);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.btn-join:hover {
    background-color: var(--color-crimson);
    color: var(--bg-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-ink);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 999;
    padding-top: 6rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 2rem;
    position: static;
    height: auto;
    border: none;
    box-shadow: none;
    background: none;
}

.mobile-menu a {
    font-size: 1.25rem;
    color: var(--color-ink);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   PAGE SECTIONS
   ═══════════════════════════════════════════ */

.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════════
   HOME PAGE - HERO
   ═══════════════════════════════════════════ */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero-watermark {
    position: absolute;
    opacity: 0.08;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .subtitle-zh {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-subtext);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background-color: var(--color-crimson);
    color: var(--bg-primary);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: #6B0000;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--color-crimson);
    border: 2px solid var(--color-crimson);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    background-color: var(--color-crimson);
    color: var(--bg-primary);
}

.btn-lang {
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-primary);
    color: var(--color-ink);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 0.5rem;
}

.btn-lang:hover {
    background-color: var(--bg-hover);
}

/* ═══════════════════════════════════════════
   HOME PAGE - MISSION STRIP
   ═══════════════════════════════════════════ */

.mission-strip {
    padding: 5rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-column {
    text-align: center;
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.mission-column h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-ink);
    margin-bottom: 1rem;
    font-weight: 600;
}

.mission-column p {
    color: var(--color-subtext);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   HOME PAGE - STATISTICS
   ═══════════════════════════════════════════ */

.statistics {
    background-color: var(--bg-secondary);
    padding: 5rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-item h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-crimson);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--color-subtext);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-family: var(--font-body);
}

/* ═══════════════════════════════════════════
   HOME PAGE - FEATURED EVENT CARD
   ═══════════════════════════════════════════ */

.featured-event-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: center;
}

.featured-event-card {
    background-color: var(--bg-primary);
    border-left: 6px solid var(--color-crimson);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-event-card:hover {
    box-shadow: var(--shadow-medium);
}

.featured-event-card::before,
.featured-event-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold);
    opacity: 0.3;
}

.featured-event-card::before {
    top: 1.5rem;
    right: 1.5rem;
    border-right: none;
    border-bottom: none;
}

.featured-event-card::after {
    bottom: 1.5rem;
    left: 1.5rem;
    border-left: none;
    border-top: none;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.event-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-subtext);
    margin-bottom: 1rem;
}

.event-meta span {
    display: flex;
    gap: 0.5rem;
}

.featured-event-card p {
    color: var(--color-subtext);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.event-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    cursor: pointer;
}

.event-link:hover {
    color: var(--color-crimson);
}

/* ═══════════════════════════════════════════
   HOME PAGE - GALLERY PREVIEW
   ═══════════════════════════════════════════ */

.gallery-preview {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(139, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--bg-primary);
    text-align: center;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.mission-vision {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mission-vision-divider {
    width: 1px;
    background-color: var(--color-border);
}

.mission-vision h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mission-vision p {
    color: var(--color-subtext);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.timeline {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.timeline h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    gap: 2rem;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 120px;
    text-align: center;
    padding-top: 0.5rem;
}

.timeline-date strong {
    color: var(--color-crimson);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-left: 1px solid var(--color-gold);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 1px solid var(--color-gold);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--color-subtext);
    font-size: 0.9rem;
}

.executive-board {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.executive-board h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.board-member {
    text-align: center;
}

.board-portrait {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.board-member h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-ink);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.board-member p {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: 500;
}

.committees-table {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 4rem;
}

table thead {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

table th {
    padding: 1rem;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-ink);
    font-size: 0.95rem;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-subtext);
    font-size: 0.9rem;
}

table tr:hover {
    background-color: var(--bg-hover);
}

.partners {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 3rem;
    text-align: center;
}

.partners h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 3rem;
    font-weight: 600;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.partner-logo {
    width: 140px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-hover) 100%);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   EVENTS PAGE
   ═══════════════════════════════════════════ */

.events-filter {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: var(--color-ink);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-crimson);
    color: var(--bg-primary);
    border-color: var(--color-crimson);
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 3rem;
}

.events-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-ink);
    margin: 3rem 0 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
}

.event-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--color-border);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.event-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--color-gold);
}

.event-date-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--color-crimson);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 2px;
}

.event-card-body {
    padding-left: 100px;
}

.event-category {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--color-gold);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    border-radius: 2px;
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-location {
    font-size: 0.9rem;
    color: var(--color-subtext);
    margin-bottom: 1rem;
}

.event-description {
    color: var(--color-subtext);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hub-card {
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hub-card:hover {
    box-shadow: var(--shadow-medium) !important;
    border-color: var(--color-gold) !important;
    transform: translateY(-2px);
}

.signature-event-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 6px solid var(--color-gold);
}

.signature-event-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-ink);
    margin-bottom: 1rem;
    font-weight: 600;
}

.past-archive {
    margin-top: 3rem;
}

.past-archive table {
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   COMMUNITY PAGE
   ═══════════════════════════════════════════ */

.membership-tiers {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 3rem;
}

.membership-tiers h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.committees-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.committees-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.committee-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.committee-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.committee-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-ink);
    margin-bottom: 1rem;
    font-weight: 600;
}

.committee-card p {
    color: var(--color-subtext);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.committee-card strong {
    color: var(--color-ink);
}

.volunteer-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 3rem;
    background-color: var(--bg-secondary);
}

.volunteer-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-ink);
    background-color: var(--bg-primary);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-crimson);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-crimson);
    color: var(--bg-primary);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    background-color: #6B0000;
    transform: translateY(-2px);
}

.alumni-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 3rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.alumni-quote {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-ink);
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.8;
}

.alumni-attribution {
    color: var(--color-gold);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   RESOURCES PAGE
   ═══════════════════════════════════════════ */

.resources-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 3rem;
}

.resources-container h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-ink);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.resource-card p {
    color: var(--color-subtext);
    font-size: 0.9rem;
    line-height: 1.6;
}

.resource-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.resource-content.expanded {
    display: block;
}

.resource-content p {
    color: var(--color-subtext);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

footer {
    background-color: var(--color-ink);
    color: var(--bg-primary);
    padding: 4rem 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column p,
.footer-column a {
    color: rgba(254, 254, 254, 0.8);
    font-size: 0.9rem;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(254, 254, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.wechat-qr {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(198, 167, 94, 0.1) 0%, rgba(198, 167, 94, 0.05) 100%);
    border: 1px solid rgba(198, 167, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(254, 254, 254, 0.5);
    text-align: center;
    margin-top: 1rem;
}

.footer-divider {
    border-top: 1px solid rgba(254, 254, 254, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(254, 254, 254, 0.6);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 28, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-primary);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-medium);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-subtext);
    transition: color 0.2s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-crimson);
}

.modal h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-ink);
    margin-bottom: 2rem;
    font-weight: 600;
}

.membership-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.membership-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.membership-option:hover {
    border-color: var(--color-gold);
    background-color: var(--bg-hover);
}

.membership-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-crimson);
}

/* ═══════════════════════════════════════════
   SPONSORSHIP PAGE STYLES
   ═══════════════════════════════════════════ */

.sponsorship-hero {
    position: relative;
    text-align: center;
    padding: 6rem 2rem;
}
.sponsorship-hero:before {
    content: "中";
    position: absolute;
    font-family: var(--font-accent);
    font-size: 12rem;
    color: var(--color-crimson);
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.why-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}
.why-item p {
    color: var(--color-subtext);
    line-height: 1.6;
}

.tier-divider {
    height: 1px;
    background-color: var(--color-gold);
    margin: 1.5rem 0;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    display: block;
    overflow-x: auto;
}
.tier-table th,
.tier-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.signature-exposure .signature-card {
    border-left: 6px solid var(--color-crimson);
    background-color: var(--bg-primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.signature-exposure .signature-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.signature-exposure .signature-card ul {
    list-style: disc inside;
    color: var(--color-subtext);
}

.sponsorship-stats {
    background-color: var(--bg-secondary);
    padding: 3rem 0;
}

.testimonial-section {
    background-color: var(--bg-secondary);
    padding: 4rem 2rem;
    text-align: center;
    font-style: italic;
    color: var(--color-subtext);
}
.testimonial-section p {
    max-width: 800px;
    margin: 0 auto 1rem;
}
.testimonial-attribution {
    font-weight: 600;
    color: var(--color-ink);
    margin-top: 0.5rem;
}

.contact-section {
    padding: 4rem 2rem;
    text-align: center;
}
.contact-section h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.contact-section p {
    margin: 0.25rem 0;
}

.membership-option label {
    flex: 1;
    cursor: pointer;
}

.membership-option label strong {
    display: block;
    color: var(--color-ink);
    margin-bottom: 0.2rem;
}

.membership-option label span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-subtext);
}

.thank-you-state {
    display: none;
    text-align: center;
}

.thank-you-state.active {
    display: block;
}

.thank-you-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-crimson);
    margin-bottom: 1rem;
    font-weight: 600;
}

.thank-you-state p {
    color: var(--color-subtext);
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .mission-vision-divider {
        display: none;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        border-left: 1px solid var(--color-gold) !important;
        border-right: none !important;
    }
}

/* anchor spacing for resources dropdown */
#group-chat, #new-guide, #academic-support {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }
    
    .nav-left {
        flex: 1;
    }
    
    .nav-wordmark {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle-zh {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .mission-strip {
        padding: 3rem 1rem;
        gap: 2rem;
    }
    
    .statistics {
        padding: 3rem 1rem;
        gap: 2rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
    
    .featured-event-section,
    .gallery-preview,
    .mission-vision,
    .timeline,
    .executive-board,
    .committees-table,
    .partners,
    .events-filter,
    .events-container,
    .membership-tiers,
    .committees-section,
    .volunteer-section,
    .alumni-section,
    .resources-container,
    .why-partner,
    .sponsorship-tiers,
    .signature-exposure,
    .testimonial-section,
    .contact-section,
    .sponsorship-hero {
        padding: 0 1rem;
    }
    
    .event-card-body {
        padding-left: 0;
    }
    
    .event-date-badge {
        position: static;
        margin-bottom: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .board-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .committee-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}
