   Phayoune Buddy — Hero + Card Pro + Label Pro + Post Pro Grid
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */

.pb-hero-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    gap: 0;
}

.pb-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 42%;
    max-width: 42%;
    padding: 50px 40px;
    box-sizing: border-box;
}

.pb-hero-title {
    margin: 0 0 16px;
    line-height: 1.3;
}

.pb-hero-desc {
    margin: 0 0 32px;
}

.pb-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pb-hero-btn1,
.pb-hero-btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pb-hero-btn2 {
    background-color: transparent;
    border-style: solid;
}

.pb-hero-right {
    flex: 1;
    position: relative;
    min-height: 200px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.pb-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.pb-hero-right-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* Hero responsive — keep two columns and scale down */
@media (max-width: 1024px) {
    .pb-hero-wrap {
        flex-direction: row !important;
        flex-wrap: nowrap;
    }
    .pb-hero-left {
        flex: 0 0 56% !important;
        max-width: 56% !important;
        padding: 34px 24px !important;
    }
    .pb-hero-right {
        flex: 0 0 44%;
        width: auto;
        min-height: 260px;
        height: auto;
        aspect-ratio: auto;
    }
    .pb-hero-right-placeholder {
        min-height: 260px;
        height: 100%;
    }
}

@media (max-width: 767px) {
    .pb-hero-left {
        flex: 0 0 58% !important;
        max-width: 58% !important;
        padding: 20px 14px !important;
    }
    .pb-hero-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        line-height: 1.25;
    }
    .pb-hero-desc {
        font-size: 12px !important;
        margin-bottom: 14px !important;
        line-height: 1.45;
    }
    .pb-hero-btns {
        flex-direction: row;
        width: auto;
        flex-wrap: wrap;
        gap: 8px;
    }
    .pb-hero-btn1,
    .pb-hero-btn2 {
        width: auto;
        text-align: center;
        padding: 8px 14px !important;
    }
    .pb-hero-right {
        flex: 0 0 42%;
        width: auto;
        min-height: 220px;
        height: auto;
        aspect-ratio: auto;
    }
    .pb-hero-right-placeholder {
        min-height: 220px;
        height: 100%;
    }
}

/* ── Card Pro (Director Message) ── */

.pb-card {
    border-style: solid;
    border-width: 2px;
    border-color: #2b5288;
    border-radius: 16px;
    padding: 28px 24px;
    background-color: #f8fafc;
    box-sizing: border-box;
    text-align: center;
}

.pb-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pb-card-header-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.pb-card-header-icon i,
.pb-card-header-icon svg {
    display: inline-flex;
    align-items: center;
}

.pb-card-header-title {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f2b5c;
}

.pb-card-img-wrap {
    text-align: center;
    margin: 20px 0;
}

.pb-card-img {
    object-fit: cover;
    display: inline-block;
    width: 150px;
    height: 180px;
    border-radius: 8px;
}

.pb-card-quote {
    margin: 0 auto;
    font-style: normal;
    position: relative;
    padding: 0;
    border: none;
    max-width: 360px;
    font-size: 17px;
    font-weight: 700;
    color: #0f2b5c;
    line-height: 1.6;
}

.pb-card-link-wrap {
    text-align: center;
    margin-top: 16px;
}

.pb-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #1a4b8c;
    transition: color 0.2s ease;
}

.pb-card-link:hover {
    color: #0f2b5c;
    text-decoration: none;
}

.pb-card-link-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.pb-card-link:hover .pb-card-link-arrow {
    transform: translateX(4px);
}

/* ── Label Pro Header ── */

.label-pro-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 0px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
}

.label-pro-badge-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.label-pro-badge-gold {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px 0 0 24px;
    z-index: 0;
}

.label-pro-badge-blue {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    border-radius: 24px 0 0 24px;
    box-sizing: border-box;
    max-width: 100%;
}

.label-pro-badge-text {
    display: block;
    white-space: nowrap;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-pro-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: inherit;
    flex-shrink: 1;
    min-width: 0;
    transition: all 0.2s ease;
}

.label-pro-link:hover {
    text-decoration: none;
}

.label-pro-link-text {
    display: inline-block;
}

.label-pro-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.label-pro-link-icon svg,
.label-pro-link-icon i {
    width: 1em;
    height: 1em;
    display: block;
}

.label-pro-link:hover .label-pro-link-icon {
    transform: translateX(4px);
}

