/* Column Wrapper */
.column-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
}

/* Load More - Hidden Items */
.ruts-loadmore-hidden {
    display: none !important;
}

/* Load More - Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Card Image - Consistent 16:9 Aspect Ratio */
.custom-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

/* Template Styles - Using from parent theme (plant3) */
/* Plant3 handles: .template-card, .template-overlap, .template-simple, .template-list, .template-caption */

/* New Custom Template Styles for Rutsarit Theme */

/* Magazine Template - 2 column layout with featured image on left */
.template-magazine .column {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

.template-magazine .custom-card {
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.template-magazine .custom-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.template-magazine .custom-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.template-magazine .card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (max-width: 991px) {
    .template-magazine .column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 767px) {
    .template-magazine .custom-card {
        flex-direction: column;
    }

    .template-magazine .custom-card img {
        width: 100%;
        height: 200px;
    }
}

/* Grid Minimal Template - Clean grid with subtle shadows */
.template-grid-minimal .custom-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.template-grid-minimal .custom-card:hover {
    border-color: #00154b;
    box-shadow: 0 4px 15px rgba(0, 21, 75, 0.1);
}

.template-grid-minimal .custom-card img {
    border-radius: 0;
}

.template-grid-minimal .card-body {
    padding: 20px;
}

/* Elevated Template - Cards with strong shadow */
.template-elevated .custom-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.template-elevated .custom-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.template-elevated .custom-card img {
    border-radius: 0;
}

.template-elevated .card-body {
    padding: 24px;
}

/* Compact Template - Dense layout for many items */
.template-compact .column {
    flex: 0 0 calc(20% - 16px) !important;
    max-width: calc(20% - 16px) !important;
}

.template-compact .custom-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.template-compact .custom-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-compact .custom-card img {
    border-radius: 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.template-compact .card-body {
    padding: 12px;
}

.template-compact .card-body h5 {
    font-size: 14px;
    margin-bottom: 6px;
}

.template-compact .card-body p {
    font-size: 12px;
    margin-bottom: 4px;
}

@media screen and (max-width: 1199px) {
    .template-compact .column {
        flex: 0 0 calc(25% - 15px) !important;
        max-width: calc(25% - 15px) !important;
    }
}

@media screen and (max-width: 991px) {
    .template-compact .column {
        flex: 0 0 calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }
}

@media screen and (max-width: 767px) {
    .template-compact .column {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

/* Bordered Template - Clean borders, no shadow */
.template-bordered .custom-card {
    border: 2px solid #00154b;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    transition: all 0.3s ease;
}

.template-bordered .custom-card:hover {
    border-color: #ffb300;
    transform: translateY(-3px);
}

.template-bordered .custom-card img {
    border-radius: 0;
}

.template-bordered .card-body {
    padding: 20px;
}

/* ============================================
   NEW MODERN TEMPLATES - 2026
   ============================================ */

/* Glassmorphism Template - Frosted glass effect */
.template-glass {
    background: linear-gradient(135deg, #00154b 0%, #1e3a5f 50%, #2d5a87 100%);
    padding: 30px;
    border-radius: 20px;
}

.template-glass .custom-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.template-glass .custom-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.template-glass .custom-card img {
    border-radius: 12px;
    margin: 12px;
    width: calc(100% - 24px);
}

.template-glass .card-body {
    padding: 16px 20px 20px;
}

.template-glass .card-body h5,
.template-glass .card-body a {
    color: #fff !important;
}

.template-glass .card-body p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Glass Light Template - Glassmorphism with light/white background */
.template-glass-light {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 50%, #ffffff 100%);
    padding: 30px;
    border-radius: 20px;
}

.template-glass-light .custom-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 21, 75, 0.1);
}

.template-glass-light .custom-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 21, 75, 0.15);
}

.template-glass-light .custom-card img {
    border-radius: 12px;
    margin: 12px;
    width: calc(100% - 24px);
}

.template-glass-light .card-body {
    padding: 16px 20px 20px;
}

.template-glass-light .card-body h5,
.template-glass-light .card-body a {
    color: #00154b !important;
}

.template-glass-light .card-body p {
    color: #333 !important;
}

/* Gradient Overlay Template - Text over gradient on image */
.template-gradient .custom-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.template-gradient .custom-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.template-gradient .custom-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-gradient .custom-card:hover img {
    transform: scale(1.1);
}

.template-gradient .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 21, 75, 0.95) 0%, rgba(0, 21, 75, 0.7) 50%, transparent 100%);
    padding: 60px 20px 20px;
}

