/* 
  Integrated Behavioral Technologies (IBT)
  25th Anniversary Celebration Stylesheet (2002 - 2027)
  Fully responsive & light/dark theme compliant
*/

/* Confetti Canvas - full screen, non-interactive overlay */
.anniversary-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Hero Section */
.anniversary-hero {
    position: relative;
    padding: 70px 0 80px;
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

[data-theme="dark"] .anniversary-hero {
    background: linear-gradient(135deg, #101412 0%, #19201c 50%, #1e2924 100%);
}

.anniversary-hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(229, 171, 96, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.anniversary-hero-container {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0 auto;
}

/* Celebration Pill */
.anniversary-badge-wrapper {
    margin-bottom: 24px;
}

.anniversary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 171, 96, 0.18);
    border: 1px solid rgba(229, 171, 96, 0.5);
    color: #fce8cc;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.pulse-sparkle {
    display: inline-block;
    animation: sparkleSpin 2.5s infinite ease-in-out;
}

@keyframes sparkleSpin {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.3) rotate(20deg);
    }
}

/* 25th Anniversary Logo Box (Light & Dark mode handling) */
.anniversary-logo-frame {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 24px 36px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    border: 3px solid rgba(229, 171, 96, 0.4);
    margin-bottom: 30px;
    max-width: 640px;
    width: 100%;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .anniversary-logo-frame {
    background-color: #1a1e1b;
    border-color: rgba(229, 171, 96, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.anniversary-hero-logo {
    width: 100%;
    height: auto;
    max-height: 125px;
    display: block;
    object-fit: contain;
}

/* Toggle light and dark logo variants */
.anniversary-logo-dark {
    display: none !important;
}

.anniversary-logo-light {
    display: block !important;
}

[data-theme="dark"] .anniversary-logo-light {
    display: none !important;
}

[data-theme="dark"] .anniversary-logo-dark {
    display: block !important;
}

.anniversary-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #E5AB60;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.anniversary-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 820px;
    margin: 0 auto 36px;
}

.anniversary-hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.trigger-confetti-btn {
    box-shadow: 0 4px 18px rgba(229, 171, 96, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trigger-confetti-btn:active,
.trigger-confetti-btn.pop-active {
    transform: scale(0.92);
}

/* Stats Section */
.anniversary-stats-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.anniversary-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.stat-card {
    background: var(--bg-color);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.stat-icon-wrapper {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Milestones Timeline Section */
.anniversary-timeline-section {
    padding: 85px 0;
}

.milestone-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.milestone-filter-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.milestone-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.milestone-filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .milestone-filter-btn.active {
    background: var(--accent-color);
    color: #14315C;
    border-color: var(--accent-color);
}

.anniversary-timeline-wrapper {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 70px;
}

.anniversary-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 25px;
    left: 28px;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color) 0%, #2d62a3 80%, #4f7cae 100%);
    border-radius: 4px;
}

.milestone-item {
    position: relative;
    margin-bottom: 38px;
    display: flex;
    align-items: flex-start;
}

.milestone-badge {
    position: absolute;
    left: -70px;
    top: 16px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

[data-theme="dark"] .milestone-badge {
    background: #14315C;
    color: #ffffff;
}

.milestone-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px 30px;
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.milestone-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.milestone-tag {
    background: rgba(62, 91, 124, 0.12);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.milestone-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.milestone-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.milestone-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.65;
    margin: 0;
}

/* Fun Facts Section */
.anniversary-facts-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.facts-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.fact-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    transition: var(--transition-smooth);
}

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

.fact-card.highlighted-fact {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(229, 171, 96, 0.5);
    background: rgba(229, 171, 96, 0.12);
    animation: pulseHighlight 1.5s ease-in-out infinite alternate;
}

@keyframes pulseHighlight {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.03);
    }
}

.fact-number-pill {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

[data-theme="dark"] .fact-number-pill {
    background: var(--accent-color);
    color: #14315C;
}

.fact-card h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.fact-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-color);
    margin: 0;
}

/* Hubs Grid */
.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hub-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

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

.hub-tag {
    align-self: flex-start;
    background: rgba(20, 49, 92, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hub-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.hub-address {
    font-size: 0.88rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.hub-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.hub-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hub-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Guestbook & Memory Wall */
.anniversary-guestbook-section {
    padding: 85px 0;
    background-color: var(--bg-white);
}

/* Light mode text color replacement: replace black text with #14315C in Celebrate With Us */
:root:not([data-theme="dark"]) .anniversary-guestbook-section,
[data-theme="light"] .anniversary-guestbook-section {
    --text-color: #14315C;
    --text-muted: rgba(20, 49, 92, 0.75);
    color: #14315C;
}

:root:not([data-theme="dark"]) .anniversary-guestbook-section .form-header p,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .anniversary-form label,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .anniversary-form .anonymous-toggle,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .anniversary-form .form-input,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .form-hint,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .optional-label,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .emoji-choice-btn,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .preview-filename,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .memory-text,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .memory-empty-state p,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .guestbook-alert-content p,
[data-theme="light"] .anniversary-guestbook-section .form-header p,
[data-theme="light"] .anniversary-guestbook-section .anniversary-form label,
[data-theme="light"] .anniversary-guestbook-section .anniversary-form .anonymous-toggle,
[data-theme="light"] .anniversary-guestbook-section .anniversary-form .form-input,
[data-theme="light"] .anniversary-guestbook-section .form-hint,
[data-theme="light"] .anniversary-guestbook-section .optional-label,
[data-theme="light"] .anniversary-guestbook-section .emoji-choice-btn,
[data-theme="light"] .anniversary-guestbook-section .preview-filename,
[data-theme="light"] .anniversary-guestbook-section .memory-text,
[data-theme="light"] .anniversary-guestbook-section .memory-empty-state p,
[data-theme="light"] .anniversary-guestbook-section .guestbook-alert-content p {
    color: #14315C;
}

:root:not([data-theme="dark"]) .anniversary-guestbook-section .form-input::placeholder,
[data-theme="light"] .anniversary-guestbook-section .form-input::placeholder {
    color: rgba(20, 49, 92, 0.55);
}

:root:not([data-theme="dark"]) .anniversary-guestbook-section .photo-upload-subtext,
[data-theme="light"] .anniversary-guestbook-section .photo-upload-subtext {
    color: rgba(20, 49, 92, 0.75);
}

:root:not([data-theme="dark"]) .anniversary-guestbook-section .memory-relation,
:root:not([data-theme="dark"]) .anniversary-guestbook-section .memory-date,
[data-theme="light"] .anniversary-guestbook-section .memory-relation,
[data-theme="light"] .anniversary-guestbook-section .memory-date {
    color: rgba(20, 49, 92, 0.7);
}

.guestbook-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
    align-items: flex-start;
}

.guestbook-form-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Submission Pending Notice Box */
.guestbook-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(43, 112, 76, 0.1);
    border: 1.5px solid var(--success-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    animation: fadeInAlert 0.4s ease;
}

@keyframes fadeInAlert {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guestbook-alert-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.guestbook-alert-content strong {
    display: block;
    color: var(--success-color);
    font-size: 1rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.guestbook-alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

.anniversary-form .form-group {
    margin-bottom: 18px;
}

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

.required-star {
    color: var(--error-color);
}

.anniversary-form .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-color);
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.anniversary-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 49, 92, 0.15);
}

.anniversary-form .form-textarea {
    resize: vertical;
}

.emoji-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-choice-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-color);
}

