* {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #ffffff;
    --bs-border-radius: 0;
    --bs-border-width: 0;
    --bs-card-spacer-y: 15px;
    --bs-card-spacer-x: 18px;
    --sidebar-header-size: 18px;
    --sidebar-header-weight: 700;
    --sidebar-header-color: #ffffff;
    --sidebar-header-margin: 0;
    --sidebar-headline-line-height: 1.3125;
    --anchor-highlight-color: #d9784c;
}
body {
    background-color: #000000 !important;
}
a {
    color: #ffffff !important;
}
[type=button]:focus, 
[type=button]:hover, 
[type=submit]:focus, 
[type=submit]:hover, 
button:focus, 
button:hover {
    background-color: var(--anchor-highlight-color) !important;
    color: #ffffff;
}
header#site-header, 
.page-header, 
footer {
    display: none;
}
#content {
    background-image: url('../img/bg-page-2.webp');
    background-size: 3844px;
    background-repeat: no-repeat;
    background-position: top center;
    max-width: 100%;
    padding-bottom: 30px;
    background-color: #000000;
}
/* #content.video-detail {
    background-size: 3844px;
} */
/* .container {
    max-width: 1200px;
    margin: 0 auto;
} */
.header-avids {
    background-color: transparent;
    width: 100%;
    z-index: 1000;
    transition: position 1.6s ease, top 1.6s ease, background-color 0.6s linear, box-shadow 0.6s ease;
}
.header-avids.sticky {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #100c08;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.admin-bar .header-avids.sticky {
    top: 32px;
}
.header-avids__container {
    position: relative;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: solid 1px #ffffff;
    margin-bottom: 20px;
    transition: padding 0.6s ease;
}
@media (min-width: 768px) {
    .header-avids__container {
        padding-top: 36px;
        padding-bottom: 20px;
    }
}
.header-avids.sticky .header-avids__container {
    margin-bottom: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom-width: 0;
}
.header-avids__container > .row {
    align-items: center;
}
/* Add padding to body when header is sticky to prevent content jump */
body.has-sticky-header .page-content {
    padding-top: 110px; /* match your header height */
}
footer.avids-footer {
    background-color: #100c08;
    display: flex;
}
.avids-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}
.avids-footer .footer-inner .site-logo {
    max-width: 30px;
    margin-right: 20px;
}
.avids-footer .footer-inner p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    display: inline-block;
    margin-right: 10px;
}
.avids-footer .footer-inner p:last-of-type {
    margin-right: 0;
}
.avids-footer p a:hover {
    text-decoration: underline;
}
.avids-footer .footer-inner .copyright {
    margin-left: 2%;
}
.search-form label {
    width: 100%;
    display: none;
}
input[type=date], 
input[type=email], 
input[type=number], 
input[type=password], 
input[type=search], 
input[type=tel], 
input[type=text], 
input[type=url], 
select, 
textarea {
    background-color: #282a2d;
    border-radius: 0 !important;
    border-width: 0 !important;
    font-size: 17px;
    font-weight: 500;
}
.header-avids row {
    align-items: center;
}
.logo-info {
    text-align: center;
}
@media (min-width: 768px) {
    .logo-info {
        text-align: left;
    }
}
.logo-info a {
    display: inline-block;
    margin-bottom: 15px;
}
@media (min-width: 576px) {
    .logo-info a {
        margin-bottom: 0;
    }
}
.logo-main {
    height: 41px;
    transition: height 0.6s ease;
}
.header-avids.sticky .logo-main {
    height: 44px;
}
@media (min-width: 768px) {
    .logo-main {
        height: 53px;
    }
}
.doctor-info {
    text-align: center;
}
@media (min-width: 768px) {
    .doctor-info {
        text-align: right;
    }
}
.doctor-info img {
    border-radius: 50%;
    display: none;
}
@media (min-width: 992px) {
    .doctor-info img {
        display: inline;
    }
}
/* Search form */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    border-radius: 2px;
    background: #000000;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Search input */
.search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 16px;
    outline: none;
    width: 100%;
}

/* Search submit button */
button.search-submit {
    background: var(--anchor-highlight-color, #0056b3);
    border: none;
    border-radius: 2px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 5px;
}

button.search-submit svg {
    fill: white;
    width: 18px;
    height: 18px;
}

button.search-submit:hover {
    background: var(--anchor-highlight-color-hover, #003d7a);
    transform: scale(1.05);
}

/* Clear button */
button.search-clear {
    background: #323232;
    border: solid 2px #ffffff;
    border-radius: 2px;
    padding: 7px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    color: #fff;
    font-weight: 700;
}



/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .search-form {
        flex-wrap: wrap;
    }
    
    .search-field {
        width: calc(100% - 50px);
    }
    
    button.search-clear {
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .header-avids__container .search {
        display: none;
    }
    .header-avids__container .search-icon-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20px;
        width: 20px;
        cursor: pointer;
    }
    .search-overlay-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.85);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }
    .search-overlay-mobile.active {
        display: flex;
    }
    .search-overlay-mobile .search-form {
        width: 90vw;
        max-width: 400px;
        background: #000000;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        padding: 20px 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .search-overlay-mobile .search-field {
        width: 100%;
        margin-bottom: 10px;
    }
    .search-overlay-mobile .search-submit,
    .search-overlay-mobile .search-clear {
        width: 100%;
        margin: 0 0 5px 0;
    }
    .search-overlay-mobile .close-search-overlay {
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 10001;
    }
}

@media (min-width: 768px) {
    .header-avids__container .search-icon-mobile,
    .search-overlay-mobile {
        display: none !important;
    }
}

.vid-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: solid 1px #ffffff;
    padding-bottom: 4px;
    margin-bottom: 18px;
}
.vid-nav p {
    margin-right: 52px;
    font-size: 16px;
}
.vid-nav li a {
    padding: 5px 20px;
    margin-right: 20px;
    font-size: 16px;
    text-decoration: none;
    color: #848484 !important;
}
.vid-nav li.active a {
    color: #ffffff !important;
}
.vid-nav li a:hover, 
.vid-nav li a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}
section.row {
    margin-bottom: calc(44px - 1.5rem);
}
.section-headline {
    font-size: 30px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 22px;
}
.section-headline__amount {
    font-size: 10px;
    font-weight: bold;
    top: -15px;
}
.pathway-section .section-headline {
    padding: 5px 10px 7px;
    background-color: rgba(255,255,255, 0.2) !important;
}

