/* ==========================================================================
   Design layer (loaded after the template and site.css).
   Keeps the template's palette (green #1ca71a, dark #38424d/#222, grey #747e88)
   and only adds consistency: tokens, buttons, links, focus, header, footer, pager.
   ========================================================================== */

:root {
    /* colours (from template style.css) */
    --c-primary: #1ca71a;
    --c-primary-dark: #168f15;
    --c-primary-soft: rgba(28, 167, 26, .1);
    --c-accent: #eec41e;
    --c-heading: #222;
    --c-dark: #38424d;
    --c-text: #747e88;
    --c-text-strong: #5b646e;   /* AA contrast on white for small text */
    --c-border: #dbdbdb;
    --c-bg-soft: #f9fafb;
    --c-white: #fff;

    /* spacing scale */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 16px; --sp-4: 24px; --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px;

    /* shape */
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-1: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, .12);
    --ease: .25s ease-out;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { line-height: 1.65; -webkit-font-smoothing: antialiased; }
main#main-content { outline: 0; }
img { max-width: 100%; }
a { transition: color var(--ease); }

/* ---------- accessibility ---------- */
.skip-link {
    position: absolute; left: var(--sp-3); top: -100px; z-index: 1000;
    background: var(--c-primary); color: #fff; padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm); font-weight: 500;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 2px;
}
.main-btn:focus-visible, .primary-btn:focus-visible { outline-color: var(--c-dark); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .wow { visibility: visible !important; }
}

/* ---------- buttons ---------- */
.main-btn, .primary-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 32px; line-height: 1.2;
    font-size: 16px; font-weight: 500; border: 0; border-radius: var(--radius-sm);
    background-color: var(--c-primary); color: #fff;
    transition: background-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.main-btn { height: auto; }
.main-btn:hover, .primary-btn:hover, .main-btn:focus, .primary-btn:focus {
    background-color: var(--c-primary-dark); color: #fff;
    box-shadow: 0 6px 18px rgba(28, 167, 26, .3);
    transform: translateY(-1px);
}
.main-btn:active, .primary-btn:active { transform: none; box-shadow: none; }
/* small label inside cards ("Majmua") must not look like a big button */
.single_destination .destination_content .main-btn {
    min-height: 0; padding: 4px 14px; font-size: 13px; border-radius: 999px;
    transform: none; box-shadow: none;
}

/* ---------- links ---------- */
.blog_content a:not(.main-btn):not(.primary-btn),
.seo-content a { color: var(--c-primary-dark); }
.blog_content a:not(.main-btn):not(.primary-btn):hover,
.seo-content a:hover { color: var(--c-primary); }
.seo-breadcrumb .breadcrumb-item.active { color: var(--c-text-strong); }