.emoji-choice-btn:hover {
    border-color: var(--accent-color);
}

.emoji-choice-btn.active {
    background: var(--accent-color);
    color: #14315C;
    font-weight: 700;
    border-color: var(--accent-color);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.guestbook-wall-wrapper {
    position: relative;
}

.wall-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.wall-header-flex h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
}

.memory-wall-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 8px;
}

.memory-wall-grid::-webkit-scrollbar {
    width: 6px;
}

.memory-wall-grid::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.memory-wall-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.memory-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
}

.memory-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.memory-empty-state h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.memory-empty-state p {
    font-size: 0.95rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-color);
}

.memory-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.memory-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.memory-card.featured-memory {
    border-left: 5px solid var(--accent-color);
    background: rgba(229, 171, 96, 0.08);
}

.memory-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.memory-emoji {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-author {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 2px 0;
}

.memory-relation {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.memory-tagline {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.memory-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 14px;
}

.memory-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    font-size: 0.82rem;
}

.memory-badge {
    background: rgba(20, 49, 92, 0.08);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.memory-date {
    color: var(--text-muted);
}

.custom-memory-card {
    border-left: 4px solid var(--success-color);
}

/* Photo Upload Box & Previews in Guestbook */
.photo-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    background: var(--bg-color);
    transition: var(--transition-smooth);
    position: relative;
}

.photo-upload-box:hover,
.photo-upload-box.drag-over {
    border-color: var(--accent-color);
    background: rgba(229, 160, 52, 0.06);
}

.photo-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    padding: 10px 8px;
    user-select: none;
}

