/* --- ASTRA THEME OVERRIDE (page-builder full-width) --- */
.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.ast-page-builder-template .site-content #primary {
    width: 100% !important;
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}
.ast-page-builder-template .site-content .entry-content {
    margin: 0 !important;
}
.ast-page-builder-template .entry-header.ast-no-title {
    margin: 0 !important;
}

/* ============================================================
   RESIDENCIAS MÉDICAS — Design System
   Aesthetic: HTML Skill Library (premium, fluid, animated)
   Palette: RM navy/turquoise/coral
   ============================================================ */

/* ─── DESIGN TOKENS ────────────────────────────────────── */
:root {
    /* Core Palette */
    --rm-navy: #1a3a5c;
    --rm-navy-light: #2a4a6c;
    --rm-navy-dark: #0f1b2d;
    --rm-turquoise: #2ab7b7;
    --rm-turquoise-dark: #1a8f8f;
    --rm-turquoise-light: #3fd4d4;
    --rm-coral: #e86c4f;
    --rm-coral-dark: #c45a3f;
    --rm-coral-light: #f08060;

    /* Extended Grays */
    --rm-gray-50: #fafafa;
    --rm-gray-100: #f8f8f7;
    --rm-gray-200: #e8e6e3;
    --rm-gray-300: #d0cec8;
    --rm-gray-400: #a8a6a0;
    --rm-gray-500: #8a8880;
    --rm-gray-600: #6a6860;
    --rm-gray-700: #4a4840;
    --rm-gray-800: #2a2820;

    /* Semantic */
    --rm-bg: #ffffff;
    --rm-bg-alt: var(--rm-gray-50);
    --rm-text: var(--rm-gray-800);
    --rm-text-muted: var(--rm-gray-600);
    --rm-text-light: var(--rm-gray-400);
    --rm-border: var(--rm-gray-200);

    /* Fluid Typography */
    --rm-text-hero: clamp(1.75rem, 4vw, 3rem);
    --rm-text-h2: clamp(1.3rem, 3vw, 2rem);
    --rm-text-h3: clamp(1.05rem, 2vw, 1.35rem);
    --rm-text-body: clamp(0.875rem, 1.3vw, 1rem);
    --rm-text-small: clamp(0.75rem, 1vw, 0.875rem);
    --rm-text-xs: clamp(0.65rem, 0.9vw, 0.75rem);

    /* Layered Shadows */
    --rm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --rm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --rm-shadow-md: 0 4px 16px rgba(26, 58, 92, 0.08);
    --rm-shadow-lg: 0 8px 30px rgba(26, 58, 92, 0.1);
    --rm-shadow-xl: 0 16px 48px rgba(26, 58, 92, 0.12);
    --rm-shadow-glow-turquoise: 0 6px 24px rgba(42, 183, 183, 0.25);
    --rm-shadow-glow-coral: 0 6px 24px rgba(232, 108, 79, 0.3);

    /* Border Radius */
    --rm-radius-sm: 8px;
    --rm-radius: 12px;
    --rm-radius-lg: 16px;
    --rm-radius-pill: 50px;

    /* Transitions */
    --rm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --rm-duration-fast: 0.2s;
    --rm-duration: 0.3s;
    --rm-duration-slow: 0.4s;

    /* Z-index scale */
    --rm-z-badge: 10;
    --rm-z-header: 100;
    --rm-z-overlay: 500;
    --rm-z-modal: 1000;
}


/* ─── TYPOGRAPHY ───────────────────────────────────────── */
.rm-sc h1, .rm-sc h2, .rm-sc h3,
.rm-sc .rm-hero__title,
.rm-sc .rm-section-badge,
.rm-sc .rm-catmod__header-title {
    font-family: 'Montserrat', 'Inter', -apple-system, sans-serif;
}

.rm-sc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rm-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.rm-sc *, .rm-sc *::before, .rm-sc *::after {
    box-sizing: border-box;
}


/* ─── SECTION BADGE (pill header) ──────────────────────── */
.rm-sc .rm-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--rm-turquoise), var(--rm-turquoise-dark));
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: var(--rm-radius-pill);
    margin-bottom: 12px;
}


/* ─── SECTION HEADER ───────────────────────────────────── */
.rm-sc .rm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--rm-gray-200);
    position: relative;
}

.rm-sc .rm-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--rm-coral), var(--rm-turquoise));
    border-radius: 2px;
}

.rm-sc .rm-section-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-sc .rm-section-header__bar {
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--rm-coral), var(--rm-turquoise));
    flex-shrink: 0;
}

.rm-sc .rm-section-header__title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--rm-text-h3);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rm-navy);
}