/* Force override for any conflicting styles */
.pathway-section .section-headline,
.pathway-section .section-headline:hover,
.pathway-section .section-headline:focus,
.pathway-section .section-headline:active {
    background-color: rgba(255,255,255, 0.2) !important;
}
.row.pathway-row {
    padding: 0 20px;
}
.featured-videos__item {
    margin-bottom: 1.5rem;
}
.featured-videos__item h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 8px;
}
.featured-videos__item h3 a {
    text-decoration: underline;
}
.featured-videos__item h3 a:hover, 
.featured-videos__item h3 a:active {
    text-decoration: none;
}
.featured-videos__item img {
    margin-bottom: 8px;
}
.featured-videos__item p {
    font-size: 16px;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 3px;
}
.featured-videos__item .run-time p {
    font-size: 11px;
}
.pathway-playlists {
    margin-bottom: 1.5rem;
}
.pathway-playlists .row {
    align-items: center;
}
.pathway-link {
    text-decoration: none;
    color: inherit;
}
.pathway-link:hover {
    text-decoration: none;
    color: inherit;
}
.pathway-playlists img {
    width: 40px;
}
.pathway-playlists__item {
    min-height: 62px; /* Default minimum height */
    max-height: 327px; /* Maximum height when expanded */
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease, transform 0.2s ease; /* Smooth transition for height changes */    
    background-position: center top;
}
.pathway-playlists__item:hover {
    transform: scale(1.02);
}

.pathway-playlists__item-overlay {
    position: absolute;
    width: 100%;
    height: auto; /* Change from 100% to auto */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto auto auto 0;
    background-color: rgba(0, 0, 0, .65);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}
.pathway-playlists__item-overlay,
.pathway-playlists__item-overlay * {
    text-decoration: none;
}
.pathway-playlists__item-overlay:hover,
.pathway-playlists__item-overlay:hover * {
    text-decoration: none;
    color: inherit;
}
/* Style for collapsed state */
.pathway-playlists__item-overlay .collapse:not(.show) {
    display: none;
}
/* Ensure toggle button is always visible */
.pathway-playlists__item-overlay .icn-tog-exp {
    position: relative;
    z-index: 3;
    display: block;
}
/* Add scrolling only when expanded */
.pathway-playlists__item-overlay .collapse.show {
    overflow-y: auto;
    max-height: calc(327px - 70px); /* Maximum height minus header height */
}
.pathway-playlists__item img {
    width: 100%;
}
.pathway-playlists__item-overlay h3 {
    font-size: 22px;
    line-height: 1.1;
    text-align: center;
    font-weight: 700 !important;
    margin: 0 0 5px;
    /* display: flex; */
    justify-content: space-between;
    position: relative;
    z-index: 2;
    word-wrap: break-word; /* Ensure proper word wrapping */
    text-decoration: none;
}
.pathway-playlists__item-overlay h4 {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700 !important;
    margin-top: 10px;
    margin-bottom: 6px;
}
.pathway-playlists__item-overlay h4 a:hover {
    text-decoration: none;
}
.pathway-playlists__item-overlay p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0;
}
.pathway-playlists__item-links {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
}
.all-videos {
    margin-bottom: 28px;
}
.all-videos__item figure {
    overflow: hidden;
    position: relative;
    margin-bottom: 9px;
    display: flex;
    align-items: self-end;
}
.all-videos__item figure img {
    width: 100%;
}
.all-videos__item h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 8px;
}
.all-videos__item p {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 3px;
}
.featured-videos__item .script_type, 
.all-videos__item .script_type {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 3px;
}
.all-videos__item .run-time .card-text {
    font-size: 11px;
}
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--anchor-highlight-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 6px;
}
.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.go-to-top:hover {
    background-color: var(--anchor-highlight-color-hover);
    transform: translateY(-3px);
}
.avids-video video {
    width: 100%;
}
.avids-st p {
    text-align: right;
    font-size: 12px;
    margin: 0;
}

.avids-st {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-pathway-btn {
    display: inline-flex;
    align-items: center;
    justify-content: start;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0;
}

.back-to-pathway-btn:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateX(-2px);
}

.back-to-pathway-btn svg {
    width: 16px;
    height: 16px;
}
.icn-tog-exp img {
    width: 16px;
    max-width: 16px;
}
.icn-tog-exp.collapsed img {
    width: 16px;
    max-width: 16px;
    transform: rotate(180deg);
}
.sidebar-pathway__header .icn-info {
    width: 12px;
    max-width: 12px;
}
.run-time img {
    width: 16px;
    max-width: 16px;
    margin-right: 9px;
    margin-top: auto;
    margin-bottom: 3px;
}
#overview-tab-pane {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.sidebar-pathway {
    background-color: rgba(50, 50, 50, .7);
    max-height: 367px;
    margin-top: 20px;
    overflow: scroll;
    /* Add styles for better scrolling experience  */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* For Firefox */
    transition: all 0.25s ease-in-out;
}
@media (min-width: 1200px) {
    .sidebar-pathway {
        margin-top: 0;
        max-height: 433px;
    }
}
@media (min-width: 1400px) {
    .sidebar-pathway {
        margin-top: 0;
        max-height: 562.88px;
    }
}
/* @media (min-width: 768px) {
    .sidebar-pathway {
        width: 306px;
    }
} */
/* Webkit scrollbar styling (Chrome, Safari, newer Edge) */
.sidebar-pathway::-webkit-scrollbar {
    width: 6px;
}

.sidebar-pathway::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-pathway::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-pathway::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
.sidebar-pathway__container {
    max-height: 547px;
    overflow: hidden;
    border-top: solid 1px #ffffff;
}
.sidebar-pathway__container.hidden-pathway {
    display: none;
}
.sidebar-pathway__container:first-of-type {
    border-top: none;
}
.sidebar-pathway__header {
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    border-width: 0 0 1px 0;
    border-color: #ffffff;
    border-style: solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-pathway__header .icn-tog-exp {
    line-height: 16px;
}
.sidebar-pathway__header .icn-info {
    margin-right: 22px;
    margin-top: 2px;
}
.sidebar-pathway__header h3 {
    font-size: var(--sidebar-header-size);
    font-weight: var(--sidebar-header-weight);
    color: var(--sidebar-header-color);
    margin: var(--sidebar-header-margin);
}
.sidebar-pathway__header h3 a {
    color: inherit;
    text-decoration: none;
}

.sidebar-pathway__header h3 a:hover {
    text-decoration: underline;
}
.sidebar-pathway__body {
    max-height: 490px;
    overflow: scroll;
    /* Remove overflow: scroll since parent handles scrolling */
}
.sidebar-pathway__body .card {
    --bs-card-spacer-y: 18px;
    --bs-card-spacer-x: 18px;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: #ffffff;
    --bs-card-title-size: 15px;
    --bs-card-subtitle-color: ;
    --bs-card-border-width: 0 0 1px 0;
    --bs-card-border-color: #707070;
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-bg: transparent;
    --bs-card-text-color: #ffffff;
    --bs-card-text-size: 11px;
    border-width: var(--bs-card-border-width);
    border-color: var(--bs-card-border-color);
    border-style: solid;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x) 17px var(--bs-card-spacer-y);
}
.sidebar-pathway__body .card.card-body.current-video {
    padding-left: 15px;
}
.sidebar-pathway__body .card:last-of-type {
    --bs-card-border-width: 0;
}
.sidebar-pathway__body .pathway-section {
    font-size: 16px;
    padding: 7px 15px 6px;
    margin: 0;
    border-bottom: solid 1px #ffffff;
    background-color: #444444;
}
.sidebar-pathway__body .card-title {
    color: var(--bs-card-title-color);
    font-size: var(--bs-card-title-size);
    line-height: var(--sidebar-headline-line-height);
    margin-bottom: 0;
    margin-top: 0;
}

