/* ========================================
   สถานีตำรวจนครบาลเทียนทะเล
   Thiantale Metropolitan Police Station
   ======================================== */

:root {
    --police-blue: #0f2c59;
    --police-gold: #c69c3a;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-light);
    color: #333;
    /* ทำให้ footer อยู่ล่างหน้าจอแม้ content สั้น */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Top Header --- */
.top-header {
    background: linear-gradient(90deg, var(--police-blue) 0%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container {
    max-width: 90%;
}

.brand-logo img {
    height: 200px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.station-name-th {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.station-name-en {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--police-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Navigation --- */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    color: var(--police-blue) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    
    color: var(--police-gold) !important;
}

.nav-link::after {
    content: '';
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--police-gold);
    transition: all 0.3s;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    position: absolute;

}



/* --- Hero / Banner --- */
.hero-section {
    background: url('https://images.unsplash.com/photo-1596568853942-87002570d069?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 89, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

/* --- News / PR Cards --- */
.section-title {
    color: var(--police-blue);
    font-weight: 700;
    border-left: 5px solid var(--police-gold);
    padding-left: 15px;
    margin-bottom: 30px;
}

.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    background: white;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.1);
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .4em solid;
    border-right: 0.5em solid transparent;
    border-bottom: 0;
    border-left: .5em solid transparent;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--police-blue);
    margin-bottom: 10px;
    line-height: 1.4;
}

.btn-read-more {
    background-color: var(--police-blue);
    color: white;
    border-radius: 20px;
    padding: 5px 20px;
    font-size: 0.9rem;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-read-more:hover {
    background-color: var(--police-gold);
    color: white;
}

/* --- News feed cards (Facebook-style) --- */
.news-feed {
    --news-fb-border: #e4e6eb;
    --news-fb-muted: #65676b;
    --news-fb-text: #050505;
    --news-fb-bg-hover: #f7f8fa;
    /* พื้นที่รูปคงที่ → ข้อความในการ์ดเรียงระดับเดียวกัน */
    --news-fb-media-min-height: 200px;
    --news-fb-media-ratio: 16 / 10;
}

.news-fb-card-link {
    border-radius: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-fb-card-link:hover .news-fb-card {
    box-shadow: 0 4px 16px rgba(15, 44, 89, 0.12);
    border-color: #d8dadf;
}

.news-fb-card-link:active .news-fb-card {
    transform: scale(0.998);
}

.news-fb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--news-fb-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-fb-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f0f2f5;
}

.news-fb-card__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8eef8 0%, #d4e0f4 100%);
    color: var(--police-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(15, 44, 89, 0.08);
}

.news-fb-card__meta {
    min-width: 0;
    flex: 1;
}

.news-fb-card__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--news-fb-text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.news-fb-card__sub {
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--news-fb-muted);
    line-height: 1.3;
}

.news-fb-card__time {
    color: var(--news-fb-muted);
}

.news-fb-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--police-blue);
    background: rgba(15, 44, 89, 0.06);
    padding: 2px 8px;
    border-radius: 999px;
}

.news-fb-card__media {
    position: relative;
    width: 100%;
    min-height: var(--news-fb-media-min-height);
    aspect-ratio: var(--news-fb-media-ratio);
    background: #f0f2f5;
    overflow: hidden;
    line-height: 0;
}

.news-fb-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.news-fb-card-link:hover .news-fb-card__media img {
    transform: scale(1.03);
}

.news-fb-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-fb-card__placeholder-inner {
    text-align: center;
    padding: 1.25rem;
    color: var(--news-fb-muted);
    font-size: 0.8125rem;
}

.news-fb-card__file-name {
    display: block;
    max-width: 100%;
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.9;
}

.news-fb-card__body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.news-fb-card__body-inner {
    width: 100%;
    min-width: 0;
}

.news-fb-card__more {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #216fdb;
    letter-spacing: -0.01em;
}

.news-fb-card-link:hover .news-fb-card__more {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-fb-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--news-fb-text);
    line-height: 1.38;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-fb-card-link:focus-visible {
    outline: 2px solid var(--police-gold);
    outline-offset: 3px;
}

/* --- Home: king banner — เต็มความกว้าง viewport + ขยายรูปเล็กให้เต็มแถบ --- */
.home-king-banner-section {
 
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    
}

.home-king-banner img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
}