.template-gradient .card-body h5,
.template-gradient .card-body a {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.template-gradient .card-body p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Animated Template - Enhanced micro-animations */
.template-animated .custom-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.template-animated .custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.template-animated .custom-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 115, 170, 0.2);
}

.template-animated .custom-card:hover::before {
    border-color: #0073aa;
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.3);
}

.template-animated .custom-card img {
    transition: transform 0.5s ease;
    border-radius: 0;
}

.template-animated .custom-card:hover img {
    transform: scale(1.08);
}

.template-animated .card-body {
    padding: 20px;
    position: relative;
}

.template-animated .card-body h5 {
    transition: color 0.3s ease;
}

.template-animated .custom-card:hover .card-body h5 {
    color: #0073aa;
}

/* Animated pulse effect for SDG badges */
.template-animated .card-body span[style*="background-color"],
.template-animated .card-body a.ruts-sdg-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Shimmer loading effect (optional class) */
.template-animated .shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Custom Template Styles for REST API Grid Block and Shortcode Column Wrapper */
.rest-api-grid-block.template-card .custom-card,
.column-wrapper.template-card .custom-card {
    border-width: 1px;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 0 10px #ccc;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rest-api-grid-block.template-card .custom-card:hover,
.column-wrapper.template-card .custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rest-api-grid-block.template-overlap .custom-card,
.column-wrapper.template-overlap .custom-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rest-api-grid-block.template-overlap .custom-card .card-body,
.column-wrapper.template-overlap .custom-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff !important;
    padding: 20px;
}

.rest-api-grid-block.template-overlap .custom-card .card-body h5,
.rest-api-grid-block.template-overlap .custom-card .card-body p,
.rest-api-grid-block.template-overlap .custom-card .card-body a,
.column-wrapper.template-overlap .custom-card .card-body h5,
.column-wrapper.template-overlap .custom-card .card-body p,
.column-wrapper.template-overlap .custom-card .card-body a {
    color: #fff !important;
}

.rest-api-grid-block.template-simple .custom-card,
.column-wrapper.template-simple .custom-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.rest-api-grid-block.template-simple .custom-card img,
.column-wrapper.template-simple .custom-card img {
    border-radius: 8px;
}

