/*-----------------------------------*\
 * #HERO
\*-----------------------------------*/

.educationhub-hero {
    position: relative;
    padding: 10vh 0;
    color: var(--background-white);
    height: auto;
    overflow: hidden;
}

.educationhub-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.educationhub-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.educationhub-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 46, 83, 0.8);
    z-index: -1;
}

.educationhub-hero__content {
    text-align: left;
    position: relative;
}

.educationhub-hero__page-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.educationhub-hero__title {
    color: var(--background-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.educationhub-hero__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.education-content {
    padding: 3rem 0 0;
    text-align: left;
}

.education-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.education-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.education-section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.view-all-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-color);
}

.section-intro {
    padding-bottom: 1.5rem;
}

/* Whitepapers List Section */
.educationhub-home .whitepapers-list {
    padding: 30px 0 60px 0;
    background-color: var(--background-white);
}

.educationhub-home .whitepapers-list__intro {
    text-align: center;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.6;
}

.educationhub-home .whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.educationhub-home .whitepaper-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.educationhub-home .whitepaper-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.educationhub-home .whitepaper-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.educationhub-home .whitepaper-card__color-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--accent-color) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.educationhub-home .whitepaper-card:hover .whitepaper-card__color-overlay {
    transform: translateY(0);
}

.educationhub-home .whitepaper-card__overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--background-white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    height: 95px;
}

.educationhub-home .whitepaper-card__text-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.educationhub-home .whitepaper-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
}

.educationhub-home .whitepaper-card__arrow-link {
    background-color: var(--primary-color);
    color: var(--background-white);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.educationhub-home .whitepaper-card:hover .whitepaper-card__arrow-link {
    background-color: var(--accent-color);
}

.educationhub-home .whitepaper-card__arrow-link svg {
    width: 24px;
    height: 24px;
}

/* Broker Training Section */
.broker-training {
    position: relative;
    padding: 40px 0;
    color: var(--background-white);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.broker-training__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.broker-training__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.broker-training__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 46, 83, 0.8);
    z-index: -1;
}

.broker-training__content {
    text-align: left;
    max-width: 800px;
    margin: 0;
    position: relative;
    padding: 1rem 0;
}

.broker-training__title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.broker-training__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Webinars List Section */
.webinars-list {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.webinars-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2.5rem;
}