/* --- Home: Carousel + Gallery --- */
.home-carousel-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.carousel-home .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.home-carousel-frame .carousel-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.carousel-caption-box {
    background: rgba(15, 44, 89, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-block;
}

.gallery-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08) !important;
}

.gallery-img-wrapper {
    height: 100%;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.06);
}

/* --- Activity gallery (หน้าแรก) — แถวเดียวเลื่อนอัตโนมัติ --- */
.activity-gallery-scroll-wrap {
    position: relative;
    margin: 0 -0.25rem;
}

.activity-gallery-viewport {
    overflow: hidden;
    padding: 0.25rem 2.75rem 1rem;
}

.activity-gallery-viewport--scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.activity-gallery-marquee {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: max-content;
    will-change: transform;
}

.activity-gallery-marquee.is-playing {
    animation: activity-gallery-marquee var(--marquee-duration, 36s) linear infinite;
}

.activity-gallery-marquee.is-paused {
    animation-play-state: paused;
}

@keyframes activity-gallery-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .activity-gallery-marquee.is-playing {
        animation: none;
    }
}

.activity-gallery-slide {
    flex: 0 0 auto;
    width: min(78vw, 280px);
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    .activity-gallery-slide {
        width: 300px;
    }
}

@media (min-width: 992px) {
    .activity-gallery-slide {
        width: 320px;
    }

    .activity-gallery-viewport {
        padding-left: 3.25rem;
        padding-right: 3.25rem;
    }
}

.activity-gallery-section .gallery-img-wrapper {
    height: 180px;
}

.activity-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--police-blue);
    box-shadow: 0 4px 14px rgba(15, 44, 89, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.activity-gallery-nav:hover {
    background: var(--police-blue);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 44, 89, 0.28);
}

.activity-gallery-nav--prev {
    left: 0;
}

.activity-gallery-nav--next {
    right: 0;
}

.activity-gallery-hint {
    opacity: 0.85;
}

@media (max-width: 575.98px) {
    .activity-gallery-nav {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.8rem;
    }

    .activity-gallery-viewport {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}

/* --- PDF viewer --- */
.pdf-viewer object,
.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* --- E-Service --- */
.eservice-page {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.eservice-intro__inner {
    position: relative;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 44, 89, 0.08);
    box-shadow: 0 12px 40px rgba(15, 44, 89, 0.08);
    overflow: hidden;
}

.eservice-intro__accent {
    height: 5px;
    background: linear-gradient(90deg, var(--police-blue) 0%, var(--police-gold) 50%, var(--police-blue) 100%);
}

.eservice-intro__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1.5rem 1.65rem;
}

@media (min-width: 768px) {
    .eservice-intro__body {
        flex-direction: row;
        align-items: center;
        padding: 1.75rem 2rem 2rem;
        gap: 1.75rem;
    }
}

.eservice-intro__icon-wrap {
    flex-shrink: 0;
}

.eservice-intro__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 44, 89, 0.08) 0%, rgba(198, 156, 58, 0.12) 100%);
    color: var(--police-blue);
    font-size: 1.65rem;
}

.eservice-intro__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--police-blue);
    margin-bottom: 0.5rem;
}

.eservice-intro__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: #4a5563;
}

.eservice-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
}

.eservice-card-link:focus-visible {
    outline: 3px solid rgba(198, 156, 58, 0.65);
    outline-offset: 3px;
}

.eservice-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 44, 89, 0.07);
    box-shadow: 0 6px 24px rgba(15, 44, 89, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.eservice-card-link:hover .eservice-card {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 44, 89, 0.13);
}

.eservice-card__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
    line-height: 0;
}

.eservice-card__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}

.eservice-card-link:hover .eservice-card__img {
    transform: scale(1.06);
}

.eservice-card__placeholder {
    width: 100%;
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 44, 89, 0.35);
    font-size: 2.25rem;
}

