/* =============================================
   style.css — Kỷ Yếu Lớp
   Aesthetic: Soft nostalgia meets modern warmth
   Palette: Warm coral, golden yellow, soft cream
   ============================================= */

/* --- CSS Variables --- */
:root {
    --coral:      #FF6B6B;
    --coral-dark: #E85555;
    --gold:       #FFD166;
    --teal:       #06D6A0;
    --navy:       #1A1A2E;
    --purple:     #7B5EA7;
    --cream:      #FFF9F0;
    --warm-white: #FFFDF8;
    --gray-light: #F4F0EB;
    --gray-mid:   #C4B8A8;
    --gray-text:  #6B5E52;
    --dark-text:  #2D2318;

    --font-display: 'Lora', Georgia, serif;
    --font-body:    'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-sm: 0 2px 8px rgba(45,35,24,.08);
    --shadow-md: 0 8px 32px rgba(45,35,24,.12);
    --shadow-lg: 0 20px 60px rgba(45,35,24,.16);

    --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--warm-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-text);
}

a { color: var(--coral); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--coral-dark); }

img { max-width: 100%; height: auto; }

/* --- Navbar --- */
#mainNav {
    background: rgba(255,253,248,.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gray-light);
    padding: 0.75rem 0;
    transition: var(--transition);
}

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

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--dark-text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.brand-icon { font-size: 1.4rem; }

.nav-link {
    color: var(--gray-text) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--coral) !important;
    background: rgba(255,107,107,.08);
}

.navbar-toggler { border: 2px solid var(--coral); border-radius: var(--radius-sm); padding: 4px 8px; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF6B6B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Page Hero --- */
.page-hero {
    background: linear-gradient(135deg, var(--cream) 0%, #FFE8D6 50%, #FFECD2 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,209,102,.3) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin: 0;
}

/* --- Home Hero --- */
.home-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,107,107,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,209,102,.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6,214,160,.08) 0%, transparent 50%);
}

.hero-float {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.15;
    user-select: none;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.home-hero .hero-content { position: relative; z-index: 2; color: white; }

.home-hero .class-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.home-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.home-hero h1 span { color: var(--coral); }

.home-hero .hero-desc {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-hero-primary {
    background: var(--coral);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(255,107,107,.4);
}

.btn-hero-primary:hover {
    background: var(--coral-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,107,107,.5);
}

.btn-hero-secondary {
    background: rgba(255,255,255,.1);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

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

.hero-image-wrap {
    position: relative;
    padding: 20px;
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, var(--coral), var(--gold), var(--teal), var(--coral));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphBlob 8s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    33% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    66% { border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
}

.hero-cover-img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.hero-cover-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,107,107,.3), rgba(255,209,102,.3));
    border: 2px dashed rgba(255,255,255,.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* --- Stats strip --- */
.stats-strip {
    background: var(--navy);
    padding: 2rem 0;
}

.stat-item { text-align: center; padding: 0 1rem; }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
}

/* --- Section --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--navy); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: rgba(255,107,107,.1);
    color: var(--coral);
    border: 1px solid rgba(255,107,107,.2);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--gray-text);
    max-width: 480px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn-primary-custom {
    background: var(--coral);
    color: white;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--coral-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,107,.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--coral);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    border: 2px solid var(--coral);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--coral);
    color: white;
}

/* --- Memory Card --- */
.memory-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.memory-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.memory-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--cream), #FFE0C0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.memory-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.memory-date {
    font-size: 0.8rem;
    color: var(--coral);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.memory-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.memory-card-excerpt {
    color: var(--gray-text);
    font-size: 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memory-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

/* --- Timeline (memories page) --- */
.timeline { position: relative; padding: 1rem 0; }

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--coral), var(--gold));
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 2rem);
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 2rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--coral);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,107,107,.2);
    z-index: 2;
}

.timeline-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: 460px;
    width: 100%;
}

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

.timeline-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.timeline-card-body { padding: 1.5rem; }

@media (max-width: 768px) {
    .timeline::before { left: 16px; }
    .timeline-item, .timeline-item:nth-child(even) {
        padding: 0 0 0 3rem;
        justify-content: flex-start;
    }
    .timeline-dot { left: 16px; }
}

/* --- Gallery --- */
.album-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.album-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.album-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream), #FFE0C0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.album-info { padding: 1rem 1.25rem; }
.album-name { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.25rem; }
.album-count { font-size: 0.8rem; color: var(--gray-text); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.photo-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img { transform: scale(1.05); }

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,.5);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.photo-item:hover .photo-overlay { opacity: 1; }

/* --- Member Card --- */
.member-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}

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

.member-avatar-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid var(--cream);
    box-shadow: 0 4px 16px rgba(255,107,107,.2);
    background: var(--gray-light);
}

.member-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--cream), #FFE0C0);
}

.member-name { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.25rem; }
.member-nickname { color: var(--coral); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; }
.member-position { font-size: 0.75rem; color: white; background: var(--purple); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 0.75rem; }
.member-bio { color: var(--gray-text); font-size: 0.875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Guestbook --- */
.guestbook-entry {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--coral);
    transition: var(--transition);
}

