/* Public pages built with the "จัดการหน้าเว็บ" module */
.wp-page {
    padding-bottom: 40px;
}

.wp-preview-banner {
    background: #fff3cd;
    color: #664d03;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    border-bottom: 1px solid #ffe69c;
}

.wp-section {
    padding: 28px 0;
}

.wp-text {
    line-height: 1.8;
    overflow-wrap: break-word;
}

.wp-text img,
.wp-text table {
    max-width: 100%;
}

.wp-hero {
    padding: 70px 0;
    color: #fff;
    text-align: center;
}

.wp-hero h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.wp-hero p {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

.wp-image-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 120px;
    overflow: hidden;
    background: #f5f7fa;
    border-radius: 8px;
}

.wp-image-canvas-item {
    position: absolute;
    margin: 0;
    max-width: none;
}

.wp-image-canvas-item img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
}

.wp-image-canvas-item a {
    display: block;
}

.wp-image {
    border-radius: 8px;
}

.wp-caption {
    margin: 8px 0 0;
    color: #5b6b7a;
    font-size: 14px;
}

.wp-block-title {
    color: #89287f;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0d4ed;
}

.wp-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.wp-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.wp-gallery-item:hover img {
    transform: scale(1.05);
}

.wp-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.wp-video iframe,
.wp-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wp-files li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.wp-files a {
    color: #333;
    text-decoration: none;
}

.wp-files a:hover {
    color: #89287f;
}

.wp-files i {
    color: #89287f;
    margin-right: 6px;
}

.wp-news-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.wp-news-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.wp-news-date {
    display: block;
    padding: 10px 14px 0;
    font-size: 13px;
    color: #6c757d;
}

.wp-news-title {
    display: block;
    padding: 4px 14px 14px;
    font-weight: 600;
}

.wp-staff-card {
    color: inherit;
    text-decoration: none;
}

.wp-staff-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #f0d4ed;
}

.wp-staff-card strong {
    display: block;
    font-size: 15px;
}