.eservice-card__body {
    padding: 1.2rem 1.35rem 1.45rem;
}

.eservice-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--police-blue);
    line-height: 1.4;
    margin-bottom: 0.45rem;
}

.eservice-card__desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #5c6570;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eservice-card__cta {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--police-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.eservice-card-link:hover .eservice-card__cta {
    color: var(--police-blue);
}

.eservice-card--skeleton {
    pointer-events: none;
    box-shadow: none;
    border-style: dashed;
}

.eservice-card--skeleton .eservice-card__media {
    min-height: 160px;
}

.eservice-card--skeleton .placeholder {
    min-height: 1rem;
}

.eservice-empty {
    margin-top: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed rgba(15, 44, 89, 0.15);
}

.eservice-empty__icon {
    font-size: 2.5rem;
    color: rgba(15, 44, 89, 0.2);
    margin-bottom: 0.75rem;
}

.eservice-empty__title {
    font-weight: 600;
    color: var(--police-blue);
}

.eservice-error {
    border-radius: 14px;
    border: none;
}

/* --- Footer --- */
footer {
    background-color: var(--police-blue);
    color: white;
    padding: 40px 0 20px;
    /* ดัน footer ให้ติดล่างสุดของ viewport (เมื่อ content สั้น) */
    margin-top: auto;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--police-gold);
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: var(--police-blue);
}
.breadcrumb-item.active {
    color: var(--police-gold);
}

/* --- Page content --- */
.page-content {
    color: #333;
}

/* --- Contact page --- */
.contact-page {
    --contact-card-bg: #fff;
    --contact-card-border: rgba(15, 44, 89, 0.09);
    --contact-shadow: 0 10px 30px rgba(15, 44, 89, 0.08);
    --contact-radius: 18px;
}

.contact-page .contact-alert {
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    box-shadow: 0 10px 24px rgba(15, 44, 89, 0.08) !important;
}

.contact-top {
    margin-top: 0.35rem;
}

.contact-photo-wrap {
    border-radius: var(--contact-radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 44, 89, 0.12), rgba(198, 156, 58, 0.14));
    padding: 0.35rem;
    box-shadow: var(--contact-shadow);
    border: 1px solid var(--contact-card-border);
}

.contact-photo {
    width: 100%;
    height: clamp(220px, 34vw, 340px);
    object-fit: cover;
    border-radius: calc(var(--contact-radius) - 6px);
    display: block;
    background: #eef2f8;
}

.contact-details {
    background: var(--contact-card-bg);
    border: 1px solid var(--contact-card-border);
    border-radius: var(--contact-radius);
    box-shadow: var(--contact-shadow);
    padding: clamp(1rem, 2.2vw, 1.35rem);
}

.contact-panel-title {
    color: var(--police-blue);
    font-weight: 800;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem;
    padding-left: 0.9rem;
    border-left: 5px solid var(--police-gold);
}

.contact-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 44, 89, 0.08);
    box-shadow: 0 8px 22px rgba(15, 44, 89, 0.06);
    background: #fff;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-map-caption {
    color: #667085;
}

.contact-dl {
    margin: 0;
}

.contact-dl-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(15, 44, 89, 0.12);
}