.sidebar-pathway__body .card-title a {
    text-decoration: none;
    display: inline-block;
    width: 90%;
    vertical-align: top;
}

.sidebar-pathway__body .card-title a:hover, 
.sidebar-pathway__body .card-title a:focus {
    text-decoration: underline;
}
.sidebar-pathway__body .run-time {
    padding-left: 19px;
}
.sidebar-pathway__body .card.card-body.current-video {
    border-left: 3px solid #0d6efd;
}
.sidebar-pathway__body .card.card-body:first-of-type .card-title {
    padding-left: 3px;
}
.sidebar-pathway__body .card.card-body.current-video .card-title a {
    color: #0d6efd;
    font-weight: 500;
}

.sidebar-pathway__body .card-text {
    color: var(--bs-card-text-color);
    font-size: var(--bs-card-text-size);
}
.sidebar-related__header {
    padding: 21px 0 16px;
    border-width: 0 0 1px 0;
    border-color: #ffffff;
    border-style: solid;
    margin-bottom: calc(var(--bs-card-spacer-y) + 4px);
}
.sidebar-related__header h3 {
    font-size: var(--sidebar-header-size);
    font-weight: var(--sidebar-header-weight);
    color: var(--sidebar-header-color);
    margin: var(--sidebar-header-margin);
}
.sidebar-related__body article {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.sidebar-related__body article:last-of-type {
    margin-bottom: 0;
}
.sidebar-related__body article img {
    margin-right: 19px;
}
.sidebar-related__body article h4 {
    font-size: 16px;
    font-weight: 500;
    line-height: var(--sidebar-headline-line-height);
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
}
.sidebar-related__body article h4 a:hover, 
.sidebar-related__body article h4 a:focus {
    text-decoration: none;
}
.sidebar-related__body article p {
    font-size: 11px;
    font-weight: 300;
    margin-bottom: 0;
    color: #ffffff;
}
.loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}
.content-specifics {
    padding-top: 19px;
    position: relative;
}

.content-specifics .share-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}
@media (min-width: 576px) {
    .content-specifics .share-content {
        position: absolute;
        top: 8px;
        right: 0;
    }
}
.content-specifics .share-content a {
    transition: background-image .15s ease-in-out;
    text-decoration: none !important;
}
.content-specifics .share-content .icn-email {
    text-indent: -9999px;
    width: 20px;
    height: 16px;
    max-width: 20px;
    margin-right: 21px;
    margin-top: 3px;
    background-image: url('../img/icn-mail.svg');
    display: inline-block;
}
.content-specifics .share-content .icn-email:hover, 
.content-specifics .share-content .icn-email:focus, 
.content-specifics .share-content .icn-email:active {
    background-image: url('../img/icn-mail-hov.svg');
}
.content-specifics .share-content .icn-print {
    text-indent: -9999px;
    width: 27px;
    height: 23.25px;
    max-width: 27px;
    margin-right: 0;
    margin-top: 2px;
    background-image: url('../img/icn-print-hov.svg');
    display: inline-block;
}
.content-specifics .share-content .icn-print:hover, 
.content-specifics .share-content .icn-print:focus, 
.content-specifics .share-content .icn-print:active {
    background-image: url('../img/icn-print.svg');
}

/* Pathway page share content styling */
.share-content {
    display: flex;
    align-items: center;
}
.share-content .icn-email {
    text-indent: -9999px;
    width: 20px;
    height: 16px;
    max-width: 20px;
    margin-right: 21px;
    margin-top: 3px;
    background-image: url('../img/icn-mail.svg');
    display: inline-block;
}
.share-content .icn-email:hover, 
.share-content .icn-email:focus, 
.share-content .icn-email:active {
    background-image: url('../img/icn-mail-hov.svg');
}
.share-content .icn-print {
    text-indent: -9999px;
    width: 22px;
    height: 19.25px;
    max-width: 22px;
    margin-right: 0;
    margin-top: 2px;
    background-image: url('../img/icn-print.svg');
    display: inline-block;
}
.share-content .icn-print:hover, 
.share-content .icn-print:focus, 
.share-content .icn-print:active {
    background-image: url('../img/icn-print-hov.svg');
}
.share-content .social-share {
    margin-right: 21px;
}
.share-content .social-share img {
    opacity: .5;
    width: 20px;
}
.share-content .social-share:hover img {
    opacity: .8;
}
.share-content a {
    text-decoration: none !important;
}
.content-specifics .share-content .icn-share {
    text-indent: -9999px;
    width: 22px;
    height: 22px;
    max-width: 22px;
    margin-right: 0;
    margin-top: 2px;
    background-image: url('../img/icn-share.svg');
    display: inline-block;
}
.content-specifics .share-content .icn-share:hover, 
.content-specifics .share-content .icn-share:focus, 
.content-specifics .share-content .icn-share:active {
    background-image: url('../img/icn-share-hov.svg');
}
/* Exact target: detail share button by id + type */
.content-specifics .share-content button#detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn,
.content-specifics .share-content button#watchlist-detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn {
    margin-right: 21px;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 12px 15px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    border-width: 2px;
    border-style: solid;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: none;
    cursor: pointer;
    background-color: var(--anchor-highlight-color, #d9784c);
    border-color: #ffffff;
    color: #fff;
}
@media (min-width: 1200px) {
    .content-specifics .share-content button#detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn,
    .content-specifics .share-content button#watchlist-detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn {
        padding: 12px 30px;
        font-size: 13px;
    }
}
.content-specifics .share-content button#detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn:hover,
.content-specifics .share-content button#detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn:focus-visible,
.content-specifics .share-content button#detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn:active,
.content-specifics .share-content button#watchlist-detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn:hover,
.content-specifics .share-content button#watchlist-detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn:focus-visible,
.content-specifics .share-content button#watchlist-detail-share-open-btn[type="button"].btn.btn-primary.avids-detail-share-btn:active {
    background-color: #000 !important;
}
.content-specifics .share-content .social-share {
    margin-right: 21px;
}
.content-specifics .share-content .social-share img {
    opacity: .5;
    width: 20px;
}
.content-specifics .share-content .social-share:hover img {
    opacity: .8;
}
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-options {
    display: none;
    position: absolute;
    background: #323232;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 2px;
    padding: 8px 10px;
    z-index: 1000;
    right: 0; /* Align dropdown to the right */
    width: 145px;
}

.share-options.active {
    display: block;
}

.share-options a {
    display: inline-block;
    padding: 0;
    text-decoration: none;
    color: #333;
    white-space: nowrap; /* Prevent line breaks */
    margin-right: 5px;
}
.share-options a:last-of-type {
    margin-right: 0;
}
.share-options a:hover {
    background: transparent;
}

