body {
    background-color: white;
    color: black;
    /*font-family: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;*/
    font-family: tahoma, serif;
    font-weight: normal;
}

/* Override Bulma dark theme for explore/course landing pages - using :has() with fallback */
/* Make entire page background white, not just gradient */
body.has-gradient-background:has(.explore-page) {
    background: white !important;
    background-color: white !important;
    color: black;
}

/* Ensure white background extends fully */
body.has-gradient-background:has(.explore-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: -1;
}

/* Transparent navbar for course/explore pages - let the gradient show through */
/* Invert navbar text colors for white background: black text with white shadow */
body.has-gradient-background:has(.explore-page) .navbar a,
body.has-gradient-background:has(.explore-page) .navbar .navbar-item,
body.has-gradient-background:has(.explore-page) .navbar .logo-var,
body.has-gradient-background:has(.explore-page) .navbar .logo-operator {
    color: #222 !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
}

/* Make "Training" in logo blue (info-blue) on explore pages */
body.has-gradient-background:has(.explore-page) .navbar .logo-key {
    color: #337ab7 !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    /* font-weight: bold; */
}

/* Navbar burger menu icon - make it dark */
body.has-gradient-background:has(.explore-page) .navbar-burger span {
    background-color: #222 !important;
}

/* When scrolled, revert to dark navbar with normal light text */
body.has-gradient-background:has(.explore-page) .navbar.navbar-scrolled a,
body.has-gradient-background:has(.explore-page) .navbar.navbar-scrolled .navbar-item {
    color: #ddd !important;
    text-shadow: none !important;
}

/* Logo "TalkPython" and brackets - normal light text when scrolled */
body.has-gradient-background:has(.explore-page) .navbar.navbar-scrolled .logo-var,
body.has-gradient-background:has(.explore-page) .navbar.navbar-scrolled .logo-operator {
    color: #ddd !important;
    text-shadow: none !important;
}

/* ONLY "Training" in logo turns yellow when scrolled */
body.has-gradient-background:has(.explore-page) .navbar.navbar-scrolled .logo-key {
    color: #f4e04d !important;
    text-shadow: none !important;
    font-weight: normal;
}

/* Navbar burger menu icon - back to light when scrolled */
body.has-gradient-background:has(.explore-page) .navbar.navbar-scrolled .navbar-burger span {
    background-color: #fff !important;
}

/* Fallback for browsers without :has() support - add white background to explore page container */
.explore-page {
    background-color: white !important;
    position: relative;
    /* Extend the white background upward to cover the gradient */
    margin-top: -100px;
    padding-top: 130px;
    max-width: 820px !important;
    margin-left: auto;
    margin-right: auto;
}

/* Override Bulma's container max-width for course pages */
.container.explore-page,
.container.course-details-page {
    max-width: 820px !important;
}

/* Override dark theme text colors for light explore page background */
.explore-page,
.explore-page .main-text,
.explore-page .large-content-text,
.explore-page p,
.explore-page span,
.explore-page div {
    color: black !important;
}

.explore-page strong,
.explore-page b {
    color: black !important;
    font-weight: bold;
}

.explore-page em,
.explore-page i:not(.fa):not(.fad):not(.fab):not(.fas):not(.far):not(.fal):not(.fa-duotone):not(.fa-solid) {
    color: black !important;
}

.explore-page h1,
.explore-page h2,
.explore-page h3,
.explore-page h4 {
    color: black !important;
}

.explore-page a {
    color: #337ab7;
}

.explore-page a:hover {
    color: #23527c;
}

/* Keep button text white */
.explore-page .button,
.explore-page .btn {
    color: white !important;
}

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.explore-page h1 {
    font-size: 24px;
}

.explore-page h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.main-text,
.large-content-text {
    /*font-family: "Open Sans", serif;*/
    font-family: 'Inter', 'IBM Plex Sans', tahoma, serif;
    font-size: 16px;
    line-height: 1.667em;
    margin-bottom: 1.5em;

    font-weight: 400;
    -moz-osx-font-smoothing: grayscale;
    /*letter-spacing: 0.7px;*/
}

.full-page-content,
.outline .chapter-title a {
    color: black;
}

.main-text .buy-cta a {
    color: #337ab7;
    font-weight: bold;
}


.main-text .buy-cta a.btn {
    color: white;
}

.explore-page .outline {
    border-top: none;
}


.explore-page .outline .lecture-title-column a:hover {
    text-decoration: none !important;
}

.explore-page .outline .lecture-title-column a,
.explore-page .outline .lecture-title-column > span {
    color: #3b6d85;
}

form.primary-checkout-form {
    display: inline-block;
}


/* ************ VIDEO PLAYER ON EXPLORE PAGE ************************** */
/*Moved inline to page for avoiding content shift.*/
/*.course-image-full iframe,*/
/*.course-image-full img,*/
/*.course-image-full video {*/
/*    width: 640px;*/
/*    height: 360px;*/
/*    border-radius: 5px;*/
/*}*/