.contact-dl-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-dl-row dt {
    margin: 0;
    color: #475467;
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-dl-row dd {
    margin: 0;
    color: #1f2a37;
    font-weight: 500;
    word-break: break-word;
}

.contact-dl-row a {
    color: var(--police-blue);
    text-decoration: none;
    font-weight: 700;
}

.contact-dl-row a:hover {
    color: var(--police-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-staff {
    border-top: 1px solid rgba(15, 44, 89, 0.08);
}

.contact-staff-line {
    color: #344054;
    line-height: 1.65;
}

@media (max-width: 576px) {
    .contact-dl-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.7rem 0;
    }

    .contact-dl-row dt {
        color: #667085;
        font-weight: 800;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .home-carousel-frame .carousel-item img {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .home-carousel-frame .carousel-item img {
        height: 200px;
    }
    .gallery-img-wrapper {
        height: 140px;
    }
}

.site-header {
    width: 100%;
    background: linear-gradient(90deg, #183872 0%, #24428c 100%);
    color: #fff;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    align-items: center;
    height: 72px;
    box-shadow: 0 2px 12px #1b295f16;
    gap: 12px;
  }
  .site-header .logo {
    height: 52px;
    margin: 12px 20px 10px 32px;
  }
  .site-header .site-title {
    font-size: 1.48em;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 3px;
    line-height: 1.1;
  }

  #feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1320px;
    margin: 28px auto 0 auto;
    padding-bottom: 30px;
  }
  .post {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px #20409015;
    padding: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
    overflow: hidden;
    min-height: 430px;
    max-height: 430px;
    height: 430px;
    transition: max-height 0.4s, height 0.4s;
    border: 1.5px solid #e2e7ee;
  }
  .card-header {
    display: flex;
    align-items: center;
    background: #24428c;
    padding: 13px 18px 11px 16px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 12px;
    border-bottom: 1.5px solid #dde4f5;
  }
  .page-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2.2px solid #fff;
    object-fit: cover;
    background: #fff;
  }
  .page-meta {
    display: flex;
    flex-direction: column;
  }
  .page-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.14em;
    margin-bottom: 1px;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 6px #17224f2b;
  }
  .post-time {
    color: #bdd6f6;
    font-size: 0.96em;
    opacity: 0.97;
    margin-bottom: 0;
    margin-top: 2px;
  }
  .post-message {
    color: #21314D;
    font-size: 1.10em;
    margin: 0 18px 10px 18px;
    line-height: 1.64;
    white-space: pre-line;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: all 0.25s;
  }
  .read-more {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    background: linear-gradient(rgba(255,255,255,0), #fff 85%);
    padding-top: 30px;
    margin-top: -30px;
    font-size: 1.01em;
    font-weight: bold;
    color: #24428c;
    cursor: pointer;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 20px -18px #1e316b10;
    display: none;
    bottom: 18px;
    letter-spacing: 1px;
  }
  .post.show-readmore .read-more { display: block; }
  .post .post-image,
  .post img.post-image {
    box-shadow: 0 2px 14px #2455a815;
    border-radius: 10px;
    max-width: 96%;
    max-height: 170px;
    margin: 8px auto 0 auto;
    display: block;
    background: #eee;
    object-fit: contain;
    border: 1px solid #f1f5ff;
  }
  @media (max-width: 820px) {
    #feed { grid-template-columns: 1fr;}
    body { padding: 0;}
    .post {padding: 0 0 10px 0;}
    .card-header {padding: 8px 7vw 6px 7vw;}
    .site-header .logo {margin-left: 16px;}
  }

  /* --- Facebook post detail modal (อ่านต่อ) --- */
  .fb-post-modal {
    --bs-backdrop-opacity: 0.92;
  }
  body:has(#fbPostModal.show) .modal-backdrop,
  .modal-backdrop.fb-post-modal-backdrop {
    background-color: #000 !important;
    opacity: 0.92 !important;
  }
  .fb-post-modal__layout:has(.fb-post-modal__media--no-image) .fb-post-modal__sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    border-left: none;
  }
  .fb-post-modal__dialog {
    max-width: min(1100px, 96vw);
    width: 100%;
    margin: 1rem auto;
  }
  .fb-post-modal__content {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  }
  .fb-post-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    opacity: 1;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .fb-post-modal__layout {
    display: flex;
    flex-direction: row;
    min-height: min(88vh, 720px);
    max-height: min(92vh, 820px);
  }
  .fb-post-modal__media {
    flex: 1 1 62%;
    min-width: 0;
    background: #1c1e21;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
  }
  .fb-post-modal__media--no-image {
    flex: 0 0 0;
    display: none;
  }
  .fb-post-modal__img {
    max-width: 100%;
    max-height: min(88vh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }
  .fb-post-modal__media-empty {
    color: #b0b3b8;
    font-size: 0.95rem;
    padding: 2rem;
    text-align: center;
  }
  .fb-post-modal__sidebar {
    flex: 0 0 38%;
    max-width: 400px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #e4e6eb;
  }
  .fb-post-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e6eb;
    flex-shrink: 0;
  }
  .fb-post-modal__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
  .fb-post-modal__meta {
    flex: 1;
    min-width: 0;
  }
  .fb-post-modal__name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #050505;
    line-height: 1.25;
  }
  .fb-post-modal__time {
    display: block;
    font-size: 0.8125rem;
    color: #65676b;
    margin-top: 2px;
  }
  .fb-post-modal__message {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 16px 18px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #050505;
    white-space: pre-wrap;
    word-break: break-word;
  }
  @media (max-width: 767.98px) {
    .fb-post-modal__dialog {
      max-width: 100%;
      margin: 0;
      min-height: 100%;
    }
    .fb-post-modal__content {
      border-radius: 0;
      min-height: 100vh;
      min-height: 100dvh;
    }
    .fb-post-modal__layout {
      flex-direction: column;
      max-height: none;
      min-height: 100vh;
      min-height: 100dvh;
    }
    .fb-post-modal__media {
      flex: 0 0 auto;
      min-height: 40vh;
      max-height: 55vh;
    }
    .fb-post-modal__media--no-image {
      display: none;
    }
    .fb-post-modal__sidebar {
      flex: 1 1 auto;
      max-width: none;
      min-width: 0;
      border-left: none;
      border-top: 1px solid #e4e6eb;
    }
    .fb-post-modal__close {
      background: rgba(28, 30, 33, 0.75);
      filter: invert(1);
    }
  }

  /* --- Facebook Page Plugin iframe (หน้าแรก) --- */
.facebook-feed-section {
    overflow-x: clip;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(15, 44, 89, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, #eef2f8 0%, #f5f7fa 45%, #f8f9fa 100%);
}

@media (min-width: 992px) {
    .facebook-feed-section {
        padding-top: 3.75rem;
        padding-bottom: 4.25rem;
    }
}

.facebook-feed-container {
    max-width: 100%;
}



.facebook-feed-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 44, 89, 0.07);
    box-shadow:
        0 2px 12px rgba(15, 44, 89, 0.05),
        0 8px 32px rgba(15, 44, 89, 0.06);
    position: relative;
}

.facebook-feed-head::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: 0;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--police-blue), var(--police-gold), var(--police-blue));
    opacity: 0.9;
}

