/* Brand colours – change them here and the whole child theme follows */
:root {
    --ridt-red: #BA233C;
    --ridt-red-dark: #8A1F1D;
    --ridt-navy: #143157;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rt_home_heading{
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;

    display: flex;
    flex-wrap: wrap;     /* allows wrapping */
    gap: 25px;            /* spacing between words */
}

.rt_home_heading .advancing{
    color: #2B2C34;
}

.rt_home_heading .knowledge{
    color: var(--ridt-navy);
}

.rt_home_heading .transforming{
    color: var(--ridt-red);
}

.rt_home_heading .lives{
    color: #F59E0B;
}

/* Publications List */

.dt-publications-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.dt-publication-item{
    background: #FFFFFF;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.dt-publication-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dt-publication-meta{
    display: flex;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6E6E73;
    margin-bottom: 12px;
    width: fit-content;
    background: #F3F4F6;
    padding: 5px 15px;
    border-radius: 30px;
}

.dt-publication-title{
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ridt-navy) !important;
    margin-bottom: 16px;
}

.dt-publication-item .dt-publication-thumb img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.dt-download{
    margin-top: auto;
}

.dt-publication-item .dt-download .dt-download-btn{
    display: inline-block;
    background-color: var(--ridt-red);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border: none;
}

.dt-publication-item .dt-download .dt-download-btn:hover{
    background-color: var(--ridt-red-dark);
    box-shadow: 0 4px 12px rgba(178, 44, 42, 0.3);
}

/* No file uploaded yet: a muted label instead of the button */
.dt-publication-item .dt-download .dt-download-btn--none,
.dt-publication-item .dt-download .dt-download-btn--none:hover{
    background-color: #F1EFEC;
    color: #6E6E73;
    box-shadow: none;
    cursor: default;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .dt-publications-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .dt-publication-title {
        font-size: 24px !important;
    }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
    .dt-publications-list {
        grid-template-columns: 2fr !important;
        gap: 20px !important;
    }

    .dt-publication-item {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .dt-publication-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .dt-publication-meta {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }

    .dt-publication-item .dt-publication-thumb img {
        height: 180px !important;
    }

    .dt-publication-item .dt-download .dt-download-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 16px !important;
    }
}


.dt-news-item{
    background: #FFFFFF;
    border-radius: 16px;
    padding-bottom: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dt-news-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.dt-news-item .dt-news-thumb img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    margin-bottom: 12px;
    display: block;
}

.dt-news-meta{
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6E6E73;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 18px;
}

.dt-news-author{
    font-weight: 500;
}

.dt-news-separator{
    opacity: 0.6;
}

.dt-news-date{
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6E6E73;
    margin-top: 12px;
    margin-bottom: 8px;
}

.dt-news-title{
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ridt-navy) !important;
    margin-bottom: 12px;
    padding: 0 18px;
}