.rest-api-grid-block.template-list .column,
.column-wrapper.template-list .column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.rest-api-grid-block.template-list .custom-card,
.column-wrapper.template-list .custom-card {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rest-api-grid-block.template-list .custom-card img,
.column-wrapper.template-list .custom-card img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.rest-api-grid-block.template-list .card-body,
.column-wrapper.template-list .card-body {
    flex: 1;
    padding: 20px;
}

@media screen and (max-width: 767px) {
    .rest-api-grid-block.template-list .custom-card,
    .column-wrapper.template-list .custom-card {
        flex-direction: column;
    }

    .rest-api-grid-block.template-list .custom-card img,
    .column-wrapper.template-list .custom-card img {
        width: 100%;
        height: 200px;
        border-radius: 10px 10px 0 0;
    }
}

.rest-api-grid-block.template-caption .custom-card,
.column-wrapper.template-caption .custom-card {
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
}

.rest-api-grid-block.template-caption .custom-card img,
.column-wrapper.template-caption .custom-card img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.rest-api-grid-block.template-caption .card-body,
.column-wrapper.template-caption .card-body {
    padding: 15px 5px;
    background: transparent;
}

/* SDG Wheel Animation & Clickable SDG Badges */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

a.ruts-sdg-wheel-link,
.custom-card .card-body a.ruts-sdg-wheel-link,
.s-content a.ruts-sdg-wheel-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.ruts-sdg-wheel-link:hover,
.custom-card .card-body a.ruts-sdg-wheel-link:hover,
.s-content a.ruts-sdg-wheel-link:hover {
    transform: scale(1.12);
    opacity: 0.9;
}

img.ruts-sdg-wheel,
.custom-card img.ruts-sdg-wheel,
.s-content img.ruts-sdg-wheel {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    box-shadow: none !important;
}

a.ruts-sdg-badge,
.custom-card .card-body a.ruts-sdg-badge,
.s-content a.ruts-sdg-badge,
.template-glass-light .card-body a.ruts-sdg-badge,
.template-glass .card-body a.ruts-sdg-badge,
.template-gradient .card-body a.ruts-sdg-badge,
.rest-api-grid-block.template-overlap .custom-card .card-body a.ruts-sdg-badge,
.column-wrapper.template-overlap .custom-card .card-body a.ruts-sdg-badge {
    color: #fff !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

a.ruts-sdg-badge:hover,
.custom-card .card-body a.ruts-sdg-badge:hover,
.s-content a.ruts-sdg-badge:hover {
    color: #fff !important;
    transform: translateY(-2px);
    opacity: 0.92;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Category Badge Styles */
.category-badge {
    position: absolute;
    z-index: 10;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.category-badge a {
    color: inherit !important;
    text-decoration: none !important;
}

.category-floating {
    top: 10px;
    left: 10px;
    background: rgba(0, 21, 75, 0.9);
    color: #fff !important;
}

.category-inline {
    top: 0;
    left: 0;
    right: 0;
    background: #ffb300;
    color: #000 !important;
    border-radius: 0;
    text-align: center;
}

.category-badge-style {
    top: 10px;
    right: 10px;
    background: #fff;
    color: #00154b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Custom Card Positioning for Category */
.custom-card {
    position: relative;
}

/* Desktop Column Settings */
.desktop-col-1 .column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.desktop-col-2 .column {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

.desktop-col-3 .column {
    flex: 0 0 calc(33.333% - 14px) !important;
    max-width: calc(33.333% - 14px) !important;
}

.desktop-col-4 .column {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
}

.desktop-col-5 .column {
    flex: 0 0 calc(20% - 16px) !important;
    max-width: calc(20% - 16px) !important;
}

/* Thumbnail Ratio Settings */
.ratio-default img {
    aspect-ratio: auto;
}

.ratio-16-9 img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.ratio-4-3 img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.ratio-1-1 img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.ratio-3-2 img {
    aspect-ratio: 3/2;
    object-fit: cover;
}

/* No Rounded Corners */
.no-rounded .custom-card,
.no-rounded .custom-card img {
    border-radius: 0 !important;
}

/* Default Column - More than 2 Items (Fallback without responsive classes) */
.column {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    padding: 0;
}

/* Two Column Layout (Fallback) */
.column2 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    padding: 0;
}

/* Center Align when 2 Items */
.column-wrapper.column2-parent {
    justify-content: center;
}

/* Tablet Responsive (768px-1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    .tablet-col-1 .column,
    .tablet-col-1 .column2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .tablet-col-2 .column,
    .tablet-col-2 .column2 {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }

    .tablet-col-3 .column,
    .tablet-col-3 .column2 {
        flex: 0 0 calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }
}

/* Mobile Responsive (max 767px) */
@media screen and (max-width: 767px) {

    .mobile-col-1 .column,
    .mobile-col-1 .column2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .mobile-col-2 .column,
    .mobile-col-2 .column2 {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }

    .mobile-col-3 .column,
    .mobile-col-3 .column2 {
        flex: 0 0 calc(33.333% - 14px) !important;
        max-width: calc(33.333% - 14px) !important;
    }
}

/* Card Styles */
.custom-card {
    border-width: 1px;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 0 10px #ccc;
    overflow: hidden;
}

.custom-card img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.custom-card .card-body {
    padding: 1rem;
}

.column a {
    color: #00154c;
}

/* Old Responsive Design - Commented out to avoid conflicts with new responsive system
@media screen and (max-width: 767px) {
    .column {
        flex: 0 0 100% !important;
    }

    .column2 {
        flex: 0 0 100% !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .column {
        flex: 0 0 calc(50% - 20px) !important;
    }
}
*/

/* Old Column Wrapper Code - Commented out
.column-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.column {
    flex: 0 0 calc(25% - 20px) !important;
    padding: 10px !important;
}

.column2 {
    flex: 0 0 calc(50% - 20px) !important;
    padding: 10px !important;
}

.column-wrapper.column2-parent {
    justify-content: center;
}

.custom-card {
    border-width: 1px;
    border-radius: 20px;
    height: 100%;
    box-shadow: 0 0 10px #ccc;
    overflow: hidden;
}

.custom-card img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.custom-card .card-body {
    padding: 1rem;
}

.column a {
    color: #00154c;
}

@media screen and (max-width: 767px) {
    .column {
        flex: 0 0 100% !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .column {
        flex: 0 0 calc(50% - 20px) !important;
    }
}
*/
/* ==========================================================================
   Section Header Bar (section_title + more_text / more_url)
   ========================================================================== */
.ruts-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.ruts-section-title {
    margin: 0 !important;
    font-size: 20px;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

.ruts-section-title.ruts-section-title-accent {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    padding-left: 14px;
    border-left: 5px solid #8b2635;
}

.ruts-section-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 22px;
    border: 1px solid #8b2635;
    border-radius: 999px;
    background: #fff;
    color: #5a2a27 !important;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.ruts-section-more-btn:hover {
    background: #8b2635;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.2);
}

.ruts-section-more-btn .ruts-more-arrow {
    font-size: 16px;
    line-height: 1;
}

/* ==========================================================================
   15. Template: text-list (รายการคำสั่ง/ประกาศ วันที่ซ้าย + หัวข้อขวา ในกรอบสีขาว)
   ========================================================================== */
.column-wrapper.template-text-list {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    background: #ffffff;
    border: 1px solid #f0e6e6;
    border-radius: 14px;
    padding: 20px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.column-wrapper.template-text-list .column,
.column-wrapper.template-text-list .column2 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.column-wrapper.template-text-list .custom-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    overflow: visible !important;
}

.column-wrapper.template-text-list .custom-card .card-body {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 9px 0 !important;
    background: transparent !important;
}

.column-wrapper.template-text-list .ruts-textlist-date {
    flex: 0 0 96px;
    font-size: 14.5px;
    color: #718096;
    font-weight: 400;
    white-space: nowrap;
}

.column-wrapper.template-text-list .ruts-textlist-main {
    flex: 1;
    min-width: 0;
}

.column-wrapper.template-text-list .custom-card .card-body h5 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    line-height: 1.55 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    transition: color 0.2s ease;
}

.column-wrapper.template-text-list .custom-card .card-body a:hover h5 {
    color: #8b2635 !important;
}

@media screen and (max-width: 640px) {
    .column-wrapper.template-text-list {
        padding: 16px 18px;
    }

    .column-wrapper.template-text-list .custom-card .card-body {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0 !important;
        border-bottom: 1px dashed #edf2f7;
    }

    .column-wrapper.template-text-list .column:last-child .custom-card .card-body {
        border-bottom: none;
    }

    .column-wrapper.template-text-list .ruts-textlist-date {
        flex: none;
        font-size: 13px;
    }
}

/* ==========================================================================
   16. Template: hero-split (ข่าวเด่นซ้ายใหญ่ 1 ข่าว + ข่าวย่อยขวาวางซ้อนกัน)
   ========================================================================== */
.column-wrapper.template-hero-split {
    display: grid !important;
    grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
    gap: 28px !important;
    align-items: start;
    background: #ffffff;
    border: 1px solid #f0e6e6;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
}

.column-wrapper.template-hero-split .column,
.column-wrapper.template-hero-split .column2 {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.column-wrapper.template-hero-split > .column:first-child,
.column-wrapper.template-hero-split > .column2:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.column-wrapper.template-hero-split > .column:nth-child(2),
.column-wrapper.template-hero-split > .column:nth-child(3) {
    grid-column: 2;
}

.column-wrapper.template-hero-split .custom-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.column-wrapper.template-hero-split .ruts-card-media-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.column-wrapper.template-hero-split .custom-card img:not(.ruts-sdg-wheel) {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px !important;
    display: block;
    transition: transform 0.35s ease;
}

.column-wrapper.template-hero-split .custom-card:hover img:not(.ruts-sdg-wheel) {
    transform: scale(1.03);
}

.column-wrapper.template-hero-split .category-badge.category-floating {
    top: 12px;
    left: 12px;
    background: rgba(45, 62, 80, 0.9);
    color: #fff !important;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: none;
}

.column-wrapper.template-hero-split .custom-card .card-body {
    padding: 14px 2px 0 !important;
}

.column-wrapper.template-hero-split > .column:first-child .custom-card .card-body h5 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    line-height: 1.45 !important;
    margin: 0 0 8px !important;
}

.column-wrapper.template-hero-split > .column:not(:first-child) .custom-card .card-body h5 {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    line-height: 1.45 !important;
    margin: 0 0 6px !important;
}

.column-wrapper.template-hero-split .custom-card .card-body a:hover h5 {
    color: #8b2635 !important;
}

.column-wrapper.template-hero-split .ruts-slash-date {
    margin: 8px 0 0 !important;
    font-size: 13.5px !important;
    color: #718096 !important;
}

@media screen and (max-width: 991px) {
    .column-wrapper.template-hero-split {
        grid-template-columns: 1fr !important;
        padding: 18px;
        gap: 22px !important;
    }

    .column-wrapper.template-hero-split > .column:first-child,
    .column-wrapper.template-hero-split > .column:nth-child(2),
    .column-wrapper.template-hero-split > .column:nth-child(3) {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}

/* ==========================================================================
   17. Template: newsletter (ปกจุลสาร/วารสารแนวตั้ง A4 เรียง 4 คอลัมน์ ชื่อกึ่งกลาง)
   ========================================================================== */
.column-wrapper.template-newsletter .custom-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.column-wrapper.template-newsletter .ruts-card-media-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.column-wrapper.template-newsletter .custom-card:hover .ruts-card-media-wrap {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.column-wrapper.template-newsletter .custom-card img:not(.ruts-sdg-wheel) {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover;
    border-radius: 14px !important;
    display: block;
}

.column-wrapper.template-newsletter .custom-card .card-body {
    padding: 14px 6px 4px !important;
    text-align: center;
    background: transparent !important;
}

.column-wrapper.template-newsletter .custom-card .card-body h5 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: center;
    line-height: 1.4 !important;
    transition: color 0.2s ease;
}

.column-wrapper.template-newsletter .custom-card .card-body a:hover h5 {
    color: #8b2635 !important;
}

/* ==========================================================================
   18. Template: calendar-list (รายการประกาศพร้อมป้ายปฏิทิน วัน/เดือน + ป้าย NEW)
   ========================================================================== */
.column-wrapper.template-calendar-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0, 21, 75, 0.04);
}

.column-wrapper.template-calendar-list > .column,
.column-wrapper.template-calendar-list > .column2 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 14px 0 !important;
    border-bottom: 1px dashed #e2e8f0;
}

.column-wrapper.template-calendar-list > .column:last-child,
.column-wrapper.template-calendar-list > .column2:last-child {
    padding-bottom: 0 !important;
    border-bottom: none;
}

.column-wrapper.template-calendar-list .custom-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.column-wrapper.template-calendar-list .custom-card .card-body {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 4px 0 !important;
}

.ruts-cal-badge {
    flex: 0 0 68px;
    width: 68px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 21, 75, 0.08);
    transition: transform 0.25s ease;
}

.column-wrapper.template-calendar-list .custom-card:hover .ruts-cal-badge {
    transform: translateY(-2px);
    border-color: #00154b;
}

.ruts-cal-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #00154b;
    line-height: 1.25;
    padding: 6px 4px 4px;
    background: #ffffff;
}