.facebook-feed-head__main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.facebook-feed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: linear-gradient(145deg, #1877f2 0%, #0d5dbf 100%);
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

.facebook-feed-head__text {
    min-width: 0;
}

.facebook-feed-title {
    color: var(--police-blue);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin: 0 0 0.4rem;
    padding-left: 0;
    border: none;
    letter-spacing: 0.02em;
}

.facebook-feed-lead {
    color: #5a6570;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 40rem;
}
.facebook-feed-btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--police-blue);
    --bs-btn-border-color: var(--police-blue);
    --bs-btn-hover-bg: #0a2247;
    --bs-btn-hover-border-color: #0a2247;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 0.65rem;
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
}

.facebook-feed-btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--police-blue);
    --bs-btn-border-color: var(--police-blue);
    --bs-btn-hover-bg: #0a2247;
    --bs-btn-hover-border-color: #0a2247;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 0.65rem;
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
}

.facebook-feed-btn-primary:hover {
    box-shadow: 0 6px 18px rgba(15, 44, 89, 0.28);
}

.fb-embed-shell {
    position: relative;
    padding: 0.25rem;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(198, 156, 58, 0.25) 0%, rgba(15, 44, 89, 0.12) 50%, rgba(15, 44, 89, 0.08) 100%);
}

.fb-embed-card {
    width: 100%;
    max-width: min(100%, 34rem);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: #fff;
    border-radius: 1.2rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 28px rgba(15, 44, 89, 0.08),
        0 2px 8px rgba(15, 44, 89, 0.04);
}

.fb-embed-wrap {
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.fb-plugin-iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    min-height: 0;
    border: 0;
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    vertical-align: top;
}

.facebook-feed-plugin-note {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #5c6570;
    text-align: center;
    background: rgba(15, 44, 89, 0.04);
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 44, 89, 0.07);
}

