/* Shared visual foundation for legacy inner-page templates. */
.wrap-content,
.max-width {
    width: min(1366px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.breadCrumbs {
    border-bottom: 1px solid rgba(37, 79, 7, .1);
    background: #fffdf5;
}

.breadCrumbs .wrap-content {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #55753a;
    font-size: 14px;
}

.breadCrumbs a {
    color: #55753a;
    text-decoration: none;
}

.breadCrumbs a:hover { color: #254f07; }

.inner-page-heading {
    margin: 0 0 32px;
    text-align: center;
}

.inner-page-heading h1,
.inner-service-heading h1 {
    margin: 0;
    color: #254f07;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

/* Services */
.inner-service-page {
    padding: 54px 0 76px;
    background: #fffdf5;
}

.inner-service-page .wrap-content { margin-top: 0 !important; margin-bottom: 0 !important; }

.inner-service-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
}

.inner-service-sidebar {
    overflow: hidden;
    border: 1px solid rgba(37, 79, 7, .15);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 79, 7, .06);
}

.inner-service-sidebar__title {
    padding: 18px 20px;
    background: #254f07;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

.inner-service-sidebar__menu { padding: 6px 20px 16px; }
.inner-service-menu-group { border-bottom: 1px solid rgba(37, 79, 7, .11); }
.inner-service-menu-group:last-child { border-bottom: 0; }
.inner-service-menu-group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; cursor: pointer; list-style: none; }
.inner-service-menu-group summary::-webkit-details-marker { display: none; }
.inner-service-menu-group summary a,
.inner-service-menu-group li a { color: #315d16; font-size: 15px; font-weight: 600; text-decoration: none; }
.inner-service-menu-group summary i { color: #7e8406; font-size: 12px; transition: transform .2s ease; }
.inner-service-menu-group[open] summary i { transform: rotate(180deg); }
.inner-service-menu-group ul { margin: -2px 0 12px; padding: 0 0 0 17px; list-style: none; }
.inner-service-menu-group li { margin: 8px 0; }
.inner-service-menu-group li a { font-size: 14px; font-weight: 400; }
.inner-service-menu-group .is-active a,
.inner-service-menu-group summary a:hover,
.inner-service-menu-group li a:hover { color: #254f07; }

.inner-service-heading { margin: 0 0 28px; }
.inner-service-heading h1 { text-align: center; }
.inner-service-article { min-width: 0; }
.inner-service-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: -12px 0 26px; color: #6d8061; font-size: 14px; }
.inner-service-detail-desc,
.inner-service-detail-content { color: #33452b; font-size: 16px; line-height: 1.75; }
.inner-service-detail-desc { margin-bottom: 18px; font-weight: 600; }
.inner-service-detail-content :is(img, video, iframe, table) { max-width: 100% !important; }
.inner-service-detail-content :is(img, video, iframe) { height: auto !important; }
.inner-service-detail-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.inner-service-detail-gallery__item { display: block; overflow: hidden; border-radius: 10px; background: #edf2e9; }
.inner-service-detail-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.inner-service-share { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(37, 79, 7, .12); }
.inner-service-related { margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(37, 79, 7, .12); }
.inner-service-related__title { margin-bottom: 18px; color: #254f07; font-size: 22px; font-weight: 700; }
.inner-service-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.inner-service-related__card { overflow: hidden; border: 1px solid rgba(37, 79, 7, .14); border-radius: 10px; background: #fff; }
.inner-service-related__photo { display: block; aspect-ratio: 3 / 2; background: #edf2e9; }
.inner-service-related__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inner-service-related__card h3 { margin: 0; padding: 14px; font-size: 16px; line-height: 1.4; }
.inner-service-related__card h3 a { color: #254f07; }
.inner-service-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.inner-service-post { overflow: hidden; border: 1px solid rgba(37, 79, 7, .15); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(37, 79, 7, .06); transition: transform .25s ease, box-shadow .25s ease; }
.inner-service-post:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(37, 79, 7, .14); }
.inner-service-post__photo { display: block; aspect-ratio: 3 / 2; background: #edf2e9; }
.inner-service-post__photo picture,
.inner-service-post__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inner-service-post__body { display: flex; flex-direction: column; min-height: 212px; padding: 18px; }
.inner-service-post__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; color: #6d8061; font-size: 12px; }
.inner-service-post__title { margin: 0 0 10px; font-size: 19px; line-height: 1.38; }
.inner-service-post__title a { color: #254f07; }
.inner-service-post__desc { display: -webkit-box; overflow: hidden; margin: 0; color: #4d6043; font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.inner-service-post__more { margin-top: auto; padding-top: 16px; color: #55753a; font-size: 14px; font-weight: 700; text-decoration: none; }
.inner-service-post__more:hover { color: #254f07; }

/* Album */
.inner-album-page { padding: 54px 0 76px; background: #fffdf5; }
.inner-page-container { margin-top: 0; }
.album-list-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.album-list-grid__item { min-width: 0; }
.inner-album-page .album { height: 100%; overflow: hidden; border: 1px solid rgba(37, 79, 7, .15); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(37, 79, 7, .06); transition: transform .25s ease, box-shadow .25s ease; }
.inner-album-page .album:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(37, 79, 7, .14); }
.inner-album-page .box-cont { height: 100%; }
.inner-album-page .picture { overflow: hidden; aspect-ratio: 4 / 3; background: #edf2e9; }
.inner-album-page .picture a,
.inner-album-page .picture picture,
.inner-album-page .picture img { display: block; width: 100%; height: 100%; }
.inner-album-page .picture img { object-fit: cover; transition: transform .35s ease; }
.inner-album-page .album:hover .picture img { transform: scale(1.04); }
.inner-album-page .name { min-height: 70px; margin: 0; padding: 17px 16px; font-size: 16px; line-height: 1.4; }
.inner-album-page .name a { color: #254f07; font-weight: 700; }
.album-gallery-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #edf2e9; box-shadow: 0 8px 24px rgba(37, 79, 7, .06); }
.album-gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(16, 38, 0, .72)); opacity: .9; }
.album-gallery-card span { position: absolute; z-index: 1; right: 16px; bottom: 14px; left: 16px; overflow: hidden; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.album-gallery-card:hover img { transform: scale(1.05); }
.fancybox__container { z-index: 10050 !important; }
.album-list-empty { padding: 38px; border: 1px dashed rgba(37, 79, 7, .3); border-radius: 12px; color: #55753a; text-align: center; }

@media (max-width: 1100px) {
    .inner-service-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inner-service-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .wrap-content,
    .max-width { width: min(100% - 32px, 1366px); }
    .breadCrumbs .wrap-content { min-height: 42px; font-size: 13px; }
    .inner-service-page,
    .inner-album-page { padding: 34px 0 48px; }
    .inner-service-layout { grid-template-columns: 1fr; gap: 24px; }
    .inner-service-heading h1 { text-align: center; }
    .inner-service-posts { grid-template-columns: 1fr; gap: 18px; }
    .inner-service-detail-meta { justify-content: center; margin-top: -16px; }
    .inner-service-detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inner-service-related__grid { grid-template-columns: 1fr; }
    .album-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .inner-album-page .name { min-height: 62px; padding: 12px; font-size: 14px; }
    .album-gallery-card span { right: 12px; bottom: 10px; left: 12px; font-size: 13px; }
}