.ruts-cal-month {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #00154b 0%, #003d99 100%);
    padding: 3px 4px;
    line-height: 1.3;
}

.ruts-cal-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ruts-cal-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.ruts-new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
}

.column-wrapper.template-calendar-list .ruts-cal-main h5 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.5 !important;
    transition: color 0.2s ease;
}

.column-wrapper.template-calendar-list .ruts-cal-main a:hover h5 {
    color: #003d99 !important;
}

/* ==========================================================================
   19. Template: bento (Bento Grid 5 ข่าว — ซ้ายใหญ่ 1 + ขวาตาราง 4 ข่าว)
   ========================================================================== */
.column-wrapper.template-bento {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0, 21, 75, 0.04);
}

.column-wrapper.template-bento > .column,
.column-wrapper.template-bento > .column2 {
    width: 100% !important;
    margin: 0 !important;
}

.column-wrapper.template-bento > .column:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.column-wrapper.template-bento .custom-card {
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.column-wrapper.template-bento .custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 21, 75, 0.1) !important;
}

.column-wrapper.template-bento .ruts-card-media-wrap {
    overflow: hidden;
}

.column-wrapper.template-bento .custom-card img:not(.ruts-sdg-wheel) {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.column-wrapper.template-bento > .column:first-child .custom-card img:not(.ruts-sdg-wheel) {
    aspect-ratio: 16 / 11;
}

.column-wrapper.template-bento .custom-card:hover img:not(.ruts-sdg-wheel) {
    transform: scale(1.04);
}

.column-wrapper.template-bento .custom-card .card-body {
    padding: 14px 16px !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.column-wrapper.template-bento > .column:first-child .custom-card .card-body h5 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    margin: 0 0 8px !important;
    color: #0f172a !important;
}

.column-wrapper.template-bento > .column:not(:first-child) .custom-card .card-body h5 {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin: 0 0 6px !important;
    color: #0f172a !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-wrapper.template-bento .ruts-slash-date {
    margin: auto 0 0 !important;
    padding-top: 6px;
    font-size: 12.5px !important;
    color: #64748b !important;
}

@media screen and (max-width: 991px) {
    .column-wrapper.template-bento {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .column-wrapper.template-bento > .column:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media screen and (max-width: 600px) {
    .column-wrapper.template-bento {
        grid-template-columns: 1fr !important;
    }
    .column-wrapper.template-bento > .column:first-child {
        grid-column: span 1;
    }
}

/* ==========================================================================
   20. Shortcode [ruts_api_tabs] / template="tabs" (สลับแท็บหมวดหมู่ในกล่องเดียว)
   ========================================================================== */
.ruts-tabs-container {
    margin-bottom: 28px;
}

.ruts-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.ruts-tab-trigger {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.ruts-tab-trigger:hover {
    border-color: #00154b;
    color: #00154b;
    background: #f8fafc;
}

.ruts-tab-trigger.active {
    background: linear-gradient(135deg, #00154b 0%, #003d99 100%);
    color: #ffffff;
    border-color: #00154b;
    box-shadow: 0 4px 12px rgba(0, 21, 75, 0.22);
}

/* ==========================================================================
   21. Template: carousel (สไลด์การ์ดข่าวเลื่อนซ้าย-ขวาอัตโนมัติ)
   ========================================================================== */
.column-wrapper.template-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px !important;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.column-wrapper.template-carousel::-webkit-scrollbar {
    display: none;
}

.column-wrapper.template-carousel > .column,
.column-wrapper.template-carousel > .column2 {
    flex: 0 0 calc(33.333% - 14px) !important;
    scroll-snap-align: start;
    margin: 0 !important;
}

.column-wrapper.template-carousel.desktop-col-4 > .column,
.column-wrapper.template-carousel.desktop-col-4 > .column2 {
    flex: 0 0 calc(25% - 15px) !important;
}

.column-wrapper.template-carousel.desktop-col-2 > .column,
.column-wrapper.template-carousel.desktop-col-2 > .column2 {
    flex: 0 0 calc(50% - 10px) !important;
}

@media screen and (max-width: 1024px) {
    .column-wrapper.template-carousel > .column,
    .column-wrapper.template-carousel > .column2 {
        flex: 0 0 calc(50% - 10px) !important;
    }
}

@media screen and (max-width: 640px) {
    .column-wrapper.template-carousel > .column,
    .column-wrapper.template-carousel > .column2 {
        flex: 0 0 100% !important;
    }
}

.ruts-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 26px;
}

.ruts-carousel-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #00154b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ruts-carousel-arrow:hover {
    background: #00154b;
    color: #ffffff;
    border-color: #00154b;
}

.ruts-carousel-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ruts-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: #cbd5e1;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ruts-carousel-dot.active {
    width: 26px;
    background: #00154b;
}

/* ==========================================================================
   22. Template: ticker (แถบข่าวด่วนวิ่งแนวนอน Breaking News Bar)
   ========================================================================== */
.ruts-ticker-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    margin: 14px 0 22px;
    box-shadow: 0 4px 14px rgba(0, 21, 75, 0.06);
    overflow: hidden;
}

.ruts-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00154b 0%, #003d99 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ruts-ticker-pulse {
    width: 8px;
    height: 8px;
    background: #f5b400;
    border-radius: 50%;
    display: inline-block;
    animation: rutsPulseDot 1.6s infinite;
}