.facebook-feed-plugin-note strong {
    color: var(--police-blue);
    font-weight: 600;
}

.facebook-feed-footer {
    margin-top: 1.25rem;
}

.facebook-feed-external-link {
    display: inline-block;
    text-decoration: none;
}

.facebook-feed-external-link__inner {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--police-blue);
    background: #fff;
    border: 1px solid rgba(15, 44, 89, 0.12);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15, 44, 89, 0.06);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.facebook-feed-external-link:hover .facebook-feed-external-link__inner {
    color: var(--police-gold);
    border-color: rgba(198, 156, 58, 0.45);
    box-shadow: 0 4px 16px rgba(15, 44, 89, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .facebook-feed-section .container-fluid.facebook-feed-container {
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.65);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.65);
    }

    .facebook-feed-head {
        padding: 1.1rem 1.15rem;
        flex-direction: column;
        align-items: stretch;
    }

    .facebook-feed-head::before {
        left: 1.15rem;
        right: 1.15rem;
    }

    .facebook-feed-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .fb-embed-card {
        max-width: 100%;
        padding: 0.75rem 0.6rem 1rem;
    }

}

/* --- Home: PDF สถานี (iframe) — จำกัดความสูง มี scrollbar เมื่อเนื้อหายาว --- */
.station-pdf-embed {
    max-height: min(85vh, 960px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.station-pdf-embed__iframe {
    display: block;
    width: 100%;
    min-height: 480px;
    height: 1100px;
    border: 0;
    vertical-align: top;
}

/* --- ITA: แดชบอร์ดตัวชี้วัดการเปิดเผยข้อมูล --- */
@keyframes ita-dashboard-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ita-dashboard {
    --ita-blue-deep: #0a2044;
    --ita-blue-mid: var(--police-blue);
    --ita-blue-light: #1e3a8a;
    --ita-blue-hover: #2a5088;
    --ita-num-size: 5.25rem;
    --ita-num-font: 1.55rem;
    --ita-row-height: 6.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.25rem 0 1.5rem;
}

.ita-dashboard__hero {
    text-align: center;
    margin-bottom: 2.25rem;
    padding: 0 0.5rem 1.75rem;
    border-bottom: 1px solid rgba(15, 44, 89, 0.1);
}

.ita-dashboard__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--police-blue);
    background: linear-gradient(135deg, rgba(15, 44, 89, 0.06) 0%, rgba(198, 156, 58, 0.12) 100%);
    border: 1px solid rgba(198, 156, 58, 0.35);
    border-radius: 999px;
}

.ita-dashboard__badge i {
    color: var(--police-gold);
    font-size: 0.9rem;
}

.ita-dashboard__title {
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--police-blue);
    letter-spacing: 0.02em;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ita-dashboard__subtitle {
    margin: 1.25rem auto 0;
    max-width: 36rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #4a5f7a;
    line-height: 1.6;
}

/* หลายตัวชี้วัด (subindis) */
.ita-dashboard__blocks {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.ita-dashboard__block + .ita-dashboard__block {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(15, 44, 89, 0.08);
}

.ita-dashboard__block-title {
    margin: 0 0 1.75rem;
    padding: 1rem 1.5rem;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--police-blue) 0%, var(--ita-blue-light) 100%);
    border-radius: 14px;
    box-shadow:
        0 6px 22px rgba(15, 44, 89, 0.28),
        0 0 0 1px rgba(198, 156, 58, 0.35);
}

/* Grid & columns (topics ภายใต้แต่ละ subindi) */
.ita-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
    align-items: start;
}

.ita-dashboard__column {
    display: flex;
    flex-direction: column;
    animation: ita-dashboard-rise 0.55s ease backwards;
}

.ita-dashboard__column:nth-child(1) { animation-delay: 0.08s; }
.ita-dashboard__column:nth-child(2) { animation-delay: 0.16s; }
.ita-dashboard__column:nth-child(3) { animation-delay: 0.24s; }

.ita-dashboard__column-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}