.dt-news-excerpt{
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6em;
    color: #282C34 !important;
    padding: 0 18px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.dt-news-read-more{
    margin-top: auto;
    padding: 0 18px;
}

.dt-news-read-more a{
    display: inline-block;
    background-color: var(--ridt-red);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border: none;
}

.dt-news-read-more a:hover{
    background-color: var(--ridt-red-dark);
    box-shadow: 0 4px 12px rgba(178, 44, 42, 0.3);
    color: #fff !important;
}

.dt-news-pagination {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
    margin-top: 56px;
}

.dt-news-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box;
    border: 1px solid #E7E2DA; border-radius: 12px; background: #FFFFFF;
    color: var(--ridt-navy); text-decoration: none;
    font: 600 15px/1 'Inter', sans-serif;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dt-news-pagination a.page-numbers:hover {
    border-color: var(--ridt-navy); color: var(--ridt-navy); background: #FFFFFF;
    box-shadow: 0 6px 16px rgba(20, 49, 87, .12); transform: translateY(-1px);
}

.dt-news-pagination .page-numbers.current {
    background: var(--ridt-red); border-color: var(--ridt-red); color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(186, 35, 60, .25);
}

.dt-news-pagination .page-numbers.dots { min-width: 24px; padding: 0; border: 0; background: none; color: #A0A7B4; }

/* Previous / Next */
.dt-news-pagination .prev.page-numbers,
.dt-news-pagination .next.page-numbers { padding: 0 18px; }
.dt-news-pagination .prev.page-numbers { margin-right: 8px; }
.dt-news-pagination .next.page-numbers { margin-left: 8px; }
.dt-news-pagination .dt-page-arrow { flex: none; transition: transform .2s ease; }
.dt-news-pagination .prev.page-numbers:hover .dt-page-arrow { transform: translateX(-3px); }
.dt-news-pagination .next.page-numbers:hover .dt-page-arrow { transform: translateX(3px); }

.dt-news-pagination a.page-numbers:focus-visible { outline: 2px solid var(--ridt-navy); outline-offset: 2px; }


/* EVENTS */

.dt-events-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

.dt-event-item{
    display: grid;
    grid-template-columns: 50% 50%;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 380px;
}

.dt-event-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.dt-event-thumb{
    height: 100%;
}

.dt-event-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-event-content{
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dt-event-date{
    font-family: 'Inter', sans-serif;
    background: var(--ridt-red);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 18px;
}

.dt-event-title{
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 98px;
}

.dt-event-title a{
    color: var(--ridt-navy);
    text-decoration: none;
}

.dt-event-title a:hover{
    color: var(--ridt-red);
}

.dt-event-location{
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6E6E73;
    margin-bottom: 24px;
}

.dt-event-actions{
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dt-event-register{
    display: inline-block;
    background-color: var(--ridt-red);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dt-event-register:hover{
    background-color: var(--ridt-red-dark);
    box-shadow: 0 4px 12px rgba(178, 44, 42, 0.3);
    color: #fff !important;
}

.dt-event-view{
    color: var(--ridt-navy);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.dt-event-view:hover{
    color: var(--ridt-red) !important;
}

/* Date Author Badge */
.dt-date-author-badge{
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6E6E73;
}

.dt-date-author-badge .dt-date,
.dt-date-author-badge .dt-author{
    font-weight: 600;
}

.dt-date-author-badge .dt-separator{
    font-weight: 400;
}

/* Slider controls */
.rt-slider-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

/* Dots */
.rt-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.rt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}
.rt-dot.active {
    background: var(--ridt-red);
    width: 20px;
    border-radius: 3px;
}

/* Arrows */
.rt-arrow {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 0.5px solid #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s;
    color: #2d2d2d;
    padding: 0;
}
.rt-arrow:hover {
    border-color: var(--ridt-red);
    color: var(--ridt-red);
}
.rt-arrow svg {
    width: 12px;
    height: 12px;
}

/* ENDOWMENT FUND (HOW IT WORKS) stlying */

.dt-endowment-how-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.dt-endowment-how-card{
    background: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.dt-endowment-how-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

.dt-endowment-how-icon{
    font-size: 24px;
    color: var(--ridt-red);
    margin-bottom: 16px;
}

.dt-endowment-how-title{
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ridt-navy);
    margin-bottom: 12px;
}

.dt-endowment-how-text{
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6E6E73;
}

.dt-endowment-how-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.dt-endowment-how-card{
    background: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.dt-endowment-how-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

.dt-endowment-how-icon{
    font-size: 24px;
    color: var(--ridt-red);
    margin-bottom: 16px;
}

.dt-endowment-how-title{
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ridt-navy);
    margin-bottom: 12px;
}

.dt-endowment-how-text{
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6E6E73;
}

@media (max-width: 768px){
    .dt-endowment-how-grid{
        grid-template-columns: 1fr;
    }
}

/* STYLED QUOTE */

/* Styled Quote */
.dt-styled-quote {
    position: relative;
    background: #F8F6F2;
    border-radius: 16px;
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 760px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.dt-styled-quote-icon {
    font-size: 28px;
    color: var(--ridt-red);
    margin-bottom: 15px;
}

.dt-styled-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    color: var(--ridt-navy);
    margin: 0;
}

.dt-styled-quote-author {
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6E6E73;
    letter-spacing: 0.5px;
}

/* Decorative quotation marks */
.dt-styled-quote::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: rgba(186, 35, 60, 0.15);
}

.dt-styled-quote::after {
    content: "”";
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: rgba(186, 35, 60, 0.15);
}

/* Hover effect for a premium feel */
.dt-styled-quote {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dt-styled-quote:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .dt-styled-quote {
        padding: 30px 20px;
    }

    .dt-styled-quote-text {
        font-size: 20px;
    }
}


/* ENDOWMENT FUND (IMPACT GRID) styling */
.dt-endowment-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px;
    margin-top: 40px;
}

.dt-endowment-impact-item {
    background: #FFFFFF;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.dt-endowment-impact-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

.dt-endowment-impact-icon {
    font-size: 26px;
    color: var(--ridt-red);
    margin-bottom: 14px;
}

.dt-endowment-impact-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--ridt-navy);
    margin-bottom: 10px;
}

.dt-endowment-impact-item-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #6E6E73;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .dt-endowment-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .dt-endowment-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* GOVERNANCE HIGHLIGHTS styling */
/* Governance Card */
.dt-governance-card {
    background: #F8F6F2;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

/* Individual Items */
.dt-governance-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.dt-governance-item:last-child {
    margin-bottom: 0;
}

/* Icon */
.dt-governance-icon {
    font-size: 20px;
    color: var(--ridt-red);
    margin-top: 4px;
}

/* Text Content */
.dt-governance-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--ridt-navy);
    margin-bottom: 6px;
}

.dt-governance-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #6E6E73;
}