.cal-pro-event-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cal-pro-event-link:hover {
    color: #123c8a;
    text-decoration: underline;
}
.cal-pro-tooltip-link {
    color: #fff;
    text-decoration: none;
    display: inline;
}
.cal-pro-tooltip-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .label-pro-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    .label-pro-badge-wrapper,
    .label-pro-badge-blue {
        width: auto !important;
        max-width: 100%;
    }
    .label-pro-badge-text {
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
        overflow: visible;
    }
    .label-pro-link {
        max-width: 100%;
    }
    .label-pro-link-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ── Post Pro Grid ── */

.post-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) {
    .post-pro-grid { grid-template-columns: repeat(2, 1fr); }
}
.cal-pro-event-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cal-pro-event-link:hover {
    color: #123c8a;
    text-decoration: underline;
}
.cal-pro-tooltip-link {
    color: #fff;
    text-decoration: none;
    display: inline;
}
.cal-pro-tooltip-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .post-pro-grid { grid-template-columns: 1fr; }
}

.post-pro-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
}

.post-pro-image-wrapper {
    width: calc(100% + 48px);
    margin: -24px -24px 0 -24px;
    overflow: hidden;
}

.post-pro-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-pro-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Kanit', sans-serif;
}

.post-pro-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-pro-date {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.post-pro-title {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0e2d6a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-pro-excerpt {
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-pro-readmore-wrap {
    display: flex;
    width: 100%;
    margin-top: auto;
}

.post-pro-readmore {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #123c8a;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.post-pro-readmore-icon {
    transition: transform 0.2s ease;
}

.post-pro-readmore:hover .post-pro-readmore-icon {
    transform: translateX(4px);
}

.post-pro-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: #999;
    font-family: 'Sarabun', sans-serif;
    font-size: 16px;
}

/* ── Calendar Pro Events ── */

.cal-pro-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.cal-pro-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    min-width: 0;
}

.cal-pro-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #123c8a;
}

.cal-pro-header-icon svg,
.cal-pro-header-icon i {
    display: block;
}

.cal-pro-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.cal-pro-header-title {
    margin: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cal-pro-header-subtitle {
    margin: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cal-pro-inner {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    max-width: 100%;
}

.cal-pro-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cal-pro-nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #123c8a;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    line-height: 1;
}

.cal-pro-nav-arrow:hover {
    background-color: rgba(18,60,138,0.08);
    transform: scale(1.1);
}

.cal-pro-month-label {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0e2d6a;
}

.cal-pro-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    margin-bottom: 8px;
}

.cal-pro-weekday {
    font-family: 'Kanit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
}

.cal-pro-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.cal-pro-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
}

.cal-pro-day .day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 34px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
    cursor: default;
    box-sizing: border-box;
}

.cal-pro-day:not(.has-event):not(.empty):hover .day-number {
    background-color: rgba(0,0,0,0.05);
}

.cal-pro-day.has-event {
    position: relative;
    cursor: pointer;
}

.cal-pro-day.has-event .day-number {
    background-color: var(--event-color, #ffc72c);
    color: #fff;
    font-weight: 700;
}

.cal-pro-day.has-event:hover .day-number {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cal-pro-day.is-active .day-number {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--event-color, #123c8a);
    transform: scale(1.05);
}

.cal-pro-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
    max-width: 220px;
    width: max-content;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99;
    line-height: 1.5;
    text-align: left;
}

.cal-pro-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: inherit;
    border-right-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.cal-pro-day.has-event:hover .cal-pro-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Keep tooltip inside card on first/last weekday columns */
.cal-pro-day:nth-child(7n+1) .cal-pro-tooltip {
    left: 0;
    transform: translateY(8px);
}
.cal-pro-day:nth-child(7n+1).has-event:hover .cal-pro-tooltip {
    transform: translateY(0);
}
.cal-pro-day:nth-child(7n+1) .cal-pro-tooltip::after {
    left: 16px;
    transform: none;
}

.cal-pro-day:nth-child(7n) .cal-pro-tooltip {
    left: auto;
    right: 0;
    transform: translateY(8px);
}
.cal-pro-day:nth-child(7n).has-event:hover .cal-pro-tooltip {
    transform: translateY(0);
}
.cal-pro-day:nth-child(7n) .cal-pro-tooltip::after {
    left: auto;
    right: 16px;
    transform: none;
}

.cal-pro-eventlist {
    display: flex;
    flex-direction: column;
}

.cal-pro-event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    color: #333;
    min-width: 0;
}