/* ---------- header ---------- */
.brand-text { font-size: 30px; line-height: 1.2; color: #000; white-space: nowrap; transition: color var(--ease); }
.brand-text--light { color: #fff; }
.header_navbar.sticky .brand-text { color: #000; }
@media (max-width: 991px) {
    .navbar-brand { margin-left: var(--sp-3); }
    .brand-text { font-size: 24px; }
}
@media (max-width: 400px) { .brand-text { font-size: 21px; } }

.lang-form { margin: 0; }
@media (min-width: 992px) {
    .navbar-nav .nav-item .lang-form { padding: 0 15px; display: flex; align-items: center; height: 100%; }
}
.navbar-nav .nav-item form.lang-form { padding-top: 0; padding-bottom: 0; }
.lang-form select {
    min-height: 40px; min-width: 112px; padding: 4px 12px;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, .92); color: var(--c-heading); font-size: 15px;
}
@media (max-width: 991px) {
    .navbar-collapse { background: #fff; padding: var(--sp-2) var(--sp-3) var(--sp-3); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-1); margin-top: var(--sp-2); }
    .navbar-nav .nav-item a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--c-bg-soft); }
    .navbar-nav .nav-item.active > a { color: var(--c-primary); font-weight: 500; }
    .navbar-nav .nav-item form.lang-form { padding: var(--sp-3) 0 var(--sp-1); }
    .lang-form select { width: 100%; }
    .navbar-toggler { min-width: 44px; min-height: 44px; }
}
/* non-home pages: header is fixed/white, content must not hide below it */
.header_navbar.sticky + * , .header_area + * { scroll-margin-top: 80px; }

/* ---------- footer ---------- */
.footer_area { border-top: 4px solid var(--c-primary); }
.footer_about p, .footer_subscribe p { color: rgba(255, 255, 255, .85); line-height: 1.7; }
.footer_link .link li a { display: inline-block; padding: 2px 0; color: rgba(255, 255, 255, .9); }
.footer_link .link li a:hover { color: #7be07a; }
.footer_about .social li a { display: inline-block; width: 44px; height: 44px; line-height: 44px; font-size: 20px; border-radius: var(--radius-sm); transition: transform var(--ease), filter var(--ease); }
.footer_about .social li a:hover { transform: translateY(-2px); filter: brightness(1.1); }
@media (max-width: 767px) {
    .footer_link { width: 100%; }
    .footer_widget { text-align: left; }
}

/* ---------- back to top ---------- */
.back-to-top { min-width: 44px; min-height: 44px; }

/* ---------- pagination (yii LinkPager / bootstrap5) ---------- */
.pagination { gap: var(--sp-1); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-5); }
.pagination .page-link {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm) !important; color: var(--c-dark); background: #fff;
}
.pagination .page-link:hover { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-dark); }
.pagination .page-item.active .page-link { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination .page-item.disabled .page-link { color: #a3abb3; background: var(--c-bg-soft); }

/* ---------- previous / next ---------- */
.pager-nav { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) 0; }
.pager-nav__link {
    display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-4);
    border: 1px solid var(--c-primary); border-radius: var(--radius-sm); color: var(--c-primary-dark);
    font-size: 16px; font-weight: 500; transition: background-color var(--ease), color var(--ease);
}
a.pager-nav__link:hover { background: var(--c-primary); color: #fff; }
.pager-nav__link.is-disabled { border-color: var(--c-border); color: #a3abb3; cursor: not-allowed; }
@media (max-width: 480px) { .pager-nav__link { flex: 1 1 100%; justify-content: center; } }


/* ==========================================================================
   HOME PAGE
   ========================================================================== */

/* ---------- hero ---------- */
.hero-container { width: 88%; max-width: 1400px; }
.single_slider::before {   /* stronger, left-weighted overlay: text readable on any photo */
    background: linear-gradient(90deg, rgba(28, 38, 48, .62) 0%, rgba(28, 38, 48, .32) 55%, rgba(56, 66, 77, .12) 100%);
}
.slider_content .slider_title.hero-title {
    color: #fff; font-weight: 700; line-height: 1.25;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.slider_content p.hero-lead {
    margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md); font-size: 18px; line-height: 1.7; color: #0f1720;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.slider_content .main-btn { margin-top: var(--sp-5); min-width: 180px; }

@media (max-width: 767px) {
    .hero-container { width: 100%; padding-left: var(--sp-3); padding-right: var(--sp-3); }
    .single_slider { height: auto; min-height: 640px; padding: 110px 0 64px; align-items: flex-end !important; }
    .slider_content { position: static; top: auto; padding-top: 0; }
    .slider_content .slider_title.hero-title { font-size: 26px; }
    .slider_content p.hero-lead { font-size: 15px; line-height: 1.6; padding: var(--sp-3); margin-top: var(--sp-3); }
    .slider_content .main-btn { margin-top: var(--sp-4); width: 100%; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .slider_content p.hero-lead { font-size: 17px; }
}

/* ---------- complexes ---------- */
.destination_area .section_title p { color: var(--c-text-strong); }
.destination_area .row > [class*="col-"] { display: flex; }
.single_destination { display: flex; flex-direction: column; width: 100%; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow var(--ease), transform var(--ease); }
.single_destination:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.single_destination .destination_image { overflow: hidden; }
.single_destination .destination_image img {
    display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
    transition: transform .5s ease;
}
.single_destination:hover .destination_image img { transform: scale(1.04); }
.single_destination .destination_content {
    flex: 1 1 auto; padding: var(--sp-4) 72px var(--sp-4) var(--sp-4); min-height: 118px;
}
.single_destination .destination_content .title { margin: 0; line-height: 1.35; }
.single_destination .destination_content .title a {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 18px; line-height: 1.35;
}
.single_destination .destination_content .title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.single_destination .destination_content .price { color: var(--c-text-strong); margin-top: var(--sp-2); font-size: 15px; }
.single_destination .destination_content .more { right: var(--sp-4); bottom: var(--sp-4); z-index: 2; width: 38px; height: 38px; line-height: 38px; }
.single_destination .destination_content .main-btn,
.single_destination .destination_content .main-btn:hover {
    background: #fff; color: var(--c-dark); font-size: 13px; z-index: 2; pointer-events: none;
}
.single_destination:hover .destination_content .price { color: #fff; }

/* ---------- about ---------- */
.about_content .section_title p { color: var(--c-text-strong); line-height: 1.75; }
.single_counter .counter_wrapper p { color: var(--c-text-strong); }
@media (max-width: 991px) {
    .about_area { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
}

/* ---------- authors ---------- */
#authors { padding-top: var(--sp-7); }
#authors .container-fluid { max-width: 1400px; }
.author-card img { width: 180px; max-width: 60%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; }
.author-card__name { font-size: 18px; font-weight: 600; line-height: 1.35; text-align: center; margin: var(--sp-3) 0 var(--sp-1); color: var(--c-dark); }
.author-card__position { font-size: 15px; font-weight: 500; text-align: center; margin: 0 0 var(--sp-1); color: var(--c-primary-dark); }
.author-card__workplace { font-size: 14px; font-weight: 400; line-height: 1.5; text-align: center; margin: 0; color: var(--c-text-strong); }

/* ---------- videos ---------- */
#youtube-section { padding-top: var(--sp-7); }
#youtube-section .container-fluid { max-width: 1400px; }
.video-frame { display: block; max-width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.video-card__title { font-size: 18px; font-weight: 600; line-height: 1.4; text-align: center; margin: var(--sp-2) 0 var(--sp-4); color: var(--c-dark); }
#youtube-section h3.video-card__title { font-size: 18px; }

/* ---------- gallery ---------- */
#gallery { width: 100%; padding-top: var(--sp-6); }
#gallery > .row { margin-left: 0; margin-right: 0; }  /* .row without .container made the page 15px too wide */
.home-gallery { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-4); width: 100%; }
.home-gallery__item { display: block; max-width: 100%; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--ease), box-shadow var(--ease); }
.home-gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.home-gallery__item img { display: block; width: auto; max-width: 100%; max-height: 520px; height: auto; }
@media (max-width: 767px) { .home-gallery__item img { max-height: none; width: 100%; } }


/* ==========================================================================
   COMPLEX / DETAIL PAGES (majmua, shared with ecotourism & article later)
   ========================================================================== */
:root { --c-gold-dark: #8a6500; --c-blue-dark: #0a58ca; }

/* title + photo | side links ; description below. Side links sit under the photo on phones. */
.complex-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: var(--sp-4); }
.complex-layout__head h1.blog_title { font-size: 28px; line-height: 1.3; margin: 0 0 var(--sp-3); padding: 0 !important; color: var(--c-dark); }
.complex-layout__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.complex-layout__body .blog_title { font-size: 22px; margin: 0 0 var(--sp-3); color: var(--c-dark); }
@media (min-width: 992px) {
    .complex-layout { grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: "head side" "body side"; column-gap: var(--sp-5); padding: var(--sp-5); }
    .complex-layout__head { grid-area: head; }
    .complex-layout__body { grid-area: body; }
    .complex-layout__side { grid-area: side; align-self: start; position: sticky; top: 96px; flex-direction: column; }
}
@media (max-width: 575px) { .complex-layout { padding: var(--sp-3); gap: var(--sp-3); } .complex-layout__head h1.blog_title { font-size: 22px; } }

/* side links (3D, map) */
.side-links { display: flex; gap: var(--sp-3); }
.side-link { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-3); background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-md); text-align: center; transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
.side-link:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); border-color: var(--c-primary); }
.side-link img { width: 100%; max-width: 160px; height: auto; border-radius: var(--radius-sm); }
.side-link__label { font-weight: 600; font-size: 15px; line-height: 1.3; }
.side-link__label--gold { color: var(--c-gold-dark); }
.side-link__label--blue { color: var(--c-blue-dark); }
@media (max-width: 991px) { .side-link img { max-width: 110px; } }

/* rich text from the admin editor */
.seo-content { font-size: 16px; line-height: 1.75; color: var(--c-text-strong); text-align: left; overflow-wrap: anywhere; }
.seo-content p { margin: 0 0 var(--sp-3) !important; }
.seo-content h2, .seo-content h3, .seo-content h4 { color: var(--c-dark); margin: var(--sp-4) 0 var(--sp-2); line-height: 1.35; }
.seo-content ul, .seo-content ol { padding-left: var(--sp-4); margin: 0 0 var(--sp-3); }
.seo-content ul { list-style: disc; }
.seo-content blockquote { margin: var(--sp-3) 0; padding: var(--sp-2) var(--sp-3); border-left: 4px solid var(--c-primary); background: var(--c-bg-soft); }
.seo-content table { display: block; max-width: 100%; overflow-x: auto; }
.seo-content img, .seo-content iframe, .seo-content video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
@media (min-width: 768px) { .seo-content { text-align: justify; } }

/* video + map embeds */
.video-embed { text-align: center; }
.video-embed .video-frame { width: 100%; max-width: 1000px; margin: 0 auto; }
.map-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); }
@media (max-width: 575px) { .map-embed iframe { aspect-ratio: 4 / 3; } }