/* Hover Effect */
.dt-governance-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dt-governance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 767px) {
    .dt-governance-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Scroll to top button (The7) – brand red circle, navy on hover.
   "body" prefix: rtrust.css loads before The7's main.min.css / custom.css, which style the same selectors */
body .scroll-top,
body .scroll-top.on {
    width: 48px;
    height: 48px;
    right: 24px;
    bottom: 24px;
    border-radius: 50%;
    background-color: var(--ridt-red);
    box-shadow: 0 6px 18px rgba(28, 53, 94, 0.25);
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

body .scroll-top:hover,
body .scroll-top:focus-visible {
    background-color: var(--ridt-navy);
    transform: translateY(-3px);
}

body .scroll-top:focus-visible {
    outline: 2px solid var(--ridt-red);
    outline-offset: 3px;
}

body .scroll-top svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

@media (max-width: 767px) {
    body .scroll-top,
    body .scroll-top.on {
        width: 44px;
        height: 44px;
        right: 16px;
        bottom: 16px;
    }
}

/* ==========================================================================
   Card hover animations – one consistent system for every card on the site.
   "body" prefix so these win over the older per-card rules in style.css / above.
   ========================================================================== */
:root {
    --dt-card-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dt-card-speed: 0.35s;
    --dt-card-red: var(--ridt-red);
    --dt-card-shadow-hover: 0 20px 40px rgba(28, 53, 94, 0.14);
    --dt-card-shadow-soft: 0 18px 36px rgba(28, 53, 94, 0.10);
}

/* Linked cards: lift, deeper shadow, image zoom, red title, arrow nudge */
body .dt-news-card,
body .dt-research-card,
body .dt-news-item,
body .dt-publication-item,
body .dt-research-project-link {
    transition: transform var(--dt-card-speed) var(--dt-card-ease), box-shadow var(--dt-card-speed) var(--dt-card-ease);
}

body .dt-news-card:hover,
body .dt-research-card:hover,
body .dt-news-item:hover,
body .dt-publication-item:hover,
body .dt-research-project-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--dt-card-shadow-hover);
}

body .dt-news-thumb,
body .dt-research-thumb,
body .dt-publication-thumb {
    overflow: hidden;
}

/* the cover zooms on hover, so the frame keeps the rounded corners (isolation keeps the clip in Safari) */
body .dt-publication-thumb {
    border-radius: 8px;
    isolation: isolate;
}

/* publication covers are portrait: crop from the top so the masthead shows */
body .dt-publication-thumb img {
    object-position: center top;
    transform-origin: center top;
}

body .dt-news-thumb img,
body .dt-research-thumb img,
body .dt-publication-thumb img,
body .dt-research-project-thumb img {
    transition: transform 0.6s var(--dt-card-ease);
}

body .dt-news-card:hover .dt-news-thumb img,
body .dt-research-card:hover .dt-research-thumb img,
body .dt-news-item:hover .dt-news-thumb img,
body .dt-publication-item:hover .dt-publication-thumb img,
body .dt-research-project-link:hover .dt-research-project-thumb img {
    transform: scale(1.05);
}

body .dt-news-title a,
body .dt-research-title a,
body .dt-publication-title,
body .dt-research-project-title {
    transition: color 0.25s ease;
}

body .dt-news-card:hover .dt-news-title a,
body .dt-research-card:hover .dt-research-title a,
body .dt-news-item:hover .dt-news-title a,
body .dt-publication-item:hover .dt-publication-title,
body .dt-research-project-link:hover .dt-research-project-title {
    color: var(--dt-card-red);
}

body .dt-news-arrow img,
body .dt-research-arrow img,
body .dt-publication-item .fa-arrow-right {
    transition: transform var(--dt-card-speed) var(--dt-card-ease);
}

body .dt-news-card:hover .dt-news-arrow img,
body .dt-research-card:hover .dt-research-arrow img,
body .dt-publication-item:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* these titles have !important colours set earlier in this file */
body .dt-news-title,
body .dt-publication-title {
    transition: color 0.25s ease;
}

body .dt-news-item:hover .dt-news-title,
body .dt-publication-item:hover .dt-publication-title {
    color: var(--dt-card-red) !important;
}

/* Information cards (not links): gentler lift, no colour change */
body .dt-support-card,
body .dt-donation-card,
body .dt-endowment-how-card,
body .dt-endowment-impact-item,
body .dt-endowment-impact-card,
body .dt-governance-card,
body .dt-styled-quote {
    transition: transform var(--dt-card-speed) var(--dt-card-ease), box-shadow var(--dt-card-speed) var(--dt-card-ease);
}

body .dt-support-card:hover,
body .dt-donation-card:hover,
body .dt-endowment-how-card:hover,
body .dt-endowment-impact-item:hover,
body .dt-endowment-impact-card:hover,
body .dt-governance-card:hover,
body .dt-styled-quote:hover {
    transform: translateY(-4px);
    box-shadow: var(--dt-card-shadow-soft);
}

/* Image tiles (galleries, related posts on the single post layouts) */
body .rp-gallery__img,
body .ne-gallery__img,
body .ne-related__img {
    transition: transform 0.6s var(--dt-card-ease);
}

body .rp-gallery__item:hover .rp-gallery__img,
body .ne-gallery__item:hover .ne-gallery__img,
body .ne-related__card:hover .ne-related__img {
    transform: scale(1.05);
}

body .ne-related__title {
    transition: color 0.25s ease;
}

