/* ================================================== */
/* Global Styles                                       */
/* ================================================== */

:root {
    /* Title */
    --academy-main: #759639;
    --academy-secondary: #aa4b41;

    /* Button */
    --academy-button-background-color: #759639;
    --academy-button-text-color: #ffffff;

}

/* Remove page title from single academy entry */
.page-title{
    display: none !important;
}



/* ================================================== */
/* Layout                                             */
/* ================================================== */

/* General layout styles (grid, flexbox, etc.) */
.diaedu-articles-container {
    display: flex;
    column-gap: 20px;
}


/* ================================================== */
/* Search Bar                                         */
/* ================================================== */

.diaedu-search-bar {
    margin-bottom: 20px;
}

.diaedu-search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ================================================== */
/* Filter Tags                                        */
/* ================================================== */

.diaedu-active-filters{
    margin-bottom: 20px;
    margin-top: 10px;
}

.filter-tag {
    font-size: 0.9rem;
    line-height: 1.1rem;
    margin-bottom: 5px;
    background-color: #626266;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    margin-left: 10px;
    
}

#clear-academy-filters {
    font-size: 0.9rem !important;
    line-height: 1.1rem !important;
    margin-bottom: 5px;
    background-color: #626266;
    color: #fff;
    padding: 5px 15px !important;
    border-radius: 50px;
    border-bottom: none;
    display: inline-block;
    
}

.filter-tag:hover, #clear-academy-filters:hover{
    cursor: pointer;
    border: none;
}

.filter-tag:after, .filter-tag:after {
    content: "\00d7";
    font-size: 0.7rem;
    line-height: 0.03rem;
    border: 1px solid #fff;
    border-radius: 100%;
    padding: 0px 3px 0px 3px;
    margin-left: 3px;
    vertical-align: middle;;
}

/* ================================================== */
/* Filter Sidebar                                     */
/* ================================================== */