/* gallery grid with thumbnails */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-grid__link { display: block; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-1); }
.gallery-grid__link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-grid__link:hover img { transform: scale(1.05); }
.single_blog .gallery-grid + .pswp { display: none; }


/* ==========================================================================
   LIST PAGES (ecotourism, articles): head + post cards
   ========================================================================== */
.list-head { text-align: center; max-width: 820px; margin: 0 auto var(--sp-6); }
.list-head .title { font-size: 36px; line-height: 1.25; font-weight: 600; color: var(--c-dark); margin: 0; }
.list-head__lead { margin: var(--sp-3) 0 0; color: var(--c-text-strong); font-size: 17px; line-height: 1.7; }
@media (max-width: 767px) { .list-head { margin-bottom: var(--sp-5); } .list-head .title { font-size: 26px; } .list-head__lead { font-size: 15px; } }
.list-empty { text-align: center; padding: var(--sp-7) 0; color: var(--c-text-strong); }

.post-list { display: grid; gap: var(--sp-5); }
.post-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow var(--ease), transform var(--ease); }
.post-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.post-card__media { display: block; overflow: hidden; }
.post-card__media img { display: block; width: 100%; height: 100%; min-height: 240px; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--sp-5); }
.post-card__title { margin: 0 0 var(--sp-3); font-size: 22px; line-height: 1.35; font-weight: 600; }
.post-card__title a { color: var(--c-primary); }
.post-card__title a:hover { color: var(--c-primary-dark); }
.post-card__text { margin: 0 0 var(--sp-4); color: var(--c-text-strong); font-size: 16px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) {
    .post-card { grid-template-columns: minmax(0, 1fr); }
    .post-card__media img { min-height: 0; height: auto; }
    .post-card__body { padding: var(--sp-4); }
    .post-card__title { font-size: 19px; }
    .post-card__more { width: 100%; }
}