/* Add specific styling for the social media icons */
.share-options a img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
.content-specifics .nav-tabs {
    border-color: solid;
    border-width: 0 0 1px 0 ;
    border-style: solid;
    margin-bottom: 12px;
}
.content-specifics .nav-tabs .nav-link {
    margin-bottom: 0;
    border: 0 solid transparent;
    border-radius: 0;
    background: transparent;
    color: #848484;
    text-decoration: none;
}
.content-specifics .nav-item:first-of-type .nav-link  {
    padding-left: 0;
    padding-bottom: 7px;
}
.content-specifics .nav-tabs .nav-link:hover {
    color: #ffffff;
    background-color: transparent !important;
}
.content-specifics .nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: transparent !important;
}
.content-specifics .nav-tabs .nav-link.active:hover {
    color: #848484;
    background-color: transparent !important;
}
.content-specifics .nav-tabs .nav-link.active:focus {
    background-color: transparent !important;
}
.tab-content>.tab-pane {
    display: none !important;
}
.tab-content>.active {
    display: flex !important;
}
#overview-tab-pane .info-doc {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
}
@media (min-width: 576px) {
    #overview-tab-pane .info-doc {
        margin-bottom: 0;
    }
}
#overview-tab-pane .info-doc__img {
    margin-right: 20px;
    max-width: 91px;
    border-radius: 50%;
}
#overview-tab-pane .info-doc__data h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
}
#overview-tab-pane .info-doc__data h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
}
#overview-tab-pane .contact-doc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}
#overview-tab-pane .contact-doc__schedule {
    display: flex;
    justify-content: end;
    align-items: flex-start;
    height: 100%;
}

#overview-tab-pane .contact-doc__qr-code figure {
    margin-bottom: 0;
    margin-left: 20px;
}
#overview-tab-pane .contact-doc__qr-code:hover {
    cursor: pointer;
}
#overview-tab-pane .contact-doc__qr-code img {
    max-width: 100px;
}
#overview-tab-pane .contact-doc__qr-code-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}
#overview-tab-pane .contact-doc__qr-code-overlay figure {
    margin: 0 auto;
}
#overview-tab-pane .contact-doc__qr-code-overlay img {
    max-width: 80vw;
    max-height: 80vh;
}
#overview-tab-pane .contact-doc__qr-code-overlay[style*="display: none"] {
    background: none;
    z-index: auto;
    display: none;
}
.btn-primary {
    --bs-btn-padding-x: 15px;
    --bs-btn-padding-y: 12px;
    --bs-btn-font-size: 11px;
    --bs-btn-font-weight: 700;
    --bs-btn-line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none !important;
    --bs-btn-color: #fff;
    --bs-btn-bg: #323232;
    --bs-btn-border-width: 2px;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--anchor-highlight-color);
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #323232;
    --bs-btn-active-border-color: #ffffff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #444444;
    --bs-btn-disabled-bg: #1c1c1c;
    --bs-btn-disabled-border-color: #ffffff;
}
@media (min-width: 992px) {
    .btn-primary {
        --bs-btn-font-size: 12px;
    }
}
@media (min-width: 1200px) {
    .btn-primary {
        --bs-btn-padding-x: 30px;
        --bs-btn-font-size: 13px;
    }
}
#overview-tab-pane .info-details {
    padding-top: 27px;
}

#overview-tab-pane .info-details h3 {
    font-size: 30px;
    font-weight: 400;
    margin: 0;
}
#overview-tab-pane .info-details .info-details__updated {
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 23px;
}
#overview-tab-pane .info-details p {
    font-size: 16px;
    line-height: var(--sidebar-headline-line-height);
    font-weight: 400;
    margin-bottom: 21px;
}

.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-options {
    display: none;
    position: absolute;
    background: #323232;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 2px;
    padding: 8px 10px;
    z-index: 1000;
    right: 0; /* Align dropdown to the right */
    width: 145px;
    
}

.share-options.active {
    display: block;
}

.share-options a {
    display: inline-block;
    padding: 0;
    text-decoration: none;
    color: #333;
    white-space: nowrap; /* Prevent line breaks */
    margin-right: 5px;
}
.share-options a:last-of-type {
    margin-right: 0;
}
.share-options a:hover {
    background: transparent;
}

/* Add specific styling for the social media icons */
.share-options a img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* ==========================================
   Video Container and Base Styles
   ========================================== */
.video-container {
    position: relative;
    width: 100%;
    transition: all 0.25s ease-in-out;
}

.video-player {
    width: 100%;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    margin: 0;
    padding: 0;
    display: block;
}

/* ==========================================
   Video Play Button Overlay
   ========================================== */
.video-play-overlay {
    position: absolute;
    top: calc(50% - 30px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-overlay-button {
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.play-overlay-button:hover {
    transform: scale(1.1);
    background: transparent !important;
    opacity: 1;
}

.play-overlay-button img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive play button sizing - only when video container is small */
@media (max-width: 768px) {
    .play-overlay-button img {
        max-width: 20%;
        max-height: 20%;
        min-width: 50px;
        min-height: 50px;
    }
}

@media (max-width: 576px) {
    .play-overlay-button img {
        max-width: 25%;
        max-height: 25%;
        min-width: 60px;
        min-height: 60px;
    }
}

/* Override any inherited styles from custom controls */
.video-play-overlay .play-overlay-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: transparent !important;
}

.video-play-overlay .play-overlay-button:hover,
.video-play-overlay .play-overlay-button:focus,
.video-play-overlay .play-overlay-button:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: transparent !important;
    opacity: 1 !important;
}

/* Hide overlay when video is playing */
.video-container.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   Custom Controls Base Layout
   ========================================== */
.custom-controls {
    position: relative;
    left: 0;
    right: 0;
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 2;
    margin: 0;
}

.progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 1;
    transition: opacity 0.3s;
}

/* Controls are always visible - no hover dependency */
.video-container .custom-controls,
.video-container .progress-bar {
    opacity: 1;
}

/* Controls Layout */
.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   Progress Bar Styles
   ========================================== */
.progress-bar {
    bottom: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 2;
}

.progress-bar-filled {
    height: 100%;
    background: var(--anchor-highlight-color);
    width: 0;
    transition: width 0.1s linear;
}

/* Progress Bar Hover Effect */
.progress-bar:hover .progress-bar-filled {
    transform: scaleY(1.5);
}

/* ==========================================
   Control Buttons Base Styles
   ========================================== */
.custom-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.custom-controls button:hover {
    opacity: 0.8;
}

.custom-controls button img {
    width: 24px;
    height: 24px;
}
.custom-controls button.play-button img {
    width: 15px;
    height: 18px;
}
.custom-controls button.skip-forward img, 
.custom-controls button.skip-back img {
    width: 18px;
    height: 18px;
}
.custom-controls button.print-transcript img {
    width: 17px;
    height: 20px;
}
.custom-controls button.fullscreen-button img {
    width: 19px;
    height: 19px;
}
.custom-controls button.volume-button img {
    width: 19px;
    height: 19px;
}


/* ==========================================
PubMed Articles Sidebar Styles
========================================== */