.ita-dashboard__column-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1rem;
    color: var(--police-gold);
    background: linear-gradient(145deg, var(--police-blue) 0%, var(--ita-blue-light) 100%);
    border-radius: 14px;
    border: 1px solid rgba(198, 156, 58, 0.35);
    box-shadow: 0 4px 14px rgba(15, 44, 89, 0.22);
}

.ita-dashboard__column:nth-child(2) .ita-dashboard__column-icon {
    background: linear-gradient(145deg, var(--ita-blue-light) 0%, var(--police-blue) 100%);
}

.ita-dashboard__column:nth-child(3) .ita-dashboard__column-icon {
    background: linear-gradient(145deg, var(--ita-blue-deep) 0%, var(--police-blue) 100%);
}

.ita-dashboard__column-title {
    margin: 0;
    padding: 0.55rem 1.1rem;
    width: 100%;
    font-size: clamp(0.88rem, 1.6vw, 1.02rem);
    font-weight: 700;
    text-align: center;
    color: var(--police-blue);
    background: linear-gradient(180deg, #fff 0%, #f0f4fa 100%);
    border: 2px solid var(--police-gold);
    border-radius: 999px;
    box-shadow:
        0 2px 10px rgba(15, 44, 89, 0.08),
        0 0 0 3px rgba(198, 156, 58, 0.1);
}

/* List items — ความสูงคงที่ ไม่ยืดตามจำนวนรายการในคอลัมน์ */
.ita-dashboard__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ita-dashboard__list > li {
    flex: 0 0 auto;
    display: flex;
    height: var(--ita-row-height);
}

.ita-dashboard__item {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--ita-row-height);
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
    position: relative;
    border-radius: 999px;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.ita-dashboard__item:hover,
.ita-dashboard__item:focus-visible {
    color: #fff;
    transform: translateX(4px);
    outline: none;
}

.ita-dashboard__num {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ita-num-size);
    height: var(--ita-num-size);
    min-width: var(--ita-num-size);
    margin-right: calc(var(--ita-num-size) * -0.42);
    align-self: center;
    font-size: var(--ita-num-font);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--police-blue);
    background: linear-gradient(160deg, #fff 0%, #e8eef8 50%, #d4e0f4 100%);
    border: 4px solid var(--police-gold);
    border-radius: 50%;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.14),
        0 0 0 2px rgba(255, 255, 255, 0.9) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* เลข 3 หลัก (010–015) ลดขนาดตัวอักษรเล็กน้อยให้พอดีวง */
.ita-dashboard__item[data-code="010"] .ita-dashboard__num,
.ita-dashboard__item[data-code="011"] .ita-dashboard__num,
.ita-dashboard__item[data-code="012"] .ita-dashboard__num,
.ita-dashboard__item[data-code="013"] .ita-dashboard__num,
.ita-dashboard__item[data-code="014"] .ita-dashboard__num,
.ita-dashboard__item[data-code="015"] .ita-dashboard__num {
    font-size: calc(var(--ita-num-font) * 0.82);
}