/* Keyboard users get the same highlight as hover */
body .dt-research-project-link:focus-visible,
body .ne-related__card:focus-visible,
body .rp-gallery__item:focus-visible,
body .ne-gallery__item:focus-visible {
    outline: 2px solid var(--dt-card-red);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    body .dt-news-card,
    body .dt-research-card,
    body .dt-news-item,
    body .dt-publication-item,
    body .dt-research-project-link,
    body .dt-support-card,
    body .dt-donation-card,
    body .dt-endowment-how-card,
    body .dt-endowment-impact-item,
    body .dt-endowment-impact-card,
    body .dt-governance-card,
    body .dt-styled-quote,
    body .dt-news-thumb img,
    body .dt-research-thumb img,
    body .dt-publication-thumb img,
    body .dt-research-project-thumb img,
    body .rp-gallery__img,
    body .ne-gallery__img,
    body .ne-related__img {
        transition: none;
    }

    body .dt-news-card:hover,
    body .dt-research-card:hover,
    body .dt-news-item:hover,
    body .dt-publication-item:hover,
    body .dt-research-project-link:hover,
    body .dt-support-card:hover,
    body .dt-donation-card:hover,
    body .dt-endowment-how-card:hover,
    body .dt-endowment-impact-item:hover,
    body .dt-endowment-impact-card:hover,
    body .dt-governance-card:hover,
    body .dt-styled-quote:hover,
    body .dt-news-card:hover .dt-news-thumb img,
    body .dt-research-card:hover .dt-research-thumb img,
    body .dt-news-item:hover .dt-news-thumb img,
    body .dt-publication-item:hover .dt-publication-thumb img,
    body .dt-research-project-link:hover .dt-research-project-thumb img,
    body .rp-gallery__item:hover .rp-gallery__img,
    body .ne-gallery__item:hover .ne-gallery__img,
    body .ne-related__card:hover .ne-related__img,
    body .dt-news-card:hover .dt-news-arrow img,
    body .dt-research-card:hover .dt-research-arrow img,
    body .dt-publication-item:hover .fa-arrow-right {
        transform: none;
    }
}


/* ==========================================================================
   Styling fixes from the site review
   ========================================================================== */

/* Call-to-action bands in the footer template (Make an impact, Join us, Make a difference, Get in touch; desktop and mobile copies).
   Styled like the redesigned home page's closing band: navy, large Playfair heading, red main button + white outline second button */
body .elementor-64 .elementor-element.elementor-element-089293f:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-0e2f361:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-3743902:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-7d27ae5:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-bc5c8b0:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-c7a5ebf:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-cd3788f:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-eaef7ed:not(.elementor-motion-effects-element-type-background),
body .elementor-64 .elementor-element.elementor-element-ee76f0e:not(.elementor-motion-effects-element-type-background) {
    background-color: var(--ridt-navy);
    --padding-top: 88px;
    --padding-bottom: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
body .elementor-64 .elementor-element.elementor-element-089293f .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-3743902 .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-cd3788f .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .elementor-heading-title,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .elementor-heading-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.2;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: lowercase;
    letter-spacing: normal;
}
/* the headings are typed in capitals: show them in sentence case */
body .elementor-64 .elementor-element.elementor-element-089293f .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-3743902 .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-cd3788f .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .elementor-heading-title::first-letter,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .elementor-heading-title::first-letter {
    text-transform: uppercase;
}
body .elementor-64 .elementor-element.elementor-element-089293f .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-089293f .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-3743902 .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-3743902 .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-cd3788f .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-cd3788f .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .elementor-widget-text-editor p,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .elementor-widget-text-editor,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .elementor-widget-text-editor p {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    line-height: 1.65;
    color: #E5E9F0;
    --textColor: #E5E9F0;
}
body .elementor-64 .elementor-element.elementor-element-089293f .box-button,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .box-button,
body .elementor-64 .elementor-element.elementor-element-3743902 .box-button,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .box-button,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .box-button,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .box-button,
body .elementor-64 .elementor-element.elementor-element-cd3788f .box-button,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .box-button,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .box-button {
    background: var(--ridt-red);
    color: #FFFFFF;
    padding: 16px 30px;
    border-radius: 8px;
    box-shadow: none;
    transition: background-color .2s, color .2s, transform .2s;
}
body .elementor-64 .elementor-element.elementor-element-089293f .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-3743902 .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-cd3788f .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .box-button:hover {
    background: var(--ridt-red-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
}
body .elementor-64 .elementor-element.elementor-element-089293f .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-3743902 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-cd3788f .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button {
    background: transparent;
    border: 1.5px solid #FFFFFF;
    padding: 14.5px 28.5px;
}
body .elementor-64 .elementor-element.elementor-element-089293f .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-0e2f361 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-3743902 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-cd3788f .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-eaef7ed .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover,
body .elementor-64 .elementor-element.elementor-element-ee76f0e .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget .box-button:hover {
    background: #FFFFFF;
    color: var(--ridt-navy);
}
/* the second button gets the gap the old shadowed buttons had */
body .elementor-64 .elementor-element.elementor-element-089293f .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-0e2f361 .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-3743902 .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-7d27ae5 .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-bc5c8b0 .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-c7a5ebf .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-cd3788f .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-eaef7ed .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget),
body .elementor-64 .elementor-element.elementor-element-ee76f0e .e-con:has(> .elementor-widget-the7_button_widget + .elementor-widget-the7_button_widget) {
    --gap: 14px;
    gap: 14px;
}

/* The Donate page already is the call to action */
body.page-id-30 .elementor-64 .elementor-element.elementor-element-089293f,
body.page-id-30 .elementor-64 .elementor-element.elementor-element-cd3788f {
    display: none;
}

/* Home "Research Impact" eyebrow: red like every other eyebrow label */
body .elementor-18 .elementor-element.elementor-element-7ed6736 .elementor-heading-title {
    color: var(--ridt-red);
}