/* Leaflet map card */
.leaflet-embed { width: 100%; height: 450px; border-radius: var(--radius-md); overflow: hidden; z-index: 0; }
@media (max-width: 767px) { .leaflet-embed { height: 320px; } }


/* ==========================================================================
   ARTICLES, VIDEOS, ERROR PAGE
   ========================================================================== */
.post-card--article { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.post-card--article .post-card__media img { object-position: top; }
@media (max-width: 767px) { .post-card--article { grid-template-columns: minmax(0, 1fr); } }

/* article reading page */
.article-page { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: var(--sp-5); }
.article-page h1.blog_title { font-size: 30px; line-height: 1.3; margin: 0 0 var(--sp-4); padding: 0 !important; color: var(--c-dark); }
.article-page__photo { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; object-fit: contain; border-radius: var(--radius-sm); }
.article-page__body { max-width: 720px; margin: var(--sp-5) auto 0; }
.article-page__body .blog_title { font-size: 22px; margin: 0 0 var(--sp-3); color: var(--c-dark); }
.article-page .seo-content { font-size: 17px; line-height: 1.8; text-align: left; }
@media (max-width: 575px) { .article-page { padding: var(--sp-3); } .article-page h1.blog_title { font-size: 22px; } .article-page .seo-content { font-size: 16px; } }

.file-download { display: inline-flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--c-primary); border-radius: var(--radius-sm); background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 600; transition: background-color var(--ease), transform var(--ease); }
.file-download:hover { background: var(--c-primary); color: #fff; transform: translateY(-1px); }
.file-download img { width: 40px; height: 40px; }
.file-download small { padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--c-dark); font-size: 12px; }

