﻿.rtb-template-edit {
    margin-top: 24px;
    position: static;
}

.hero .rtb-template-edit {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 30;
    margin-top: 0;
}

    .hero .rtb-template-edit .button {
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.2);
    }

        .hero .rtb-template-edit .button:hover {
            background: rgba(0, 0, 0, 0.8);
          background: rgba(0, 0, 0, 0.8);
        }


.hero {
    position: relative;
    min-height: 75vh;
    overflow: hidden;
}

    .hero img,
    .hero video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        z-index: 1;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.48));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

    .hero-overlay h1,
    .hero-overlay p {
        color: #fff;
    }

    .hero-overlay h1 {
        font-size: 3.2rem;
        margin: 0 0 16px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }

    .hero-overlay p {
        max-width: 760px;
        margin: 0 auto;
        font-size: 1.1rem;
        line-height: 1.8;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
.template-section,
.service-times {
    padding: 72px 24px;
}

.section-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.template-section h2,
.service-times h2 {
    font-size: 2.8rem;
    margin: 0 0 14px;
    color: #1f1f1f;
    line-height: 1.15;
}

.template-section h3 {
    font-size: 1.8rem;
    margin: 0 0 18px;
    font-weight: 500;
    color: #6a4b2f;
    line-height: 1.25;
}

.template-section p {
    max-width: 920px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.85;
    color: inherit;
}

    .service-times h2 {
        margin-bottom: 28px;
    }

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
    }

    .service-card img {
        width: 100%;
        height: 340px;
        display: block;
        object-fit: cover;
        object-position: center;
    }

.service-card-content {
    padding: 26px 28px 30px;
}

    .service-card-content h3 {
        margin: 0 0 12px;
        font-size: 1.9rem;
        line-height: 1.2;
        color: #222;
        font-weight: 600;
    }

.service-time {
    display: inline-block;
    margin: 0 0 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3eadb;
    color: #7a5a2f;
    font-size: 0.98rem;
    font-weight: 700;
}

.service-card-content p:last-child {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4b4b4b;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay a,
.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #2b2b2b;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .service-overlay a:hover,
    .button:hover {
        background: #b08a57;
        color: #fff;
        transform: translateY(-1px);
    }

.button {
    margin-top: 24px;
    background: #b08a57;
    color: #fff;
}

    .button:hover {
        background: #8d6c43;
    }

@media (max-width: 900px) {
    .hero {
        min-height: 360px;
    }

    .hero-overlay h1 {
        font-size: 2.4rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .template-section,
    .service-times {
        padding: 52px 18px;
    }

        .template-section h2,
        .service-times h2 {
            font-size: 2.2rem;
        }

        .template-section h3 {
            font-size: 1.45rem;
        }

    .service-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card img {
        height: 260px;
    }

    .service-card-content {
        padding: 22px 22px 26px;
    }

        .service-card-content h3 {
            font-size: 1.6rem;
        }

    .service-overlay {
        position: static;
        opacity: 1;
        background: transparent;
        justify-content: flex-start;
        padding: 0 22px 24px;
        gap: 10px;
    }

        .service-overlay a {
            background: #f3eadb;
        }
}

.statement-hidden {
    display: none;
}

.read-more-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

    .read-more-button:hover {
        opacity: 0.8;
    }

.admin-create-wrap {
    min-height: calc(100vh - 140px);
    padding: 100px 20px 72px; /* ↑ increase top spacing */
    background: #f4f1f6;
}

.admin-create-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e3dfe8;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.admin-create-header {
    padding: 32px 32px 20px;
    border-bottom: 1px solid #eee8f2;
    background: linear-gradient(to bottom, #ffffff, #faf8fc);
}

    .admin-create-header h1 {
        margin: 0 0 10px;
        font-size: 2rem;
        line-height: 1.2;
        color: #1d2430;
    }

    .admin-create-header p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.7;
        color: #5f6673;
        max-width: 680px;
    }

.admin-create-form {
    padding: 28px 32px 36px;
}

.admin-field {
    margin-bottom: 24px;
}

    .admin-field label {
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        font-size: 0.98rem;
        color: #222b38;
    }

.admin-input,
.admin-textarea,
.admin-file {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7d1dc;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input {
    height: 52px;
    padding: 0 14px;
}

.admin-textarea {
    min-height: 160px;
    padding: 14px;
    resize: vertical;
    line-height: 1.6;
}

.admin-file {
    padding: 12px;
    background: #fbfafc;
}

    .admin-input:focus,
    .admin-textarea:focus,
    .admin-file:focus {
        outline: none;
        border-color: #8a6a3c;
        box-shadow: 0 0 0 4px rgba(138, 106, 60, 0.12);
    }

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 30px;
    padding-top: 10px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}

    .admin-btn:hover {
        transform: translateY(-1px);
    }

.admin-btn-primary {
    background: #b99153;
    color: #fff;
    box-shadow: 0 10px 24px rgba(185, 145, 83, 0.24);
}

    .admin-btn-primary:hover {
        opacity: 0.96;
    }

.admin-btn-secondary {
    background: #eef1f5;
    color: #243040;
}

@media (max-width: 768px) {
    .admin-create-wrap {
        padding: 90px 20px 72px; /* ↑ increase top spacing */
    }

    .admin-create-header,
    .admin-create-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-create-actions {
        flex-direction: column;
    }

    .admin-btn {
        width: 100%;
    }
}

.admin-hint {
    font-size: 0.8rem;
    color: #888;
    margin-left: 6px;
}