/* ==========================================================================
   IHH Research Progress & Outcomes Hub Page Styles
   Faithfully matching https://www.ihhhealthcare.com/our-brands/myhealth360/faq
   ========================================================================== */
.ihh-research-hub {
    width: 100%;
}

.ihh-research-hub .border-bottom:last-child {
    border-bottom: none !important;
}

/* Column layout matching IHH standard 30% / 70% split */
.ihh-research-hub .ihh-column {
    display: flex;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .ihh-research-hub .ihh-column-3-7 {
        flex-wrap: nowrap;
    }
    .ihh-research-hub .ihh-column-3-7 .ihh-column__primary {
        flex: 0 0 30%;
        max-width: 30%;
    }
    .ihh-research-hub .ihh-column-3-7 .ihh-column__secondary {
        flex: 0 0 70%;
        max-width: 70%;
        padding-left: 2.5rem;
    }
}

/* Grant Call Left Column Heading - Matches Reference Page "TeleConsultation" */
.ihh-research-hub .grant-call-title {
    font-size: 3.1rem !important;
    line-height: 1.25 !important;
    margin: 0 0 1.5rem !important;
}

@media (max-width: 767px) {
    .ihh-research-hub .grant-call-title {
        font-size: 2.3rem !important;
    }
}

/* Accordion Root - Clean line divider matching reference FAQ */
.wdg-accordion {
    position: relative;
    border-bottom: 1px solid #e0e0e0 !important;
    margin: 0 !important;
}

/* Accordion Trigger (Header) - Large purple question font matching Reference FAQ */
.wdg-accordion__trigger {
    display: flex !important;
    padding: 2.2rem 0 !important;
    margin: 0 !important;
    flex-flow: row nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    user-select: none !important;
    outline: none !important;
    transition: color 0.2s ease;
}

.wdg-accordion__trigger > h4 {
    pointer-events: none !important;
}

.wdg-accordion__trigger h4 {
    flex: 0 1 100% !important;
    padding: 0 1.5rem 0 0 !important;
    margin: 0 !important;
    color: #742581 !important;
    font-weight: 600 !important;
    font-size: 2.1rem !important;
    line-height: 1.35 !important;
    transition: color 0.2s ease;
}

.wdg-accordion__trigger:hover h4 {
    color: #53185c !important;
}

.wdg-accordion--active .wdg-accordion__trigger h4,
.wdg-accordion.active .wdg-accordion__trigger h4 {
    color: #742581 !important;
}

@media (max-width: 767px) {
    .wdg-accordion__trigger {
        padding: 1.8rem 0 !important;
    }
    .wdg-accordion__trigger h4 {
        font-size: 1.8rem !important;
    }
}

/* Chevron Down Arrow Icon - Real IHH SVG */
.wdg-accordion__trigger:after {
    position: relative !important;
    display: block !important;
    flex: 0 0 1.6rem !important;
    width: 1.6rem !important;
    height: 1.6rem !important;
    content: "" !important;
    background-image: url('/ihh/assets/images/reskin/icon-chevron-down-dark-purple.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

.wdg-accordion--active .wdg-accordion__trigger:after,
.wdg-accordion.active .wdg-accordion__trigger:after {
    transform: rotate(180deg) !important;
}

/* Accordion Content Opening / Closing */
.wdg-accordion__content {
    display: none;
    padding: 0 0 2.5rem 0 !important;
    animation: ihhFadeSlideIn 0.25s ease-out;
}

.wdg-accordion.wdg-accordion--active > .wdg-accordion__content,
.wdg-accordion--active .wdg-accordion__content,
.wdg-accordion.active > .wdg-accordion__content,
.wdg-accordion.active .wdg-accordion__content {
    display: block !important;
}

@keyframes ihhFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Output Type Dropdown Filter */
.ihh-output-filter-bar {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.ihh-filter-label {
    font-size: 1.45rem;
    font-weight: 600;
    color: #495057;
    margin-right: 1.2rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.ihh-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 18rem;
    max-width: 100%;
}

.ihh-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1.5px solid #742581;
    border-radius: 0.8rem;
    color: #742581;
    font-size: 1.45rem;
    font-weight: 600;
    padding: 0.7rem 3.6rem 0.7rem 1.4rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23742581' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.3rem;
}

.ihh-select:focus {
    border-color: #53185c;
    box-shadow: 0 0 0 0.2rem rgba(116, 37, 129, 0.15);
}

.ihh-select:hover {
    background-color: #fcf9fd;
}

.ihh-select option {
    color: #333333;
    font-weight: 500;
    padding: 0.5rem;
}

.ihh-output-category-panel {
    animation: ihhFadeSlideIn 0.2s ease-out;
}

/* Distinct Output Category Labels */
.ihh-output-category-label {
    color: #742581 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 1.2rem !important;
    padding-bottom: 0.35rem !important;
    border-bottom: 2px solid #742581 !important;
    display: inline-block !important;
}

/* Output Editorial Styling */
.ihh-output-entry {
    margin-bottom: 2rem !important;
}

.ihh-output-entry p {
    color: #495057;
    font-size: 1.5rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.ihh-output-entry p strong {
    color: #212529;
    font-size: 1.65rem;
    font-weight: 700;
}

.ihh-readmore-link {
    color: #742581 !important;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.ihh-readmore-link:hover {
    color: #53185c !important;
    text-decoration: underline !important;
}

/* Static Project Entry (for projects without outputs yet) */
.ihh-project-entry-static {
    padding: 2.2rem 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin: 0 !important;
}

.ihh-project-title-static {
    margin: 0 !important;
    color: #742581 !important;
    font-weight: 600 !important;
    font-size: 2.1rem !important;
    line-height: 1.35 !important;
}

@media (max-width: 767px) {
    .ihh-project-entry-static {
        padding: 1.8rem 0 !important;
    }
    .ihh-project-title-static {
        font-size: 1.8rem !important;
    }
}
