/* Resources UI composes the existing main.css palette, fonts, buttons and footer. */
.resources-page { line-height: 1.5; background: #fff; }
.resources-page * { box-sizing: border-box; }
.resources-page [hidden] { display: none !important; }
.resources-page #resources-main { padding-top: 92.2px; min-height: 65vh; }
.resources-page :where(#resources-main, .rh-dialog) :is(button, input, select) { font: inherit; }
.resources-page button { cursor: pointer; }
.resources-page button:disabled { opacity: .55; cursor: not-allowed; }
.resources-page :focus-visible { outline: 3px solid #9a5a00; outline-offset: 4px; }
.rh-container { width: min(100% - 40px, 1170px); margin-inline: auto; }
.rh-section { padding-block: 80px; }
.rh-title { font-family: 'Tajawal', sans-serif; font-size: 52px; font-weight: 800; line-height: 1.08; color: #27333b; margin: 0; }
.rh-section-heading { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; margin-bottom: 50px; }
.rh-section-heading > p { margin: 0; max-width: 650px; line-height: 1.5; }
.rh-sr-only, .rh-hero-copy { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rh-skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; z-index: 3000; background: #27333b; color: #fff; }
.rh-skip-link:focus { top: 12px; }
.rh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--primary); border-radius: 50px; padding: 12px 26px; min-height: 44px; background: var(--primary); color: #1e1c1b; font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none; text-align: center; transition: background .3s, color .3s, border-color .3s; }
.rh-button:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.rh-button--outline { background: #fff; }
.rh-badge { display: inline-block; border-radius: 30px; background: var(--primary); color: #1e1c1b; padding: 5px 18px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.rh-hero { position: relative; background: #fff8f1; }
.rh-hero-visual { overflow: hidden; }
.rh-hero-video { display: block; width: 100%; aspect-ratio: 3403 / 1041; object-fit: cover; }
.rh-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 26px; }
.rh-category-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid var(--primary); border-radius: 20px; padding: 42px 26px 22px; color: var(--primary-dark); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.rh-category-card:hover { transform: translateY(-4px); box-shadow: -5px 12px 30px #54360012; color: var(--primary-dark); }
.rh-category-icon { display: flex; align-items: center; justify-content: center; position: absolute; top: -28px; left: 26px; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 26px; font-weight: 700; }
.rh-category-icon svg { width: 28px; height: 28px; }
.rh-category-card h3 { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 26px; margin: 0 0 8px; line-height: 1.15; }
.rh-category-card p { margin: 0 0 14px; font-size: 16px; }
.rh-category-link { margin-top: auto; display: flex; gap: 6px; align-items: center; font-size: 14px; color: #FF6816; font-weight: 500; }
.rh-trending { padding-top: 16px; }
.rh-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; align-items: stretch; }
.rh-card { min-width: 0; border-radius: 20px; overflow: hidden; background: var(--primary-light); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.rh-card:hover { transform: translateY(-3px); box-shadow: -6px 16px 40px #00000012; }
.rh-card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.rh-card-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rh-card:hover .rh-card-image > img { transform: scale(1.035); }
.rh-card-date { position: absolute; top: 14px; right: 14px; background: #ffa600; color: #fff; border-radius: 50px; font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 300; line-height: 1.2; padding: 8px 14px; }
.rh-card-play { position: absolute; left: 18px; bottom: 16px; background: var(--primary); color: #fff; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.rh-card-body { padding: 24px 26px 28px; flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; }
.rh-card-type { color: #FF6816; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.rh-card h3 { font-family: 'Tajawal', sans-serif; font-size: 26px; line-height: 1.16; font-weight: 700; margin: 0 0 12px; }
.rh-card h3 a { font: inherit; color: var(--primary-dark); text-decoration: none; }
.rh-card h3 a:hover { color: #a94b0a; }
.rh-card p { font-size: 15px; line-height: 1.55; margin: 0; }
.rh-card-status { display: block; font-size: 12px; padding-top: 18px; margin-top: auto; color: #70675e; }
.rh-search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--primary); border-radius: 40px; padding: 4px 10px 4px 4px; min-height: 44px; background: #fff; width: 100%; }
.rh-search button { display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 50%; width: 34px; height: 34px; padding: 5px; background: var(--primary); transition: background .3s; }
.rh-search button:hover { background: #1e1c1b; }
.rh-search button img { width: 24px; height: 24px; }
.rh-search input { border: 0; padding: 4px 0; width: 100%; min-width: 0; background: transparent; color: var(--primary-dark); font-size: 16px; line-height: 1.4; }
.rh-search input:focus { outline: none; }
.rh-search:focus-within { box-shadow: 0 0 0 3px #ffa60033; }
.rh-search-clear { color: #59504a; padding: 0 8px; font-size: 24px; text-decoration: none; }
.rh-breadcrumbs { margin: 0 0 38px; font-size: 16px; }
.rh-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.rh-breadcrumbs li { display: inline-flex; gap: 8px; align-items: baseline; }
.rh-breadcrumbs li:not(:last-child)::after { content: '›'; color: #6a625b; }
.rh-breadcrumbs a { color: var(--paragraph-gray); text-decoration: none; }
.rh-breadcrumbs a:hover { color: #a94b0a; }
.rh-breadcrumbs [aria-current] { color: #FFA600; }
.rh-listing { padding-top: 58px; }
.rh-list-toolbar { display: flex; gap: 28px; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.rh-list-toolbar .rh-search { flex: 0 1 320px; }
.rh-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.rh-filter { display: inline-flex; align-items: center; justify-content: center; border-radius: 30px; padding: 9px 23px; background: #f4f4f4; color: #535353; text-decoration: none; font-size: 16px; font-weight: 600; transition: background .3s; }
.rh-filter:hover { background: #fff1d7; color: #1e1c1b; }
.rh-filter.is-active { background: #FFA600; color: #fff; }
.rh-results-note { margin-bottom: 25px; }
.rh-empty { grid-column: 1 / -1; padding: 64px 24px; border-radius: 20px; background: #f7f4f2; text-align: center; }
.rh-empty h2, .rh-empty h3 { font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 32px; }
.rh-empty p { margin-bottom: 25px; }
.rh-input { display: block; width: 100%; min-width: 0; border: 1px solid #d5cdc4; border-radius: 30px; padding: 12px 18px; background: #fff; color: var(--primary-dark); min-height: 46px; line-height: 1.4; }
.rh-field { min-width: 0; }
.rh-field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 600; }
.rh-field label span { color: #a13d08; }
.rh-field--wide { grid-column: 1 / -1; }
.rh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.rh-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.5; }
.rh-check input { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.rh-check a { color: #985000; }
.rh-preview-note { font-size: 12px; color: #7a7169; line-height: 1.5; }
.rh-form-status { margin: 6px 0 0; padding: 10px 12px; border: 1px solid #b7dfc4; border-radius: 12px; background: #f3fbf6; font-size: 13px; color: #3a6844; }
.rh-form-status:empty { display: none; }
.rh-form-status[role="alert"] { border-color: #f0b4ae; background: #fff4f3; color: #a32d20; }
.rh-notice { background: #fff7e8; border: 1px solid #edd5b4; padding: 14px 18px; border-radius: 12px; font-size: 14px; }
.rh-newsletter { border-radius: 24px; padding: 28px; background: #fff7ef; }
.rh-newsletter-icon { object-fit: contain; width: 64px; height: 64px; margin-bottom: 15px; }
.rh-newsletter h3 { font-family: 'Tajawal', sans-serif; font-size: 24px; line-height: 1.15; font-weight: 800; margin: 0 0 6px; }
.rh-newsletter-copy p { font-size: 14px; line-height: 1.4; margin: 0 0 14px; }
.rh-newsletter-input .rh-input { border-color: var(--primary); min-height: 40px; font-size: 14px; padding: 8px 16px; }
.rh-newsletter-input .rh-button { padding: 8px 22px; min-height: 40px; font-size: 14px; margin-top: 8px; background: #FFA600; border-color: #FFA600; color: #fff; font-weight: 700; }
.rh-newsletter-input .rh-button:hover { background: #1e1c1b; border-color: #1e1c1b; color: #fff; }
.rh-newsletter-fine { font-size: 10px; color: #FFA600; font-weight: 600; line-height: 1.4; margin: 16px 0 0; }
.rh-newsletter--sidebar h3 { font-family: 'Tajawal', sans-serif; font-size: 28px; font-weight: 800; }
.rh-newsletter--sidebar .rh-newsletter-copy p { font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 400; }
.rh-newsletter--sidebar .rh-newsletter-input .rh-button,
.rh-newsletter--sidebar .rh-newsletter-form > .rh-button { font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 700; }
.rh-newsletter--sidebar .rh-newsletter-fine { font-family: 'Inter Tight', sans-serif; font-size: 14px; font-weight: 600; }
.rh-newsletter .rh-preview-note { font-size: 11px; margin: 7px 0 0; }
.rh-newsletter-banner-wrap { padding-block: 70px; }
.rh-newsletter--banner { display: grid; grid-template-columns: 64px 1fr 1.1fr; align-items: center; gap: 26px; background: #f5f5f5; padding: 32px; }
.rh-newsletter--banner .rh-newsletter-icon, .rh-newsletter--banner .rh-newsletter-copy p { margin: 0; }
.rh-newsletter--banner .rh-newsletter-input { position: relative; display: flex; }
.rh-newsletter--banner .rh-input { padding-right: 110px; }
.rh-newsletter--banner .rh-newsletter-input .rh-button { position: absolute; right: 0; top: 0; z-index: 1; margin-top: 0; background: #FFA600; border-color: #FFA600; color: #fff; font-weight: 700; }
.rh-centered-heading { text-align: center; margin-bottom: 40px; }
.rh-eyebrow { color: #FFA600; font-size: 16px; }
.rh-related { background: #FFF7F0; }
.rh-related-panel { background: #fff; padding: 28px; }
.rh-share { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--primary); border-radius: 40px; background: #fff; }
.rh-share > span:first-child { color: #a65a00; font-size: 13px; line-height: 1.15; font-weight: 700; padding: 0 8px; }
.rh-share a, .rh-share button { position: relative; overflow: hidden; width: 32px; height: 32px; display: inline-grid; place-items: center; background: #f4f4f4; color: #4e4e4e; border-radius: 50%; border: 0; text-decoration: none; font-size: 14px; padding: 0; }
.rh-share a > span:not(.rh-share-icon-bg), .rh-share button > span:not(.rh-share-icon-bg) { position: relative; z-index: 1; transition: transform .5s linear; }
.rh-share-icon-bg { background: var(--primary); border-radius: 50%; position: absolute; inset: 0; transform: scale(0); transition: transform .5s linear; }
.rh-share a:is(:hover, :focus-visible) .rh-share-icon-bg, .rh-share button:is(:hover, :focus-visible) .rh-share-icon-bg { transform: scale(1); }
.rh-share a:is(:hover, :focus-visible) > span:not(.rh-share-icon-bg), .rh-share button:is(:hover, :focus-visible) > span:not(.rh-share-icon-bg) { transform: scale(1.2); }
.rh-social-icon { font-family: 'Fa Brands 400 (6.4.2)', sans-serif; }
.rh-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 36px 36px 32px; border: 1px solid #ffcf77; border-radius: 26px; background: #fff; color: #27333b; font-family: 'Inter Tight', sans-serif; font-weight: 400; line-height: 1.5; box-shadow: 0 20px 80px #0003; }
.rh-dialog::backdrop { background: #1e1c1b99; }
.rh-dialog h2 { font-family: 'Tajawal', sans-serif; font-weight: 800; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; color: #27333b; margin: 16px 0 8px; }
.rh-dialog p { margin: 0 0 4px; color: #666; font-size: 16px; font-weight: 400; line-height: 1.5; }
.rh-dialog .rh-badge { background: #FFA600; color: #fff; font-weight: 700; }
.rh-dialog .rh-field label { color: #27333b; font-size: 14px; font-weight: 600; }
.rh-dialog .rh-field label span { color: #FF6816; font-weight: 700; }
.rh-dialog .rh-input, .rh-dialog select.rh-input, .rh-dialog textarea.rh-input { border: 1px solid #FFA600; color: #27333b; font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 400; background-color: #fff; background-image: none; }
.rh-dialog .rh-input:focus { outline: none; border-color: #FFA600; box-shadow: 0 0 0 3px #ffa60033; }
.rh-dialog .rh-form-grid { margin: 22px 0 18px; gap: 18px 20px; }
.rh-dialog .rh-check { color: #27333b; font-size: 14px; font-weight: 400; }
.rh-dialog .rh-check a { color: #FF6816; font-weight: 600; text-decoration: none; }
.rh-dialog .rh-check a:hover { color: #e69500; }
.rh-dialog button { background-image: none; }
.rh-dialog .rh-button { margin-top: 18px; background: #FFA600; border-color: #FFA600; color: #fff; font-family: 'Inter Tight', sans-serif; font-weight: 700; padding: 12px 26px; }
.rh-dialog .rh-button:hover { background: #1e1c1b; border-color: #1e1c1b; color: #fff; }
.rh-dialog .rh-button--outline { background: #fff; color: #27333b; }
.rh-dialog .rh-button--outline:hover { background: #1e1c1b; border-color: #1e1c1b; color: #fff; }
.rh-member-preview { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.rh-member-dialog [data-member-status]:not([hidden]) { margin-top: 8px; color: #70675e; font-size: 14px; }
.rh-dialog-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ece7e1; border-radius: 50%; background: #fff; color: #27333b; font-size: 22px !important; font-weight: 400; line-height: 1; }
.rh-dialog-close:hover { background: #fff7ef; border-color: #FFA600; }
.rh-dialog-close:focus-visible { outline: 2px solid #FFA600; outline-offset: 2px; }
.rh-success-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff1d6; color: #FFA600; font-size: 32px; }
.rh-dialog [data-action-success] > .rh-button { margin-top: 15px; }
.rh-video-dialog { width: min(1100px, calc(100% - 32px)); padding: 48px 12px 12px; background: #161616; border: 0; }
.rh-video-dialog iframe, .rh-video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.resources-page .bottom-cta, .resources-page .footer { line-height: 1em; }
.resources-page #moveToTopBtn { line-height: 16px; }
.resources-page .footer-link-bg { transition: transform .5s linear; }
.resources-page .footer-social-icons:is(:hover, :focus-visible) .footer-link-bg { transform: scale(1); }
.resources-page:has(dialog[open]) { overflow: hidden; }
@media (max-width: 1100px) {
    .rh-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
    .rh-section-heading { grid-template-columns: 1fr 1.1fr; gap: 30px; }
    .rh-list-toolbar { align-items: flex-start; flex-direction: column; }
    .rh-list-toolbar .rh-search { flex: auto; max-width: 440px; }
}
@media (max-width: 991px) {
    .resources-page #resources-main { padding-top: 60px; }
    .rh-title { font-size: 46px; }
    .rh-category-grid { column-gap: 20px; }
    .rh-category-card { padding-inline: 20px; }
    .rh-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rh-newsletter--banner { grid-template-columns: 64px 1fr; }
    .rh-newsletter--banner .rh-newsletter-form { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .rh-container { width: calc(100% - 40px); }
    .rh-section { padding-block: 48px; }
    .rh-title { font-size: 42px; }
    .rh-section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
    .rh-category-grid { grid-template-columns: 1fr; gap: 50px; }
    .rh-category-card { padding: 38px 24px 24px; }
    .rh-card-grid { grid-template-columns: 1fr; gap: 26px; }
    .rh-card-body { padding: 22px 24px 26px; }
    .rh-card h3 { font-size: 28px; }
    .rh-hero-copy { position: static; width: auto; height: auto; padding: 38px 24px 0; margin: 0; overflow: visible; clip: auto; white-space: normal; }
    .rh-hero-copy h1 { font: 800 46px/1.05 'Tajawal', sans-serif; color: #23262c; margin: 0 0 14px; }
    .rh-hero-copy h1 span { color: var(--secondary); }
    .rh-hero-copy p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 440px; }
    .rh-hero-video { width: 200%; max-width: none; margin-left: -100%; }
    .rh-trending { padding-top: 16px; }
    .rh-listing { padding-top: 32px; }
    .rh-breadcrumbs { margin-bottom: 28px; font-size: 14px; }
    .rh-list-toolbar { gap: 22px; margin-bottom: 30px; }
    .rh-filter { font-size: 14px; padding: 9px 17px; }
    .rh-filters { gap: 8px; }
    .rh-list-toolbar .rh-search { max-width: none; }
    .rh-newsletter-banner-wrap { padding-block: 45px; }
    .rh-newsletter--banner { padding: 24px; gap: 18px; grid-template-columns: 48px 1fr; }
    .rh-newsletter--banner .rh-newsletter-icon { width: 48px; height: 48px; }
    .rh-newsletter--banner h3 { font-size: 22px; }
    .rh-newsletter--banner .rh-newsletter-input { display: block; }
    .rh-newsletter--banner .rh-input { padding-right: 16px; }
    .rh-newsletter--banner .rh-newsletter-input .rh-button { position: static; margin-top: 10px; width: 100%; }
    .rh-dialog { padding: 42px 22px 26px; }
    .rh-dialog h2 { font-size: 30px; }
    .rh-form-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .resources-page *, .resources-page *::before, .resources-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