.webinars-grid-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.webinar-card-testimonial {
    background-color: var(--background-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
}

.webinar-card-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.webinar-card-testimonial__top-date {
    position: absolute;
    top: 0;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--background-white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 15px 15px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.webinar-card-testimonial__top-date .day {
    font-size: 1.5rem;
}

.webinar-card-testimonial__top-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.webinar-card-testimonial__body {
    padding-top: 0;
    padding-left: 2rem;
    padding-top: 2rem;
}

.webinar-card-testimonial__details {
    margin-top: 1rem;
    text-align: left;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.webinar-card-testimonial__description {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.webinar-card-testimonial__speakers {
    padding-bottom: 1rem;
}

.webinar-card-testimonial__speakers-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.webinar-card-testimonial__speaker-name {
    font-size: 0.9rem;
    color: var(--text-light);
}

.webinar-card-testimonial__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    text-align: start;
}

.webinar-card-testimonial__date-full {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.webinar-card-testimonial__date-icon {
    width: 16px;
    height: 16px;
    filter: invert(55%) sepia(86%) saturate(373%) hue-rotate(176deg) brightness(95%) contrast(92%);
}

.webinar-card-testimonial__decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
}

.circle-1 {
    background-color: var(--accent-color);
    width: 80px;
    height: 80px;
    bottom: 0;
    right: 40px;
    opacity: 0.8;
}

.circle-2 {
    background-color: var(--primary-color);
    width: 90px;
    height: 90px;
    bottom: 30px;
    right: 0;
    opacity: 0.7;
}

/* Styles for the whitepapers page */

/*-----------------------------------*\
 * #ABOUT HERO
\*-----------------------------------*/

/* Styles for the whitepapers page */



/*-----------------------------------*\

 * #ABOUT HERO

\*-----------------------------------*/

.whitepapers-hero {

    position: relative;

    padding: 10vh 0;

    background-image: url('/siteassets/images/banners/genericbanner.jpg');

    background-size: cover;

    background-position: center;

    color: var(--background-white);

    height: auto;

}

.whitepapers-hero__content {

    text-align: left;

    position: relative;

    z-index: 1;

}

.whitepapers-hero__page-title {

    font-size: 1rem;

    font-weight: 700;

    color: var(--accent-color);

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 0.5rem;

}

.whitepapers-hero__title {

    color: var(--background-white);

    font-size: 2.2rem;

    margin-bottom: 1rem;

}

.whitepapers-hero__description {

    font-size: 1.1rem;

    color: rgba(255, 255, 255, 0.85);

    font-weight: 400;

}

/* Whitepapers List Section */
.whitepapers-list {
    padding: 60px 0;
    background-color: var(--background-white);
}

.whitepapers-header {
    text-align: center;
    margin-bottom: 4rem;
}

.whitepapers-header__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.whitepapers-header__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.whitepapers-list__intro {
    text-align: center;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.6;
}

.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.whitepaper-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whitepaper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.whitepaper-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.whitepaper-card__color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--accent-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.whitepaper-card:hover .whitepaper-card__color-overlay {
    opacity: 0.8;
}

.whitepaper-card__overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--background-white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    height: 95px;
}

.whitepaper-card__text-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.whitepaper-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
}

.whitepaper-card__arrow-link {
    background-color: var(--primary-color);
    color: var(--background-white);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.whitepaper-card:hover .whitepaper-card__arrow-link {
    background-color: var(--accent-color);
}

.whitepaper-card__arrow-link svg {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.whitepaper-detail-hero {
    position: relative;

    padding: 4vh 0;

    color: var(--background-white);

    height: auto;

    overflow: hidden;

    background: #2a2e53;

}

.whitepaper-detail-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.whitepaper-detail-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.whitepaper-detail-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 46, 83, 0.8);
    z-index: -1;
}

.whitepaper-detail-hero__content {
    text-align: left;
    position: relative;
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--background-white);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: var(--background-white);
    font-weight: 700;
}

.whitepaper-detail-hero__title {
    font-size: 2.2rem;
    color: var(--background-white);
    margin-bottom: 1rem;
}

/* Layout */
.whitepaper-detail-layout {
    padding: 60px 0;
    background-color: #fff;
}

.whitepaper-detail-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Article */
.whitepaper-article__image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.whitepaper-article {
    padding: 0;
}