/* News & Events / Contact intros (desktop and mobile copies): line up with the heading and close the big gap */
body .elementor-26 .elementor-element.elementor-element-0597901,
body .elementor-26 .elementor-element.elementor-element-bc9eeae,
body .elementor-28 .elementor-element.elementor-element-0ce9bad,
body .elementor-28 .elementor-element.elementor-element-9245a46 {
    --padding-left: 0px;
    --padding-right: 0px;
    --padding-top: 0px;
}
body .elementor-26 .elementor-element.elementor-element-003787b,
body .elementor-26 .elementor-element.elementor-element-9f24be7,
body .elementor-28 .elementor-element.elementor-element-cf070be,
body .elementor-28 .elementor-element.elementor-element-1d780a9 {
    margin-top: 0;
}

/* Endowment Fund body text: left aligned like the rest of the site (justify left word gaps) */
body .elementor-1225 .elementor-element.elementor-element-798c935 {
    text-align: left;
}

/* Quote: the theme's blockquote styles were overriding the font */
body .elementor-widget-shortcode .dt-styled-quote blockquote.dt-styled-quote-text {
    font-family: 'Playfair Display', serif;
}

/* Who We Are > Our Story: the areas RIDT funds, as a bulleted list inside a heading widget */
body .dt-story-list-widget .dt-story-list {
    margin: 0;
    padding-left: 22px;
    list-style: disc;
}

body .dt-story-list-widget .dt-story-list li {
    margin: 0 0 10px;
    padding-left: 4px;
}

body .dt-story-list-widget .dt-story-list li::marker {
    color: var(--ridt-red);
}

body .dt-story-list-widget .dt-story-list strong {
    font-weight: 600;
    color: var(--ridt-navy);
}

/* Who We Are > Vision: the quote's attribution on its own line, upright and smaller */
body .dt-vision-quote .dt-quote-by {
    display: inline-block;
    margin-top: 10px;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--ridt-navy);
}

/* ==========================================================================
   Motion
   ========================================================================== */
/* In-page links ("See what we fund") glide instead of jumping */
html {
    scroll-behavior: smooth;
}

/* Visitors who ask their system for less motion get none: no lifts, zooms or smooth scrolling anywhere */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Phones: pagination on one line, publications cards inside the page gutter like the other listings */
@media (max-width: 767px) {
    .dt-news-pagination { flex-wrap: nowrap; gap: 6px; margin-top: 36px; }
    .dt-news-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; font-size: 14px; }
    .dt-news-pagination .page-numbers.dots { min-width: 16px; padding: 0; }
    .dt-news-pagination .prev.page-numbers, .dt-news-pagination .next.page-numbers { width: 40px; padding: 0; margin: 0; }
    .dt-news-pagination .dt-page-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .dt-publications-list { padding: 0 15px; }
}

