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

html {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1b1f;
}

body {
    background-color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.logo-container {
    text-align: center;
    padding: 20px 0;
}

.logo {
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 20px 0 40px;
    position: relative;
}

.portrait-with-signature {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.portrait-container {
    text-align: center;
}

.portrait {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}

.signature-container {
    position: absolute;
    top: 88%;
    left: 5%;
    z-index: 2;
}

.signature {
    width: 250px;
    height: auto;
    max-width: 30vh;
}

/* Typography */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    margin: 20px 0;
}

.text-regular {
    font-weight: 400;
}

/* Content Section */
.content-section {
    padding: 40px 0;
}

.announcement {
    margin: 40px 0;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 40px auto;
    width: 80%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px 0;
}

.intro-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.75;
    color: rgba(26, 27, 31, 0.6);
    margin-bottom: 20px;
}

/* Funeral Section */
.funeral-section {
    padding: 40px 0;
}

.funeral-notice {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: 40px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.donation-info {
    margin: 40px 0;
}

.donation-link,
.cartoon-link {
    display: inline;
    color: #1a1b1f;
    text-decoration: underline;
    font-size: 25px;
}

/* Footer */
footer {
    padding: 40px 0;
}

.footer-content {
    height: 1px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .portrait {
        max-width: 700px;
    }

    .signature {
        width: 300px;
    }

    .content-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 80px;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .intro-text {
        font-size: 18px;
    }

    .funeral-notice {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0;
    }

    .portrait {
        max-width: 800px;
    }

    .signature {
        width: 350px;
    }

    .content-grid {
        gap: 100px;
    }

    .section-title {
        font-size: 28px;
    }

    .intro-text {
        font-size: 20px;
    }
}

/* Small screens */
@media (max-width: 767px) {
    .portrait-with-signature {
        max-width: 100%;
    }
    
    .signature {
        width: 180px;
        max-width: 25vh;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .portrait {
        max-width: 90%;
    }
    
    .signature {
        width: 150px;
        max-width: 20vh;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .video-container {
        display: none;
    }
    
    .donation-link,
    .cartoon-link {
        text-decoration: none;
        color: #000;
    }
}