
/* ===== HERO CARDS ===== */
.app-ry-hero {
    margin-bottom: 1.5rem;
}
.app-ry-hero-header {
    margin-bottom: 0.5rem;
}
.app-ry-hero-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.app-ry-hero-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}
.app-ry-hero-card {
    position: relative;
    min-width: 260px;
    max-width: 320px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(15,23,42,.25);
    scroll-snap-align: start;
}
.app-ry-hero-card-inner {
    position: relative;
    height: 100%;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(15,23,42,.7);
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

.app-ry-hero-no-overlay .app-ry-hero-card-inner {
    background: none;
    text-shadow: none;
}
.app-ry-hero-no-overlay .app-ry-hero-card-title,
.app-ry-hero-no-overlay .app-ry-hero-card-subtitle {
    text-shadow: none;
}
.app-ry-hero-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #f97316;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.app-ry-hero-card-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.app-ry-hero-card-subtitle {
    font-size: 0.8rem;
    margin: 0 0 6px 0;
}
.app-ry-hero-card-button {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(15,23,42,.35);
}

/* ===== CTA BUTTON ===== */
.app-ry-cta-wrapper {
    margin: 1rem 0;
}
.app-ry-cta-button {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.app-ry-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.app-ry-cta-main {
    line-height: 1.1;
}
.app-ry-cta-sub {
    font-size: 0.8rem;
    opacity: 0.9;
}


.app-ry-cta-align-left .app-ry-cta-button {
    width: auto;
    padding-left: 24px;
    padding-right: 24px;
    margin-right: auto;
}
.app-ry-cta-align-center .app-ry-cta-button {
    width: 100%;
}
.app-ry-cta-align-right .app-ry-cta-button {
    width: auto;
    padding-left: 24px;
    padding-right: 24px;
    margin-left: auto;
}
/* ===== LINK CARDS ===== */
.app-ry-links {
    margin: 1.5rem 0;
}
.app-ry-links-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.app-ry-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
@media (max-width: 768px) {
    .app-ry-links-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

.app-ry-link-card {
    border-radius: 16px;
    padding: 10px 8px;
    background: linear-gradient(135deg, #e0f2fe, #eff6ff);
    color: #0f172a;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15,23,42,.18);
}
.app-ry-link-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.app-ry-link-image {
    width: 100%;
}
.app-ry-link-image img {
    width: 100%;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}
.app-ry-link-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
.app-ry-link-subtitle {
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.9;
}
.app-ry-link-icon-placeholder,
.app-ry-link-image-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(148,163,184,.25);
}


/* ===== ARTICLES ===== */
.app-ry-articles {
    margin: 1.5rem 0 2rem;
}
.app-ry-articles-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.app-ry-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.app-ry-articles-cols-2 .app-ry-articles-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.app-ry-articles-cols-3 .app-ry-articles-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 768px) {
    .app-ry-articles-cols-3 .app-ry-articles-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

.app-ry-article-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: 0 10px 24px rgba(15,23,42,.16);
}
.app-ry-article-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.app-ry-article-thumb img,
.app-ry-article-thumb-placeholder {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #e5e7eb;
}
.app-ry-article-thumb-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
}
.app-ry-article-body {
    padding: 10px 12px 12px;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
}
.app-ry-article-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #0f172a;
}
.app-ry-article-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}
.app-ry-article-excerpt {
    font-size: 0.8rem;
    color: #374151;
}

.app-ry-articles-more-wrapper {
    text-align: center;
    margin-top: 0.75rem;
}
.app-ry-articles-load-more {
    border-radius: 999px;
    border: none;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #0f6ad8;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15,23,42,.28);
}
.app-ry-articles-load-more[disabled] {
    opacity: 0.5;
    cursor: default;
}

/* empty text */
.app-ry-articles-empty {
    font-size: 0.85rem;
    color: #6b7280;
}