.ita-dashboard__body {
    flex: 1;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 0.5rem;
    min-height: 0;
    height: 100%;
    padding: 0.65rem 1.1rem 0.65rem calc(var(--ita-num-size) * 0.58);
    background: linear-gradient(118deg, var(--police-blue) 0%, var(--ita-blue-light) 55%, #1a3d6e 100%);
    border-radius: 999px;
    box-shadow:
        0 4px 14px rgba(15, 44, 89, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.ita-dashboard__item:hover .ita-dashboard__body,
.ita-dashboard__item:focus-visible .ita-dashboard__body {
    background: linear-gradient(118deg, var(--ita-blue-hover) 0%, var(--ita-blue-light) 55%, var(--police-blue) 100%);
    box-shadow:
        0 6px 20px rgba(15, 44, 89, 0.38),
        0 0 0 1px rgba(198, 156, 58, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.ita-dashboard__item:hover .ita-dashboard__num,
.ita-dashboard__item:focus-visible .ita-dashboard__num {
    transform: scale(1.06);
    border-color: var(--police-gold);
    color: var(--police-blue);
    box-shadow:
        0 4px 16px rgba(198, 156, 58, 0.45),
        0 0 0 2px rgba(255, 255, 255, 0.95) inset;
}

.ita-dashboard__text {
    flex: 1;
    min-width: 0;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ita-dashboard__arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-6px);
    color: var(--police-gold);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ita-dashboard__item:hover .ita-dashboard__arrow,
.ita-dashboard__item:focus-visible .ita-dashboard__arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 991.98px) {
    .ita-dashboard__grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .ita-dashboard {
        --ita-num-size: 4.25rem;
        --ita-num-font: 1.3rem;
        --ita-row-height: 5.75rem;
    }

    .ita-dashboard__body {
        padding-right: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ita-dashboard__column {
        animation: none;
    }

    .ita-dashboard__item:hover,
    .ita-dashboard__item:focus-visible {
        transform: none;
    }
}

/* --- ITA detail (news-detail?source=ita) --- */
.ita-detail {
    max-width: 100%;
    margin: 0 auto;
}

.ita-detail__hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 44, 89, 0.1);
}

.ita-detail__code {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 1.1rem 1.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    background: linear-gradient(
        118deg,
        var(--ita-blue-deep, #0a2044) 0%,
        var(--police-blue) 52%,
        var(--ita-blue-light, #1a4a8a) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 5px solid var(--police-gold);
    box-shadow:
        0 10px 28px rgba(10, 32, 68, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ita-detail__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: #4a5f73;
    line-height: 1.4;
}

.ita-detail__lead {
    color: #5a6b7d;
    font-size: 1rem;
}

.ita-detail__status {
    text-align: center;
    padding: 2rem 1rem;
}

.ita-detail__sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ita-detail-group {
    margin: 0;
}

.ita-detail-group__title {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(118deg, var(--ita-blue-deep, #0a2044) 0%, var(--police-blue) 100%);
    border-radius: 0.65rem;
    border-left: 4px solid var(--police-gold);
    line-height: 1.4;
}

.ita-detail-group__items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 0.25rem;
}

.ita-detail-group__items .ita-detail-card__title--sub {
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(15, 44, 89, 0.12);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--police-blue);
}

.ita-detail-card__body {
    margin: 0;
}

.ita-detail-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(15, 44, 89, 0.1);
    box-shadow: 0 8px 28px rgba(10, 32, 68, 0.06);
    padding: 1.35rem 1.5rem 1.5rem;
}

.ita-detail-card__title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--police-blue);
    border-bottom: 2px solid var(--police-gold);
}

.ita-detail-card__meta {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.ita-detail-card__content {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #2c3e50;
}

.ita-detail-card__content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.ita-detail-card__media {
    margin: 0 0 1.25rem;
    text-align: center;
}

.ita-detail-card__media-link {
    display: inline-block;
    max-width: 100%;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(15, 44, 89, 0.1);
    box-shadow: 0 6px 20px rgba(10, 32, 68, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ita-detail-card__media-link:hover,
.ita-detail-card__media-link:focus-visible {
    box-shadow: 0 10px 28px rgba(10, 32, 68, 0.14);
    transform: translateY(-2px);
}

.ita-detail-card__img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(72vh, 640px);
    margin: 0 auto;
    object-fit: contain;
    background: #f4f6f9;
}

.ita-detail-card__file-icon .fa-file-image {
    color: #0d6efd;
}

.ita-detail-card__file-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ita-detail-card__file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(15, 44, 89, 0.06);
    color: var(--police-blue);
    font-size: 1.25rem;
}

.ita-detail-card__file-icon .fa-file-pdf {
    color: #c0392b;
}

.ita-detail-card__file-icon .fa-file-excel {
    color: #1e7e34;
}

.ita-detail-embed {
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(15, 44, 89, 0.12);
    background: #f8f9fb;
    min-height: 480px;
}

.ita-detail-embed__iframe {
    display: block;
    width: 100%;
    min-height: 72vh;
    max-height: 960px;
    border: 0;
}

@media (max-width: 767.98px) {
    .ita-detail-card {
        padding: 1rem 1.1rem 1.15rem;
    }

    .ita-detail-embed {
        min-height: 360px;
    }

    .ita-detail-embed__iframe {
        min-height: 55vh;
    }
}