.whitepaper-article__title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.whitepaper-article p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Form */
.whitepaper-form-container {
    background-color: #f8f9fa;
    padding-inline: 2rem;
    padding-bottom: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.form-icon-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.form-header__icon {
    width: 50px;
    height: auto;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.form-icon-container:hover .form-header__icon {
    opacity: 1;
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.episerver-whitepaper-form .form-group {
    margin-bottom: 1.5rem;
}

.episerver-whitepaper-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.episerver-whitepaper-form input[type="text"],
.episerver-whitepaper-form input[type="email"],
.episerver-whitepaper-form select,
.episerver-whitepaper-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.episerver-whitepaper-form input:focus,
.episerver-whitepaper-form select:focus,
.episerver-whitepaper-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.episerver-whitepaper-form .radio-group,
.episerver-whitepaper-form .checkbox-group {
    display: flex;
    align-items: center;
}

.episerver-whitepaper-form .radio-group input,
.episerver-whitepaper-form .checkbox-group input {
    margin-right: 0.5rem;
}

.episerver-whitepaper-form .radio-group label,
.episerver-whitepaper-form .checkbox-group label {
    margin-right: 1.5rem;
    margin-bottom: 0;
    font-weight: 400;
}


.episerver-whitepaper-form .form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.episerver-whitepaper-form .btn {
    width: 100%;
}

.episerver-whitepaper-form input[type="reset"],
.episerver-whitepaper-form .FormResetButton {
    width: 50%;
    padding: 1rem;
    font-size: 1.1rem;
    /* background-color: var(--accent-color); */
    background: #6c757d;
    color: var(--background-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.episerver-whitepaper-form input[type="reset"]:hover,
.episerver-whitepaper-form .FormResetButton:hover {
    background-color: #d92b1a;
    transform: translateY(-2px);
} 

.episerver-whitepaper-form input[type="submit"],
.episerver-whitepaper-form .FormSubmitButton {
    width: 48%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: var(--background-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.episerver-whitepaper-form .btn:hover,
.episerver-whitepaper-form input[type="submit"]:hover,
.episerver-whitepaper-form .FormSubmitButton:hover {
    background-color: #d92b1a;
    transform: translateY(-2px);
} 

/* Validation Styles */
.episerver-whitepaper-form .validation-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: none; /* Shown by JS */
}

.episerver-whitepaper-form .input-validation-error {
    border-color: #dc3545;
}

@media (max-width: 992px) {
    .whitepaper-detail-content {
        grid-template-columns: 1fr;
    }
}

/* CSS for faq.html */

.faq-hero {
    position: relative;
    padding: 10vh 0;
    background-size: cover;
    background-position: center;
    color: var(--background-white);
    background-image: url('/siteassets/images/banners/genericbanner.jpg');
    height: auto;
}

.faq-hero__content {
    text-align: left;
}

.faq-hero__title {
    color: var(--background-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.faq-hero__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.faq-body-content {
    padding-bottom: 4rem;
}

.faq-layout {
    display: flex;
    gap: 3rem;
}

.faq-main-content {
    flex: 2; /* Takes up 2/3 of the space */
    padding-right: 3rem;
    border-right: 1px solid #eee;
}

.faq-sidebar {
    flex: 1; /* Takes up 1/3 of the space */
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.faq-media-controls-section {
    padding-top: 4rem;
}

.faq-media-controls {
    margin-bottom: 3rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.faq-search-bar__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.faq-search-bar {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.faq-search-bar__button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.faq-search-bar__icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.faq-category-filters {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-category-filters__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    margin-right: 1rem;
    white-space: nowrap;
}

.faq-category-filters__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.faq-category-filters__link {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-page-content {
    padding: 0;
}

.faq-page-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0;
    margin-bottom: 3rem;
}

.faq-accordion-item {
    border-bottom: 1px solid #eee;
}

.faq-accordion-header {
    width: 100%;
    background-color: #fff;
    border: none;
    padding: 1.2rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-accordion-header span:first-child {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.faq-accordion-header:hover {
    background-color: #f8f9fa;
}

/* Active state styles */
.faq-accordion-item.active .faq-accordion-header span:first-child {
    opacity: 1;
}

.faq-accordion-item.active .faq-accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

.faq-accordion-item.active .faq-accordion-icon::before {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0;
}

.faq-accordion-icon {
    font-size: 1.2rem; /* Reduced size */
    font-weight: 300;
    transition: transform 0.3s ease;
    position: relative;
    width: 20px; /* Reduced size */
    height: 20px; /* Reduced size */
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color); /* Changed color */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-accordion-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f8f9fa;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 500px; /* Adjust as needed */
}

.faq-accordion-content p {
    padding: 0.5rem;
    margin: 1;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-page-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.faq-video-list .section-title {
    text-align: left;
}
.faq-sidebar .faq-video-list {
    padding: 0;
}
.faq-video-list .section-title::after {
    left: 0;
    transform: translateX(0);
}

.faq-category-filters__link:hover,
.faq-category-filters__link.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.faq-sidebar .video-list {
    padding: 0;
}

.faq-sidebar .video-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-video-card--sidebar {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    background-color: var(--background-white);
    transition: box-shadow 0.3s ease;
}

.faq-video-card--sidebar:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.faq-video-card--sidebar .video-card__image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    padding: 0.4rem;
}

.faq-video-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-card:hover .faq-video-card__image {
    transform: scale(1.1);
}

.faq-video-card--sidebar .video-card__content {
    padding: 1rem;
}

.faq-video-card--sidebar .video-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.faq-video-card__description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.faq-video-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 46, 83, 0.7) 0%, transparent 60%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: background-color 0.4s ease;
}

.video-card:hover .faq-video-card__overlay {
    background: linear-gradient(to top, rgba(42, 46, 83, 0.8) 0%, transparent 70%);
}

.faq-play-button-container {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    transform: scale(1);
}

.faq-play-button-container:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.faq-play-button-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

.faq-play-button-container:hover .faq-play-button-icon {
    fill: var(--background-white);
}

@media (max-width: 768px) {
    .faq-category-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-category-filters__title {
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .faq-layout {
        flex-direction: column;
    }

    .faq-sidebar {
        position: static;
        top: auto;
    }

    .faq-sidebar .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faq-sidebar .video-grid {
        grid-template-columns: 1fr;
    }
}

/*videos page styles*/

.videos-body {
    background-image: url('/siteassets/images/training-program-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.videos-hero {
    position: relative;
    padding: 10vh 0;
    background-image: url('/siteassets/images/banners/genericbanner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--background-white);
    height: auto;
}

.videos-hero__content {
    text-align: left;
}

.videos-hero__title {
    color: var(--background-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.videos-hero__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}


/* Training Info Section */
.training-info {
    padding-block: 2.5rem; /* Reduced padding */
    background-color: transparent;
}

.training-info__title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.training-info__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.training-info__content {
    max-width: 900px; /* Increased max-width for side-by-side content */
    margin-inline: auto;
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex; /* Flex for columns */
    gap: 2rem; /* Gap between columns */
}

.training-info__col {
    flex: 1; /* Each column takes equal space */
}

.training-info__content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.training-info__content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.training-info__content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.training-info__content li {
    margin-bottom: 0.5rem;
}

/* Video List Section */
.video-list {
    padding-bottom: 4rem;
    background-color: transparent; /* Remove background color to show body background */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr); /* Single column for horizontal cards */
    gap: 2rem;
}

.video-card {
    position: relative;
    display: flex; /* Changed to flex for horizontal layout */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    height: 250px; /* Adjusted height for horizontal card */
    text-decoration: none;
    background-color: var(--background-white);
    transition: box-shadow 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.video-card__image-wrapper {
    position: relative;
    flex: 0 0 50%; /* Image takes 50% of the width */
    overflow: hidden;
    padding: 0.4rem; /* Added padding */
}

.video-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; /* Added border-radius */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-card:hover .video-card__image {
    transform: scale(1.1);
}

.video-card.hidden {
    display: none;
}

.video-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 46, 83, 0.7) 0%, transparent 60%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; /* Always visible */
    transition: background-color 0.4s ease;
}

.video-card:hover .video-card__overlay {
    background: linear-gradient(to top, rgba(42, 46, 83, 0.8) 0%, transparent 70%);
}

.play-button-container {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0; /* Initial grey background */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    transform: scale(1); /* Always visible */
}

.play-button-container:hover {
    background-color: var(--accent-color); /* Red background on hover */
    transform: scale(1.1);
}

.play-button-icon {
    width: 55px;
    height: 55px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
	background-color: transparent !important;
    border-radius: 50%;
}

.play-button-container:hover .play-button-icon {
    fill: var(--background-white);
}

.video-card__content {
    flex: 1;
    padding: 1.5rem 1rem;
}

.video-card__subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
}

.load-more-container {
    text-align: center;
    margin-top: 2.5rem;
}

.load-more-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.load-more-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr; /* Single column on tablets */
    }
}

@media (max-width: 768px) {
    .videos-hero__title {
        font-size: 1.8rem;
    }

    .videos-hero__description {
        font-size: 1rem;
    }

    .training-info__content {
        flex-direction: column; /* Stack columns on mobile */
        gap: 1.5rem;
    }

    .video-card {
        flex-direction: column; /* Stack image and content on mobile */
        height: auto;
    }

    .video-card__image-wrapper {
        flex-basis: auto;
        height: 200px; /* Give image a fixed height on mobile */
    }
}