/*@media (max-width: 750px) {*/
/*    .course-image-full iframe,*/
/*    .course-image-full img,*/
/*    .course-image-full video {*/
/*        width: 500px;*/
/*        height: 282px;*/
/*    }*/
/*}*/

/*@media (max-width: 600px) {*/
/*    .course-image-full iframe,*/
/*    .course-image-full img,*/
/*    .course-image-full video {*/
/*        width: 300px;*/
/*        height: 225px;*/
/*    }*/
/*}*/

/*@media (max-width: 400px) {*/
/*    .course-image-full iframe,*/
/*    .course-image-full img,*/
/*    .course-image-full video {*/
/*        width: 150px;*/
/*        height: 112px;*/
/*    }*/
/*}*/

/* ************ END: VIDEO PLAYER ON EXPLORE PAGE ********************* */


/* ************ START: GIVE AS GIFT ON EXPLORE PAGE ********************* */
/* Light theme modal with smaller fonts */
#give-as-gift .modal-background {
    background-color: rgba(0, 0, 0, 0.7);
}

#give-as-gift .modal-card {
    background-color: white;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#give-as-gift .modal-card-head {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 12px 20px;
}

#give-as-gift .modal-card-title {
    color: #333 !important;
    font-size: 18px;
    font-weight: 600;
}

#give-as-gift .modal-card-head .delete {
    background-color: #999;
}

#give-as-gift .modal-card-body {
    background-color: white;
    padding: 20px;
}

#give-as-gift .modal-card-body,
#give-as-gift .modal-card-body div,
#give-as-gift .modal-card-body span,
#give-as-gift .modal-card-body p,
#give-as-gift .modal-card-body em {
    color: #444 !important;
    font-weight: normal;
    font-size: 14px;
}

#give-as-gift .modal-card-body h2 {
    color: #333 !important;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

#give-as-gift .top-cta {
    padding: 0;
}

#give-as-gift .step-container {
    text-align: left;
    margin: 12px 0;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #5bc0de;
}

#give-as-gift .modal-card-body .step-container .step {
    color: #337ab7 !important;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

#give-as-gift .modal-card-body .step-container em {
    font-style: italic;
    color: #d9534f !important;
    font-weight: 500;
}

#give-as-gift .modal-card-body .button {
    color: white !important;
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 16px;
    height: auto;
}

#give-as-gift .modal-card-foot {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
}

#give-as-gift .modal-card-foot .button {
    font-size: 13px;
    color: #333 !important;
}

/* ************ END:   GIVE AS GIFT ON EXPLORE PAGE ********************* */


/* ************ START: NEED TO LOGIN MODAL ON EXPLORE PAGE ********************* */
/* Light theme modal with smaller fonts - same style as gift modal */
#need-to-login .modal-background {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

#need-to-login .modal-card {
    background-color: white !important;
    max-width: 420px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

#need-to-login .modal-card-head {
    background-color: #f5f5f5 !important;
    border-bottom: 1px solid #ddd !important;
    padding: 12px 20px !important;
}

#need-to-login .modal-card-title {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

#need-to-login .modal-card-head .delete {
    background-color: #999 !important;
}

#need-to-login .modal-card-body {
    background-color: white !important;
    padding: 20px !important;
}

#need-to-login .modal-card-body,
#need-to-login .modal-card-body div,
#need-to-login .modal-card-body span,
#need-to-login .modal-card-body p {
    color: #444 !important;
    font-weight: normal !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#need-to-login .dialog-content {
    text-align: center !important;
}

#need-to-login .modal-card-body .button {
    color: white !important;
    margin: 5px !important;
    font-size: 14px !important;
}

/* ************ END:   NEED TO LOGIN MODAL ON EXPLORE PAGE ********************* */


.well.limit-time {
    margin-top: 50px;
    margin-bottom: 50px;
}

.well.limit-time img {
    margin-right: 30px;
}

.well.limit-time .message {
    line-height: 1.2em;
}

.well.limit-time .message ul {
    line-height: 1.0em;
}

.well.limit-time .message h3 {
    margin-top: 0px;
    padding-top: 0px;
    text-align: center;
}

#clock {
    text-align: center;
    background-color: rgb(2, 55, 124);
    color: white;
    margin-left: auto;
    margin-right: auto;
    max-width: 370px;
    border-radius: 5px;
    margin-top: 20px;
    padding: 10px;
}

#clock span {
    font-size: 28px;
}


.price_and_duration a.btn {
    margin-bottom: 10px;
}

.buy-cta .final_price .value,
.buy-cta .duration .value {
    font-weight: bold;
}


.bundle-button, .team-button, .gift-button, .primary-checkout-form {
    margin-top: 10px;
}

.primary-checkout-form {
    vertical-align: middle;
    display: inline-block;
}

.carbon-offset {
    margin-top: 25px;
    color: grey;
    font-size: 11px;
    text-align: center;
}

