/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 50%, #f0f8f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 100, 6, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand span {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active {
    transform: rotate(90deg);
}

.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);
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #006406;
    position: relative;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #006406, #FFFFFF);
    border-radius: 2px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #006406 0%, #004d04 50%, #006406 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #FFFFFF;
    margin-top: 80px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.15"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.15"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.15"/><circle cx="10" cy="50" r="0.8" fill="white" opacity="0.1"/><circle cx="90" cy="50" r="0.8" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.spartan-helmet {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.spartan-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.spartan-image:hover {
    transform: scale(1.05);
}

.memorial-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.memorial-name {
    font-size: 5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.memorial-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: #f0f0f0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.memorial-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.msu-badge {
    color: #FFFFFF;
    background: rgba(0, 130, 8, 0.8);
    border: 2px solid #FFFFFF;
}

.hometown-badge {
    color: #87CEEB;
}

.elvis-badge {
    color: #FFD700;
}

.ford-badge {
    color: #1E3A8A;
}

.cubs-badge {
    color: #0E3386;
}

/* Spartan Helmet Styling */
.spartan-helmet {
    width: 200px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border-radius: 15px;
    border: 4px solid #006406;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.15),
        0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.spartan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
    transition: transform 0.3s ease;
}

.spartan-helmet:hover .spartan-image {
    transform: scale(1.05);
}

.spartan-helmet::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 8px;
    background: linear-gradient(90deg, #006406, #004d04, #006406);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.8);
}

/* Slideshow Section */
.slideshow-section {
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slideshow-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #f8f9fa;
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slideshow-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slideshow-slide:hover img {
    transform: scale(1.02);
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 100, 6, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.2rem;
}

.slideshow-btn:hover {
    background: rgba(0, 130, 8, 1);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev {
    left: 20px;
}

.slideshow-btn.next {
    right: 20px;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0,0,0,0.05);
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 100, 6, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: #006406;
    transform: scale(1.3);
}

.fullscreen-btn {
    display: block;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, #006406, #004d04);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 100, 6, 0.3);
}

.fullscreen-btn i {
    margin-right: 0.5rem;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.gallery-modal::after {
    content: "💡 Use ←→ arrow keys or swipe to navigate • ESC to close";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 6s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    transform: scale(1.2);
    color: #ff4444;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.gallery-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    max-height: 120px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.gallery-thumbnail {
    min-width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.5);
}

.gallery-thumbnail.active {
    border-color: #006406;
    transform: scale(1.1);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Event Section */
.event-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.event-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 130, 8, 0.1);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-icon {
    background: linear-gradient(135deg, #006406, #004d04);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    color: #006406;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item span {
    line-height: 1.6;
}

.info-item a {
    color: #006406;
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Livestream Section */
.livestream-section {
    background: #f8f9fa;
}

.livestream-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 130, 8, 0.1);
}

.livestream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.livestream-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.livestream-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
}

.livestream-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.zoom-info {
    margin-top: 1.5rem;
}

.zoom-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zoom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.zoom-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.zoom-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.zoom-note {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
}

/* Obituary Section */
.obituary-section {
    background: white;
}

.obituary-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 130, 8, 0.1);
}

.obituary-content h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
}

.obituary-dates {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    font-style: italic;
}

.obituary-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Tributes Section */
.tributes-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

.tributes-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.tribute-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 130, 8, 0.1);
    position: sticky;
    top: 100px;
}

.tribute-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.tribute-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006406;
    box-shadow: 0 0 0 3px rgba(0, 100, 6, 0.1);
    transform: translateY(-2px);
}

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

.submit-btn {
    background: linear-gradient(135deg, #006406, #004d04);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 100, 6, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.tributes-display {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 130, 8, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.tributes-display h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.tributes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tribute-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #006406;
    transition: all 0.3s ease;
}

.tribute-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tribute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tribute-author {
    font-weight: 600;
    color: #006406;
}

.tribute-relationship {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

.tribute-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.tribute-message {
    line-height: 1.6;
    color: #333;
}

/* Tributes Pagination */
.tributes-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background: #006406;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(.disabled) {
    background: #006006;
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-number {
    background: transparent;
    color: #006406;
    border: 1px solid #006406;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
}

.pagination-number:hover {
    background: #006406;
    color: white;
}

.pagination-number.active {
    background: #006406;
    color: white;
    font-weight: bold;
}

.pagination-ellipsis {
    color: #6c757d;
    padding: 0 0.5rem;
    font-size: 1.2rem;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Sympathies Section */
.sympathies-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

.sympathies-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 100, 6, 0.1);
}

.sympathies-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sympathies-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.sympathies-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
}