.diaedu-academy-filters {
    width: 30%;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.diaedu-academy-filters h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Filter Group */
.academy-filter {
    margin-bottom: 20px;
}

.academy-filter > label {
    font-size: 1.1rem;
    line-height: 1.4rem;
    font-weight: bold;
    margin-bottom: 7px;
    display: block;
}

/* Parent Term */
.parent-term {
    font-size: 1rem;
    line-height: 1.2rem;
    margin-top: 10px;
}

.parent-term > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

/* Child Terms */
.child-terms {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #ddd;
    display: none;
    /* display: block !important; */
}

.diaedu-academy-filters .term-group{
    position: relative;
}

.diaedu-academy-filters .term-group .expand-icon{
    cursor: pointer;
    position: absolute;
    top: -5px;
    right: 0px;
}

.child-terms > div {
    display: block; /* Ensure each child item (div) is on a new line */
    margin-bottom: 5px; /* Add spacing between items */
}

.child-terms input[type="checkbox"] {
    display: inline-block; /* Keep the checkbox inline with its label */
    margin-right: 5px; /* Add spacing between checkbox and label */
}

.child-terms label {
    display: inline-block; /* Keep the label inline with its checkbox */
}



/* Checkbox Styling */
.filter-checkbox {
    accent-color: var(--academy-main); /* Modern browsers will style the checkbox */
}

/* Speaker Filter (Dropdown) */
.filter-dropdown {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Select2 Dropdown Styling */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    display: flex;
    align-items: center;
}

/* Utility Classes */
.hidden {
    display: none;
}

.bold {
    font-weight: bold;
}

/* ================================================== */
/* Articles Section                                   */
/* ================================================== */

.diaedu-articles-list {
    width: 75%;
    padding: 10px;
}

.academy-entry {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.academy-entry .academy-icon img {
    max-width: 30px;
    filter: brightness(0) saturate(100%) invert(52%) sepia(60%) saturate(407%) hue-rotate(40deg) brightness(92%) contrast(89%);
}

.academy-entry .article-img img {
    max-width: 180px;
    margin-right: 25px;
    border: 1px solid #ddd;
}

.academy-entry .article-content {
    flex: 1;
}

.academy-entry h2, .academy-entry a {
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin-top: 10px;
    /* color: var(--academy-main); */
    transition: color 0.5s ease;
    text-decoration: none;
}

.academy-entry h2:hover, .academy-entry a:hover,
.diaedu-single-entry h1:hover, .diaedu-single-entry a:hover {
    color: #365400;
    transition: color 0.5s ease;
}

.academy-entry .location-icon, 
.diaedu-single-entry .location-icon{
    width: 0.7rem;
    vertical-align: top;
    margin-right: 5px;
    padding-top: 1px;
    line-height: 1.2rem;
    filter: brightness(0) saturate(100%) invert(47%) sepia(0%) saturate(215%) hue-rotate(161deg) brightness(88%) contrast(94%);
}

.academy-entry .institution-icon,
.diaedu-single-entry .institution-icon{
    width: 0.8rem;
    vertical-align: top;
    margin-right: 5px;
    margin-left: -1px;
    padding-top: 4px;
    line-height: 1.2rem;
    filter: brightness(0) saturate(100%) invert(47%) sepia(0%) saturate(215%) hue-rotate(161deg) brightness(88%) contrast(94%);
}

.academy-entry .speaker-icon,
.diaedu-single-entry .speaker-icon{
    width: 0.8rem;
    vertical-align: top;
    padding-top: 3px;
    margin-right: 5px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(0%) saturate(215%) hue-rotate(161deg) brightness(88%) contrast(94%);
}

.academy-entry .article-speaker, 
.academy-entry .article-speaker-location, 
.diaedu-single-entry .speaker-location {
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 5px;
}

.academy-entry .article-tags,
.diaedu-single-entry .article-tags {
    margin-bottom: 0;
}

.academy-entry .article-tags .tag,
.diaedu-single-entry .article-tags .tag {
    display: inline-block;
    background-color: #f2f3f3;
    padding: 4px 8px;
    margin-right: 5px;
    color: #7b7a7e;
    border-radius: 9px;
    font-size: 0.75rem;
    line-height: 0.85rem;
}
.btn-academy,
a.btn-academy {
    background-color: var(--academy-button-background-color);
    color: var(--academy-button-text-color);
    text-decoration: none;
    border: none;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    line-height: 1.1rem;
    border-radius: 50px;
    margin-top: 7px;
    cursor: pointer;
    transition: background-color 0.5s ease;
    display: inline-block;
}

.btn-academy:hover,
a.btn-academy:hover{
    background-color: #365400;
    color: var(--academy-button-text-color);
    transition: background-color 0.5s ease;
}

.btn-academy::after{
    content: "▶";
    vertical-align: middle;
    margin-left: 7px;
    font-size: 0.5rem;
}



/* ================================================== */
/* Utility Classes                                    */
/* ================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}



/* ================================================== */
/* Single Academy Entry                                */
/* ================================================== */

.entry-content{
    display: flex;
    flex-direction: row;
    align-items: flex-start !important;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.entry-content.webcast .left-column{
    width: 75%;
}

.entry-content.webcast .right-column{
    width: 25%;
}

.diaedu-single-entry h1.entry-title{
    font-size: 1.7rem;
    line-height: 1.9rem;
    margin-top: 10px;
    /* color: var(--academy-main); */
    transition: color 0.5s ease;
    text-decoration: none;
}

.diaedu-single-entry .format-icon{
    max-width: 28px;
    margin-right: 4px;
    vertical-align: middle;
    padding-bottom: 5px;
    filter: brightness(0) saturate(100%) invert(52%) sepia(60%) saturate(407%) hue-rotate(40deg) brightness(92%) contrast(89%);
}

#academy-load-more{
    background-color: #759639;
    color: #fff;
    border: none;
    padding: 10px 60px;
    border-radius: 30px;
    margin: 50px auto 50px auto;
}

/* Webcast */

.diaedu-single-entry .media-container{
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    width: 100%; /* Full width */
    padding-bottom: 56.25%; /* Aspect ratio: 16:9 (height/width = 9/16 = 0.5625 or 56.25%) */
    height: 0; /* Set height to 0, padding-bottom will handle the aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    border-radius: 10px;
}


.speaker-image{
    max-width: 130px !important;
    border: 4px solid #b0883e75;
    padding: 5px;
    border-radius: 50%;
}

.entry-content.webcast .speaker-name{
    font-size: 1.2rem;
    line-height: 1.4rem;
    color: var(--academy-main);
    margin-top: 15px;
    margin-bottom: 0px;
}

.entry-content.webcast .speaker-location{
    font-size: 1rem;
    line-height: 1.2rem;
    color: #7b7a7e;
    margin-top: 5px;
    border-bottom: 1px solid #dfdfdf;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.entry-content.webcast .speaker-institution{
    font-size: 1rem;
    line-height: 1.2rem;
    color: #7b7a7e;
    margin-top: 15px;
    margin-bottom: 10px;
}

.entry-content.webcast .speaker-position{
    font-size: 1rem;
    line-height: 1.2rem;
    color: #7b7a7e;
    margin-top: 15px;
    margin-bottom: 10px;
}

.entry-content.webcast .speaker-profession{
    font-size: 1rem;
    line-height: 1.2rem;
    color: #7b7a7e;
    margin-top: 15px;
    margin-bottom: 10px;
}



.entry-content.webcast .co-authors h3,
.entry-content.webcast .description h3{
    font-size: 1.3rem;
    line-height: 1.5rem;
    color: #3e3e3e;
    margin-top: 20px;
    margin-bottom: 5px;
}

/* Abstract */
.entry-content.abstract .left-column{
    width: 25%;
}

.entry-content.abstract .right-column{
    width: 75%;
}

.entry-content.abstract .speaker-name{
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 5px;
    margin-top: 10px;
}

.entry-content.abstract .speaker-location{
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 5px;
}

.entry-content.abstract .speaker-institution{
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 5px;
}

.entry-content.abstract .co-authors h3,
.entry-content.abstract h3.main-author,
.entry-content.abstract .description h3{
    font-size: 1.3rem;
    line-height: 1.5rem;
    color: var(--academy-main);
    margin-top: 20px;
    margin-bottom: 20px;
    /* border-bottom: 1px solid #dfdfdf; */

}

.entry-content.abstract .speaker-profile{
    margin-bottom: 40px;
}
 



/* ================================================== */
/* Biography Overlay                                  */
/* ================================================== */

.diaedu-single-entry .speaker-overlay.bio {
    display: none;
    background-color: #0000005a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.diaedu-single-entry .speaker-container.bio {
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    top: calc(40% + 70px);
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px;
    width: calc(70% - 80px);
    height: calc(70% - 0px);
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.diaedu-single-entry .speaker-details-container.bio{
    display: flex;
    align-items: flex-start !important;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.diaedu-single-entry .speaker-details.bio .speaker-name{
    font-size: 1.5rem;
    line-height: 1.7rem;
    color: var(--academy-secondary);
}

.diaedu-single-entry .speaker-details.bio{
    text-align: left;
}

.diaedu-single-entry .speaker-bio.bio{
    text-align: justify;
    padding-top: 15px;
}

.diaedu-single-entry .speaker-bio-title{
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.4rem;
    color: var(--academy-main);
}

.diaedu-single-entry .speaker-details-all.container .speaker-image-bio{
    max-width: 100%;
    height: auto;
    border-radius: 50%; /* Optional: Makes the image circular */
    margin-bottom: 15px; /* Adds spacing below the image */
}

@media (max-width: 768px) {
    .diaedu-single-entry .speaker-container.bio {
        top: calc(40% + 70px);
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 25px;
        width: calc(95% - 80px);
        height: calc(90% - 100px);
        overflow-y: scroll;
    }

    .diaedu-single-entry .speaker-details-container.bio{
        display: flex;
        align-items: flex-start !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .diaedu-single-entry .speaker-image-container.bio{
        margin-left: auto;
        margin-right: auto;
    }

    

    .diaedu-single-entry .speaker-details.bio, 
    .diaedu-single-entry .speaker-bio-title{
        text-align: center;
    }
}