/* --------------------------------------------------------------------------
 * Mobile / tablet menu (The7 horizontal menu widget in dropdown mode, <=1024px)
 * ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle {
        width: 44px; height: 44px; padding: 0 !important; border-radius: 12px !important;
        background: rgba(20, 49, 87, .06) !important; display: inline-flex; align-items: center; justify-content: center;
        transition: background-color .2s;
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active { background: rgba(186, 35, 60, .08) !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle .toggle-text { display: none; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .menu-toggle-icons svg { width: 20px !important; height: 20px !important; fill: var(--ridt-navy) !important; color: var(--ridt-navy) !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active .menu-toggle-icons svg { fill: var(--ridt-red) !important; color: var(--ridt-red) !important; }

    /* the panel */
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle + .dt-nav-menu-horizontal--main {
        background: #FFFFFF !important; border-top: 1px solid #EEE9E1;
        border-radius: 0 0 20px 20px; box-shadow: 0 24px 48px rgba(20, 49, 87, .14);
        padding: 6px 20px 22px !important;
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul { flex-direction: column !important; gap: 0 !important; }

    /* the links */
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li { margin: 0 !important; padding: 0 !important; background: none !important; border-bottom: 1px solid #EEE9E1; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a {
        display: flex !important; align-items: center; padding: 16px 4px !important; background: none !important;
        color: var(--ridt-navy) !important; font: 600 17px/1.3 'Inter', sans-serif !important; letter-spacing: 0 !important; text-transform: none !important;
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a { justify-content: flex-start !important; text-align: left !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a .item-content { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center; width: 100%; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a .menu-text { color: inherit !important; font: inherit !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a .menu-item-text { order: 1 !important; margin: 0 !important; text-align: left !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a .item-content::before { order: 0; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li > a .item-content::after { order: 2; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main .submenu-indicator { display: none !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:not(:last-child) > a .item-content::after {
        content: "\f054"; font: 900 12px/1 "Font Awesome 6 Free"; margin-left: auto; color: #A0A7B4; transition: transform .2s, color .2s;
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:not(:last-child) > a:hover .item-content::after { transform: translateX(3px); color: var(--ridt-red); }

    /* the page you're on */
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li.current-menu-item > a { color: var(--ridt-red) !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li.current-menu-item > a .item-content::before {
        content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--ridt-red); flex: none;
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li.current-menu-item > a .item-content::after { color: var(--ridt-red); }

    /* Donate: a proper button at the end */
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:last-child { border-bottom: 0; padding-top: 18px !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:last-child > a {
        justify-content: center !important; padding: 15px 20px !important; border-radius: 12px !important;
        background: var(--ridt-red) !important; color: #FFFFFF !important; box-shadow: 0 10px 22px rgba(186, 35, 60, .25);
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:last-child > a .item-content { justify-content: center !important; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:last-child > a .item-content::before {
        content: "\f004"; font: 900 15px/1 "Font Awesome 6 Free"; margin-right: 10px; width: auto; height: auto; background: none;
    }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li:last-child > a:hover { background: #9E1E30 !important; }

    /* items fade in one after the other when the menu opens */
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active + .dt-nav-menu-horizontal--main > ul > li { animation: dt-menu-in .35s ease both; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active + .dt-nav-menu-horizontal--main > ul > li:nth-child(2) { animation-delay: .04s; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active + .dt-nav-menu-horizontal--main > ul > li:nth-child(3) { animation-delay: .08s; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active + .dt-nav-menu-horizontal--main > ul > li:nth-child(4) { animation-delay: .12s; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active + .dt-nav-menu-horizontal--main > ul > li:nth-child(5) { animation-delay: .16s; }
    .elementor-location-header .elementor-widget-the7_horizontal-menu .horizontal-menu-toggle.elementor-active + .dt-nav-menu-horizontal--main > ul > li:nth-child(6) { animation-delay: .20s; }
}
@keyframes dt-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .elementor-location-header .elementor-widget-the7_horizontal-menu .dt-nav-menu-horizontal--main > ul > li { animation: none !important; }
}

/* Tablet header: logo left, menu button right (same as phones; Elementor stacks them in a column at this size).
   The header row holding the logo + menu: 03f5efd on the home page, eb5cc6e on the other pages */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) { position: relative; width: 100% !important; padding: 18px 30px !important; }
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) > .e-con-inner {
        flex-direction: row !important; justify-content: space-between !important; align-items: center !important;
        width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; gap: 0 !important;
    }
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) .elementor-widget-the7-image-widget { width: 260px !important; max-width: 260px !important; flex: none !important; }
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) .elementor-widget-the7_horizontal-menu { width: auto !important; flex: none !important; }
    /* the dropdown spans the header width instead of hanging off the button */
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) .elementor-widget-the7_horizontal-menu,
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) .elementor-widget-the7_horizontal-menu .elementor-widget-container,
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) .horizontal-menu-wrap { position: static !important; }
    .elementor-location-header :is(.elementor-element-03f5efd, .elementor-element-eb5cc6e) .horizontal-menu-toggle + .dt-nav-menu-horizontal--main {
        left: 0 !important; right: 0 !important; width: auto !important; min-width: 0 !important; top: 100% !important; padding: 6px 30px 24px !important;
    }
}

/* Research project single: "Explore More Research" (white section), cards get an outline so they read as cards,
   the grid lines up with the heading and the gap under the heading is tightened (Single Post #970 headings 6362d41 / f403b3c) */
body .dt-related-projects-wrap { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
body .dt-related-projects-wrap .dt-research-projects-grid { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; }
body .dt-related-projects-wrap .dt-research-project-link {
    border: 1px solid #EEE9E1; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 28px rgba(28, 53, 94, 0.07);
}
body .dt-related-projects-wrap .dt-research-project-content { padding: 22px 24px 26px; }
body .dt-related-projects-wrap { padding: 0 10px; box-sizing: border-box; }
.elementor-element-6362d41, .elementor-element-f403b3c { margin-bottom: 0 !important; }
.e-con:has(> .elementor-element-6362d41) + .e-con,
.e-con:has(> .elementor-element-f403b3c) + .e-con { padding-top: 0 !important; margin-top: -20px; }

/* --------------------------------------------------------------------------
 * Related sections, one design for news/event and research project pages:
 * outlined cards on desktop and tablet, a compact list (small picture + title) on phones
 * ----------------------------------------------------------------------- */

/* News & events: "More from News & Events" as outlined cards (like the research ones) */
.ne-page .ne-related__grid { gap: 32px; }
.ne-page .ne-related__card {
    gap: 0; height: 100%; background: #FFFFFF; border: 1px solid #EEE9E1; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 28px rgba(28, 53, 94, .07);
}
.ne-page .ne-related__card .ne-related__media { height: 240px; border-radius: 0; }
.ne-page .ne-related__text { gap: 0; padding: 22px 24px 26px; }
.ne-page .ne-related__date {
    align-self: flex-start; margin-bottom: 12px; padding: 6px 12px; border-radius: 20px;
    background: #F3F4F6; color: #6E6E73; font: 500 13px/1 'Inter', sans-serif;
}
.ne-page .ne-related__title { margin-bottom: 12px; font-size: 22px; }
.ne-page .ne-related__excerpt { font: 400 15px/1.6 'Inter', sans-serif; color: #6E6E73; }
/* the same lift on hover as the research cards (desktop and tablet; on phones they're a plain list) */
@media (min-width: 768px) {
    .ne-page .ne-related__card { transition: transform var(--dt-card-speed, .35s) var(--dt-card-ease, ease), box-shadow var(--dt-card-speed, .35s) var(--dt-card-ease, ease); }
    .ne-page .ne-related__card:hover { transform: translateY(-6px); box-shadow: var(--dt-card-shadow-hover, 0 20px 40px rgba(28, 53, 94, .14)); }
}

/* Research: "View all projects" link, like "View all updates" on news */
.dt-related-all-row { display: flex; justify-content: flex-end; margin: -66px 0 46px; }
.dt-related-all { font: 600 14px/1.4 'Inter', sans-serif; color: var(--ridt-red); text-decoration: none; white-space: nowrap; }
.dt-related-all:hover { color: var(--ridt-red); text-decoration: underline; }

/* Tablet: three narrower cards side by side on both */
@media (min-width: 768px) and (max-width: 1080px) {
    .ne-page .ne-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .ne-page .ne-related__card { flex-direction: column; }
    .ne-page .ne-related__card .ne-related__media { width: auto; height: 170px; }
    .ne-page .ne-related__text { padding: 18px 18px 22px; }
    .ne-page .ne-related__title { font-size: 18px; line-height: 1.35; }
    .ne-page .ne-related__excerpt { font-size: 14px; }
}
/* Tablet and phone: the research heading block is Elementor's tablet/phone copy (Single Post #970) */
@media (max-width: 1024px) {
    .dt-related-all-row { justify-content: flex-start; margin: -6px 0 18px; }
    body .dt-related-projects-wrap { padding: 0 20px; }
    /* that copy has "Related projects" under the heading: put it back on top */
    .elementor .elementor-element.elementor-element-a166068 { order: -1 !important; --order: -1 !important; }
    .elementor .elementor-element.elementor-element-927186f { padding-bottom: 0 !important; }
    .elementor-element-927186f > .e-con-inner, .elementor-element-927186f { row-gap: 10px !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    body .dt-related-projects-wrap .dt-research-project-title { line-height: 1.35 !important; }
    body .dt-related-projects-wrap .dt-research-projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    body .dt-related-projects-wrap .dt-research-project-thumb { height: 170px; }
    body .dt-related-projects-wrap .dt-research-project-content { padding: 18px 18px 22px; }
    body .dt-related-projects-wrap .dt-research-project-title { font-size: 18px; min-height: 0; }
    body .dt-related-projects-wrap .dt-research-project-excerpt { font-size: 14px; }
}

/* Phones: both as a compact list */
@media (max-width: 767px) {
    .ne-page .ne-related__grid { grid-template-columns: 1fr; gap: 18px; }
    .ne-page .ne-related__card { flex-direction: row; gap: 14px; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .ne-page .ne-related__card .ne-related__media { width: 110px; height: 80px; flex-shrink: 0; border-radius: 8px; }
    .ne-page .ne-related__text { padding: 0; gap: 4px; justify-content: center; }
    .ne-page .ne-related__date { margin: 0; padding: 0; background: none; font-size: 12px; }
    .ne-page .ne-related__title { margin: 0; font-size: 17px; line-height: 1.3; }
    .ne-page .ne-related__excerpt { display: none; }

    body .dt-related-projects-wrap .dt-research-projects-grid { padding: 0; gap: 18px; }
    body .dt-related-projects-wrap .dt-research-project-link {
        display: flex; gap: 14px; align-items: center; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; transform: none !important;
    }
    body .dt-related-projects-wrap .dt-research-project-thumb { width: 110px; height: 80px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
    body .dt-related-projects-wrap .dt-research-project-content { padding: 0; }
    body .dt-related-projects-wrap .dt-research-project-badge { margin: 0 0 4px; padding: 0; background: none; font-size: 12px; }
    body .dt-related-projects-wrap .dt-research-project-title { margin: 0; font-size: 17px; line-height: 1.3; min-height: 0; }
    body .dt-related-projects-wrap .dt-research-project-excerpt,
    body .dt-related-projects-wrap .dt-research-project-overlay { display: none; }
}

/* --------------------------------------------------------------------------
 * Endowment Fund page (Elementor page 1225)
 * ----------------------------------------------------------------------- */

/* Quote: one quote mark, no grey bar (the theme styles every blockquote), larger text */
.dt-styled-quote::before, .dt-styled-quote::after { content: none; }
body .dt-styled-quote blockquote.dt-styled-quote-text {
    padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important;
    font-family: 'Playfair Display', Georgia, serif !important; font-size: 26px !important; line-height: 1.45 !important; font-style: italic !important; font-weight: 500 !important;
    color: var(--ridt-navy) !important;
}
.dt-styled-quote { padding: 44px 48px; }

/* Text: left-aligned like the other pages (some paragraphs were justified, which leaves gaps between words) */
.elementor-1225 .elementor-widget-heading .elementor-heading-title { text-align: left !important; }

/* Columns line up with the rest of the page (some had a second 10px of padding) */
.elementor-1225 .elementor-element-7c54277,
.elementor-1225 .elementor-element-a7d74d6,
.elementor-1225 .elementor-element-7bd23a3,
.elementor-1225 .elementor-element-2eb232b,
.elementor-1225 .elementor-element-55fd0bb { padding-left: 0 !important; padding-right: 0 !important; }

/* "What is the Endowment Fund?": the microscope photo was ~800px tall, leaving a gap under the text */
.elementor-1225 .elementor-element-ede87fa img { height: 520px !important; width: 100%; object-fit: cover; }

/* Paragraph blocks: an even 18px between paragraphs and a normal gap under the heading (it was ~50-70px) */
.elementor-1225 .elementor-element-5972a36, .elementor-1225 .elementor-element-b523b51,
.elementor-1225 .elementor-element-d81abda, .elementor-1225 .elementor-element-e30bbf1,
.elementor-1225 .elementor-element-78bca8a, .elementor-1225 .elementor-element-288d00c,
.elementor-1225 .elementor-element-26b1a38 { --padding-top: 0px; --padding-bottom: 0px; padding-top: 0 !important; padding-bottom: 0 !important; --gap: 18px; gap: 18px !important; }
.elementor-1225 .elementor-element-5972a36 > .elementor-widget, .elementor-1225 .elementor-element-b523b51 > .elementor-widget,
.elementor-1225 .elementor-element-d81abda > .elementor-widget, .elementor-1225 .elementor-element-e30bbf1 > .elementor-widget,
.elementor-1225 .elementor-element-78bca8a > .elementor-widget, .elementor-1225 .elementor-element-288d00c > .elementor-widget,
.elementor-1225 .elementor-element-26b1a38 > .elementor-widget { margin: 0 !important; }

/* Tablet and phone: Elementor hides five sections below desktop with no replacement, so show them and stack their columns */
@media (max-width: 1024px) {
    .elementor-1225 .elementor-element-734d9db.elementor-element,
    .elementor-1225 .elementor-element-cdce448.elementor-element,
    .elementor-1225 .elementor-element-54fb683.elementor-element,
    .elementor-1225 .elementor-element-2eaeca0.elementor-element,
    .elementor-1225 .elementor-element-1496362.elementor-element { display: flex !important; }

    .elementor-1225 .elementor-element-734d9db, .elementor-1225 .elementor-element-734d9db > .e-con-inner,
    .elementor-1225 .elementor-element-1496362 > .e-con-inner, .elementor-1225 .elementor-element-d5555d9 > .e-con-inner,
    .elementor-1225 .elementor-element-022cea2,
    .elementor-1225 .elementor-element-022cea2 > .e-con-inner,
    .elementor-1225 .elementor-element-396ee51,
    .elementor-1225 .elementor-element-396ee51 > .e-con-inner,
    .elementor-1225 .elementor-element-1496362,
    .elementor-1225 .elementor-element-d5555d9 { flex-direction: column !important; flex-wrap: nowrap !important; }

    .elementor-1225 .elementor-element-003d37c, .elementor-1225 .elementor-element-10f3122,
    .elementor-1225 .elementor-element-7c54277, .elementor-1225 .elementor-element-a7d74d6,
    .elementor-1225 .elementor-element-7bd23a3, .elementor-1225 .elementor-element-e504ab1,
    .elementor-1225 .elementor-element-66c7417, .elementor-1225 .elementor-element-bb9d4e6,
    .elementor-1225 .elementor-element-cbc08c7 { width: 100% !important; max-width: 100% !important; --width: 100% !important; }

    .elementor-1225 .elementor-element-5972a36, .elementor-1225 .elementor-element-b523b51,
    .elementor-1225 .elementor-element-d81abda, .elementor-1225 .elementor-element-e30bbf1,
    .elementor-1225 .elementor-element-78bca8a, .elementor-1225 .elementor-element-288d00c,
    .elementor-1225 .elementor-element-26b1a38 { width: 100% !important; max-width: 100% !important; --width: 100% !important; }

    .elementor-1225 > .e-con { padding-left: 10px !important; padding-right: 10px !important; }
    .elementor-1225 .elementor-element-ede87fa img { height: 380px !important; }
    /* the olive tree is a background image on an empty column: give it a height once stacked */
    .elementor-1225 .elementor-element-e504ab1 { min-height: 380px; }
    .elementor-1225 .elementor-element-4afd667 img { height: 380px !important; width: 100%; object-fit: cover; }
}

/* Phones: the same 20px side gutter and 70px section spacing as the other pages */
@media (max-width: 767px) {
    .elementor-1225 .elementor-element-ede87fa img,
    .elementor-1225 .elementor-element-4afd667 img { height: 260px !important; }
    .dt-styled-quote { padding: 32px 24px; }
    .elementor-1225 .elementor-element-e504ab1 { min-height: 260px; }
    .dt-endowment-impact-grid.columns-2, .dt-endowment-impact-grid.columns-3, .dt-endowment-impact-grid.columns-4 { grid-template-columns: 1fr !important; }
    /* sections: 70px top and bottom like the other pages */
    .elementor-1225 > .e-con > .e-con-inner { padding-top: 60px !important; padding-bottom: 60px !important; }
    body .dt-styled-quote blockquote.dt-styled-quote-text { font-size: 21px !important; }
}

/* Footer on tablets: Elementor gives the columns row a fixed 1200px width, which cut off both sides at 768-1024px.
   Full width instead, the RIDT intro on top and the three link columns side by side underneath */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-location-footer .elementor-element-7163a5d {
        --width: 100%; width: 100% !important; max-width: 100% !important;
        flex-wrap: wrap !important; align-items: flex-start !important; column-gap: 32px !important; row-gap: 36px !important;
        padding-left: 30px !important; padding-right: 30px !important; box-sizing: border-box;
    }
    .elementor-location-footer .elementor-element-fe8596e { flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important; }
    .elementor-location-footer .elementor-element-df784e9,
    .elementor-location-footer .elementor-element-96fbeda,
    .elementor-location-footer .elementor-element-41ffe1b { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
}

/* Scroll reveal (js/rtrust.js): a gentle fade-up as content comes into view */
html.dt-reveal-on .dt-reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--dt-reveal-delay, 0ms);
}
html.dt-reveal-on .dt-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.dt-reveal-on .dt-reveal { opacity: 1; transform: none; transition: none; }
}