.cal-pro-event-item > *:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cal-pro-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--elist-bullet, #123c8a);
    flex-shrink: 0;
}

.cal-pro-no-events {
    text-align: center;
    padding: 16px 0;
    color: #aaa;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
}

.cal-pro-event-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cal-pro-event-link:hover {
    color: #123c8a;
    text-decoration: underline;
}
.cal-pro-tooltip-link {
    color: #fff;
    text-decoration: none;
    display: inline;
}
.cal-pro-tooltip-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cal-pro-card { padding: 16px; max-width: 100%; box-sizing: border-box; }
    .cal-pro-inner { padding: 12px; }
    .cal-pro-day .day-number { width: 30px; height: 30px; font-size: 13px; }
    .cal-pro-tooltip { font-size: 11px; padding: 6px 10px; max-width: 160px; }
    .cal-pro-header { flex-wrap: wrap; gap: 10px; }
    .cal-pro-header-title,
    .cal-pro-header-subtitle { overflow-wrap: anywhere; }
}
/* ============================================================
   Phayoune Menu Pro – Frontend Styles
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --pmp-primary: #0d6efd;
    --pmp-primary-hover: #0b5ed7;
    --pmp-text: #333333;
    --pmp-text-muted: #6c757d;
    --pmp-bg: #ffffff;
    --pmp-bg-sticky: #ffffff;
    --pmp-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --pmp-transition: 0.3s ease;
    --pmp-header-height: 72px;
}

/* ── Base Header ── */
.pmp-header {
    position: relative;
    width: 100%;
    background-color: var(--pmp-bg);
    z-index: 1000;
    transition: background-color var(--pmp-transition),
                box-shadow var(--pmp-transition),
                padding var(--pmp-transition);
}

.pmp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    gap: 16px;
}

/* ── Brand Area ── */
.pmp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.pmp-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pmp-logo img {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
}

.pmp-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pmp-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
}

.pmp-brand-subtitle {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Logo Animations ── */
.pmp-anim-zoom {
    transition: transform 0.3s ease;
}
.pmp-anim-zoom:hover {
    transform: scale(1.12);
}

.pmp-anim-pulse {
    animation: pmpPulse 2s infinite;
}
@keyframes pmpPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pmp-anim-rotate {
    transition: transform 0.4s ease;
}
.pmp-anim-rotate:hover {
    transform: rotate(10deg);
}

.pmp-anim-fadein {
    animation: pmpFadeIn 0.8s ease-out;
}
@keyframes pmpFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pmp-anim-bounce {
    animation: pmpBounce 0.6s ease;
}
@keyframes pmpBounce {
    0%, 100% { transform: translateY(0); }
    40%      { transform: translateY(-12px); }
    60%      { transform: translateY(-6px); }
}

/* ── Navigation ── */
.pmp-nav {
    display: flex;
    align-items: center;
}

.pmp-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.pmp-nav-menu li {
    position: relative;
}

.pmp-nav-menu li > a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.925rem;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: color var(--pmp-transition),
                background-color var(--pmp-transition);
    position: relative;
}

/* Active indicator line */
.pmp-nav-menu li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--pmp-primary);
    border-radius: 2px;
    transition: width var(--pmp-transition);
}

.pmp-nav-menu li > a:hover::after,
.pmp-nav-menu li.current-menu-item > a::after {
    width: 70%;
}

.pmp-nav-menu li > a:hover {
    color: var(--pmp-primary);
    background-color: rgba(13, 110, 253, 0.05);
}

.pmp-nav-menu li.current-menu-item > a {
    color: var(--pmp-primary);
    font-weight: 600;
}

/* ── Actions Area ── */
.pmp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search Button */
.pmp-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #333333;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--pmp-transition),
                color var(--pmp-transition);
}

.pmp-search-btn:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--pmp-primary);
}

/* CTA Button */
.pmp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--pmp-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--pmp-transition),
                box-shadow var(--pmp-transition),
                transform var(--pmp-transition);
}

.pmp-cta-btn:hover {
    background-color: var(--pmp-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.pmp-cta-icon {
    font-size: 0.85em;
}

/* ── Hamburger Button ── */
.pmp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.pmp-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #333333;
    border-radius: 2px;
    transition: transform var(--pmp-transition),
                opacity var(--pmp-transition);
}

.pmp-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.pmp-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.pmp-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.pmp-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--pmp-transition),
                visibility var(--pmp-transition);
}

