/* Sub page hero adjustments */
.hero {
    height: 250px;
    align-items: center;
    background: url(../img/top/slide01.jpg);
    background-size: cover;
    background-position: center;
}

.hero-content {
    justify-content: center;
    align-items: center;
}

.hero-info {
    display: none;
}

.hero h1 {
    font-size: 36px;
}

.main-content img {
    width: 100%;
}

.mv img {
    border-radius: 15px;
}

.section p {
    margin-bottom: 1em;
}

.section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #4A6B8A;
    margin: 30px 0 15px 0;
}

.section-inner {
    padding: 20px;
}

.section h3::before {
    content: " ― ";

}

@media (max-width: 1024px) {
    .hero {
        height: 200px;
    }

    .hero h1 {
        font-size: 28px;
    }
}

.detail {
    line-height: 1.8;
    font-size: 18px;
    padding: 0 20px;
}

.detail p {
    margin-bottom: 20px;
}

.date {
    color: #6B8DB5;
    font-weight: 500;
    font-size: 18px;
    margin: 20px 0 30px 0;
    text-align: right;
}

.back {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.back p {
    display: inline-block;
    margin: 0 auto;
}

.back a {
    display: inline-block;
    color: #6B8DB5;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 12px 24px;
    border: 2px solid #6B8DB5;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back a:hover {
    background: #6B8DB5;
    color: white;
}

.back a::before {
    content: '← ';
    margin-right: 5px;
}

@media (max-width: 1024px) {
    .detail {
        font-size: 16px;
    }

    .date {
        font-size: 16px;
    }

    .back a {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Cemetery specific styles */
.cemetery-flow {
    margin: 60px 0;
}

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

.flow-step {
    position: relative;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    background: #6B8DB5;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-number .step-label {
    font-size: 8px;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 2px;
}

.step-number .step-num {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: #4A6B8A;
    margin: 0;
}

.step-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.step-content p {
    margin-bottom: 15px;
}

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

/* Special sections */
.special-section {
    grid-column: 1 / -1;
    background: #4A6B8A;
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    margin-top: 20px;
}

.special-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.special-section h3::before {
    content: '»»';
    position: absolute;
    left: -40px;
    color: #8BB4D1;
}

.special-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.special-section p:last-child {
    margin-bottom: 0;
}

/* Mobile styles */
@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .flow-step {
        padding: 25px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .step-number .step-label {
        font-size: 7px;
    }

    .step-number .step-num {
        font-size: 16px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-content {
        font-size: 16px;
    }

    .special-section {
        padding: 30px 25px;
    }

    .special-section h3 {
        font-size: 22px;
    }

    .special-section h3::before {
        left: -30px;
    }

    .special-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .flow-step {
        padding: 20px;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }

    .step-title {
        font-size: 18px;
        text-align: center;
        width: 100%;
    }

    .step-content {
        font-size: 15px;
    }
}

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

.image-grid p {
    margin: 0;
}

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

.section-grid-item p:first-child {
    margin-bottom: 10px;
}

.section-grid-item p:last-child {
    margin: 0;
}

@media (max-width: 1024px) {
    .image-grid,
    .section-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.align-item-center{
    align-items: center !important;
}

.radius {
    border-radius: 15px;
}

#communal-graves .image-grid img {
    aspect-ratio: 50/36;
    object-fit: cover;
}

#cemetery-plot .section-grid-item img {
    aspect-ratio: 1/1;
    object-fit: cover;
}