.rm-sc .rm-section-header__link {
    font-size: var(--rm-text-small);
    font-weight: 600;
    text-decoration: none;
    color: var(--rm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-section-header__link:hover {
    color: var(--rm-turquoise);
}


/* ─── SCROLL ANIMATION ─────────────────────────────────── */
.rm-sc .rm-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--rm-duration-slow) var(--rm-ease),
                transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(1) { transition-delay: 0.05s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(2) { transition-delay: 0.1s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(3) { transition-delay: 0.15s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(4) { transition-delay: 0.2s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(5) { transition-delay: 0.25s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(6) { transition-delay: 0.3s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(7) { transition-delay: 0.35s; }
.rm-sc .rm-animate-stagger > .rm-animate:nth-child(8) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .rm-sc .rm-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ─── CATEGORY BADGE ───────────────────────────────────── */
.rm-sc .rm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.5;
    width: max-content;
}

.rm-sc .rm-badge--pill {
    border-radius: var(--rm-radius-pill);
    padding: 4px 14px;
}

.rm-sc .rm-badge--subtle {
    background: rgba(42, 183, 183, 0.1);
    color: var(--rm-turquoise);
}


/* ─── HERO SECTION ─────────────────────────────────────── */
.rm-sc .rm-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border-radius: var(--rm-radius-lg);
    min-height: 420px;
}

.rm-sc .rm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15, 27, 45, 0.88) 0%,
        rgba(26, 58, 92, 0.72) 50%,
        rgba(26, 48, 80, 0.55) 100%);
    pointer-events: none;
}

/* Atmospheric glow (HTML Skill pattern) */
.rm-sc .rm-hero__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(42, 183, 183, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(232, 108, 79, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.rm-sc .rm-hero__content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    max-width: 65%;
}

.rm-sc .rm-hero__badge {
    display: inline-block;
    background: rgba(42, 183, 183, 0.2);
    border: 1px solid rgba(42, 183, 183, 0.35);
    color: var(--rm-turquoise-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: var(--rm-radius-pill);
    margin-bottom: 16px;
    text-decoration: none;
}

.rm-sc .rm-hero__title {
    font-size: var(--rm-text-hero);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin: 0 0 14px;
}

.rm-sc .rm-hero__title a {
    color: inherit;
    text-decoration: none;
}

.rm-sc .rm-hero__excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--rm-text-body);
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 520px;
}

.rm-sc .rm-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rm-coral), var(--rm-coral-dark));
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--rm-radius-pill);
    text-decoration: none;
    transition: all var(--rm-duration) var(--rm-ease);
    box-shadow: var(--rm-shadow-glow-coral);
    letter-spacing: 0.3px;
}

.rm-sc .rm-hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(232, 108, 79, 0.4);
}

.rm-sc .rm-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--rm-text-xs);
    font-weight: 600;
    margin-top: 16px;
}


/* ─── GRID CARDS ───────────────────────────────────────── */
.rm-sc .rm-grid {
    display: grid;
    gap: 28px;
    margin-top: 24px;
}

.rm-sc .rm-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.rm-sc .rm-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.rm-sc .rm-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.rm-sc .rm-grid-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: transform var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-grid-card__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-sm);
    margin-bottom: 14px;
}

.rm-sc .rm-grid-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-grid-card:hover .rm-grid-card__image img {
    transform: scale(1.06);
}

.rm-sc .rm-grid-card__image .rm-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: var(--rm-z-badge);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rm-sc .rm-grid-card__image-link {
    display: block;
    padding-bottom: 60%; /* ~5:3 aspect ratio */
    position: relative;
}

.rm-sc .rm-grid-card__image-link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rm-sc .rm-grid-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--rm-text-xs);
    font-weight: 700;
    color: var(--rm-text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-sc .rm-grid-card__title {
    font-size: var(--rm-text-h3);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
}

.rm-sc .rm-grid-card__title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-grid-card__title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-grid-card__excerpt {
    font-size: var(--rm-text-small);
    color: var(--rm-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── FEED CARDS (horizontal list) ─────────────────────── */
.rm-sc .rm-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rm-sc .rm-feed-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rm-gray-200);
    transition: transform var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-feed-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rm-sc .rm-feed-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--rm-radius);
    width: 260px;
    flex-shrink: 0;
    box-shadow: var(--rm-shadow-sm);
}

.rm-sc .rm-feed-card__thumb a {
    display: block;
    padding-bottom: 66%; /* 3:2 */
    position: relative;
}

.rm-sc .rm-feed-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-feed-card:hover .rm-feed-card__thumb img {
    transform: scale(1.06);
}