.pmp-mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

/* Off-canvas variant */
.pmp-mobile-off-canvas {
    width: 320px;
    max-width: 85vw;
    height: 100%;
    left: auto;
    transform: translateX(100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--pmp-transition),
                opacity var(--pmp-transition),
                visibility var(--pmp-transition);
}

.pmp-mobile-off-canvas.is-open {
    transform: translateX(0);
}

/* Full-width variant */
.pmp-mobile-full-width {
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.35s ease,
                opacity var(--pmp-transition),
                visibility var(--pmp-transition);
}

.pmp-mobile-full-width.is-open {
    transform: translateY(0);
}

/* Mobile menu header */
.pmp-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.pmp-mobile-menu-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.pmp-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #333333;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--pmp-transition);
}

.pmp-mobile-close:hover {
    background-color: #f1f3f5;
}

/* Mobile nav list */
.pmp-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.pmp-mobile-nav li {
    border-bottom: 1px solid #f1f3f5;
}

.pmp-mobile-nav li > a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: background-color var(--pmp-transition),
                color var(--pmp-transition);
}

.pmp-mobile-nav li > a:hover,
.pmp-mobile-nav li.current-menu-item > a {
    color: var(--pmp-primary);
    background-color: rgba(13, 110, 253, 0.05);
}

.pmp-mobile-nav li.current-menu-item > a {
    font-weight: 600;
    border-left: 3px solid var(--pmp-primary);
}

/* Mobile CTA */
.pmp-mobile-cta {
    display: block;
    margin: 16px 20px;
    padding: 14px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--pmp-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color var(--pmp-transition);
    flex-shrink: 0;
}

.pmp-mobile-cta:hover {
    background-color: var(--pmp-primary-hover);
    color: #ffffff;
}

/* Mobile overlay backdrop */
.pmp-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--pmp-transition),
                visibility var(--pmp-transition);
}

.pmp-mobile-overlay.is-visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ── Sticky Header ── */
.pmp-sticky-enabled {
    position: sticky;
    top: 0;
    transition: background-color 0.35s ease,
                box-shadow 0.35s ease,
                padding 0.35s ease;
}