@keyframes rutsPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.55; }
}

.ruts-ticker-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    margin: 0 14px;
    position: relative;
}

.ruts-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 14px;
    animation: rutsMarquee 38s linear infinite;
}

.ruts-ticker-bar:hover .ruts-ticker-track {
    animation-play-state: paused;
}

@keyframes rutsMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ruts-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #1e293b !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ruts-ticker-item:hover {
    color: #003d99 !important;
}

.ruts-ticker-date {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.ruts-ticker-sep {
    color: #cbd5e1;
    font-weight: 700;
}

.ruts-ticker-more {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #00154b !important;
    text-decoration: none !important;
    white-space: nowrap;
}

/* ==========================================================================
   23. Shortcode [ruts_kinetic_hero] / template="kinetic-3d" & "programs"
       (สไตล์เว็บ arch.rmutsv.ac.th — 3D Blueprint Grid & Scroll Tunnel)
   ========================================================================== */
.ruts-tunnel-track {
    position: relative;
    height: 300vh;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.ruts-tunnel-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    width: 100vw !important;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f5f5f7 62%, #ececef 100%);
    color: #000000;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
}

.ruts-kinetic-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
}

.ruts-tunnel-dots {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
}

.ruts-tunnel-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.12) 0%, rgba(0, 0, 0, 0.03) 52%, transparent 75%);
}

