/* edexchange_related_resources.css */

/* Header Section */
.ed-research-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

#block-ewp-relatedresearchblock {
    padding-top: 36px;
    border-top: 1px solid #CCCCCC;
    margin-top: 30px;
    margin-bottom: 42px;
}

.no-matching-results-container {
    background: #efefef;
    text-align: center;
    padding: 26px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.no-match {
    margin-top: 0px !important;
}

.see-all-button.no-match {
    border: 0px;
    background: transparent !important;
    color: #000 !important;
}

.see-all-button.no-match:hover {
    text-decoration: underline !important;
}

.ed-research-header-title {
    flex: 0 0 58.33%; /* 7/12 */
}

.block-related-research-block{
    margin-top: 42px;
}

.intro-content {
    min-height: 160px;
}

.ed-research-header-title h3, .block-views-blockrelated-working-papers-block-1 h2{
    margin: 0;
    font-size: 30px;
    color: black;
    font-family: Poppins, sans-serif;
    font-weight: 700;
}

.block-related-research-block .category, .block-related-research-block .tags{
    font-family: PT Serif, serif;
}

.more-link {
    text-align: center !important;
    margin-top: 30px;
}

.more-link a {
    color: var(--ANN-Teal-AA, #258471);
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.view-related-working-papers p{
    margin-bottom: 0px;
    font-size: 16px;
}

.view-related-working-papers .views-field-field-tags {
    margin-bottom: 17px;
}

.view-related-working-papers .views-field-field-tags a{
    color: #000;
    font-size: 16px;
    text-decoration: underline;
    transition: all 0.3s ease-in-out;
}

.view-related-working-papers .views-field-field-tags a:hover{
    color: var(--ANN-Teal-AA, #258471);
}

.ed-research-header-link {
    flex: 0 0 41.67%; /* 5/12 */
    text-align: right;
    font-size: 14px;
}

.ed-research-header-link a {
    display: inline-flex;
    align-items: center;
    color: var(--ANN-Teal-AA, #258471);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    font-family: Poppins, sans-serif;
}

.ed-research-header-link a:hover {
    color: var(--ANN-Red-AA, #C00404);
}

.external-link-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: filter 0.3s ease-in-out;
}

.ed-research-header-link a:hover .external-link-icon {
    filter: invert(21%) sepia(87%) saturate(6002%) hue-rotate(352deg) brightness(91%) contrast(103%);
}

.see-more-category {
    text-align: center;
    margin-top: 30px;
    font-weight: 700;
    font-size: 18px;
    font-family: Poppins, sans-seriff;
}

.see-more-category a {
    color: var(--ANN-Red-AA, #C00404);
    text-decoration: none;
    transition: color 0.3s ease;
}

.see-more-category a:hover {
    color: #000;
}

/* Layout */
.ed-research-columns {
    display: flex;
    gap: 0;
}

.ed-research-column {
    flex: 1;
    position: relative;
    padding: 0 19px;
    display: flex;
    flex-direction: column;
}

.no-match-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Divider */
.ed-research-column:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #A9A9A9;
}

/* Logo */
.research-logo {
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
    transition: transform 0.3s ease;
}

.ed-research-column a {
    cursor: pointer;
}

.ed-research-column a:hover .research-logo {
    transform: translateY(-3px);
}

.edinstruments .research-logo {
    max-width: 330px;
}

/* Intro Text */
.ed-research-column .intro-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.2em;
    padding: 0 10px;
    max-width: 340px;
    margin: 0 auto;
    font-family: Poppins, sans-serif;
}

/* Research Posts */
.research-post {
    margin-bottom: 20px;
}

.research-post a:hover{
    text-decoration: none;
}

.post-content {
    padding: 13px;
}

.post-link {
    border: 1px solid var(--ANN-Navy, #093C71);
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 4px;
}

.research-post h3 {
    color: var(--ANN-Navy, #093C71);
    margin: -3px 0 6px;
    font-size: 18px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
}

.research-post p {
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.2em;
    color: var(--ANN-Navy, #093C71);
}

.research-post p:last-child{
    margin-bottom: 0px;
}

.post-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    background-color: var(--ANN-Navy, #093C71);
    border-left: 1px solid var(--ANN-Navy, #093C71);
    transition: background-color 0.3s ease-in-out;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effects */
.post-link:hover {
    background-color: var(--ANN-Navy, #093C71);
    color: white;
}

.post-link:hover h3, 
.post-link:hover p,
.edinstruments .post-link:hover h3,
.edinstruments .post-link:hover p {
    color: white;
}

.post-link:hover .post-button {
    background-color: var(--ANN-Navy, #093C71);
    border-left: 1px solid #fff;
}

.post-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* EdWorkingPapers Specific Styles */
.edinstruments .research-post h3, 
.edinstruments .research-post p {
    color: var(--ANN-Teal-AA, #258471);
}

.edinstruments .post-link {
    border-color: var(--ANN-Teal-AA, #258471);
}

.edinstruments .post-button {
    background-color: var(--ANN-Teal-AA, #258471);
    border-left-color: var(--ANN-Teal-AA, #258471);
}

.edinstruments .post-link:hover,
.edinstruments .post-link:hover .post-button {
    background-color: var(--ANN-Teal-AA, #258471);
}

.flex-results{
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* See All Button */
a.see-all-button {
    border: 1px solid black;
    width: 100%;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 20px 12px;
    text-decoration: none;
    line-height: 1.2em;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    border-radius: 4px;
}

a.see-all-button:hover {
    background-color: black;
    color: white;
}

/* Related Resources Same Site*/
.view-related-working-papers .views-view-responsive-grid__item {
    border: 1px solid #000;
    padding: 0px 15px 15px 15px;
}

.views-field-field-categories a {
    margin-top: -20px;
    display: flex;
    padding: 8px 16px;
    background: var(--ANN-Red-AA, #C00404);
    border-radius: 4px;
    flex-basis: auto;
    color: white;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    line-height: 1em;
    font-family: Poppins, sans-serif;
}

.views-field-field-categories a:hover {
    background: #000;
    color: #fff;
}

.view-related-working-papers .views-field-title a {
    font-family: Poppins, sans-serif;
    color: #000;
    font-size: 24px;
    line-height: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.view-related-working-papers .views-field-title a:hover {
    color: var(--ANN-Red-AA, #C00404);
}

.view-related-working-papers .views-view-responsive-grid {
    margin-top: 40px;
}

.views-field-field-categories .field-content{
    display: flex;
}

/* Mobile Styles */
@media (max-width: 800px) {
    .ed-research-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ed-research-header-title,
    .ed-research-header-link {
        flex: 0 0 100%;
        text-align: left;
        margin-bottom: 15px;
    }

    .ed-research-columns {
        flex-direction: column;
    }

    .ed-research-column {
        width: 100%;
        padding: 0;
    }

    .ed-research-column:first-child::after {
        content: none;
    }

    .ed-research-column:first-child {
        padding-bottom: 19px;
        margin-bottom: 19px;
        border-bottom: 1px solid #ccc;
    }
    .view-related-working-papers .views-view-responsive-grid.views-view-responsive-grid--horizontal {
        grid-template-columns: 1fr;
    }

    .view-related-working-papers .views-view-responsive-grid__item {
        margin-bottom: 30px;
    }
}