.video-detail-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-specifics {
    flex: 0 0 60%;
    width: 60%;
}

/* When PubMed sidebar is not present, content takes full width */
.video-detail-container:not(:has(.recent-articles)) .content-specifics {
    flex: 0 0 100%;
    width: 100%;
}

.recent-articles {
    flex: 0 0 38%;
    width: 38%;
    background-color: #100c08;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 20px;
}

.recent-articles-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--anchor-highlight-color);
}

.recent-articles-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
}

.pubmed-articles-content {
    min-height: 200px;
}

.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.loading-placeholder .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 14px;
    margin: 0;
}

.no-articles-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-articles-icon,
.error-icon {
    margin-bottom: 15px;
}

.no-articles-icon svg,
.error-icon svg {
    color: rgba(255, 255, 255, 0.3);
}

.no-articles-text,
.error-text {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.retry-button {
    font-size: 12px;
    padding: 5px 15px;
}

.pubmed-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pubmed-article {
    display: flex;
    gap: 12px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pubmed-article:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--anchor-highlight-color);
    box-shadow: 0 2px 8px rgba(217, 120, 76, 0.2);
    transform: translateY(-1px);
}

.pubmed-article-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.pubmed-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pubmed-article-content {
    flex: 1;
    min-width: 0;
}

.pubmed-article-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.pubmed-article-title a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pubmed-article-title a:hover {
    color: var(--anchor-highlight-color) !important;
    text-decoration: underline;
}

.pubmed-article-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.pubmed-article-authors {
    font-weight: 500;
}

.pubmed-article-date {
    font-style: italic;
}