.photo-upload-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 6px;
}

.photo-upload-maintext {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.photo-upload-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.photo-upload-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.preview-thumbnail {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.photo-preview-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.preview-filename {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-clear-photo {
    align-self: flex-start;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-clear-photo:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #bd2130;
}

/* Memory Card Content & Text Wrap Layout */
.memory-card-body {
    position: relative;
    margin-bottom: 14px;
}

.memory-card-body::after {
    content: "";
    display: table;
    clear: both;
}

/* Photo Display inside Community Memory Wall Cards - Fully Adaptive to Aspect Ratio */
.memory-photo-container {
    float: right;
    max-width: 48%;
    max-height: 175px;
    width: fit-content;
    height: fit-content;
    margin: 2px 0 12px 18px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.memory-photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    cursor: zoom-in;
    text-decoration: none;
    line-height: 0;
}

.memory-card-photo {
    max-width: 280px;
    max-height: 163px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.memory-photo-link:hover .memory-card-photo {
    transform: scale(1.04);
}

/* Wide / Rectangle (Landscape) Photos: Placed cleanly under the message */
.memory-photo-container.photo-wide {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    max-height: 240px;
    height: auto;
    margin: 12px 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.memory-photo-container.photo-wide .memory-photo-link {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-photo-container.photo-wide .memory-card-photo {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.memory-footer {
    clear: both;
}

@media (max-width: 576px) {
    .memory-photo-container {
        max-width: 42%;
        max-height: 125px;
        margin: 2px 0 8px 12px;
        padding: 4px;
    }

    .memory-card-photo {
        max-width: 140px;
        max-height: 115px;
    }
}

.anonymous-toggle:hover {
    color: var(--secondary-color);
}

.animate-pop-in {
    animation: memoryPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes memoryPopIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Giving Section */
.anniversary-giving-section {
    padding: 85px 0;
}

.giving-card-banner {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    border-radius: 20px;
    padding: 56px 48px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .giving-card-banner {
    background: linear-gradient(135deg, #101412 0%, #1e2822 60%, #27382d 100%);
    border: 1px solid rgba(229, 171, 96, 0.3);
}

.giving-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.giving-tier-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.giving-tier-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.giving-tier-btn.active-tier {
    background: rgba(229, 171, 96, 0.35);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(229, 171, 96, 0.55);
    transform: translateY(-4px);
}

.giving-tier-btn.highlight-tier {
    background: rgba(229, 171, 96, 0.25);
    border-color: var(--accent-color);
}

.tier-amount {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
}

.tier-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
}

.giving-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.anniversary-emblem-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 171, 96, 0.25) 0%, rgba(45, 98, 163, 0.4) 70%);
    border: 4px double var(--accent-color);
    box-shadow: 0 0 35px rgba(229, 171, 96, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatEmblem 4s ease-in-out infinite;
}

@keyframes floatEmblem {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

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

.emblem-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.emblem-years {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.emblem-sub {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* CTA Footer Strip */
.anniversary-cta-strip {
    padding: 60px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

/* Toast Notification */
.anniversary-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 1px solid var(--accent-color);
}

.anniversary-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries for 25th Anniversary */
@media (max-width: 992px) {
    .guestbook-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .giving-card-banner {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        text-align: center;
    }

    .anniversary-title {
        font-size: 2.1rem;
    }

    .giving-tiers {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .anniversary-logo-frame {
        padding: 16px 20px;
    }

    .anniversary-title {
        font-size: 1.75rem;
    }

    .anniversary-timeline-wrapper {
        padding-left: 50px;
    }

    .anniversary-timeline-wrapper::before {
        left: 18px;
    }

    .milestone-badge {
        left: -50px;
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }
}