/* videos page */
#youtube-section.video-page { padding: 120px 0 var(--sp-7); }
.video-page .container-fluid { max-width: 1400px; }
@media (max-width: 767px) { #youtube-section.video-page { padding-top: 96px; } }

/* error page */
.error-box { max-width: 560px; margin: var(--sp-6) auto; text-align: center; }
.error-box__code { font-size: 96px; line-height: 1; font-weight: 700; color: var(--c-primary); margin: 0 0 var(--sp-2); }
.error-box h1 { font-size: 28px; color: var(--c-dark); margin: 0 0 var(--sp-3); }
.error-box__message { color: var(--c-text-strong); font-size: 17px; margin: 0 0 var(--sp-5); }
.error-box__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.main-btn.main-btn-2 { background: #fff; color: var(--c-primary-dark); border: 1px solid var(--c-primary); }
.main-btn.main-btn-2:hover { background: var(--c-primary); color: #fff; }

/* narrow desktops / landscape tablets: brand + 5 links + language did not fit (33px overflow at 1024) */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-brand { margin-left: var(--sp-3); }
    .brand-text { font-size: 24px; }
    .navbar-nav .nav-item a { padding-left: 9px; padding-right: 9px; font-size: 15px; }
    .navbar-nav .nav-item .lang-form { padding: 0 9px; }
    .header_navbar .navbar-collapse.mr-50 { margin-right: var(--sp-3) !important; }
}

/* YouTube facade: thumbnail + play button, the iframe is created on click (components/YouTube.php) */
.yt-facade { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt-facade__link { display: block; position: absolute; inset: 0; color: #fff; }
.yt-facade .yt-facade__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.yt-facade .yt-facade__link:hover img { transform: scale(1.03); opacity: .9; }
.yt-facade__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(28, 28, 28, .85); transition: background-color var(--ease); }
.yt-facade__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-facade__link:hover .yt-facade__play, .yt-facade__link:focus-visible .yt-facade__play { background: #f00; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .yt-facade, .video-card .yt-facade { border-radius: var(--radius-md); box-shadow: var(--shadow-1); }

/* related links (internal linking) */
.related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.related__link { display: block; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-1); color: var(--c-dark); height: 100%; transition: box-shadow var(--ease), transform var(--ease); }
.related__link:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--c-primary-dark); text-decoration: none; }
.related__link img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.related__name { display: block; padding: var(--sp-3) var(--sp-3) 0; font-weight: 600; line-height: 1.35; }
.related__note { display: block; padding: var(--sp-1) var(--sp-3) var(--sp-3); color: var(--c-text-strong); font-size: .875rem; }
.related__name:last-child { padding-bottom: var(--sp-3); }
@media (max-width: 767px) { .related__list { grid-template-columns: 1fr; } }