.pubmed-article-abstract {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pubmed-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.refresh-articles {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.refresh-articles:hover {
    transform: translateY(-1px);
}

.refresh-articles.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.pubmed-attribution {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.attribution-text {
    font-weight: 500;
}

.pubmed-logo {
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .video-detail-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .content-specifics {
        flex: none;
        width: 100%;
    }
    
    .recent-articles {
        flex: none;
        width: 100%;
        position: static;
    }
}

@media (max-width: 767.98px) {
    .recent-articles {
        padding: 15px;
    }
    
    .recent-articles-header h3 {
        font-size: 16px;
    }
    
    .pubmed-article {
        flex-direction: column;
        gap: 10px;
    }
    
    .pubmed-article-image {
        flex: none;
        width: 100%;
        height: 120px;
        align-self: center;
    }
    
    .pubmed-article-title {
        font-size: 14px;
    }
    
    .pubmed-article-meta {
        font-size: 12px;
    }
    
    .pubmed-article-abstract {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }
}

/* ==========================================
Volume Control Styles
========================================== */
.volume-control {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Extend hover area upward without affecting layout */
.volume-control::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 110px;
    pointer-events: auto;
}

/* Volume Slider Wrapper - positioned above button */
.volume-slider-wrapper {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 8px 15px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Create invisible bridge between button and slider */
.volume-slider-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: transparent;
}

.volume-control:hover .volume-slider-wrapper {
    opacity: 1;
    pointer-events: auto;
}

/* Volume Slider Base - Vertical */
.volume-slider {
    -webkit-appearance: slider-vertical;
    width: 20px;
    height: 80px;
    cursor: pointer;
    background: transparent;
    outline: none;
    padding: 0;
    accent-color: var(--anchor-highlight-color);
}

/* Volume Slider - Chrome/Safari/Edge */
.volume-slider::-webkit-slider-runnable-track {
    width: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    border: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
    cursor: pointer;
}

/* Volume Slider - Firefox */
.volume-slider::-moz-range-track {
    width: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    border: none;
}

.volume-slider::-moz-range-thumb {
    width: 0;
    height: 0;
    opacity: 0;
    cursor: pointer;
    border: none;
}

/* ==========================================
   Playback Speed Menu Styles (OLD - Now in Settings Menu)
   ========================================== */
.playback-speed {
    display: none; /* Hidden - moved to settings menu */
}

/* ==========================================
   Settings Menu Styles
   ========================================== */
.settings-control {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.settings-button:hover {
    opacity: 0.8;
}

.settings-button.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.settings-button img {
    width: 19px;
    height: 19px;
}

.settings-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    padding: 12px;
    width: 149px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.settings-menu.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.settings-menu:not(.hidden) {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-section {
    padding: 8px 0;
}

.settings-section:last-child {
    padding-bottom: 0;
}

.settings-section:first-child {
    padding-top: 0;
}

.subtitle-position-section {
    padding-top: 0;
    padding-bottom: 0;
}

.settings-section label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.settings-section .speed-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.settings-section .speed-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.settings-section .speed-select:focus {
    border-color: var(--anchor-highlight-color);
}

.settings-section .speed-buttons,
.settings-section .subtitle-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.settings-section button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: auto;
    font-weight: 500;
}

.settings-section button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.settings-section button.active {
    background-color: var(--anchor-highlight-color);
    border-color: var(--anchor-highlight-color);
    color: #ffffff;
    font-weight: 600;
}

.settings-section .subtitle-links,
.settings-section .speed-links {
    display: none;
}

/* ==========================================
   Time Display Styles
   ========================================== */
.time-display {
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
}
.time-separator {
    opacity: 0.7;
}
.time-display > span {
    font-weight: bold;
}


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

/* Active States */
.subtitle-button.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Video Subtitle Styling */
.video-player::cue {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: var(--subtitle-font-size, 16px);
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    margin: 0 8px;
    border-radius: 4px;
    max-width: 90%;
    text-align: center;
}

/* Subtitle Controls (OLD - Now in Settings Menu) */
.subtitle-controls {
    display: none; /* Hidden - moved to settings menu */
}

.subtitle-options {
    display: none; /* Hidden - moved to settings menu */
}

.subtitle-position,
.subtitle-size {
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.subtitle-position .subtitle-buttons,
.subtitle-size .subtitle-buttons {
    display: flex;
    gap: 3px;
    flex-direction: row;
}

.subtitle-links {
    display: none;
}

.subtitle-links a {
    color: #fff;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.subtitle-links a:hover,
.subtitle-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.subtitle-links a.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}


.subtitle-position label,
.subtitle-size label {
    display: none;
}

.subtitle-position button,
.subtitle-size button {
    background-color: transparent;
    border: 1px solid #555;
    color: #ffffff;
    padding: 2px 5px;
    margin-right: 0;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
}

.subtitle-position button:hover,
.subtitle-size button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #777;
}

.subtitle-position button.active,
.subtitle-size button.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

/* Subtitle adjustments when video and sidebar are stacked */
@media (max-width: 991px) {
    .video-player::cue {
        font-size: calc(var(--subtitle-font-size, 14px) - 4px);
        padding: 6px 10px;
        margin: 0 6px;
        max-width: 95%;
    }
    
    /* Show text links instead of buttons when stacked */
    .subtitle-buttons {
        display: none !important;
    }
    
    .subtitle-links {
        display: flex !important;
        gap: 0;
        flex-direction: row;
    }
    
    .subtitle-position,
    .subtitle-size {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .subtitle-position label,
    .subtitle-size label {
        display: none;
    }
    
    .subtitle-options {
        gap: 0;
    }
}

@media (max-width: 767px) {
    /* Ensure video controls remain visible on small screens */
    .custom-controls button {
        min-width: 32px;
        min-height: 32px;
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .custom-controls button img {
        width: 16px;
        height: 16px;
    }
    
    .subtitle-button {
        min-width: 32px;
        min-height: 32px;
        padding: 4px;
    }
    
    .subtitle-button img {
        width: 16px;
        height: 16px;
    }
    
    .fullscreen-button {
        min-width: 32px;
        min-height: 32px;
        padding: 4px;
    }
    
    .fullscreen-button img {
        width: 16px;
        height: 16px;
    }
    
    .volume-control {
        display: flex !important;
        align-items: center;
        flex-direction: column;
    }
    
    .volume-button {
        min-width: 32px;
        min-height: 32px;
        padding: 4px;
    }
    
    .volume-button img {
        width: 16px;
        height: 16px;
    }
    
    .volume-slider-wrapper {
        height: 60px;
    }
    
    .volume-slider {
        height: 60px;
        width: 4px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .time-display {
        display: none !important;
    }
    
    .subtitle-options {
        display: none !important;
    }
    
    /* Keep subtitle button functional but hide the options menu */
    .subtitle-button {
        pointer-events: auto !important;
    }
    
    /* Settings menu mobile adjustments */
    .settings-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 135px;
    }
    
    .settings-menu:not(.hidden) {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Hide all buttons on mobile, show text links instead */
    .settings-section .speed-buttons,
    .settings-section .subtitle-buttons {
        display: none !important;
    }
    
    .settings-section .speed-links,
    .settings-section .subtitle-links {
        display: flex !important;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    /* Style for mobile text links */
    .settings-section .speed-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: underline;
        padding: 1px 3px;
        font-size: 12px;
        background-color: transparent;
        border: none;
        transition: all 0.2s ease;
    }
    
    .settings-section .subtitle-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        padding: 3px 7px;
        font-size: 12px;
        background-color: transparent;
        border: none;
        transition: all 0.2s ease;
    }
    
    .settings-section .speed-links a:hover,
    .settings-section .subtitle-links a:hover {
        color: #fff;
    }
    
    .settings-section .speed-links a.active,
    .settings-section .subtitle-links a.active {
        color: var(--anchor-highlight-color);
        font-weight: 600;
    }
}

@media (max-width: 767px) {
    .video-player::cue {
        font-size: calc(var(--subtitle-font-size, 14px) - 7px);
        padding: 4px 8px;
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .video-player::cue {
        font-size: calc(var(--subtitle-font-size, 14px) - 7px);
        padding: 4px 8px;
        margin: 0 4px;
    }
    
    /* Even smaller controls for very small screens */
    .custom-controls button {
        min-width: 28px;
        min-height: 28px;
        padding: 2px 4px;
        font-size: 10px;
    }
    
    .custom-controls button img {
        width: 14px;
        height: 14px;
    }
    
    .subtitle-button,
    .fullscreen-button {
        min-width: 28px;
        min-height: 28px;
        padding: 2px;
    }
    
    .subtitle-button img,
    .fullscreen-button img {
        width: 14px;
        height: 14px;
    }
    
    .volume-control {
        display: flex !important;
        align-items: center;
        flex-direction: column;
    }
    
    .volume-button {
        min-width: 28px;
        min-height: 28px;
        padding: 2px;
    }
    
    .volume-button img {
        width: 14px;
        height: 14px;
    }
    
    .volume-slider-wrapper {
        height: 50px;
    }
    
    .volume-slider {
        height: 50px;
        width: 4px;
    }
}

/* ==========================================
   Fullscreen Mode Styles
   ========================================== */
.video-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.video-container:fullscreen .video-player {
    height: 100%;
    object-fit: contain;
}

/* Video container with controls below video */
.video-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* Space for controls below video */
    background: #000;
}

.video-player {
    flex: 1;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}

/* Controls positioned below video */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Ensure controls are visible in fullscreen */
.video-container:fullscreen {
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

.video-container:fullscreen .video-player {
    flex: 1;
}

.video-container:fullscreen .custom-controls {
    opacity: 1;
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.video-container:fullscreen .progress-bar {
    opacity: 1;
    position: absolute;
    bottom: 50px;
    background: rgba(0, 0, 0, 0.9);
}

/* ==========================================
   Mobile/Touch Device Adjustments
   ========================================== */
@media (max-width: 768px) {
    .custom-controls {
        padding: 15px 10px; /* Larger touch targets */
    }

    .custom-controls button {
        padding: 8px; /* Larger touch targets */
    }

    .volume-control {
        display: none; /* Hide volume on mobile */
    }
}

/* ==========================================
   High Contrast Mode Support
   ========================================== */
@media (forced-colors: active) {
    .custom-controls button img {
        forced-color-adjust: none;
    }
    
    .progress-bar-filled {
        background: CanvasText;
    }
}
/* ==========================================
   SMS Modal Styles
   ========================================== */
.sms-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.sms-modal-content {
    background-color: #100c08;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sms-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.sms-close:hover {
    color: #000;
}

.sms-form {
    display: flex;
    margin: 20px 0;
}

.sms-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.sms-form button {
    border-radius: 0 4px 4px 0;
}

/* SMS modal consent checkbox positioning */
.sms-modal-content .consent-checkbox {
    margin-top: 15px;
    margin-bottom: 15px;
}

.sms-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.sms-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.sms-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}
.pathway-header {
    padding-bottom: 10px;
    border-bottom: solid 1px rgba(255, 255, 255, .4);
    margin-bottom: 25px;
}
.pathway-breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    margin: 0 0.5rem;
}

.pathway-dropdown {
    display: inline-block;
    position: relative;
}

button.pathway-dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 5px;
}

.pathway-dropdown-toggle:hover {
    color: #fff;
}

.pathway-dropdown-toggle svg {
    transition: transform 0.2s ease;
}

.pathway-dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    min-width: 250px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.breadcrumb-item .dropdown-item {
    color: var(--bs-dropdown-link-color) !important;
    text-decoration: none;
}
.breadcrumb-item .dropdown-item.active {
    background-color: #007bff;
    color: white !important;
}

.breadcrumb-item .dropdown-item:hover {
    background-color: #f8f9fa;
}

.breadcrumb-item .dropdown-item.active:hover {
    background-color: #0056b3;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.pathway-playlists__container {
    transition: all 0.3s ease;
}

.pathway-playlists__item {
    position: relative;
    height: 120px; /* Set consistent height */
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pathway-playlists__item-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Title styling */
.pathway-playlists__title {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.pathway-playlists__title h3 {
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    width: 100%;
    text-decoration: none;
}

/* Hover effects */

.pathway-playlists__container:hover .pathway-playlists__item {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pathway-playlists__item {
        height: 100px;
    }
    
    .pathway-playlists__title h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .pathway-playlists__item {
        height: 80px;
    }
}

/* Consent Overlay Styles */
.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10001;
    background: rgba(0,0,0,0.6);
}

/* Prevent body scrolling when consent overlay is active */

/* Prevent unwanted page scrolling on mobile devices */
@media (max-width: 991px) {
    html, body {
        scroll-behavior: auto !important;
        overflow-x: hidden;
    }
    
    .sidebar-pathway {
        scroll-behavior: auto !important;
    }
}
body.consent-overlay-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.consent-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.consent-close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.consent-close-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Mobile-specific positioning for consent close button */
@media (max-width: 768px) {
    .consent-close-button {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        line-height: 36px;
    }
}

@media (max-width: 480px) {
    .consent-close-button {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        line-height: 36px;
    }
}

.video-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    pointer-events: auto;
}

/* Consent Form Styles */
.consent-form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10003;
}

.consent-form-wrapper {
    background: #100c08;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-form-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-align: center;
}

.avids-consent-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.avids-consent-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .avids-consent-form .form-row {
        flex-direction: row;
        gap: 15px;
    }
    
    .avids-consent-form .form-row .form-field {
        flex: 1;
    }
}

.avids-consent-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avids-consent-form label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.avids-consent-form label.required::after {
    content: ' *';
    color: #d9784c;
}

.avids-consent-form input[type="text"],
.avids-consent-form input[type="email"],
.avids-consent-form input[type="tel"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    padding: 12px;
    width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.avids-consent-form input[type="text"]:focus,
.avids-consent-form input[type="email"]:focus,
.avids-consent-form input[type="tel"]:focus {
    outline: none;
    border-color: #d9784c;
    background: rgba(255, 255, 255, 0.15);
}

.avids-consent-form input[type="text"]::placeholder,
.avids-consent-form input[type="email"]::placeholder,
.avids-consent-form input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.avids-consent-form input[type="text"]:disabled,
.avids-consent-form input[type="email"]:disabled,
.avids-consent-form input[type="tel"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.avids-consent-form .consent-info-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 15px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.avids-consent-form .consent-info-block p {
    margin: 0 0 10px 0;
}

.avids-consent-form .consent-info-block p:last-child {
    margin-bottom: 0;
}

.avids-consent-form .consent-info-block ul {
    margin: 10px 0;
    padding-left: 20px;
}

.avids-consent-form .consent-info-block ul:last-of-type {
    margin-bottom: 0;
}

.avids-consent-form .consent-info-block li {
    margin-bottom: 0;
}

.avids-consent-form .consent-info-block strong {
    color: #ffffff;
    font-weight: 700;
}

.avids-consent-form .signature-agreement {
    color: #ffffff;
    font-size: 14px;
    margin: 0 0 10px 0;
    font-style: italic;
}

.avids-consent-form label[for="consent-signature"] {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.avids-consent-form .form-field.signature-disabled label[for="consent-signature"],
.avids-consent-form .form-field.signature-disabled .signature-agreement {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
}

.avids-consent-form .signature-agreement {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.avids-consent-form .consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.avids-consent-form .consent-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.avids-consent-form .field-error {
    color: #d9784c;
    font-size: 12px;
    margin-top: -4px;
    display: none;
}

.avids-consent-form .form-actions {
    margin-top: 0;
    margin-bottom: -20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .avids-consent-form .form-actions {
        flex-direction: row;
    }
}

.avids-consent-form .btn-accept,
.avids-consent-form .btn-decline {
    border: none;
    border-radius: 2px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.avids-consent-form .btn-accept {
    background: var(--anchor-highlight-color, #0056b3);
}

.avids-consent-form .btn-accept:hover:not(:disabled) {
    background: var(--anchor-highlight-color-hover, #003d7a);
    transform: scale(1.05);
}

.avids-consent-form .btn-accept:active:not(:disabled) {
    transform: scale(1);
}

.avids-consent-form .btn-accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.avids-consent-form .btn-decline {
    background: #323232;
    border: solid 2px #ffffff;
}

.avids-consent-form .btn-decline:hover:not(:disabled) {
    background: #404040;
    transform: scale(1.05);
}

.avids-consent-form .btn-decline:active:not(:disabled) {
    transform: scale(1);
}

.avids-consent-form .btn-decline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.avids-consent-form .btn-decline:disabled:hover,
.avids-consent-form .btn-decline:disabled:focus,
.avids-consent-form .btn-decline:disabled:active {
    background: #323232 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.avids-consent-form .btn-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.avids-consent-form .form-messages {
    margin-top: 15px;
}

.avids-consent-form .message-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 4px;
    color: #4ade80;
    font-size: 14px;
    padding: 12px;
    text-align: center;
}

.avids-consent-form .message-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 4px;
    color: #f87171;
    font-size: 14px;
    padding: 12px;
    text-align: center;
}

/* Mobile responsive for consent form */
@media (max-width: 768px) {
    .consent-form-container {
        width: 95%;
        padding: 0 15px;
    }
    
    .consent-form-wrapper {
        padding: 20px;
    }
    
    .consent-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .avids-consent-form {
        gap: 15px;
    }
    
    .avids-consent-form .form-actions {
        margin-bottom: -15px;
    }
    
    .avids-consent-form .btn-accept,
    .avids-consent-form .btn-decline {
        padding: 7px 15px;
        font-size: 14px;
    }
}

/* Consent Checkbox Styles */
.consent-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.consent-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.consent-checkbox label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* ==========================================
   Watchlist Selection Styling
   ========================================== */

/* Selection order numbers for pathway watchlist */
.selection-order {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6900;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
}

/* Watchlist controls styling */
.watchlist-controls {
    margin-bottom: 20px;
}

.watchlist-controls button {
    margin-right: 0;
}

/* Search + pathway Create Watchlist "Go" only: custom btn-dark fill (listing Featured Go unchanged) */
#go-watchlist-btn.btn-dark,
#pathway-go-watchlist-btn.btn-dark {
    --bs-btn-bg: #2064a8;
    background-color: #2064a8;
}

/* Listing featured watchlist dropdown: remove focus outline ring */
#featured-watchlist-presets-select:focus,
#featured-watchlist-presets-select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Listing featured header mobile stacking/alignment spacing */
@media (max-width: 767px) {
    .featured-videos-section__head {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-bottom: 1rem !important;
    }

    .featured-videos-section__head .watchlist-controls {
        width: 100%;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-bottom: 0 !important;
    }

    #featured-watchlist-presets-select {
        margin-left: 0 !important;
    }
}

/* URL preview styling */
#pathway-watchlist-url-preview {
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #dee2e6;
    background: #666666;
    color: #ffffff;
}

/* ==========================================
   Pathway Watchlist Selection Mode Styling
   ========================================== */

/* When pathway watchlist selection mode is active */
body.select-mode-active .all-videos__item {
    cursor: pointer;
    transition: all 0.2s ease;
}

body.select-mode-active .all-videos__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Selected pathway video styling */
.all-videos__item.selected {
    transform: scale(1.02);
}

/* Ensure pathway videos have proper positioning for selection order numbers */
.all-videos__item {
    position: relative;
}

/* Pathway watchlist controls specific styling */
#pathway-select-videos-btn,
#pathway-share-watchlist-btn,
#pathway-copy-watchlist-btn,
#pathway-go-watchlist-btn,
#pathway-reset-selection-btn {
    margin-right: 0;
}

/* Pathway selection count styling */
#pathway-selection-count {
    font-weight: bold;
    color: #fff;
    vertical-align: middle;
    line-height: 38px;
}

/* ==========================================
   Touchpoint Video Visibility Control
   ========================================== */

/* Hide Touchpoint videos by default on pathway page */
.touchpoint-video {
    display: none;
}

/* Show Touchpoint videos when in watchlist selection mode */
body.select-mode-active .touchpoint-video {
    display: block;
}

/* ==========================================
   Pathway Header Layout
   ========================================== */

/* Pathway header container with flexbox layout */
.pathway-header .all-videos-section .row .col-12 > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Left side: title and share content */
.pathway-header .all-videos-section .row .col-12 > div > div:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0; /* Allow shrinking */
}

/* Right side: watchlist controls */
.pathway-watchlist-header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Responsive adjustments for pathway header */
@media (max-width: 768px) {
    .pathway-header .all-videos-section .row .col-12 > div {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .pathway-header .all-videos-section .row .col-12 > div > div:first-child {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .pathway-watchlist-header-controls {
        justify-content: center;
    }
}

/* ==========================================
   Pathway Landing Page Mobile Optimizations
   ========================================== */

/* Mobile optimizations for breadcrumbs */
@media (max-width: 767px) {
    .pathway-breadcrumbs {
        margin-bottom: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
        align-items: center;
        display: flex;
    }
    
    .breadcrumb-item {
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.25rem;
        display: inline-flex;
        align-items: center;
    }
    
    button.pathway-dropdown-toggle {
        font-size: 0.8rem;
        padding: 4px 8px;
        min-height: 44px; /* Ensure touch target size */
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
    }
    
    .dropdown-menu {
        min-width: 200px;
        max-height: 250px;
        font-size: 0.9rem;
    }
}

/* Pathway header content - desktop layout */
.pathway-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pathway-title-share-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile optimizations for pathway title and share buttons */
@media (max-width: 767px) {
    /* Stack the main header content container */
    .pathway-header .all-videos-section .pathway-header-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 15px;
    }
    
    /* Stack the inner container (title + share buttons) */
    .pathway-header .all-videos-section .pathway-title-share-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    .pathway-title {
        font-size: 36px;
        line-height: 1.3;
        margin-bottom: 0;
        width: 100%;
    }
    
    .share-content {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        margin-top: 0;
    }
    
    .share-content .social-share,
    .share-content .icn-email {
        margin-right: 15px;
        margin-bottom: 5px;
    }
    
    .share-content .social-share:last-child,
    .share-content .icn-email:last-of-type {
        margin-right: 0;
    }
    
    .share-content .social-share img {
        width: 22px;
        height: 22px;
    }
    
    /* Ensure watchlist controls are full width and stacked */
    .pathway-header .all-videos-section .pathway-watchlist-header-controls {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 30px;
    }
}

/* Mobile optimizations for description text */
@media (max-width: 767px) {
    .pathway-header .all-videos-section .row .col-12 p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .pathway-description {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Hide section description on all screen sizes */
.section-description {
    display: none;
}

/* Mobile optimizations for section headlines */
@media (max-width: 767px) {
    .pathway-section .section-headline {
        font-size: 22px;
        padding: 8px 12px 10px;
        margin-bottom: 15px;
    }
    
    .section-headline__amount {
        font-size: 9px;
        top: -12px;
    }
}

/* Mobile optimizations for video grid items */
@media (max-width: 767px) {
    .pathway-row {
        margin-bottom: 0;
    }
    
    .all-videos {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .all-videos__item h3 {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .all-videos__item .run-time {
        font-size: 12px;
    }
    
    .all-videos__item .run-time .card-text {
        font-size: 10px;
    }
    
    .all-videos__item .run-time img {
        width: 14px;
        height: 14px;
    }
}

/* Mobile optimizations for watchlist controls */
@media (max-width: 767px) {
    .watchlist-controls {
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .watchlist-controls button {
        margin-left: 0 !important;
        margin-right: 10px;
        margin-bottom: 10px;
        padding: 10px 15px;
        font-size: 14px;
        min-height: 44px; /* Ensure touch target size */
    }
    
    .watchlist-controls button:last-of-type {
        margin-right: 0;
    }
    
    #pathway-selection-count {
        margin-left: 0 !important;
        margin-top: 10px;
        line-height: 1.5;
        width: 100%;
    }
    
    #pathway-watchlist-url-preview {
        font-size: 11px;
        padding: 12px;
        margin-top: 10px;
        word-break: break-all;
        line-height: 1.4;
    }
    
    .pathway-watchlist-header-controls button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        min-height: 44px; /* Ensure touch target size */
    }
}

/* Mobile optimizations for smaller screens (575px and below) */
@media (max-width: 575px) {
    .pathway-title {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .pathway-section .section-headline {
        font-size: 18px;
        padding: 6px 10px 8px;
    }
    
    .section-headline__amount {
        font-size: 8px;
        top: -10px;
    }
    
    .all-videos {
        padding: 0 5px;
    }
    
    .all-videos__item h3 {
        font-size: 14px;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    button.pathway-dropdown-toggle {
        font-size: 0.75rem;
    }
    
    .share-content {
        gap: 8px;
    }
    
    .share-content .social-share img {
        width: 20px;
        height: 20px;
    }
    
    .watchlist-controls button {
        width: 100%;
        margin-right: 0;
    }
}

/* ==========================================
   Messaging Popup Styles
   ========================================== */

/* Main popup container */
.messaging-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Popup content container */
.messaging-popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Popup title */
.messaging-popup h3 {
    margin: 0 0 15px;
    text-align: center;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Messaging options container */
.messaging-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

/* Messaging option buttons */
.messaging-options button {
    padding: 10px;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--anchor-highlight-color, #ff6900);
    font-weight: 500;
}

.messaging-options button:hover {
    background: #e0e0e0;
    color: #fff;
    transform: translateY(-1px);
}

/* Close popup button */
.close-popup, 
#detail-share-popup button.close-popup, 
#watchlist-detail-share-popup button.close-popup {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border: none;
    background: var(--anchor-highlight-color, #ff6900);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.close-popup:hover, 
#detail-share-popup button.close-popup:hover, 
#watchlist-detail-share-popup button.close-popup:hover {
    background: var(--anchor-highlight-color-hover, #e55a00);
}

/* Consent checkbox styling */
.messaging-popup .consent-checkbox {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.messaging-popup .consent-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--anchor-highlight-color, #ff6900);
}

.messaging-popup .consent-checkbox label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .messaging-popup-content {
        margin: 20px;
        max-width: none;
    }
    
    .messaging-options button {
        padding: 12px;
        font-size: 16px;
    }
}
