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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.header-photo {
    margin: 30px auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.location {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections */
section {
    background: white;
    margin: 30px 0;
    padding: 50px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Announcement */
.announcement {
    background: #fff8e1;
    border-left: 5px solid #ffa726;
}

.announcement p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Key Details */
.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    font-size: 1.1rem;
}

.details-list strong {
    color: #2c3e50;
}

/* Updates */
.update-log {
    margin-bottom: 20px;
}

.update-entry {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-left: 4px solid #27ae60;
    display: flex;
    flex-direction: column;
}

.update-date {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 5px;
}

.update-text {
    font-size: 1rem;
}

.last-updated {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* Memories Form */
.memories-intro {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.8;
}

.memory-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    text-align: center;
}

/* Obituary */
.obituary-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.obituary-content p {
    margin-bottom: 20px;
}

.obituary-content a {
    color: #3498db;
    text-decoration: none;
    white-space: nowrap;
}

.obituary-content a:hover {
    text-decoration: underline;
}

/* Livestream */
.livestream {
    background: #f0f8ff;
    border-left: 4px solid #3498db;
}

.livestream-info {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
}

.livestream-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.livestream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.livestream-link {
    text-align: center;
    font-size: 1.05rem;
}

.livestream-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.livestream-link a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

.private-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.private-link:hover {
    color: #5dade2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .location {
        font-size: 1rem;
    }

    section {
        padding: 30px 15px;
        margin: 20px 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .details-list li {
        font-size: 1rem;
        padding: 12px;
    }

    .update-entry {
        padding: 12px;
    }

    .header-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 25px 10px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .announcement p {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }

    .submit-btn {
        font-size: 1rem;
    }
}