.sympathies-content p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.address-info {
    margin: 1.5rem 0;
}

.address-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #006406;
    max-width: 300px;
}

.address-card h4 {
    font-size: 1.2rem;
    color: #006406;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
}

.address-card p {
    color: #333;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Upload Section */
.upload-section {
    background: white;
}

.upload-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 130, 8, 0.1);
}

.upload-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.upload-content > p {
    text-align: center;
    margin-bottom: 2rem;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    border: 2px dashed #006406;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-wrapper:hover {
    background: rgba(0, 100, 6, 0.05);
    border-color: #006006;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-input-display {
    padding: 2rem;
    text-align: center;
    color: #006406;
    transition: all 0.3s ease;
}

.file-input-display i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.image-preview {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-info span {
    font-size: 0.9rem;
    color: #6c757d;
}

.upload-steps {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 130, 8, 0.1);
}

.upload-steps h4 {
    margin-bottom: 1.5rem;
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #006406, #004d04);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-content h4 {
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 1rem;
}

.step-content p {
    color: #6c757d;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #006406;
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #006406;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tributes-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tribute-form-card {
        position: static;
    }
    
    .event-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(0, 100, 6, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 4rem 0 3rem;
    }

    .memorial-title {
        font-size: 2rem;
    }

    .memorial-name {
        font-size: 3rem;
        line-height: 1.2;
    }

    .memorial-subtitle {
        font-size: 1.2rem;
    }

    .memorial-badges {
        gap: 1rem;
        justify-content: center;
    }

    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .badge-icon {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .slideshow-wrapper {
        height: 400px;
    }

    .slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slideshow-btn.prev {
        left: 10px;
    }

    .slideshow-btn.next {
        right: 10px;
    }

    .event-card,
    .livestream-card,
    .sympathies-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .obituary-card {
        padding: 2rem;
    }

    .obituary-content h3 {
        font-size: 1.8rem;
    }

    .obituary-text {
        text-align: left;
    }

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

    .gallery-main {
        height: 70vh;
    }

    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-thumbnails {
        padding: 10px 5px;
    }

    .gallery-thumbnail {
        min-width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        font-size: 1rem;
    }
    
    .memorial-title {
        font-size: 1.5rem;
    }

    .memorial-name {
        font-size: 2.5rem;
    }

    .memorial-subtitle {
        font-size: 1rem;
    }

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

    .slideshow-wrapper {
        height: 300px;
    }

    .event-card,
    .livestream-card,
    .tribute-form-card,
    .tributes-display,
    .upload-card {
        padding: 1.5rem;
    }

    .obituary-card {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .gallery-close {
        top: -40px;
        font-size: 1.5rem;
    }

    .gallery-thumbnails {
        max-height: 80px;
    }

    .gallery-thumbnail {
        min-width: 50px;
        height: 50px;
    }

    .spartan-helmet {
        width: 160px;
        height: 96px;
    }

    .badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        text-align: center;
        font-size: 0.8rem;
    }

    .badge-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile pagination adjustments */
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-pages {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .badge-icon,
    .spartan-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --bg-color: #1a1a1a;
        --card-bg: #2a2a2a;
    }
}

/* Print styles */
@media print {
    .mobile-nav,
    .hamburger,
    .slideshow-btn,
    .fullscreen-btn,
    .gallery-modal,
    .submit-btn {
        display: none !important;
    }
    
    .header {
        margin-top: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* Countdown Timer Styles */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.countdown-item {
    text-align: center;
    color: white;
    min-width: 60px;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-item label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .countdown-timer {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .countdown-item label {
        font-size: 0.7rem;
    }
}

/* Live Service Indicator */
.service-live {
    text-align: center;
    color: white;
    padding: 1rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.live-indicator span:not(.live-dot) {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.service-live p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Video Container Styles */
.video-container {
    margin: 2rem 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

.fullscreen-video-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-controls {
    margin-top: 1.5rem;
    text-align: center;
}

.video-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #006406;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 100, 6, 0.3);
}

.external-link-btn:hover {
    background: #004d04;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 6, 0.4);
}

.recording-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recording-info p {
    margin: 0.5rem 0;
}

.memorial-moment {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    border-left: 4px solid #006406;
}

.memorial-moment p {
    margin: 0;
    font-style: italic;
    color: #333;
}

/* Video responsive styles */
@media (max-width: 768px) {
    .fullscreen-video-btn {
        top: 10px;
        right: 10px;
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .recording-info {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .external-link-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .memorial-moment {
        padding: 1rem;
        font-size: 0.9rem;
    }
} 