.ruts-tunnel-bottom-fade {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 95px;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
}

.ruts-tunnel-ring-1 {
    pointer-events: none;
    position: absolute;
    z-index: 3;
    width: 56vmin;
    height: 56vmin;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.ruts-tunnel-ring-2 {
    pointer-events: none;
    position: absolute;
    z-index: 3;
    width: 82vmin;
    height: 82vmin;
    border-radius: 50%;
    border: 1.5px dashed var(--ruts-kinetic-accent, #FF6600);
    opacity: 0.55;
}

.ruts-tunnel-center-text {
    pointer-events: none;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 2.5rem;
    max-width: min(64rem, 94vw);
    border-radius: 2.5rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 22%, rgba(255, 255, 255, 0) 76%);
    will-change: transform, opacity;
}

.ruts-tunnel-badge {
    display: inline-block;
    margin-bottom: 1.05rem;
    padding: 0.42rem 1.45rem;
    border-radius: 999px;
    background: var(--ruts-kinetic-accent, #FF6600);
    font-size: clamp(0.88rem, 1.5vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35);
}

.ruts-tunnel-logo {
    width: clamp(220px, 38vw, 480px) !important;
    max-width: 85vw !important;
    height: auto !important;
    margin: 0 0 0.85rem 0 !important;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.1));
}