.pmp-sticky-enabled.is-sticky {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Transparent Background State ── */
.pmp-bg-transparent {
    background-color: transparent !important;
}

.pmp-bg-transparent.is-sticky {
    background-color: #ffffff !important;
}

/* ── Editor Preview ── */
.pmp-editor-preview .pmp-nav-menu li > a::after {
    width: 70%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pmp-nav {
        display: none;
    }

    .pmp-actions .pmp-cta-btn,
    .pmp-actions .pmp-search-btn {
        display: none;
    }

    .pmp-hamburger {
        display: flex;
    }

    .pmp-brand-subtitle {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pmp-brand-subtitle {
        display: none;
    }

    .pmp-nav-menu li > a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* ── RTL Support ── */
[dir="rtl"] .pmp-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .pmp-nav-menu li > a::after {
    left: 50%;
    transform: translateX(-50%);
}

[dir="rtl"] .pmp-mobile-nav li.current-menu-item > a {
    border-left: none;
    border-right: 3px solid var(--pmp-primary);
}

/* ── Print ── */
@media print {
    .pmp-header {
        position: static !important;
        box-shadow: none !important;
    }
    .pmp-hamburger,
    .pmp-mobile-menu,
    .pmp-mobile-overlay {
        display: none !important;
    }
}

/* ── Header Pro ── */
.pb-hp-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}
.pb-hp-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.pb-hp-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.pb-hp-link {
    flex-shrink: 0;
    white-space: nowrap;
}
.pb-hp-link a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   Menu Pro — Base Layout
   ═══════════════════════════════════════════════════════ */
.pbm-header,
.pbm-header *,
.pbm-header *::before,
.pbm-header *::after {
    box-sizing: border-box;
}
.pbm-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.pbm-header ul,
.pbm-header ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pbm-header ul li,
.pbm-header ol li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pbm-header a { text-decoration: none; }
.pbm-header img { display: block; max-width: 100%; }
.pbm-header button { border: none; background: none; cursor: pointer; font: inherit; }
.pbm-header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 auto;
    width: 100%;
    gap: 16px;
}
.pbm-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    flex-shrink: 0;
}
.pbm-logo { display: flex !important; align-items: center !important; flex-shrink: 0; line-height: 0; }
.pbm-logo img { display: block; }
.pbm-logo-mobile { display: none; align-items: center; flex-shrink: 0; line-height: 0; }
.pbm-logo-mobile img { display: block; height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.pbm-brand-text { display: flex !important; flex-direction: column !important; gap: 1px; min-width: 0; }
.pbm-brand-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.pbm-brand-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.pbm-nav { display: flex !important; align-items: center !important; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.pbm-nav-menu { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 4px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.pbm-nav-menu li { list-style: none !important; margin: 0 !important; padding: 0 !important; flex-shrink: 0; }
.pbm-nav-menu li > a { display: flex !important; align-items: center !important; padding: 8px 14px; white-space: nowrap; border-radius: 6px; position: relative; transition: color 0.25s ease, background-color 0.25s ease; }
.pbm-nav-menu li > a::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: #0d6efd; border-radius: 2px; transition: width 0.25s ease; }
.pbm-nav-menu li > a:hover::after,
.pbm-nav-menu li.current-menu-item > a::after { width: 60%; }
.pbm-actions { display: flex !important; align-items: center !important; gap: 10px; flex-shrink: 0; }
.pbm-search-btn { display: flex !important; align-items: center !important; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #333; text-decoration: none; transition: background-color 0.25s ease; }
.pbm-cta-btn { display: inline-flex !important; align-items: center !important; gap: 8px; white-space: nowrap; text-decoration: none; transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.pbm-cta-btn:hover { transform: translateY(-1px); }
.pbm-hamburger { display: none !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 5px; width: 44px; height: 44px; padding: 0; z-index: 1002; -webkit-tap-highlight-color: transparent; }
.pbm-hamburger span { display: block; width: 22px; height: 2.5px; background-color: #333; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.pbm-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.pbm-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pbm-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Menu: centered slide-down dropdown ── */
.pbm-mobile-menu {
    display: none;
    position: fixed;
    top: 84px;
    left: 50%;
    width: min(92vw, 380px);
    max-width: 380px;
    max-height: calc(100vh - 104px);
    box-sizing: border-box;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -16px) scaleY(0.96);
    transform-origin: top center;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.pbm-mobile-menu.is-open {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scaleY(1);
}
/* both mobile-style variants now share the same centered slide-down behavior */
.pbm-mobile-off-canvas,
.pbm-mobile-full-width {
    right: auto;
    left: 50%;
    height: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.pbm-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f3f5;
    flex-shrink: 0;
}
.pbm-mobile-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; overflow-wrap: anywhere; }
.pbm-mobile-close {
    /* full reset of native button styling — some mobile browsers/webviews
       render a colored default border on buttons, which showed up as a
       stray circle once border-radius:50% was applied. */
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;

    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
/* Pure-CSS "X" icon — two bars rotated, no font/SVG dependency at all */
.pbm-mobile-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
}
.pbm-mobile-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.pbm-mobile-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.pbm-mobile-close:hover { background-color: #f1f3f5; }

.pbm-mobile-nav { list-style: none !important; margin: 0 !important; padding: 8px 0 !important; }
.pbm-mobile-nav li { list-style: none !important; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #f5f5f5; }
.pbm-mobile-nav li:last-child { border-bottom: none; }
.pbm-mobile-nav li > a {
    display: block; padding: 13px 18px; font-size: 0.95rem; font-weight: 500;
    color: #333333; text-decoration: none; overflow-wrap: anywhere;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.pbm-mobile-nav li > a:hover,
.pbm-mobile-nav li.current-menu-item > a { color: #0d6efd; background-color: rgba(13, 110, 253, 0.06); }

.pbm-mobile-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 12px 18px 16px; padding: 12px;
    text-align: center; font-size: 0.95rem; font-weight: 600;
    color: #ffffff; background-color: #0d6efd; border-radius: 8px;
    text-decoration: none; flex-shrink: 0; box-sizing: border-box;
    transition: background-color 0.2s ease;
}
.pbm-mobile-cta:hover { background-color: #0b5ed7; color: #ffffff; }

.pbm-mobile-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.4); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.pbm-mobile-overlay.is-visible { display: block !important; opacity: 1; visibility: visible; }
.pbm-sticky { position: sticky !important; top: 0; }

@media (max-width: 480px) {
    .pbm-mobile-menu { top: 72px; width: min(94vw, 380px); max-height: calc(100vh - 92px); }
}
/* ── Menu Pro: Hover Animations ── */
.pbm-nav-menu li>a{transition:color .25s,background-color .25s,transform .3s,box-shadow .3s}
.pbm-menu-anim-grow li>a:hover{transform:scale(1.08)!important}
.pbm-menu-anim-shrink li>a:hover{transform:scale(.95)!important}
.pbm-menu-anim-pulse li>a:hover{animation:pbmPulseLink .6s}
@keyframes pbmPulseLink{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.pbm-menu-anim-push li>a:hover{transform:scale(.92)!important}
.pbm-menu-anim-push li>a:active{transform:scale(1.04)!important}
.pbm-menu-anim-bounce li>a:hover{animation:pbmBounceLink .5s}
@keyframes pbmBounceLink{0%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}60%{transform:translateY(-3px)}}
.pbm-menu-anim-glow li>a:hover{box-shadow:0 0 18px rgba(13,110,253,.4)!important}
.pbm-menu-anim-rotate li>a:hover{transform:rotate(8deg)!important}

/* ── Menu Pro: Menu Continuous Animation ── */
.pbm-menu-cont-pulse li>a{animation:pbmMenuContPulse 2.5s ease-in-out infinite}
@keyframes pbmMenuContPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.pbm-menu-cont-float li>a{animation:pbmMenuContFloat 2.5s ease-in-out infinite}
@keyframes pbmMenuContFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.pbm-menu-cont-glow li>a{animation:pbmMenuContGlow 2.5s ease-in-out infinite}
@keyframes pbmMenuContGlow{0%,100%{box-shadow:0 0 3px rgba(13,110,253,.2)}50%{box-shadow:0 0 12px rgba(13,110,253,.4)}}

/* ── Menu Pro: Logo Continuous Animation ── */
.pbm-logo img{transition:transform .4s,box-shadow .4s;display:block}
.pbm-anim-spin img{animation:pbmSpin 2s linear infinite}
@keyframes pbmSpin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
.pbm-anim-pulse img{animation:pbmPulseCont 2s ease-in-out infinite}
@keyframes pbmPulseCont{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.pbm-anim-float img{animation:pbmFloat 2.5s ease-in-out infinite}
@keyframes pbmFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.pbm-anim-glow img{animation:pbmGlow 2s ease-in-out infinite}
@keyframes pbmGlow{0%,100%{box-shadow:0 0 5px rgba(13,110,253,.3)}50%{box-shadow:0 0 20px rgba(13,110,253,.5)}}

/* ── Menu Pro: CTA Continuous Animation ── */
.pbm-cta-btn{transition:background-color .25s,transform .3s,box-shadow .3s}
.pbm-cta-anim-pulse{animation:pbmCtaPulseCont 2s ease-in-out infinite}
@keyframes pbmCtaPulseCont{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.pbm-cta-anim-glow{animation:pbmCtaGlow 2s ease-in-out infinite}
@keyframes pbmCtaGlow{0%,100%{box-shadow:0 0 5px rgba(13,110,253,.3)}50%{box-shadow:0 0 20px rgba(13,110,253,.5)}}
.pbm-cta-anim-float{animation:pbmCtaFloat 2.5s ease-in-out infinite}
@keyframes pbmCtaFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

/* ── Hero Slideshow ── */
.pb-hero-slideshow{position:relative;width:100%;height:100%;overflow:hidden}
.pb-hero-slides-inner{position:relative;width:100%;height:100%}
.pb-hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease-in-out;z-index:1}
.pb-hero-slide.active{opacity:1;z-index:2}
.pb-hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
.pb-hero-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);z-index:10;display:flex;gap:8px}
.pb-hero-dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.5);cursor:pointer;transition:background .3s}
.pb-hero-dot.active{background:#fff}
.pb-hero-slide img.pb-hero-img{border-radius:0}
.pb-hero-slideshow.pb-hero-flip{perspective:800px}
.pb-hero-slide{backface-visibility:hidden}

.pb-hero-slideshow{perspective:800px}
.pb-hero-slide{backface-visibility:hidden}
.pb-hero-slide img.pb-hero-img{border-radius:0}

.pb-hp-icon{display:inline-flex;align-items:center;line-height:1;flex-shrink:0}


/* ── Post Pro Magazine ── */

.ppm-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ppm-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ppm-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ppm-card-image {
    flex: none;
    width: 38%;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.ppm-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 18px 0 0 18px;
}

.ppm-card:hover .ppm-card-image img {
    transform: scale(1.05);
}

.ppm-card-body {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
}

.ppm-badge-wrap {
    margin-bottom: 8px;
}

.ppm-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #DC2626;
    color: #ffffff;
    font-family: 'Sarabun', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.ppm-title {
    margin: 0 0 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ppm-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.ppm-title a:hover {
    color: #3b7b8e;
}

.ppm-excerpt {
    margin: 0 0 12px;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    color: #555555;
    line-height: 1.45;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ppm-readmore-wrap {
    text-align: left;
}

.ppm-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #3b7b8e;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ppm-readmore:hover {
    color: #265462;
}

.ppm-readmore-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ppm-readmore-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

.ppm-empty {
    text-align: center;
    padding: 48px 24px;
    color: #999;
    font-family: 'Sarabun', sans-serif;
    font-size: 16px;
}

/* Image always stays on the left and fills the full area of the card
   (top-to-bottom) at every screen size — desktop, tablet, and mobile. */
@media (max-width: 767px) {
    .ppm-card-body {
        padding: 12px 14px;
    }

    .ppm-title { font-size: 14px; -webkit-line-clamp: 2; }
    .ppm-excerpt { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 8px; }
    .ppm-readmore { font-size: 12px; }
    .ppm-badge { font-size: 11px; padding: 3px 10px; }
}

@media (max-width: 480px) {
    .ppm-card-body { padding: 10px 12px; }
    .ppm-excerpt { -webkit-line-clamp: 1; margin-bottom: 6px; }
}

/* ── Name Card ── */

.nc-card {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    position: relative;
    padding-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.nc-banner {
    height: 110px;
    width: 100%;
}

.nc-avatar-outer {
    margin-bottom: 16px;
}

.nc-avatar-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    width: 130px;
    height: 130px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin: 0 auto;
}

.nc-avatar-img {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    border-radius: 0;
    object-fit: cover;
    background-color: #e2e8f0;
    display: block;
}

.nc-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.nc-avatar-placeholder i {
    font-size: 50px;
}

.nc-content {
    padding: 0 20px;
}

.nc-name {
    font-family: 'Sarabun', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.nc-position {
    font-family: 'Sarabun', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 16px;
    font-weight: 400;
}

.nc-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0 auto 16px auto;
    width: 85%;
}

.nc-description {
    font-family: 'Sarabun', sans-serif;
    font-size: 0.82rem;
    color: #444444;
    line-height: 1.5;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 16px;
}

.nc-contact {
    margin-bottom: 12px;
}

.nc-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 4px 0;
    font-family: 'Sarabun', sans-serif;
    font-size: 0.82rem;
    color: #555555;
}

.nc-contact-item a {
    color: inherit;
    text-decoration: none;
}

.nc-contact-item a:hover {
    color: #2b7a90;
}

.nc-contact-icon {
    font-size: 14px;
    color: #2b7a90;
    flex-shrink: 0;
}

.nc-contact-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.nc-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.nc-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #555555;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nc-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nc-social-icon:hover {
    background-color: #2b7a90;
    color: #ffffff;
    transform: translateY(-2px);
}

.nc-btn-wrap {
    text-align: center;
    padding: 0 20px;
}

.nc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ffffff;
    background-color: #2b7a90;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nc-action-btn:hover {
    background-color: #1f5c6b;
    transform: translateY(-1px);
}

.nc-btn-icon {
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   Post Content Widget (Single Post/Page Template)
   ══════════════════════════════════════════════════════════ */

.pb-pc-image-wrap { width: 100%; overflow: hidden; margin-bottom: 24px; }
.pb-pc-image { width: 100%; height: 400px; object-fit: cover; display: block; }

.pb-pc-image.pb-pc-image-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-bottom: 24px;
    overflow: hidden;
}
.pb-pc-image-overlay-inner {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}
.pb-pc-image-overlay::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 70%);
    z-index: 1;
}
.pb-pc-image-overlay .pb-pc-title { margin-bottom: 8px; }

.pb-pc-title { margin: 0 0 16px; }

.pb-pc-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    margin-bottom: 24px; font-size: 14px; color: #6b7280;
}
.pb-pc-meta-category {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background-color: #2563eb; color: #ffffff; font-size: 12px; font-weight: 700;
}
.pb-pc-meta-date::before { content: '📅 '; }
.pb-pc-meta-author::before { content: '✍ '; }

.pb-pc-content { line-height: 1.8; }
.pb-pc-content p { margin-bottom: 20px; }
.pb-pc-content img { max-width: 100%; height: auto; border-radius: 8px; }
.pb-pc-pagination { margin-top: 20px; }

.pb-pc-tags-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.pb-pc-tags-label { font-weight: 600; color: #64748b; margin-right: 4px; }
.pb-pc-tag {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    background-color: #f1f5f9; color: #334155; font-size: 13px;
    text-decoration: none; transition: background-color .2s ease;
}
.pb-pc-tag:hover { background-color: #e2e8f0; }

.pb-pc-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 32px 0; padding-top: 24px; border-top: 1px solid #e5e7eb;
}
.pb-pc-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 16px; border-radius: 10px; background-color: #f8fafc;
    text-decoration: none; transition: background-color .2s ease;
    min-width: 0;
}
.pb-pc-nav-item:hover { background-color: #eef2ff; }
.pb-pc-nav-next { justify-content: flex-end; text-align: right; }
.pb-pc-nav-arrow { font-size: 20px; color: #94a3b8; flex-shrink: 0; }
.pb-pc-nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-pc-nav-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.pb-pc-nav-title {
    font-size: 14px; font-weight: 600; color: #0f2b5c;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-pc-nav-empty { background: transparent; pointer-events: none; }

@media (max-width: 600px) {
    .pb-pc-nav { grid-template-columns: 1fr; }
    .pb-pc-nav-next { justify-content: flex-start; text-align: left; }
}

.pb-pc-related { margin-top: 40px; }
.pb-pc-related-heading { margin: 0 0 20px; }
.pb-pc-related-grid { display: grid; gap: 20px; }
@media (max-width: 900px) { .pb-pc-related-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .pb-pc-related-grid { grid-template-columns: 1fr !important; } }

.pb-pc-related-card {
    display: block; background-color: #ffffff; border-radius: 10px;
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pb-pc-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.pb-pc-related-img-wrap { width: 100%; overflow: hidden; }
.pb-pc-related-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.pb-pc-related-body { padding: 14px 16px; }
.pb-pc-related-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    color: #ffffff; font-size: 11px; font-weight: 700; margin-bottom: 8px;
}
.pb-pc-related-title {
    margin: 0; font-size: 15px; font-weight: 700; color: #0f2b5c; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   Archive Grid Widget (Archive/Category Template)
   ══════════════════════════════════════════════════════════ */

.pb-ag-header { margin-bottom: 32px; }
.pb-ag-title { margin: 0 0 8px; }
.pb-ag-description { margin-bottom: 8px; line-height: 1.6; }
.pb-ag-count { font-size: 14px; }

.pb-ag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) { .pb-ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pb-ag-grid { grid-template-columns: 1fr; } }

.pb-ag-card {
    display: block; text-decoration: none; color: inherit;
    background-color: #ffffff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pb-ag-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.pb-ag-img-wrap { width: 100%; overflow: hidden; }
.pb-ag-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pb-ag-card-body { padding: 16px; }
.pb-ag-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pb-ag-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px;
    color: #ffffff; font-size: 12px; font-weight: 600;
}
.pb-ag-date { font-size: 14px; color: #666666; }
.pb-ag-card-title {
    margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #0e2d6a; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pb-ag-excerpt {
    margin: 0 0 12px; font-size: 14px; color: #374151; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pb-ag-readmore {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 500; color: #123c8a; transition: color .2s ease;
}
.pb-ag-readmore-icon { transition: transform .2s ease; }
.pb-ag-card:hover .pb-ag-readmore-icon { transform: translateX(3px); }

.pb-ag-empty { padding: 60px 20px; text-align: center; color: #94a3b8; font-size: 15px; }

.pb-ag-pagination {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px; gap: 12px; flex-wrap: wrap;
}
.pb-ag-pagination a {
    display: inline-block; padding: 10px 20px; border-radius: 8px;
    background-color: #f1f5f9; color: #0e2d6a; text-decoration: none;
    font-size: 14px; font-weight: 600; transition: background-color .2s ease;
}
.pb-ag-pagination a:hover { background-color: #e2e8f0; }