.rm-sc .rm-feed-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-sc .rm-feed-card__title {
    font-size: var(--rm-text-h3);
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-feed-card__title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-feed-card__title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-feed-card__excerpt {
    font-size: var(--rm-text-small);
    color: var(--rm-text-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-feed-card__meta {
    display: flex;
    gap: 6px;
    font-size: var(--rm-text-xs);
    color: var(--rm-text-light);
    font-weight: 600;
}

.rm-sc .rm-feed-card__link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: var(--rm-text-small);
    text-decoration: none;
    color: var(--rm-turquoise);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--rm-duration-fast) var(--rm-ease);
    margin-top: auto;
}

.rm-sc .rm-feed-card__link:hover {
    opacity: 0.7;
}


/* ─── CATMOD (Category Module) ─────────────────────────── */
.rm-sc .rm-catmod {
    margin-bottom: 32px;
}

.rm-sc .rm-catmod__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-radius: var(--rm-radius-lg);
    margin-bottom: 24px;
    gap: 16px;
    color: white;
}

.rm-sc .rm-catmod__header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.rm-sc .rm-catmod__header-icon {
    flex-shrink: 0;
    font-size: 1.4rem;
    opacity: 0.9;
}

.rm-sc .rm-catmod__header-title {
    margin: 0;
    font-size: var(--rm-text-h3);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.rm-sc .rm-catmod__header-subtitle {
    margin: 3px 0 0;
    font-size: var(--rm-text-xs);
    opacity: 0.85;
    font-weight: 400;
}

.rm-sc .rm-catmod__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--rm-radius-pill);
    background: rgba(255, 255, 255, 0.95);
    color: var(--rm-navy);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--rm-duration-fast) var(--rm-ease);
    white-space: nowrap;
}

.rm-sc .rm-catmod__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.rm-sc .rm-catmod__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rm-sc .rm-catmod__card {
    display: flex;
    background: white;
    border-radius: var(--rm-radius);
    overflow: hidden;
    border: 1.5px solid var(--rm-gray-200);
    transition: all var(--rm-duration) var(--rm-ease);
    align-items: stretch;
}

.rm-sc .rm-catmod__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rm-shadow-lg);
    border-color: var(--rm-turquoise);
}

.rm-sc .rm-catmod__card-thumb {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.rm-sc .rm-catmod__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rm-duration-slow) var(--rm-ease);
}

.rm-sc .rm-catmod__card:hover .rm-catmod__card-thumb img {
    transform: scale(1.06);
}

.rm-sc .rm-catmod__card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.rm-sc .rm-catmod__card-title {
    margin: 0;
    font-size: var(--rm-text-body);
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-catmod__card-title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-catmod__card-title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-catmod__card-excerpt {
    font-size: var(--rm-text-xs);
    color: var(--rm-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-sc .rm-catmod__card-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: var(--rm-text-xs);
    text-decoration: none;
    color: var(--rm-coral);
    letter-spacing: 0.02em;
    transition: opacity var(--rm-duration-fast) var(--rm-ease);
    margin-top: auto;
}

.rm-sc .rm-catmod__card-link:hover {
    opacity: 0.7;
}


/* ─── POPULAR POSTS (sidebar) ──────────────────────────── */
.rm-sc .rm-popular {
    padding: 24px;
    background: white;
    border-radius: var(--rm-radius-lg);
    border: 1.5px solid var(--rm-gray-200);
}

.rm-sc .rm-popular__title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--rm-text-small);
    font-weight: 900;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rm-navy);
}

.rm-sc .rm-popular__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rm-sc .rm-popular__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-popular__item:hover {
    transform: translateX(4px);
}

.rm-sc .rm-popular__number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 900;
    border-radius: 8px;
    background: var(--rm-gray-100);
    color: var(--rm-navy);
}

.rm-sc .rm-popular__item:first-child .rm-popular__number {
    background: linear-gradient(135deg, var(--rm-coral), var(--rm-coral-dark));
    color: white;
}

.rm-sc .rm-popular__thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--rm-radius-sm);
    overflow: hidden;
}

.rm-sc .rm-popular__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-popular__item:hover .rm-popular__thumb img {
    transform: scale(1.08);
}

.rm-sc .rm-popular__content {
    flex: 1;
    min-width: 0;
}