.ruts-tunnel-title {
    font-size: clamp(2.2rem, 5.8vw, 4.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.08 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 42%, var(--ruts-kinetic-accent, #FF6600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.ruts-tunnel-desc {
    margin: 0.9rem 0 0 0 !important;
    max-width: 90vw;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem) !important;
    font-weight: 400;
    line-height: 1.65;
    color: #262626 !important;
}

.ruts-tunnel-prompt {
    pointer-events: none;
    position: absolute;
    bottom: clamp(1.1rem, 3vh, 1.85rem);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000000;
    will-change: opacity;
}

.ruts-tunnel-prompt-line {
    height: 1.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--ruts-kinetic-accent, #FF6600), #000000, transparent);
}

.ruts-tunnel-stage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    perspective: 1200px;
    transform-style: preserve-3d;
    z-index: 20;
}

.ruts-tunnel-card {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(160px, 17vw, 245px);
    aspect-ratio: 4 / 5;
    will-change: transform, opacity;
    cursor: pointer;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translate3d(-50%, -50%, -1700px);
}

.ruts-tunnel-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background: #000000;
    box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(0, 0, 0, 0.15);
    transition: border-color 0.35s, box-shadow 0.35s;
}

.ruts-tunnel-card-inner:hover {
    border-color: var(--ruts-kinetic-accent, #FF6600);
    box-shadow: 0 25px 50px -12px rgba(255, 102, 0, 0.55);
}

.ruts-tunnel-card-inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruts-tunnel-card-inner:hover img {
    transform: scale(1.1);
}

.ruts-tunnel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 0.9rem;
}