.guestbook-entry:hover { box-shadow: var(--shadow-md); }
.gb-author { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.gb-time { font-size: 0.8rem; color: var(--gray-text); margin-bottom: 0.75rem; }
.gb-message { color: var(--gray-text); line-height: 1.7; }

/* --- Form --- */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-label { font-weight: 600; font-size: 0.9rem; color: var(--dark-text); margin-bottom: 6px; }

.form-control, .form-select {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255,107,107,.1);
    outline: none;
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* --- About page --- */
.about-content h2 { font-size: 2rem; color: var(--dark-text); margin-bottom: 1rem; }
.about-content h3 { font-size: 1.5rem; color: var(--coral); margin: 2rem 0 1rem; }
.about-content p { color: var(--gray-text); margin-bottom: 1rem; }
.about-content ul { color: var(--gray-text); padding-left: 1.5rem; }
.about-content ul li { margin-bottom: 0.5rem; }
.about-content strong { color: var(--dark-text); }

/* --- Contact --- */
.contact-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.contact-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; }
.contact-name { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.25rem; }
.contact-role { color: var(--coral); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.contact-link { display: flex; align-items: center; gap: 8px; color: var(--gray-text); font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-link i { color: var(--coral); width: 16px; }
.contact-link a { color: var(--gray-text); }
.contact-link a:hover { color: var(--coral); }

/* --- Pagination --- */
.pagination-nav { margin-top: 2.5rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    color: var(--gray-text);
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--coral);
    border-color: var(--coral);
    color: white !important;
}

.page-dots { padding: 0 4px; color: var(--gray-text); }

/* --- Search box --- */
.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.search-box input {
    padding-left: 44px;
    border-radius: 100px;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
}

/* --- Photo Gallery Home --- */
.photo-gallery-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-gallery-home a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.photo-gallery-home img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.photo-gallery-home a:hover img { transform: scale(1.08); }

/* --- Footer --- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 3rem 0 2rem;
}

.footer-inner { text-align: center; }

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: 0.875rem;
}

.footer-links a:hover { color: var(--coral); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,.4); margin: 0; }

/* --- Breadcrumb --- */
.breadcrumb-wrap {
    background: var(--gray-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-mid); }
.breadcrumb-item a { color: var(--coral); }
.breadcrumb-item.active { color: var(--gray-text); }

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-text);
}

.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--dark-text); margin-bottom: 0.5rem; }

/* --- Alert --- */
.alert-success { background: rgba(6,214,160,.1); border-color: var(--teal); color: #05a07a; }
.alert-danger { background: rgba(255,107,107,.1); border-color: var(--coral); color: var(--coral-dark); }

/* --- Back to top --- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--coral);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
    border: none;
}

#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--coral-dark); transform: translateY(-3px); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; opacity: 0; }
.delay-2 { animation-delay: .2s; opacity: 0; }
.delay-3 { animation-delay: .3s; opacity: 0; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .section { padding: 3.5rem 0; }
    .home-hero { min-height: auto; padding: 4rem 0; }
    .hero-image-wrap { display: none; }
    .photo-gallery-home { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .page-hero { padding: 2.5rem 0 2rem; }
    .form-card { padding: 1.5rem; }
    .photo-gallery-home { grid-template-columns: repeat(2, 1fr); }
    .stats-strip .col-6 { margin-bottom: 1rem; }
}

/* --- Utility --- */
.text-coral { color: var(--coral) !important; }
.bg-cream { background: var(--cream) !important; }
.rounded-custom { border-radius: var(--radius-md); }
.shadow-custom { box-shadow: var(--shadow-md); }
.font-display { font-family: var(--font-display); }

/* =============================================
   Additions & Fixes
   ============================================= */

/* Memory detail page rich content */
.memory-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}
.memory-content p { margin-bottom: 1.25rem; }
.memory-content h2, .memory-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}
.memory-content blockquote {
    border-left: 4px solid var(--coral);
    padding: 0.75rem 1.25rem;
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    color: var(--gray-text);
    font-style: italic;
}

/* Gallery download button */
.photo-download {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,.9);
    color: var(--dark-text);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: .75rem;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
}
.photo-item:hover .photo-download { opacity: 1; }

/* Member card hover badge glow */
.member-card:hover .member-avatar-wrap {
    box-shadow: 0 4px 20px rgba(255,107,107,.35);
    border-color: var(--coral);
    transition: var(--transition);
}

/* Guestbook form sticky on large screens */
@media (min-width: 992px) {
    .gb-form-sticky {
        position: sticky;
        top: 90px;
    }
}

/* Timeline responsive fix */
@media (max-width: 768px) {
    .timeline-item, .timeline-item:nth-child(even) {
        padding: 0 0 0 3.5rem;
        justify-content: flex-start;
    }
    .timeline::before { left: 18px; }
    .timeline-dot {
        left: 18px;
        transform: translateX(-50%);
    }
    .timeline-card { max-width: 100%; }
}

/* Stats strip responsive */
@media (max-width: 480px) {
    .stat-number { font-size: 2rem; }
}

/* Alert positioned */
.alert {
    border-radius: var(--radius-sm);
}

/* Navbar brand mobile */
@media (max-width: 380px) {
    .brand-text { display: none; }
}

/* Photo grid responsive */
@media (max-width: 480px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Print styles (for yearbook printing) */
@media print {
    #mainNav, .site-footer, #backToTop, .btn-hero-primary, .btn-hero-secondary { display: none !important; }
    body { font-size: 12pt; }
    .memory-card, .member-card { break-inside: avoid; }
}

/* Smooth page transitions */
main { animation: fadeInUp .4s ease; }

/* GLightbox custom style */
.glightbox-clean .gclose {
    background: var(--coral) !important;
}