.rm-sc .rm-popular__item-title {
    font-size: var(--rm-text-small);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.rm-sc .rm-popular__item-title a {
    color: var(--rm-navy);
    text-decoration: none;
    transition: color var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-popular__item-title a:hover {
    color: var(--rm-turquoise);
}

.rm-sc .rm-popular__item-meta {
    font-size: var(--rm-text-xs);
    color: var(--rm-text-light);
    margin-top: 4px;
    font-weight: 500;
}


/* ─── SHORTS CAROUSEL ──────────────────────────────────── */
.rm-sc .rm-shorts {
    position: relative;
    padding: 0 44px;
}

.rm-sc .rm-shorts .swiper-slide {
    height: auto;
}

.rm-sc .rm-short-card {
    display: block;
    text-decoration: none;
    border-radius: var(--rm-radius);
    overflow: hidden;
    border: 1.5px solid var(--rm-gray-200);
    transition: all var(--rm-duration) var(--rm-ease);
}

.rm-sc .rm-short-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rm-shadow-lg);
    border-color: var(--rm-turquoise);
}

.rm-sc .rm-short-card__thumb {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 */
    background-size: cover;
    background-position: center;
    background-color: var(--rm-gray-100);
}

.rm-sc .rm-short-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rm-navy);
    transition: all var(--rm-duration) var(--rm-ease);
    box-shadow: var(--rm-shadow-md);
}

.rm-sc .rm-short-card:hover .rm-short-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--rm-shadow-lg);
}

.rm-sc .rm-short-card__title {
    display: block;
    padding: 12px 14px;
    font-size: var(--rm-text-small);
    font-weight: 600;
    color: var(--rm-navy);
    background: white;
    line-height: 1.4;
}

.rm-sc .rm-shorts .swiper-button-prev,
.rm-sc .rm-shorts .swiper-button-next {
    color: var(--rm-navy);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: 1.5px solid var(--rm-gray-200);
    box-shadow: var(--rm-shadow-sm);
    transition: all var(--rm-duration-fast) var(--rm-ease);
}

.rm-sc .rm-shorts .swiper-button-prev:hover,
.rm-sc .rm-shorts .swiper-button-next:hover {
    border-color: var(--rm-turquoise);
    box-shadow: var(--rm-shadow-md);
}

.rm-sc .rm-shorts .swiper-button-prev::after,
.rm-sc .rm-shorts .swiper-button-next::after {
    font-size: 13px;
    font-weight: bold;
}

.rm-sc .rm-shorts .swiper-button-prev { left: 0; }
.rm-sc .rm-shorts .swiper-button-next { right: 0; }


/* ─── HOMEPAGE LAYOUT ──────────────────────────────────── */
.rm-sc .rm-home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rm-sc .rm-home-main {
    min-width: 0;
}

.rm-sc .rm-home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rm-sc .rm-section {
    margin-bottom: 40px;
}

.rm-sc .rm-section--full {
    grid-column: 1 / -1;
}


/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .rm-sc .rm-home-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rm-sc .rm-hero__content {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .rm-sc .rm-hero {
        min-height: 340px;
        align-items: stretch;
    }

    .rm-sc .rm-hero__overlay {
        background: linear-gradient(to top,
            rgba(15, 27, 45, 0.95) 0%,
            rgba(26, 58, 92, 0.8) 40%,
            rgba(26, 58, 92, 0.4) 100%) !important;
    }

    .rm-sc .rm-hero__content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 20px;
        max-width: 100%;
    }

    .rm-sc .rm-hero__cta {
        min-height: 44px;
        padding: 12px 24px;
    }

    .rm-sc .rm-grid--cols-2,
    .rm-sc .rm-grid--cols-3,
    .rm-sc .rm-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .rm-sc .rm-feed-card {
        flex-direction: column;
        gap: 12px;
    }

    .rm-sc .rm-feed-card__thumb {
        width: 100%;
    }

    .rm-sc .rm-catmod__grid {
        grid-template-columns: 1fr;
    }

    .rm-sc .rm-catmod__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rm-sc .rm-catmod__cta {
        align-self: flex-end;
    }

    .rm-sc .rm-shorts {
        padding: 0;
    }

    .rm-sc .rm-shorts .swiper-button-prev,
    .rm-sc .rm-shorts .swiper-button-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .rm-sc .rm-hero__badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .rm-sc .rm-grid-card__title {
        font-size: var(--rm-text-body);
    }

    .rm-sc .rm-catmod__card {
        flex-direction: column;
    }

    .rm-sc .rm-catmod__card-thumb {
        width: 100%;
        height: 160px;
    }
}


/* ─── NO POSTS FALLBACK ────────────────────────────────── */
.rm-sc .rm-no-posts {
    padding: 40px;
    text-align: center;
    background: var(--rm-gray-50);
    border-radius: var(--rm-radius);
    color: var(--rm-text-muted);
    font-size: var(--rm-text-body);
    border: 1.5px dashed var(--rm-gray-300);
}