.ruts-tunnel-card-label {
    font-size: clamp(0.72rem, 1.1vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    border-left: 3px solid var(--ruts-kinetic-accent, #FF6600);
    padding-left: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Template: programs (สไตล์หลักสูตรที่เปิดสอน arch.rmutsv.ac.th) */
.ruts-programs-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #FF6600;
}

.column-wrapper.template-programs .custom-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.column-wrapper.template-programs .ruts-card-media-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}

.column-wrapper.template-programs .custom-card:hover .ruts-card-media-wrap {
    transform: translateY(-6px);
    border-color: #FF6600;
    box-shadow: 0 16px 32px -8px rgba(255, 102, 0, 0.25);
}

.column-wrapper.template-programs .custom-card .card-body {
    padding: 12px 4px 0 !important;
}

.column-wrapper.template-programs .custom-card .card-body h5 {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 0 0 6px !important;
    transition: color 0.25s ease;
}

.column-wrapper.template-programs .custom-card:hover .card-body h5 {
    color: #FF6600 !important;
}

/* [ruts_programs] — ส่วนหลักสูตรที่เปิดสอน / บริการหลัก (รูปแบบเดียวกับ arch.rmutsv.ac.th แก้ไขเป็นของตัวเองได้) */
.ruts-arch-programs-section {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: transparent;
    color: #18181b;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.ruts-arch-programs-container {
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.ruts-arch-programs-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruts-arch-programs-section.is-visible .ruts-arch-programs-header {
    opacity: 1;
    transform: translateY(0);
}

.ruts-arch-programs-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ruts-kinetic-accent, #FF6600);
}

.ruts-arch-programs-heading {
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #111111;
    margin: 0 !important;
}

.ruts-arch-programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
}

@media (min-width: 640px) {
    .ruts-arch-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ruts-arch-programs-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ruts-arch-programs-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .ruts-arch-programs-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.65rem;
    }
}

.ruts-arch-program-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruts-arch-programs-section.is-visible .ruts-arch-program-card {
    opacity: 1;
    transform: translateY(0);
}

.ruts-arch-program-thumb {
    position: relative;
    width: 100%;
    max-width: 230px;
    margin: 0 auto 0.45rem auto;
    border-radius: 0.65rem;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}

.ruts-arch-program-card:hover .ruts-arch-program-thumb {
    transform: translateY(-5px);
    border-color: var(--ruts-kinetic-accent, #FF6600);
    box-shadow: 0 16px 32px -8px rgba(255, 102, 0, 0.25);
}

.ruts-arch-program-thumb img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruts-arch-program-card:hover .ruts-arch-program-thumb img {
    transform: scale(1.03);
}

.ruts-arch-program-card-title {
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111111;
    margin: 0 !important;
    line-height: 1.38;
    transition: color 0.25s;
}

.ruts-arch-program-card:hover .ruts-arch-program-card-title {
    color: var(--ruts-kinetic-accent, #FF6600);
}

.ruts-arch-program-card-desc {
    font-size: 0.85rem;
    line-height: 1.58;
    color: #52525b;
    margin: 0 !important;
    font-weight: 400;
}

/* ????????????????????????? ??????????????????? Footer ??? Widget */
body, p, a, li, .widget, .footer, .textwidget {
    font-family: var(--e-global-typography-text-font-family, 'Sarabun'), 'Prompt', sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .widget-title {
    font-family: var(--e-global-typography-primary-font-family, 'Sarabun'), 'Prompt', sans-serif !important;
}