.carbon-offset img {
    height: 20px;
    opacity: .6;
    vertical-align: middle;
    margin-top: -5px;
}

.carbon-offset span {
    display: inline-block;
}


/*----------------- Strip Checkout Button -----------------*/
.stripe-button-el {
    color: #fff;
    background-color: #337ab7;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
    line-height: 1.42857143;
    height: 37px;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.stripe-button-el span {
    background-color: #337ab7;
    box-shadow: none;
    background-image: none;
    margin: 0;
    border: none #337ab7;
    padding: 0px;
    border-radius: 0px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*.course-details-page img {*/
/*    max-width: 100%;*/
/*}*/


.explore-page .description {
    margin-top: 40px;
}

/* ************ START: Course Outline Table Styling ********************* */

/* Remove underlines from all links and their children in course outline table on hover */
#chapters-and-lectures-table a,
#chapters-and-lectures-table a *,
#chapters-and-lectures-table a h3,
#chapters-and-lectures-table a h4,
#chapters-and-lectures-table a span {
    text-decoration: none !important;
    border-bottom: none !important;
}

#chapters-and-lectures-table a:hover,
#chapters-and-lectures-table a:hover *,
#chapters-and-lectures-table a:hover h3,
#chapters-and-lectures-table a:hover h4,
#chapters-and-lectures-table a:hover span {
    text-decoration: none !important;
    border-bottom: none !important;
}

.explore-page .outline h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    color: black !important;
}

/* Ensure table displays correctly */
.explore-page .outline .table {
    display: table;
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.explore-page .outline .table > tbody {
    display: table-row-group;
}

.explore-page .outline .table > tbody > tr {
    display: table-row;
}

.explore-page .outline .table > tbody > tr > td {
    display: table-cell;
    vertical-align: middle;
}

/* Chapter rows */
.explore-page .outline .table > tbody > tr.chapter > td {
    padding: 10px 12px;
    border-top: none;
    border-bottom: none;
    background: #e8e8e8;
}

.explore-page .outline .table > tbody > tr.chapter > td.chapter-title-column {
    width: auto;
}

.explore-page .outline .table > tbody > tr.chapter > td:nth-child(2) {
    width: 80px;
}

.explore-page .outline .table > tbody > tr.chapter > td.time-column {
    width: 100px;
    text-align: right;
    padding-right: 15px;
}

.explore-page .chapter {
    background: #e8e8e8;
}

.explore-page .outline .chapter-title h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #0a4e70 !important;
}

.explore-page .outline .chapter-title a {
    color: #4a7c95 !important;
    text-decoration: none;
}

.explore-page .outline .chapter-title a:hover {
    color: #3a6178 !important;
    text-decoration: none !important;
}

.explore-page .outline .chapter-title i {
    margin-right: 10px;
    color: #2a6e90;
    font-size: 16px;
}

.explore-page .outline .chapter .time-column {
    font-size: 17px;
    font-weight: 400;
    color: #666 !important;
}

/* Lecture rows */
.explore-page .outline .table > tbody > tr.lecture > td {
    padding: 2px 12px; /* vertical horizontal */
    border-top: 1px solid #e0e0e0;
    border-bottom: none;
    background: white;
}

.explore-page .outline .table > tbody > tr.lecture > td:first-child {
    width: auto;
    padding-left: 0;
}

.explore-page .outline .table > tbody > tr.lecture:hover > td {
    background-color: #e8f0f5;
}

.explore-page .outline .lecture h4 {
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    display: inline;
    color: #3b6d85 !important;
}

.explore-page .outline .lecture-title-column {
    padding-left: 0;
}

.explore-page .outline .lecture-title-column a,
.explore-page .outline .lecture-title-column > span {
    margin-left: 30px;
    display: block;
    padding: 2px 3px;
    color: #3b6d85 !important;
    text-decoration: none;
}

.explore-page .outline .lecture-title-column a:hover {
    text-decoration: none !important;
}

.explore-page .outline .lecture-title-column i {
    margin-right: 8px;
    color: #3b6d85;
    font-size: 15px;
}

.explore-page .outline .lecture .time-column {
    font-size: 15px;
    color: #666 !important;
    text-align: right;
    white-space: nowrap;
    padding-right: 15px;
}

/* Transcript column for explore page */
.explore-page .transcript-column {
    text-align: center;
    width: 80px;
    padding: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.explore-page .transcript-column a {
    color:rgb(36, 108, 147) !important;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.explore-page .transcript-column a:hover {
    color: #5a7d90 !important;
    text-decoration: none !important;
}

.explore-page .transcript-column i {
    font-size: 15px;
    line-height: 1;
}

.explore-page .transcript-column span {
    font-size: 11px;
    line-height: 1;
}

/* Remove hover effect from expanded transcript rows */
.table tbody tr:has(.inline-transcript):hover td,
.table tbody tr:has(.inline-transcript):hover th {
    background-color: transparent !important;
}

/* ************ END: Course Outline Table Styling ********************* */