@charset "UTF-8";
/*
 Theme Name:   Eduma Child
 Theme URI:    http://educationwp.thimpress.com/
 Description:  Eduma Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     eduma
 Version:      1.6.4
 Text Domain:  eduma-child
*/

/* ==========================================================================
   Subscription Badge (replaces price for subscribers)
   Premium gold styling for subscription access indicator
   ========================================================================== */

.ece-included-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #d97706;
    box-shadow:
        0 2px 8px rgba(217, 119, 6, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ece-included-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #78350f;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Fix Learn Articles Read More button text visibility */
.learn-articles-list .post-item-read-more,
.learn-articles-list article .readmore a {
    color: #333 !important;
    background: #ffb606;
    padding: 11px 25px;
    border-radius: 4px;
    display: inline-block;
}

.learn-articles-list .post-item-read-more:hover,
.learn-articles-list article .readmore a:hover {
    color: #fff !important;
    background: #e6a303;
    text-decoration: none;
}

.home #custom_widget_course .course_search_wrap {
    display: flex;
}

.home #custom_widget_course .course_search_wrap .bootstrap-select>.dropdown-toggle {
    width: 100%;
    padding-right: 25px;
    z-index: 1;
}

.home .thim-widget-courses-searching #custom_widget_course form {
    overflow: visible!important;
}

#popup {
    display: none;
    position: fixed;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: calc(100% - 15%);
    max-width: 850px;
    border-radius: 8px;
  }
  .courses-searching .alert-error {
    background-color: #f2dede;
    border-color: #eed3d7;
    color: #b94a48;
    position: relative;
    max-width: 510px;
    width: 100%;
    margin: 0 0 0 -15px;
}
.sticky-sidebar div#error_2 {
    width: 100%;
    margin: 0 0 20px 0;
}

.sticky-sidebar div#error_2 .alert.cs-alert.alert-error {
    width: 100%;
    padding:  0 10px;
}
  /* Flter & Popup css */
.course_search_wrap button.btn.dropdown-toggle.btn-default {
    border-radius: 0px !important;
    border: 1px solid #dedede;
    padding: 2px 20px;
    font-size: 14px !important;
    color: #000 !important;
    font-weight: 400;
}
.course_search_wrap button.btn_search_filt {
    width: 130px!important;
    line-height: 44px !important;
    border-radius: 0 !important;
    float: left !important;
    font-size: 16px !important;
    padding: 0 !important;
    border: none !important;
    background-color: #ffb606 !important;
    color: #fff !important;
    cursor: pointer !important;
}
.post-type-archive-lp_course aside#custom_html-3 {
    border: solid 1px #eee;
    padding: 20px 20px;
		    overflow: visible;
}
.post-type-archive-lp_course .btn-group.bootstrap-select.form-control.courses-state-input {
    margin-bottom: 20px;
}
.post-type-archive-lp_course .btn-group.bootstrap-select.form-control.courses-role-input {
    margin-bottom: 20px;
}
.post-type-archive-lp_course button.btn.dropdown-toggle.btn-default {
    background-color: #fff;
    height: 44px !important;
    margin-bottom: 10px !important;
    display: block !important;
    padding: 10px !important;
    font-size: 13px !important;
    line-height: 24px;
}
.post-type-archive-lp_course .wrapper_new {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-type-archive-lp_course .ce_requirement {
    background-color: #2a4856;
    color: #fff;
    cursor: pointer;
		border:1px solid #2a4856;
}
.post-type-archive-lp_course .ce_requirement:hover {
    background-color: #fff;
    color: #2a4856;
    cursor: pointer;
		border:1px solid #2a4856;
}
.post-type-archive-lp_course aside#custom_html-3:before {
    content: "";
    display:none;
}
.post-type-archive-lp_course .selection_wrapper span {
    font-size: 18px;
    padding: 0px 20px;
}
#popup h2 {
    margin: 0px 0px 15px;
    font-size: 24px;
    text-align: center;
}
#popup .content {
    font-size: 16px;
    margin-bottom: 10px;
}
#popup #closePopup {
    position: absolute;
    right: 0;
    top: 0;
    background-color: transparent;
    font-size: 0px;
}
#popup #closePopup:before {
    content: '';
    background-image: url(/wp-content/uploads/2024/02/close.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 13px;
}
.thim-widget-courses-searching .courses-searching input[type=text] {
    margin-bottom: 10px;
}
.course_search_wrap button.btn_search_filt span {
		display:none;
}
.post-type-archive-lp_course aside.widget_custom_html {
    overflow: visible;
}
.select2-container--open .select2-dropdown {
    top: 0px;
}
.select2-container .select2-selection--single {
    height: 44px;
    border-radius: 0px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    text-align: left;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #2a4856;
    background-image: url(/wp-content/uploads/2024/02/searchicon.png);
    background-position: calc(100% - 5px) 7px;
    background-repeat: no-repeat;
}

#widget_custom_filter .select2-container {
    margin-bottom: 10px;
}

.post-type-archive-lp_course .ce_requirement #showPopup {
    padding: 10px 30px;
}
#popup .modal-header {
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
}
#popup .modal-body {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
}#popup{
    box-shadow: 0 0 0 50vmax rgb(0 0 0 / 47%);
}
#message-credit-help .modal-body {
    max-height: 296px;
}
h4#credit-dialog-title {
    margin: 5px 5px;
}
#credit-help-body {
    padding: 0 20px 20px 20px;
    margin-bottom: 5px;
}
#credit-help-body {
    padding: 20px 20px 20px 20px;
}
.post-type-archive-lp_course .footer-bottom {
    z-index: -1;
}
@media (min-width:769px) {
    .select2-container {
        max-width: 250px;
    }
    .select2-container {
        margin-right: 10px;
    }
    #widget_custom_filter .select2-container {
        margin-bottom: 10px;
    }
}
@media (max-width:768px) {
.post-type-archive-lp_course .wrapper_new {
    flex-direction: column;
    gap: 15px;
}
.home #custom_widget_course .course_search_wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}		
.course_search_wrap button.btn_search_filt {
    width: 100%!important;	
}
.course_search_wrap button.btn_search_filt span {
    margin-left: 10px;
		display:inline-block;
}		
#popup {
    top: 160px;
    transform: translate(-50%, 0%);
}

.learn-press-courses{
    min-height: 100px !important;
    text-align: center;
    font-size:19px;
}
.inner-wrapper {
    width: 100%!important;
}
.buttonsWrap {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    flex-wrap: wrap;
}	
.course-card {
    height: auto !important;
    flex-direction: column !important;
}
.course-left {
    width: 100% !important;
}	
.course-right {
    width: 100% !important;
	padding: 20px 10px !important;
}	
.course-author {
	display: block !important;
	margin: -25px auto 0px;
	width: auto;
	position: relative;
	text-align: center;
}
.author-avatar img.avatar {
    border-radius: 50%;
    border: 2px solid #fff;
}
.course-meta-single .course-author {
    margin: 0;
}
/* Mobile: make the course-card Buy Now / Continue a prominent full-width CTA
   below the price on CE state landings (overrides the compact a.butnowbtn
   sizing in the base rule below). */
@media (max-width: 768px) {
    .ce-archive .courseBoxFooter {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .ce-archive .courseBoxFooter a.butnowbtn {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

a.butnowbtn {
    padding: 8px 10px !important;
    font-size: 12px;
    line-height: 14px;
	margin: 0px !important;
}	
.desktop-none {
    display: none!important;
}	
.courseBoxFooter {
	margin-top: 10px !important;
	border-top: 1px solid #ccc;
	justify-content: space-between !important;
	padding-top: 10px;
	gap: 10px;
}
.courseBoxFooter .mobile-wrap {
    margin: 0px !important;
	display: flex !important;
}
.mobile-wrap .course-lesson {
    display: flex;
    align-items: center;
    gap: 4px;
}	
.course-students {
    display: flex;
    align-items: center;
    gap: 4px;
}	
.rightwrpper-inner {
    align-items: stretch;
    padding: 20px 0px 0px !important;
}
/* Fix horizontal scroll on mobile for CE archive pages */
.ce-archive {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
.ce-archive .container,
.ce-archive .inner-wrapper {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
.ce-archive .course-card {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
.ce-archive .courseBoxFooter {
    flex-wrap: wrap !important;
}
/* Ensure certificate image doesn't cause overflow */
.ce-archive .certificate-image img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
}
/* Ensure course title doesn't overflow */
.ce-archive .course-right h3 {
    max-width: 100% !important;
    padding: 0 10px !important;
}
/* Ensure d-flex content doesn't overflow */
.ce-archive .course-right .d-flex {
    max-width: 100% !important;
    padding: 0 10px !important;
    flex-wrap: wrap !important;
}

} /* END @media (max-width:768px) */


.learn-press-courses{
    text-align: center;
}
.modal-content {
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  
}
p.message.message-error {
    font-size: 19px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.error-fields{ 
    color: #b94a48!important;
    background-color: #f2dede!important;
    border: 1px solid red!important;
}

#error_2{
    box-sizing: border-box;
    width: 50%;
    margin: 0 auto;
}

.alert-error {
    background-color: #f2dede;
    border-color: #eed3d7;
    color: #b94a48;
    position: relative;
    width: 61%;
    margin: 0 auto;
}


/*****************course template css***************************/
.mobile-wrap {
    display: none !important;
}
.buttonsWrap {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
	position: relative;
}
.buttonsWrap .button {
    background-color: #333333;
    color: #fff;
    padding: 6px 15px;
    border-radius: 5px;
}
.buttonsWrap .button a {
	color: #fff;
}
.buttonsWrap .button:hover a {
	color: #fff;
}

.faq-item h4 {
    padding: 12px 25px 12px 24px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #eee;
	position: relative;
	    margin: 0px;
}
.faq-item h4:before {
    content: "\f0d7";
    transform: rotate(0deg);
    top: 12px !important;
    right: 10px !important;
    position: absolute;
    font-family: "Font Awesome 5 Free";
    font-size: 15px;
}
.faq-item h4.collapsed:before {
    content: "\f0d7";
    color: var(--thim-font-title-color);
    font-size: 15px;
    font-family: "Font Awesome 5 Free";
    line-height: 30px;
    height: 30px;
    float: right;
    top: 12px;
    position: absolute;
    right: 10px;
    font-weight: 900;
	    transform: rotate(-90deg);
}
.faq-item div {
    padding: 5px 25px;
}
.buttonsWrap:after {
    content: '';
    background-image: url('https://expertce.com/wp-content/uploads/2025/07/border1.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    width: 100%;
    position: absolute;
    bottom: -23px;
    left: 0;
    height: 10px;
}
.inner-wrapper {
    width: 75%;
}
.course-right h3 {
    font-family: "Urbanist", Sans-serif;
    line-height: 1.3;
    color: #1C1C1B;
    /* Show the full course name (no 2-line clamp) so students can tell
       similarly-named courses apart - was -webkit-line-clamp:2 + ellipsis.
       Use the full card width (incl. the former left/right gap) so long
       names fit in ~2 lines instead of 3-4. */
    overflow-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    max-width: 100%;
    margin: 0px 0px 20px!important;
}
.course-right .d-flex {
    display: flex;
    gap: 12px;
    margin: 10px auto;
    max-width: 80%;
}
.course-right .d-flex p {
    font-family: "Urbanist", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
}
.course-card {
    /* min-height (not fixed height) so cards with longer titles grow to fit
       instead of clipping the Continue button against the bottom border.
       The .course-right 20px padding then shows as space below the button. */
    min-height: 230px;
}
.course-left a img.wp-post-image {
    object-fit: cover !important;
    height: 100% !important;
}
.course-right {
    font-family: "Urbanist", Sans-serif;
}
.rightwrpper-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Was 15px top - removed the extra top gap (the card's .course-right
       already has 20px) so the title sits higher and uses the space above. */
    padding: 0 10px;
}
/* Mobile: the footer stacks (price, then full-width Buy Now). Give the
   "Available through {date}" line real separation from the button and center it
   under the full-width button so it reads as its own row, not tacked on.
   !important overrides the inline margin from the shared helper. */
@media (max-width: 768px) {
    .course-card .ece-course-expires-line {
        margin-top: 16px !important;
        text-align: center;
    }
}
/* Remove yellow line - using section headers with bisque background instead */
.page-template-template-ce-archive-php .main-content-wrapper {
    padding-top: 20px !important;
    margin-top: 20px !important;
}

/* Remove wave decoration from CE requirement section on template pages */
.page-template-template-ce-archive-php section#ce-requirement {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.page-template-template-ce-archive-php section#ce-requirement:before {
    content: none !important;
}

/* Keep wave decoration for other pages */
section#ce-requirement {
    padding-top: 150px;
    position: relative;
}
section#ce-requirement:before {
    content: '';
    background-image: url('https://expertce.com/wp-content/uploads/2025/07/shape2.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 100%;
    height: 84px;
    position: absolute;
    top: 66px;
    left: 0;
}
.certificate-image {
    margin: 0 auto;
    display: block;
    text-align: center;
}
.faq-item h4.collapsed {
    margin: 0px;
}
section#faq {
    padding-top: 150px;
    position: relative;
}
section#faq:before {
    content: '';
    background-image: url('https://expertce.com/wp-content/uploads/2025/07/shape2.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 100%;
    height: 84px;
    position: absolute;
    top: 66px;
    left: 0;
}
section#sample-certificate h2 {
    font-family: "Helvetica", Sans-serif;
}
a.scrolltop {
    width: 120px;
    display: block;
    text-align: center;
    margin: 30px 0px;
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
	padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    margin-left: auto;
	box-shadow: none;
    text-decoration: none;
}
a.scrolltop:hover {
	background-color: #FFFFB3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
	color: #333;
    text-decoration: none;
}
.course-author {
    display: none;
}

/* Hide tooltips on lesson navigation Prev/Next buttons */
.course-item-nav .prev > .course-item-nav__name,
.course-item-nav .next > .course-item-nav__name,
.course-item-nav .prev:hover > .course-item-nav__name,
.course-item-nav .next:hover > .course-item-nav__name {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Make Prev/Next navigation more visible with subtle styling */
.course-item-nav .prev,
.course-item-nav .next {
    font-size: 1.2em !important;
    padding: 10px 18px !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

/* Add subtle hover effect to make them interactive */
.course-item-nav .prev:hover,
.course-item-nav .next:hover {
    transform: scale(1.05) !important;
}

.course-item-nav .prev a,
.course-item-nav .next a {
    font-size: 1em !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    letter-spacing: 0.3px !important;
    transition: color 0.2s ease !important;
}

/* Brighten text on hover */
.course-item-nav .prev:hover a,
.course-item-nav .next:hover a {
    color: #ffb606 !important;
}

/* Larger, bolder arrows */
.course-item-nav .prev::before,
.course-item-nav .next::before {
    font-size: 1.5em !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

/* Animate arrows on hover */
.course-item-nav .prev:hover::before {
    transform: translateX(-3px) !important;
    color: #ffb606 !important;
}

.course-item-nav .next:hover::before {
    transform: translateX(3px) !important;
    color: #ffb606 !important;
}

/* Make current/active lesson MUCH more visible in sidebar - theme yellow color */
#popup-sidebar .course-item.current {
    background: #fff3cd !important; /* Light yellow - theme color, clearly visible */
    border-left: 5px solid #ffb606 !important;
    padding-left: 15px !important;
    box-shadow: 0 2px 8px rgba(255, 182, 6, 0.3) !important; /* Subtle glow with theme color */
}

#popup-sidebar .course-item.current .course-item-title {
    font-weight: 700 !important;
    color: #333 !important;
}

#popup-sidebar .course-item.current::before {
    background: #ffb606 !important;
    width: 5px !important;
    left: 0 !important;
}


/* Hide confusing circular progress indicator on quiz results page */
#quizResultGrade,
.result-grade {
    display: none !important;
}

/* Fix checkout layout: coupon/notice banners must span full width above the two-column form */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    flex-basis: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

/* Add spacing between checkout button and payment buttons on cart page */
.woocommerce-cart .wc-proceed-to-checkout .ppc-button-wrapper {
    margin-top: 15px !important;
}

/* Light green background for ALL completed items (passed OR failed) in course sidebar */
/* BUT NOT for current item - current item gets yellow below */
#popup-sidebar .course-item:has(.course-item__status .completed):not(.current) {
    background-color: #f1f8f4 !important; /* Very light green - subtle completed indicator */
}

/* Hover effect for completed items - yellowish theme color */
/* BUT NOT for current item - current item stays yellow */
#popup-sidebar .course-item:has(.course-item__status .completed):not(.current):hover {
    background-color: #fff9e6 !important; /* Light yellowish on hover - matches theme */
}

/* Incomplete items keep default background (white/transparent) - easy to spot what's left to do */
#popup-sidebar .course-item:not(:has(.course-item__status .completed)):not(.current) {
    background-color: transparent !important;
}

/* Hide Review button permanently on quiz results pages */
.lp-button.review-quiz,
button.review-quiz {
    display: none !important;
}

/* Loading state for search button and LearnPress buttons */
.btn_search_filt.loading,
.lp-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Hide only the text when loading - keep icon visible - SEARCH BUTTON ONLY */
.btn_search_filt.loading span {
    display: none !important;
}

/* Show spinner on RIGHT side only - SEARCH BUTTON ONLY */
.btn_search_filt.loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
    vertical-align: middle;
}

/* LearnPress buttons - keep original left side spinner */
.lp-button.loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
    vertical-align: middle;
}

/* Finish Course button — flex-center the spinner against the text label.
   Scoped to this one button only: other LP buttons keep their original
   inline-block + vertical-align:middle behavior to avoid any site-wide
   layout side-effects on quiz/lesson/cart buttons. */
.lp-btn-finish-course.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Make Finish Course button visible but not overwhelming on yellow background */
.lp-btn-finish-course,
.form-button-finish-course .lp-button {
    background: #28a745 !important; /* Success green - positive completion color */
    color: #ffffff !important;
    font-weight: normal !important; /* Normal weight for readability */
    font-size: 16px !important; /* Slightly larger for better readability */
    padding: 8px 18px !important;
    border: 2px solid #1e7e34 !important; /* Darker green border */
    border-radius: 4px !important; /* Smaller radius */
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important; /* Green shadow */
    transition: all 0.3s ease !important;
    text-transform: none !important; /* Remove uppercase - less aggressive */
    letter-spacing: 0.3px !important;
}

/* Hover effect - subtle brightening */
.lp-btn-finish-course:hover,
.form-button-finish-course .lp-button:hover {
    background: #34ce57 !important; /* Brighter green on hover */
    color: #ffffff !important;
    border-color: #28a745 !important;
    box-shadow: 0 4px 10px rgba(52, 206, 87, 0.4) !important; /* Slightly stronger shadow */
    transform: scale(1.03) !important; /* Subtle scale instead of 1.05 */
}

/* Active/click state */
.lp-btn-finish-course:active,
.form-button-finish-course .lp-button:active {
    transform: scale(0.98) !important;
}

/* Position the Finish Course button container prominently */
.form-button-finish-course {
    display: inline-block !important;
    margin-left: 20px !important;
}

/* Subtle pulse animation - very gentle */
.popup-header__inner.can-finish-course .form-button-finish-course {
    animation: subtle-pulse 3s ease-in-out infinite !important; /* Slower animation */
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3), 0 0 0 4px rgba(40, 167, 69, 0.1); /* Very subtle green pulse */
    }
}

/* CE Landing Page - H1 Subheading Styling */
.page-subtitle {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    margin: 15px 0 0 0;
    line-height: 1.4;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .page-subtitle {
        font-size: 16px;
        margin: 10px 0 0 0;
    }
}


/* CE Landing Page H1 - Override all caps and improve readability */
.page-title-wrapper .page-title {
    text-transform: none !important;
    font-size: 42px !important;
    letter-spacing: 0 !important;
}

/* Improve subheading visibility */
.page-subtitle {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    margin: 10px 0 0 0 !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
}

@media (max-width: 768px) {
    .page-title-wrapper .page-title {
        font-size: 28px !important;
    }
    .page-subtitle {
        font-size: 16px !important;
        margin: 8px 0 0 0 !important;
    }
}


/* ========================================
   CE Landing Page - Complete Header Redesign
   ======================================== */

/* Reduce height of black background area */
.top_heading_out.no-line-title .top_site_main {
    min-height: auto !important;
    padding: 40px 0 30px 0 !important;
}

.top_heading_out.no-line-title .page-title-wrapper {
    padding: 20px 0 !important;
}

/* CE Page Header Container - full width like other pages */
.ce-page-header {
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Override default H1 page-title styling */
.ce-page-header .page-title {
    color: #ffffff !important;
    text-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Main Title (H2 inside H1) - e.g., "Alabama Electrician CE" */
.ce-page-header .ce-main-title {
    color: #ffffff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 0 0 15px !important;
    text-transform: none !important;
    text-align: left !important;
    width: 100% !important;
    border-left: 4px solid #ffc107 !important;
}

/* Provider Number (H2 inside H1) - e.g., "State-Approved Provider #3456789" */
.ce-page-header .ce-provider-number {
    display: inline-block !important;
    background: rgba(255, 193, 7, 0.15) !important;
    border: 2px solid #ffc107 !important;
    color: #ffc107 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    margin: 10px 0 12px 15px !important;
    text-transform: none !important;
    backdrop-filter: blur(10px) !important;
}

/* Benefits (H3 inside H1) - e.g., "Lowest Price • Instant Certificates • We Report to AECB" */
.ce-page-header .ce-benefits {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    width: 100% !important;
}

.ce-page-header .ce-benefits::before {
    content: '✓';
    color: #4caf50;
    font-size: 20px;
    font-weight: bold;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top_heading_out.no-line-title .top_site_main {
        padding: 30px 0 20px 0 !important;
    }

    .ce-page-header {
        padding: 0 12px !important;
    }

    .ce-page-header .ce-main-title {
        font-size: 28px !important;
    }

    .ce-page-header .ce-provider-number {
        font-size: 16px !important;
        padding: 6px 16px !important;
    }

    .ce-page-header .ce-benefits {
        font-size: 15px !important;
    }

    .ce-page-header .ce-benefits::before {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .ce-page-header {
        padding: 0 10px !important;
    }

    .ce-page-header .ce-main-title {
        font-size: 24px !important;
    }

    .ce-page-header .ce-provider-number {
        font-size: 14px !important;
        padding: 5px 14px !important;
    }

    .ce-page-header .ce-benefits {
        font-size: 14px !important;
    }

    .ce-page-header .ce-benefits::before {
        font-size: 16px !important;
    }
}

/* Override any existing conflicting styles */
.page-title-wrapper .page-title {
    text-transform: none !important;
}

.page-subtitle {
    display: none !important; /* Hide old subtitle since we're using benefit-badges now */
}

/* ================================================
   CE Landing Page - Modern Layout
   ================================================ */

/* Main 2-Column Grid Layout */
.ce-archive .main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;  /* Increased from 30px to 50px for more breathing room */
    margin-top: 0 !important;
    align-items: start; /* Align both columns at top */
}

.ce-archive .main-content {
    min-width: 0; /* Fix grid overflow */
}

.ce-archive .sidebar {
    min-width: 0; /* Fix grid overflow */
}

/* Sidebar Quick Nav Buttons */
.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px; /* Match main content's first element margin */
    margin-bottom: 20px;
}

.sidebar-buttons .button {
    background-color: #333333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.sidebar-buttons .button a {
    color: #fff;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.sidebar-buttons .button:hover {
    background-color: #ffb606;
}

/* On mobile the quick-nav buttons render ABOVE the course cards, so keep them
   compact — one tight row instead of three full-width stacked blocks — to pull
   the actual course card up into view sooner. */
@media (max-width: 768px) {
    /* !important: a later-loaded stylesheet re-sets .sidebar-buttons to
       flex-direction:column with equal specificity, so it would otherwise win. */
    .sidebar-buttons {
        flex-direction: row !important;
        gap: 8px !important;
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }
    .sidebar-buttons .button {
        flex: 1 !important;
        padding: 8px 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        margin-bottom: 0 !important;
    }
    .sidebar-buttons .button a {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
    /* Tighten the gap above the courses section: the grid row-gap
       (.ce-archive .main-content-wrapper) and the section's inline margin-top
       together pushed the course card ~106px below the buttons. !important is
       needed to beat the inline style="margin-top:40px" on the <section>. */
    .ce-archive .main-content-wrapper {
        gap: 16px !important;
    }
    .ce-archive .courses-section {
        margin-top: 8px !important;
    }
}

.sidebar-buttons .button:hover a {
    color: #333;
}

/* CE Requirements button - distinct teal color */
.sidebar-buttons .button:first-child {
    background-color: #0d9488;
}

.sidebar-buttons .button:first-child:hover {
    background-color: #0f766e;
}

.sidebar-buttons .button:first-child:hover a {
    color: #fff;
}

/* CE Requirements - Collapsible Section */
.ce-requirement-section {
    margin: 0 30px 20px 30px !important;  /* Consistent left/right margins */
    border: 1px solid #f5deb3;  /* Much lighter border - wheat color */
    border-radius: 4px;
    overflow: hidden;
    background: white;
    scroll-margin-top: 100px; /* Account for fixed header when using anchor links */
}

.ce-requirement-header {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffe4c4;
    border-left: 4px solid #ffb606;
}

.ce-requirement-header h2 {
    margin: 0;
    font-size: 22px;
    color: #000;
    font-weight: 700;
}

.ce-header-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
    font-weight: 400;
}

/* Read More button in header */
.ce-requirement-header .read-more-btn {
    background: #ffb606;
    color: #000;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ce-requirement-header .read-more-btn:hover {
    background: #e6a303;
}

.ce-content {
    background: white;
}

.ce-inner {
    padding: 20px;
}

/* Visible content shown by default */
.ce-visible-content {
    display: block;
}

/* Hidden content - expanded by default, uses display to avoid W3TC max-height minification issues */
.ce-hidden-content {
    display: block;
    max-height: none !important;
    overflow: visible !important;
}

.ce-hidden-content.collapsed {
    display: none;
}

.ce-inner p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.ce-inner ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.ce-inner h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* Quick Steps to Renew License - Yellow boxes with NO tick marks */
.ce-inner div[style*="display: grid"][style*="grid-template-columns: repeat(4"] > div {
    border-left: 3px solid #ffb606 !important;
    padding-left: 10px !important;
    background: #fff9e6 !important;
    padding: 12px !important;
    border-radius: 4px;
}

/* Ensure the flex container for number + icon is properly styled */
.ce-inner div[style*="display: grid"][style*="grid-template-columns: repeat(4"] > div > div[style*="display: flex"] {
    margin-bottom: 8px !important;
}

/* Who Needs to Complete CE - 3 Column Grid with tick marks and lighter background */
.ce-inner div[style*="display: grid"][style*="grid-template-columns: repeat(2"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin: 15px 0 20px 0 !important;
}

.ce-inner div[style*="display: grid"][style*="grid-template-columns: repeat(2"] > div {
    padding: 8px 10px 8px 28px !important;
    display: block !important;
    position: relative;
    font-size: 0 !important; /* Hide the AI-generated checkmark */
    background: #fafbfc !important;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    min-height: 36px;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Show only the strong tag (license type name) */
.ce-inner div[style*="display: grid"][style*="grid-template-columns: repeat(2"] > div strong {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #495057;
}

/* Single yellow checkmark before each license type */
.ce-inner div[style*="display: grid"][style*="grid-template-columns: repeat(2"] > div::before {
    content: "✓" !important;
    color: #ffb606;
    font-weight: 700;
    font-size: 14px;
    position: absolute;
    left: 12px;
    top: 10px;
}

/* Responsive - both sections */
@media (max-width: 968px) {
    .ce-inner div[style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .ce-inner div[style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Testimonial Box (Sidebar) */
.testimonial-box {
    background: #f8f9fa;
    border: 2px solid #ffb606;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-box h3 {
    font-size: 18px;
    color: #000;
    margin: 0 0 15px;
    font-weight: 700;
}

.testimonial-stars {
    color: #ffb606;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1;
}

.testimonial-quote {
    font-size: 14px;
    line-height: 1.6;
    color: #606060;
    font-style: italic;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 3px solid #ffb606;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.testimonial-more {
    font-size: 13px;
    color: #ffb606;
    text-decoration: none;
    font-weight: 600;
}

.testimonial-more:hover {
    text-decoration: underline;
}

/* Why Choose ExpertCE Box (Sidebar) */
.why-choose-box {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.why-choose-box h3 {
    font-size: 16px;
    color: #000;
    margin: 0 0 12px;
    font-weight: 700;
}

.why-choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-list li {
    font-size: 13px;
    line-height: 1.6;
    color: #606060;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.why-choose-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffb606;
    font-weight: 700;
    font-size: 14px;
}

/* Related Articles Section */
.related-articles {
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    padding: 0 30px 30px 30px;
}

.related-articles h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    padding: 18px 30px;
    background: #ffe4c4;
    border-radius: 0;
    border-left: 4px solid #ffb606;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0;
}

.article-card {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
}

.article-card:hover {
    border-color: #ffb606;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.article-excerpt {
    font-size: 13px;
    color: #606060;
    line-height: 1.5;
}

/* Courses Section */
.courses-section {
    margin: 20px 0 30px 0;
    background: white;
    border-radius: 8px;
    padding: 0 30px 30px 30px;  /* Add padding to section itself */
}

.courses-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    padding: 18px 30px;
    background: #ffe4c4;
    border-radius: 0;
    border-left: 4px solid #ffb606;
}

.courses-section .course-card {
    margin-left: 0;
    margin-right: 0;
}

/* Certificate Section */
.certificate-section {
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    padding: 0 30px 30px 30px;  /* Add padding to section itself */
    text-align: center;
    scroll-margin-top: 100px; /* Account for fixed header when using anchor links */
}

.certificate-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    padding: 18px 30px;
    background: #ffe4c4;
    border-radius: 0;
    border-left: 4px solid #ffb606;
    text-align: left;
}

.certificate-section > p {
    padding: 0;  /* Remove - section padding handles it */
}

.certificate-image {
    max-width: 600px;
    width: 100%;
    border: 2px solid #eee;
    margin: 0 auto;
    margin: 15px auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .ce-archive .main-content-wrapper {
        grid-template-columns: 1fr;
        display: grid;
        grid-template-areas:
            "buttons"
            "content"
            "testimonial"
            "whychoose";
    }

    .ce-archive .main-content {
        grid-area: content;
    }

    .ce-archive .sidebar {
        display: contents; /* Remove sidebar wrapper, make children direct grid items */
    }

    .sidebar-buttons {
        grid-area: buttons;
    }

    .testimonial-box {
        grid-area: testimonial;
    }

    .why-choose-box {
        grid-area: whychoose;
    }
}

@media (max-width: 768px) {
    /* Make all sections full-width on mobile like CE requirement and testimonial sections */
    .ce-requirement-section,
    .courses-section,
    .certificate-section,
    .faq-section,
    .related-articles {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ce-requirement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .read-more-btn {
        width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop course card layout - 40/60 split */
@media (min-width: 1367px) {
    .course-left {
        width: 40%;
    }

    .course-right {
        width: 60%;
    }
}

/* Tablet-specific adjustments for course cards on iPad, Surface, and other tablets */
@media (min-width: 769px) and (max-width: 1366px) {
    .course-card {
        flex-direction: column !important;
        height: auto !important;
    }

    .course-left {
        width: 100% !important;
        overflow: hidden !important;
    }

    .course-left a {
        display: block !important;
        width: 100% !important;
    }

    .course-left a img.wp-post-image {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .course-right {
        width: 100% !important;
        padding: 20px !important;
    }
}

/* ================================================
   CE Landing Page - Header and Width Overrides
   ================================================ */

/* Override theme's default header height for CE landing pages */

/* Override CSS variables that control header padding */
body.page-template-template-ce-archive-php,
body.page-template-template-ce-archive-php .top_site_main,
body.page-template-template-ce-archive-php .top_heading_out {
    --thim-top-heading-padding-top: 10px !important;
    --thim-top-heading-padding-bottom: 8px !important;
}

.page-template-template-ce-archive-php .top_heading_out {
    padding: 0 !important;
    min-height: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
}

.page-template-template-ce-archive-php .top_heading_out.no-line-title {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove gap between hero and breadcrumbs on CE pages */
.page-template-template-ce-archive-php .hub-breadcrumbs,
.page-template-template-ce-archive-php .breadcrumbs-wrapper {
    margin-top: 0 !important;
}

.page-template-template-ce-archive-php .top_site_main {
    min-height: auto !important;
    padding: 0 !important;
}

/* Override the .no-line-title variant that adds extra padding */
.page-template-template-ce-archive-php.top_heading_out.no-line-title .top_site_main,
.page-template-template-ce-archive-php .top_heading_out.no-line-title .top_site_main {
    padding: 0 !important;
}

.page-template-template-ce-archive-php .page-title-wrapper {
    padding: 10px 0 !important;
}

.page-template-template-ce-archive-php .top_heading_out.no-line-title .page-title-wrapper {
    padding: 10px 0 !important;
}

.page-template-template-ce-archive-php .banner-wrapper {
    padding: 0 15px !important;
}

/* Compact header title styling - keep original design, just reduce spacing */
.page-template-template-ce-archive-php .ce-page-header {
    padding: 10px 0 !important;
    text-align: left !important;
}

.page-template-template-ce-archive-php .ce-main-title {
    font-size: 32px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 0 0 15px !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.page-template-template-ce-archive-php .ce-provider-number {
    display: inline-block !important;
    background: rgba(255, 193, 7, 0.15) !important;
    border: 2px solid #ffc107 !important;
    color: #ffc107 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    margin: 0 0 8px 15px !important;
    line-height: 1.3 !important;
}

.page-template-template-ce-archive-php .ce-benefits {
    font-size: 15px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    margin: 6px 0 0 0 !important;
    padding: 0 0 0 15px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* Remove breadcrumb border globally */
.breadcrumbs-wrapper #breadcrumbs,
#breadcrumbs {
    border-bottom: none !important;
}

/* Reduce breadcrumb spacing */
.page-template-template-ce-archive-php .breadcrumbs-wrapper {
    padding: 5px 0 !important;
    background: #f5f5f5;
}

/* Hub Pages Breadcrumb Styles */
.hub-breadcrumbs {
    padding: 12px 0 !important;
    background: #f5f5f5;
    margin-top: 0 !important;
}

/* Remove gap between hero and breadcrumbs on ALL hub pages */
.hub-breadcrumbs,
.breadcrumbs-wrapper.hub-breadcrumbs {
    margin-top: 0 !important;
}

/* Ensure hero sections don't have bottom margin on CE pages */
.content-area > .top_heading_out {
    margin-bottom: 0 !important;
}

.hub-breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hub-breadcrumbs .wrapper_new {
    display: block !important;
}

.hub-breadcrumbs ul.breadcrumbs,
.hub-breadcrumbs #breadcrumbs {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    border-bottom: none !important;
    width: 100%;
}

.hub-breadcrumbs ul.breadcrumbs li {
    display: inline-flex !important;
    align-items: center;
    color: #6b7280;
    float: none !important;
    width: auto !important;
}

/* Reset any inherited breadcrumb separators from parent theme */
.hub-breadcrumbs ul.breadcrumbs li::before,
.hub-breadcrumbs ul.breadcrumbs li::after,
.hub-breadcrumbs ul.breadcrumbs li a::before,
.hub-breadcrumbs ul.breadcrumbs li a::after,
.hub-breadcrumbs .wrapper_new::before,
.hub-breadcrumbs .wrapper_new::after {
    content: none !important;
    display: none !important;
}

/* Add single separator after non-last items - only on the li, not the anchor */
.hub-breadcrumbs ul.breadcrumbs li:not(:last-child)::after {
    content: '›' !important;
    display: inline !important;
    margin-left: 8px;
    color: #9ca3af;
    font-size: 16px;
}

.hub-breadcrumbs ul.breadcrumbs li a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hub-breadcrumbs ul.breadcrumbs li a:hover {
    color: #111827;
    text-decoration: underline;
}

.hub-breadcrumbs ul.breadcrumbs li:last-child {
    color: #111827;
    font-weight: 500;
}

/* Full width container - override all theme/Elementor containers */
.page-template-template-ce-archive-php .container,
.page-template-template-ce-archive-php .container.ce-archive,
.page-template-template-ce-archive-php .elementor-container,
.page-template-template-ce-archive-php .banner-wrapper.container {
    max-width: 1290px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Ensure Elementor sections use full width */
.page-template-template-ce-archive-php .elementor-section .elementor-container {
    max-width: 1290px !important;
}

/* Content width for template sections */
.page-template-template-ce-archive-php .ce-archive .inner-wrapper {
    max-width: 1290px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Reduce top spacing after breadcrumbs */
.page-template-template-ce-archive-php .content-area {
    padding-top: 0 !important;
}

/* Compact button navigation */
.page-template-template-ce-archive-php .buttonsWrap {
    margin: 15px 0 !important;
}

/* Responsive: Maintain compact header on mobile */
@media (max-width: 968px) {
    .page-template-template-ce-archive-php .top_heading_out {
        padding: 0 !important;
    }

    .page-template-template-ce-archive-php .ce-main-title {
        font-size: 22px !important;
    }

    .page-template-template-ce-archive-php .ce-provider-number {
        font-size: 14px !important;
    }

    .page-template-template-ce-archive-php .ce-benefits {
        font-size: 13px !important;
    }
}

/* ===== MODERN SECTION HEADERS (Reusable) ===== */
.section-header-modern {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #ffb606 0%, #ffa000 100%);
    border-radius: 12px 12px 0 0;
    color: #000;
    position: relative;
    letter-spacing: -0.5px;
}

.section-header-modern::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: rgba(0,0,0,0.1);
}

/* Section container with modern styling */
.modern-section {
    margin: 50px 0 30px;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ===== FAQ SECTION ===== */
/* Remove theme's wave background */
section#faq::before,
section#faq:before,
.faq-section::before,
.faq-section:before {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

.faq-section {
    margin: 40px 0 30px;
    background: white;
    border-radius: 8px;
    padding: 0 30px 30px 30px;
    box-shadow: none;
    border: none;
    position: relative;
    scroll-margin-top: 100px; /* Account for fixed header when using anchor links */
}

.faq-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    padding: 18px 30px;
    background: #ffe4c4;
    border-radius: 0;
    border-left: 4px solid #ffb606;
    border-bottom: none;
    position: relative;
}

.faq-section h2::before {
    content: none;
}

.faq-section h2::after {
    content: none;
}

.faq-accordion {
    padding: 0;
}

.faq-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    background: white !important;
}

.faq-item:last-of-type {
    border-bottom: none;
}

.hidden-faq {
    display: none;  /* Removed !important so JavaScript can toggle it */
}

.faq-question {
    width: 100%;
    background: white !important;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    transition: background-color 0.15s;  /* Faster transition - 0.15s instead of 0.2s */
}

.faq-question:hover {
    background-color: #f8f9fa !important;
}

/* Very light gray when expanded - NO YELLOW */
.faq-item.active .faq-question {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 15px;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #666;
    min-width: 24px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.faq-answer {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;  /* Faster - 0.25s instead of 0.4s */
    background: #fafbfc;
}

.faq-item.active .faq-answer {
    display: block !important;
    max-height: 1000px;
    transition: max-height 0.3s ease-in;  /* Faster - 0.3s instead of 0.5s */
}

.faq-answer p {
    padding: 15px 20px 20px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}

.show-all-faqs-btn {
    background: #ffb606;
    color: #000;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 30px 30px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(255, 182, 6, 0.3);
}

.show-all-faqs-btn:hover {
    background: #e6a303;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 182, 6, 0.4);
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 20px;
    }

    .faq-question {
        font-size: 14px;
        padding: 12px 15px;
    }

    .faq-answer p {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* ============================================
   Post Disclaimer Section (Below Author Bio)
   ============================================ */
.post-disclaimer {
    color: #666;
    font-size: 0.85em;
    line-height: 1.6;
    margin-top: 3em;
    padding: 1.5em;
    border-top: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.post-disclaimer h2 {
    color: #999;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5em;
    margin-top: 0;
}

.post-disclaimer h3 {
    color: #999;
    font-size: 1em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.post-disclaimer p {
    color: #666;
    margin-bottom: 0.8em;
}

.post-disclaimer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Electrician Mega Menu - Alphabetical 4 Columns
   ============================================ */

/* Mega menu container - hidden by default */
.menu-item-has-children.mega-menu-electrician > .sub-menu {
    display: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    position: fixed !important;
    top: 133px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 80px;
    z-index: 9999;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Show mega menu on hover */
.menu-item-has-children.mega-menu-electrician:hover > .sub-menu {
    display: flex !important;
}

/* 4 column layout */
.mega-menu-electrician > .sub-menu > .menu-item {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid #eee;
}

.mega-menu-electrician > .sub-menu > .menu-item:last-child {
    border-right: none;
}

/* Show only column headers as direct children, hide any stray state items */
.mega-menu-electrician > .sub-menu > .menu-item:not(.menu-item-has-children) {
    display: none !important;
}

/* Column headers (A-F, G-M, etc.) styling */
.mega-menu-electrician > .sub-menu > .menu-item.menu-item-has-children > a {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999 !important;
    letter-spacing: 1.5px;
    padding: 0 0 12px 0 !important;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffb606;
    display: block !important;
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Hide ALL arrow icons throughout the mega menu */
.mega-menu-electrician .menu-item a::after,
.mega-menu-electrician .menu-item a::before,
.mega-menu-electrician .menu-item-has-children > a::after,
.mega-menu-electrician .menu-item-has-children > a::before,
.mega-menu-electrician a[aria-haspopup="true"]::after,
.mega-menu-electrician a[aria-haspopup="true"]::before,
.mega-menu-electrician .sub-menu .menu-item a::after,
.mega-menu-electrician .sub-menu .menu-item a::before,
.mega-menu-electrician > .sub-menu > .menu-item > a > *::after,
.mega-menu-electrician > .sub-menu > .menu-item > a > *::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* State links container */
.mega-menu-electrician .sub-menu .sub-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Individual state links */
.mega-menu-electrician .sub-menu .sub-menu .menu-item {
    margin: 0;
    padding: 0;
}

.mega-menu-electrician .sub-menu .sub-menu .menu-item a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

/* Hide arrows on state links */
.mega-menu-electrician .sub-menu .sub-menu .menu-item a::after,
.mega-menu-electrician .sub-menu .sub-menu .menu-item a::before {
    display: none !important;
    content: none !important;
}

.mega-menu-electrician .sub-menu .sub-menu .menu-item a:hover {
    background: #f8f8f8;
    color: #ffb606;
    padding-left: 18px;
}

/* State abbreviation badge */
.mega-menu-electrician .sub-menu .sub-menu .menu-item a::before {
    content: attr(data-state);
    display: inline-block;
    width: 32px;
    padding: 3px 6px;
    margin-right: 10px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #999;
    transition: all 0.2s ease;
}

.mega-menu-electrician .sub-menu .sub-menu .menu-item a:hover::before {
    background: #ffb606;
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .mega-menu-electrician > .sub-menu {
        flex-direction: column !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: none;
        padding: 15px;
    }

    .mega-menu-electrician > .sub-menu > .menu-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }

    .mega-menu-electrician > .sub-menu > .menu-item:last-child {
        border-bottom: none;
    }

    .mega-menu-electrician .mega-column-header {
        margin-bottom: 10px;
    }
}

/* ============================================
   ROBUST Mega Menu - Production Ready
   Uses CSS Grid + Modern Positioning
   ============================================ */

/* Robust mega menu container with solid white background */
.menu-item-has-children.robust-mega-menu > .sub-menu {
    display: grid !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content !important;

    /* Solid white background */
    background: #ffffff;

    /* Enhanced shadow for depth */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);

    padding: 40px 80px;
    z-index: 9999;
    box-sizing: border-box !important;

    /* Subtle top border accent */
    border-top: 3px solid #ffb606;

    /* CSS Grid for 4 compact columns centered */
    grid-template-columns: repeat(4, 250px);
    gap: 50px;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show on hover with smooth transition */
.menu-item-has-children.robust-mega-menu:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Each column (A-F, G-M, N-S, T-W) */
.robust-mega-menu > .sub-menu > .menu-item {
    padding: 0;
}

/* Column headers - clean and minimal */
.robust-mega-menu > .sub-menu > .menu-item.menu-item-has-children > a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666 !important;
    letter-spacing: 1.5px;
    padding: 0 0 12px 0 !important;
    margin-bottom: 15px;
    display: block !important;
    pointer-events: none !important;

    /* Simple bottom border accent */
    border-bottom: 2px solid #ffb606;
}

/* Hide all arrows */
.robust-mega-menu .menu-item a::after,
.robust-mega-menu .menu-item a::before {
    display: none !important;
    content: none !important;
}

/* State links container */
.robust-mega-menu .sub-menu .sub-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Individual state links with enhanced styling */
.robust-mega-menu .sub-menu .sub-menu .menu-item a {
    display: block;
    padding: 10px 14px;
    margin: 3px 0;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;

    /* Subtle background */
    background: rgba(0, 0, 0, 0.02);

    /* Left border accent */
    border-left: 3px solid transparent;
}

/* Hide ALL arrows in mega menu - comprehensive approach */
.robust-mega-menu .sub-menu .menu-item a::after,
.robust-mega-menu .sub-menu .menu-item a::before,
.robust-mega-menu .sub-menu .menu-item > a::after,
.robust-mega-menu .sub-menu .menu-item > a::before,
.robust-mega-menu .sub-menu > li > a::after,
.robust-mega-menu .sub-menu > li > a::before,
.robust-mega-menu .sub-menu .sub-menu .menu-item a::after,
.robust-mega-menu .sub-menu .sub-menu .menu-item a::before,
.robust-mega-menu .sub-menu .sub-menu .menu-item > a::after,
.robust-mega-menu .sub-menu .sub-menu .menu-item > a::before,
.robust-mega-menu .sub-menu .sub-menu > li > a::after,
.robust-mega-menu .sub-menu .sub-menu > li > a::before,
.robust-mega-menu * a::after,
.robust-mega-menu * a::before {
    display: none !important;
    content: "" !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Hover effect with slide animation */
.robust-mega-menu .sub-menu .sub-menu .menu-item a:hover {
    background: linear-gradient(90deg, rgba(255, 182, 6, 0.1) 0%, rgba(255, 182, 6, 0.05) 100%);
    color: #ffb606;
    padding-left: 20px;
    border-left-color: #ffb606;
    transform: translateX(4px);

    /* Subtle glow effect */
    box-shadow: 0 2px 8px rgba(255, 182, 6, 0.15);
}

/* Active state link */
.robust-mega-menu .sub-menu .sub-menu .menu-item.current-menu-item a {
    background: linear-gradient(90deg, rgba(255, 182, 6, 0.15) 0%, rgba(255, 182, 6, 0.08) 100%);
    border-left-color: #ffb606;
    color: #ffb606;
    font-weight: 600;
}

/* Responsive: Tablet (2 columns) */
@media (max-width: 991px) {
    .robust-mega-menu > .sub-menu {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 90vw !important;
        padding: 30px 4% !important;
    }
}

/* Desktop - hide mobile-only menu */
@media (min-width: 768px) {
    .menu-item.mobile-only-electrician {
        display: none !important;
    }
}

/* Mobile - hide mega menu only */
@media (max-width: 767px) {
    /* Hide the mega menu item itself */
    .menu-item.robust-mega-menu {
        display: none !important;
    }

    /* Hide the mega menu dropdown on mobile */
    .menu-item-has-children.robust-mega-menu > .sub-menu {
        display: none !important;
    }
}

/* ============================================
   Learn Articles Two-Column Layout with Category Filters
   ============================================ */

/* Override parent theme width restrictions ONLY for learn articles page */
.learn-articles-wrapper .inner-wrapper,
.learn-articles-wrapper ~ .inner-wrapper,
.site-main:has(.learn-articles-wrapper) .inner-wrapper {
    width: 100% !important;
}

/* Also override Bootstrap col-sm-9 width when learn-articles-wrapper is present */
.site-main:has(.learn-articles-wrapper).col-sm-9 {
    width: 100% !important;
}

/* Main two-column grid layout */
.learn-articles-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin: 20px 0;
}

/* Left sidebar styling */
.learn-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    min-width: 0; /* Fix grid overflow */
}

/* Category filter section */
.learn-category-filter {
    margin-bottom: 20px;
}

.learn-category-filter h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Category checkbox labels */
.learn-category-label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    transition: color 0.2s ease;
}

.learn-category-label:hover {
    color: #000;
}

/* Category checkboxes */
.learn-cat-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

/* Right content area */
.learn-content {
    min-width: 0; /* Fix grid overflow */
}

/* Filter Applied section */
.learn-filter-applied {
    background: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.learn-filter-applied strong {
    color: #2271b1;
    font-size: 14px;
    margin-right: 8px;
}

/* Individual filter tags */
.filter-tag {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid #2271b1;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    color: #2271b1;
    font-weight: 500;
}

/* Remove filter button (X) */
.remove-filter {
    background: none;
    border: none;
    color: #2271b1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.remove-filter:hover {
    color: #d63638;
}

/* Clear All Filters button */
.clear-all-filters {
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s ease;
    font-weight: 500;
}

.clear-all-filters:hover {
    background: #135e96;
}

/* Learn articles list */
.learn-articles-list {
    margin-bottom: 30px;
}

/* Post item - list style layout (date on left, content on right) */
.learn-articles-list .post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.learn-articles-list .post-item:last-child {
    border-bottom: none;
}

.learn-articles-list .post-item-date {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.learn-articles-list .post-item-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.learn-articles-list .post-item-date .month {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 4px;
}

.learn-articles-list .post-item-content {
    flex: 1;
}

.learn-articles-list .post-item-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.learn-articles-list .post-item-title a {
    color: #333;
    text-decoration: none;
}

.learn-articles-list .post-item-title a:hover {
    color: #ffb606;
}

.learn-articles-list .post-item-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.learn-articles-list .post-item-meta span {
    margin-right: 15px;
}

.learn-articles-list .post-item-meta a {
    color: #666;
    text-decoration: none;
}

.learn-articles-list .post-item-meta a:hover {
    color: #ffb606;
}

.learn-articles-list .post-item-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.learn-articles-list .post-item-excerpt p {
    margin: 0;
}

.learn-articles-list .post-item-read-more {
    display: inline-block;
    color: #ffb606;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.learn-articles-list .post-item-read-more:hover {
    text-decoration: underline;
}

/* Mobile responsive - stack date above content */
@media (max-width: 600px) {
    .learn-articles-list .post-item {
        flex-direction: column;
        gap: 10px;
    }

    .learn-articles-list .post-item-date {
        width: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }

    .learn-articles-list .post-item-date .day {
        font-size: 18px;
    }

    .learn-articles-list .post-item-date .month {
        margin-top: 0;
    }
}

/* Learn pagination styling */
.learn-articles-pagination {
    margin-top: 30px;
    text-align: center;
}

.learn-articles-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.learn-articles-pagination .page-numbers:hover {
    background: #ffb606;
    color: #fff;
}

.learn-articles-pagination .page-numbers.current {
    background: #ffb606;
    color: #fff;
    font-weight: bold;
}

/* Mobile responsive - sidebar above content */
@media (max-width: 968px) {
    .learn-articles-wrapper {
        grid-template-columns: 1fr;
    }

    .learn-sidebar {
        margin-bottom: 10px;
    }

    /* Collapsible category filter on listing page */
    .learn-articles-wrapper:not(.single-article-view) .learn-category-filter {
        margin-bottom: 0;
    }

    .learn-articles-wrapper:not(.single-article-view) .learn-category-filter h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        padding: 5px 0;
        font-size: 15px;
    }

    .learn-articles-wrapper:not(.single-article-view) .learn-category-filter h3::after {
        content: '▼';
        font-size: 12px;
        transition: transform 0.2s ease;
    }

    .learn-articles-wrapper:not(.single-article-view) .learn-category-filter.expanded h3::after {
        transform: rotate(180deg);
    }

    /* Hide category labels by default on mobile listing page */
    .learn-articles-wrapper:not(.single-article-view) .learn-category-label {
        display: none;
    }

    /* Show labels when expanded */
    .learn-articles-wrapper:not(.single-article-view) .learn-category-filter.expanded .learn-category-label {
        display: block;
        margin-top: 10px;
    }
}

/* =============================================
   Single Learn Article Page Styles
   ============================================= */

/* Search header on single article pages - now inside the content column */
.learn-articles-search-header.single-article-search {
    margin-bottom: 20px;
}

.learn-articles-search-header.single-article-search .expertce-search-container {
    max-width: 100%;
}

.learn-articles-search-header.single-article-search .expertce-search-hero {
    padding: 0;
    text-align: left;
}

.learn-articles-search-header.single-article-search .expertce-search-bar {
    max-width: 100%;
}

/* Generic search header */
.learn-articles-search-header {
    margin-bottom: 30px;
}

/* Blog search row - button + search bar in same row (matches Learn Articles) */
.blog-search-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-search-row .back-to-blog-wrapper {
    flex-shrink: 0;
    padding-top: 6px; /* Align button with search input */
}

.blog-search-row .blog-search-header.single-blog-search {
    flex: 1;
    min-width: 0;
}

/* Blog back button */
.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffb606;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.back-to-blog-btn:hover {
    background: #e8a205;
    color: #333;
    text-decoration: none;
    transform: translateX(-3px);
}

.back-to-blog-btn svg {
    flex-shrink: 0;
}

/* Blog search header styling */
.blog-search-header.single-blog-search .expertce-search-container {
    max-width: 100%;
    padding: 0;
}

.blog-search-header.single-blog-search .expertce-search-hero {
    padding: 0;
    margin: 0;
}

.blog-search-header.single-blog-search .expertce-search-bar {
    max-width: 100%;
    margin: 0;
}

/* Mobile responsive for single blog */
@media (max-width: 768px) {
    .blog-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .back-to-blog-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .blog-search-row .blog-search-header.single-blog-search {
        width: 100%;
    }
}

/* Single article view - same two-column layout as listing */
.learn-articles-wrapper.single-article-view {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Single article content area */
.single-article-view .learn-content {
    max-width: 100%;
}

.single-article-view .single-article-content {
    background: white;
}

/* Ensure article content displays properly */
.single-article-view .page-content {
    padding: 0;
}

.single-article-view .page-content article {
    margin: 0;
}

/* When AJAX filtering is active, search results appear in content area */
.single-article-view .expertce-search-results {
    margin-top: 0;
}

/* Sticky sidebar on single article pages */
.single-article-view .learn-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Back to All Articles button */
.back-to-learn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.back-to-learn-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffb606;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-to-learn-btn:hover {
    background: #e8a205;
    color: #333;
    text-decoration: none;
    transform: translateX(-3px);
}

.back-to-learn-btn svg {
    flex-shrink: 0;
}

/* Mobile responsive for single article - simple stacked layout */
@media (max-width: 968px) {
    .learn-articles-wrapper.single-article-view {
        grid-template-columns: 1fr;
    }

    /* Hide category filter sidebar on mobile */
    .single-article-view .learn-sidebar {
        display: none;
    }

    /* Button on its own row */
    .single-article-view .back-to-learn-wrapper {
        margin-bottom: 10px;
    }

    .single-article-view .back-to-learn-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Search on its own row */
    .single-article-view .learn-articles-search-header {
        margin-bottom: 15px;
    }
}

/* ============================================
   ECE Common Dropdown Component
   ============================================
   Usage: Add class "ece-dropdown" to container
   Structure:
   <div class="ece-dropdown" data-callback="functionName">
       <button class="ece-dropdown-trigger" data-value="default">Label</button>
       <div class="ece-dropdown-options">
           <div class="ece-dropdown-option selected" data-value="value1">Option 1</div>
           <div class="ece-dropdown-option" data-value="value2">Option 2</div>
       </div>
   </div>
   ============================================ */

.ece-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

/* Ensure open dropdown appears above other content */
.ece-dropdown:has(.ece-dropdown-trigger.open),
.ece-dropdown:has(.ece-dropdown-options.open) {
    z-index: 9999;
}

.ece-dropdown-trigger {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    transition: border-color 0.2s ease;
}

.ece-dropdown-trigger::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

.ece-dropdown-trigger:hover {
    border-color: #d1d5db;
}

.ece-dropdown-trigger.open {
    border-color: #0ea5e9;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ece-dropdown-trigger.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.ece-dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #0ea5e9;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ece-dropdown-options.open {
    display: block;
}

.ece-dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    text-align: left;
    display: flex;
    align-items: center;
    transition: background 0.15s ease;
}

.ece-dropdown-option:hover {
    background: #fef3c7;
}

.ece-dropdown-option.selected {
    background: #fef3c7;
    color: #111827;
    font-weight: 600;
}

.ece-dropdown-option.selected:hover {
    background: #fde68a;
}

.ece-dropdown-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Scrollbar styling for dropdown options */
.ece-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.ece-dropdown-options::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 0 0 8px 0;
}

.ece-dropdown-options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ece-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Size variants */
.ece-dropdown.ece-dropdown-sm .ece-dropdown-trigger {
    padding: 10px 36px 10px 12px;
    font-size: 14px;
}

.ece-dropdown.ece-dropdown-sm .ece-dropdown-trigger::after {
    right: 10px;
    width: 16px;
    height: 16px;
}

.ece-dropdown.ece-dropdown-sm .ece-dropdown-option {
    padding: 10px 12px;
    font-size: 13px;
}

.ece-dropdown.ece-dropdown-lg .ece-dropdown-trigger {
    padding: 16px 48px 16px 20px;
    font-size: 16px;
}

.ece-dropdown.ece-dropdown-lg .ece-dropdown-option {
    padding: 14px 20px;
    font-size: 15px;
}

/* Color variants */
.ece-dropdown.ece-dropdown-dark .ece-dropdown-trigger {
    background: #1f2937;
    color: white;
    border-color: #374151;
}

.ece-dropdown.ece-dropdown-dark .ece-dropdown-trigger:hover {
    border-color: #4b5563;
}

.ece-dropdown.ece-dropdown-dark .ece-dropdown-options {
    background: #1f2937;
    border-color: #0ea5e9;
}

.ece-dropdown.ece-dropdown-dark .ece-dropdown-option {
    color: #e5e7eb;
}

.ece-dropdown.ece-dropdown-dark .ece-dropdown-option:hover {
    background: #374151;
}

/* Full width variant */
.ece-dropdown.ece-dropdown-full {
    max-width: none;
}

/* ============================================
   ECE Dropdown - Search Feature
   ============================================ */
.ece-dropdown-search {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ece-dropdown-search input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ece-dropdown-search input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.ece-dropdown-search input::placeholder {
    color: #9ca3af;
}

/* No results message */
.ece-dropdown-no-results {
    padding: 20px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

/* ============================================
   ECE Dropdown - Option Groups
   ============================================ */
.ece-dropdown-group {
    /* Container for grouped options */
}

.ece-dropdown-group-label {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
}

.ece-dropdown-group:first-of-type .ece-dropdown-group-label {
    border-top: none;
}

.ece-dropdown-group .ece-dropdown-option {
    padding-left: 20px; /* Indent grouped options */
}

/* ============================================
   ECE Dropdown - Icons
   ============================================ */
.ece-dropdown-icon {
    margin-right: 10px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ece-dropdown-trigger .ece-dropdown-icon {
    margin-right: 8px;
}

.ece-dropdown-option .ece-dropdown-icon {
    margin-right: 10px;
}

/* Trigger with icon and text */
.ece-dropdown-trigger .ece-dropdown-text {
    /* Text wrapper for when icons are present */
}

/* Option with icon - icon display via data attribute */
.ece-dropdown-option[data-icon]::before {
    content: attr(data-icon);
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================
   ECE Dropdown - Error State
   ============================================ */
.ece-dropdown.ece-dropdown-error .ece-dropdown-trigger {
    border-color: #ef4444;
    animation: ece-dropdown-shake 0.4s ease;
}

.ece-dropdown.ece-dropdown-error .ece-dropdown-trigger:hover {
    border-color: #dc2626;
}

@keyframes ece-dropdown-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* ============================================
   ECE Dropdown - Searchable Variant
   ============================================ */
.ece-dropdown[data-searchable="true"] .ece-dropdown-options {
    max-height: 350px; /* Taller for search results */
}

/* ============================================
   ECE Dropdown - Hero/Homepage Variant
   ============================================ */
.ece-dropdown.ece-dropdown-hero {
    max-width: none;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-trigger {
    height: 48px;
    padding: 10px 44px 10px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #f3f4f6;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-trigger:hover {
    border-color: #9ca3af;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-trigger.open {
    border-color: #ffb606;
    box-shadow: 0 0 0 3px rgba(255, 182, 6, 0.15);
    border-radius: 8px;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-options {
    border: 2px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 400px;
    margin-top: 4px;
    border-top: 2px solid #d1d5db;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-options.open {
    border-color: #ffb606;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-search {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-search input:focus {
    border-color: #ffb606;
    box-shadow: 0 0 0 3px rgba(255, 182, 6, 0.15);
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-group-label {
    background: #e5e7eb;
    border-top: 1px solid #d1d5db;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-option {
    background: white;
    border-bottom: 1px solid #f3f4f6;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-option:hover {
    background: #fef3c7;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-option.selected {
    background: #fef3c7;
    color: #111827;
    font-weight: 600;
}

.ece-dropdown.ece-dropdown-hero .ece-dropdown-option.selected:hover {
    background: #fde68a;
}

/* Mobile responsive for hero dropdown */
@media (max-width: 768px) {
    .ece-dropdown.ece-dropdown-hero .ece-dropdown-trigger {
        height: 44px;
        padding: 8px 40px 8px 14px;
        font-size: 14px;
    }

    .ece-dropdown.ece-dropdown-hero .ece-dropdown-option {
        padding: 12px 14px;
    }
}

/* ============================================
   Refer a Friend - Social Share Button Fixes
   ============================================ */

/* CRITICAL: Hide <br> tags that force vertical stacking */
.gens-referral_share br {
    display: none !important;
}

/* Make container AND inner <p> tag flex row (horizontal) */
.gens-referral_share,
.gens-referral_share > p {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix social share button styling */
.gens-referral_share a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    width: auto !important;
    padding: 12px 16px !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

/* CRITICAL: Fix SVG sizing - plugin uses width="100%" which makes them tiny */
.gens-referral_share a svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    fill: #fff !important;
}

.gens-referral_share a:hover {
    opacity: 0.85;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Facebook button */
.gens-referral_share .gens-referral_share__fb,
.gens-referral_share .raf-facebook {
    background-color: #1877f2 !important;
}

/* Twitter/X button */
.gens-referral_share .gens-referral_share__tw,
.gens-referral_share .raf-twitter {
    background-color: #000 !important;
}

/* LinkedIn button */
.gens-referral_share .gens-referral_share__ln,
.gens-referral_share .raf-linkedin {
    background-color: #0077b5 !important;
}

/* WhatsApp button */
.gens-referral_share .gens-referral_share__wa,
.gens-referral_share .raf-whatsapp {
    background-color: #25d366 !important;
}

/* Messenger button */
.gens-referral_share .gens-referral_share__msg,
.gens-referral_share .raf-messenger {
    background-color: #0084ff !important;
}

/* Pinterest button */
.gens-referral_share .gens-referral_share__pin,
.gens-referral_share .raf-pinterest {
    background-color: #bd081c !important;
}

/* Icons inside buttons (Font Awesome) */
.gens-referral_share a i {
    margin-right: 8px;
    font-size: 16px;
}

/* Social Share section title */
.gens-refer-a-friend--share-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Responsive - smaller buttons on tablets */
@media (max-width: 768px) {
    .gens-referral_share a {
        padding: 10px 14px !important;
        min-width: 44px;
        min-height: 44px;
    }
    .gens-referral_share a svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
}

/* Responsive - stack buttons only on very small mobile */
@media (max-width: 400px) {
    .gens-referral_share,
    .gens-referral_share > p {
        flex-direction: column !important;
    }

    .gens-referral_share a {
        max-width: 100%;
        width: 100% !important;
    }
}

/* ============================================
   Refer a Friend Modal - Scrolling Fix
   Fix modal overflow on smaller screens
   ============================================ */

/* Make the modal container scrollable */
.raf-modal {
    overflow-y: auto !important;
    align-items: flex-start !important; /* Align to top so scrolling works */
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Fix modal content to not exceed viewport */
.raf-modal-content {
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    margin: auto !important; /* Center vertically with auto margins */
    position: relative !important;
}

/* Ensure close button is always visible */
.raf-modal-content .raf-close {
    position: sticky !important;
    top: 0 !important;
    right: 0 !important;
    float: right !important;
    background: #fff !important;
    z-index: 10 !important;
    margin: -12px -12px 0 0 !important;
    padding: 0 12px !important;
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
    .raf-modal {
        padding: 10px !important;
    }

    .raf-modal-content {
        max-height: calc(100vh - 20px) !important;
        padding: 16px !important;
        max-width: 100% !important;
    }

    .raf-modal-content h2 {
        font-size: 20px !important;
        padding-right: 30px !important; /* Space for close button */
    }
}

/* ==========================================================================
   Course Timer Widget - Soft Navy
   Ensures consistent styling across all environments
   ========================================================================== */

#timerDiv {
    display: none;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 12px 12px 0 0 !important;
    padding: 8px 16px !important;
    background: #1e3a5a !important;
    background-color: #1e3a5a !important;
    border-radius: 8px !important;
    border: 2px solid #facc15 !important;
    max-width: fit-content !important;
    min-width: auto !important;
    margin-left: auto !important;
    box-shadow: none !important;
    top: auto !important;
    right: auto !important;
}

#timerDiv.timer-active {
    display: flex !important;
}

.timer-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.timer-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}

#courseTimer,
#courseDuration {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.stat-divider {
    width: 1px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

#lnotfound {
    font-size: 12px;
    color: #dc2626;
}

@media (max-width: 640px) {
    #timerDiv {
        margin: 8px !important;
        margin-left: auto !important;
        padding: 6px 12px !important;
        gap: 12px !important;
    }

    .timer-label {
        font-size: 0.6rem !important;
    }

    #courseTimer,
    #courseDuration {
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   Single Learn Articles - Hero Section (smaller height)
   ========================================================================== */

body.single-learn-articles .top_heading_out.no-line-title .top_site_main {
    min-height: auto !important;
    padding: 25px 0 20px 0 !important;
}

body.single-learn-articles .top_heading_out.no-line-title .page-title-wrapper {
    padding: 10px 0 !important;
}

body.single-learn-articles .top_heading_out .page-title {
    font-size: 28px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    body.single-learn-articles .top_heading_out.no-line-title .top_site_main {
        padding: 20px 0 15px 0 !important;
    }

    body.single-learn-articles .top_heading_out .page-title {
        font-size: 22px !important;
    }
}

/* ==========================================================================
   Single Learn Articles - Sidebar Sections
   ========================================================================== */

/* Sidebar container - add gap between children */
.single-article-view .learn-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Exam Promo Banner in Sidebar */
.learn-sidebar .ece-exam-promo-banner.ece-promo-sidebar {
    margin-bottom: 20px;
}

/* All Professions Link Section - full width like banner */
.learn-sidebar .sidebar-all-articles-link {
    margin-top: 16px;
}

.learn-sidebar .sidebar-all-articles-link .back-to-learn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 20px;
    color: #1e3a5f;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: #ffb606;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.learn-sidebar .sidebar-all-articles-link .back-to-learn-btn:hover {
    background: #e5a405;
    color: #1e3a5f;
}

.learn-sidebar .sidebar-all-articles-link .back-to-learn-btn svg {
    flex-shrink: 0;
}

/* Category Filter Section */
.learn-sidebar .learn-category-filter {
    background: transparent;
    padding: 0;
    padding-top: 20px;
}

.learn-sidebar .learn-category-filter h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* ==========================================================================
   Mobile Overrides - Ensure proper scrolling on single article pages
   ========================================================================== */

@media (max-width: 968px) {
    /* Remove sticky positioning on mobile */
    .single-article-view .learn-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* Ensure banner and search are in normal document flow */
    .single-article-view .learn-content {
        position: relative;
    }

    .single-article-view .learn-content .ece-exam-promo-banner {
        position: static !important;
        z-index: 1;
        margin-bottom: 16px;
    }

    .single-article-view .mobile-search-row {
        position: static !important;
        z-index: 1;
    }

    /* Reset any potential sticky on search */
    .single-article-view .learn-articles-search-header,
    .single-article-view .expertce-search-container {
        position: static !important;
        top: auto !important;
    }
}

/* Profile Page — hide redundant hero banner */
body.learnpress-profile .top_heading_out {
    display: none !important;
}

/* Mobile Profile Page - Fix horizontal scrollbar */
@media (max-width: 768px) {
    /* Profile main navigation tabs - allow wrapping */
    .lp-user-profile .lp-profile-nav-tabs {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }

    .lp-user-profile .lp-profile-nav-tabs > li {
        flex: 0 0 auto !important;
        width: 50% !important;
        box-sizing: border-box;
    }

    .lp-user-profile .lp-profile-nav-tabs > li > a {
        white-space: normal !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
    }

    /* Course filter tabs (All, In Progress, Finished, Passed) */
    .learn-press-filters {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        column-gap: 15px !important;
        row-gap: 8px !important;
    }

    .learn-press-filters li a,
    .learn-press-filters li span {
        font-size: 14px !important;
        padding-bottom: 8px !important;
    }

    /* Orders table - fix column overflow */
    .lp-user-profile table.lp-list-table th,
    .lp-user-profile table.lp-list-table td {
        padding: 8px 5px !important;
        font-size: 13px !important;
        word-break: break-word !important;
    }

    .lp-user-profile table.lp-list-table {
        table-layout: fixed !important;
        width: 100% !important;
    }
}

/* Mobile menu - make container flex for logout at bottom */
.mobile-menu-container.mobile-effect {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100%;
}

.mobile-menu-container .nav.navbar-nav {
    flex: 1;
}

/* Mobile menu - Logout at bottom */
.mobile-menu-logout {
    padding: 30px 20px 20px;
    margin-top: auto;
    text-align: center;
}

.mobile-menu-logout a {
    display: inline-block;
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ff6b6b !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-logout a:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

/* Hide logout from profile submenu in mobile menu (shown at bottom instead) */
@media (max-width: 768px) {
    body.ece-modern-header .mobile-menu-wrapper .nav.navbar-nav .sub-menu li.ece-logout-item {
        display: none !important;
    }
}

/* Mobile: lesson content responsiveness */
@media (max-width: 768px) {
    /* Stack floated images instead of floating */
    .lesson-description img.alignright,
    .lesson-description img.alignleft {
        float: none;
        display: block;
        margin: 15px auto;
        max-width: 100%;
    }

    /* Horizontal scroll on tables only */
    .lesson-description table,
    .content-item-description table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: auto !important;
        max-height: none !important;
    }
    .lesson-description table tbody,
    .content-item-description table tbody {
        display: table;
        width: 100%;
    }
}

/* ==========================================================================
   NEC 2026 Lesson Styles (scoped under .nec-lesson to avoid conflicts)
   ========================================================================== */

.nec-lesson {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nec-lesson .lesson {
    max-width: 100%;
}

.content-item-description:has(.nec-lesson) {
    max-width: 100% !important;
    width: 100% !important;
}

/* Hide our lesson-header — LearnPress already shows the title */
.nec-lesson .lesson-header {
    display: none;
}

/* Lesson image - floated right beside Overview */
.nec-lesson .nec-lesson-image {
    float: right;
    width: 340px;
    margin: 40px 10px 20px 20px;
}

.nec-lesson .nec-lesson-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.nec-lesson .nec-lesson-image img:hover {
    opacity: 0.85;
}

/* Lightbox overlay */
.nec-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.nec-lightbox-overlay.active {
    display: flex;
}

.nec-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .nec-lesson .nec-lesson-image {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

.nec-lesson .lesson-content {
    padding: 20px;
}

.nec-lesson .lesson-content h2 {
    color: #2d5a87;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #e9ecef;
}

.nec-lesson .overview-box {
    background: #e8f4fd;
    border-left: 4px solid #2d5a87;
    padding: 15px;
    margin: 10px 0 20px 0;
    border-radius: 0 8px 8px 0;
}

.nec-lesson .applying-box {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 10px 0 20px 0;
    border-radius: 0 8px 8px 0;
}

.nec-lesson .applying-box ul {
    margin: 10px 0 10px 20px;
    padding-left: 10px;
}

.nec-lesson .applying-box li {
    margin: 8px 0;
    line-height: 1.5;
}

.nec-lesson .whats-new {
    margin-top: 20px;
}

.nec-lesson .code-version {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.nec-lesson .code-version.v2023 h3 {
    margin: 0;
    padding: 10px 15px;
    font-size: 1rem;
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.nec-lesson .code-version.v2026 h3 {
    margin: 0;
    padding: 10px 15px;
    font-size: 1rem;
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #28a745;
}

.nec-lesson .code-text {
    background: #fafafa;
    padding: 15px;
    font-size: 0.95rem;
    border: 1px solid #e9ecef;
    border-top: none;
}

.nec-lesson .code-text h4 {
    color: #2d5a87;
    font-size: 0.95rem;
    margin: 15px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.nec-lesson .code-text h4:first-child {
    margin-top: 0;
}

.nec-lesson .code-text p {
    margin: 8px 0;
    line-height: 1.6;
}

.nec-lesson .code-text ol,
.nec-lesson .code-text ul {
    margin: 10px 0 10px 20px;
    padding-left: 10px;
}

.nec-lesson .code-text li {
    margin: 6px 0;
    line-height: 1.5;
}

.nec-lesson .code-text strong {
    background: #fff3cd;
    padding: 1px 4px;
    border-radius: 3px;
}

.nec-lesson .info-note {
    display: block;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-left: 3px solid #9e9e9e;
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
    line-height: 1.5;
}

.nec-lesson .nec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.nec-lesson .nec-table caption {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-align: left;
    color: #1a1a2e;
}

.nec-lesson .nec-table th,
.nec-lesson .nec-table td {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    text-align: left;
}

.nec-lesson .nec-table th {
    background: #2c3e6b;
    color: #fff;
    font-weight: 600;
}

.nec-lesson .nec-table tr:nth-child(even) {
    background: #f4f6fb;
}

.nec-lesson .nec-table tr:hover {
    background: #e8ecf5;
}

.nec-lesson .nec-table td strong {
    color: #2c3e6b;
}

.nec-lesson .image-prompt,
.nec-lesson .quiz-section {
    display: none;
}

/* Sticky footer — prevent gap below footer on short content pages */
.content-pusher {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#main-content {
    flex: 1;
}

/* ---- LP profile: WooCommerce orders table cell alignment ----
   Keep every cell of an order row on one visual line, vertically centered.
   Overrides the (git-ignored) plugin template inline vertical-align:top;
   high specificity + !important so it wins over that inline <style>. */
body .lp-list-table.profile-list-orders tbody tr.order-row td,
body .lp-list-table.profile-list-orders thead tr th {
    vertical-align: middle !important;
}
body .lp-list-table.profile-list-orders tbody tr.order-row td a,
body .lp-list-table.profile-list-orders tbody tr.order-row td time,
body .lp-list-table.profile-list-orders tbody tr.order-row td span {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    float: none !important;
}

/* Stripe express checkout (Link / Apple Pay / Google Pay) on the checkout page:
   the theme lays out form.checkout as a flex ROW, so the injected express button,
   separator, and order-attribution element become extra flex columns and crush
   the billing + order-review layout. Give each its own full-width row instead. */
form.checkout.woocommerce-checkout {
    flex-wrap: wrap;
}
form.checkout.woocommerce-checkout > #wc-stripe-express-checkout-element,
form.checkout.woocommerce-checkout > #wc-stripe-payment-request-wrapper {
    flex: 0 0 100%;
    width: 100%;
    max-width: 420px;
    margin: 6px auto 0;
}
form.checkout.woocommerce-checkout > #wc-stripe-express-checkout-button-separator,
form.checkout.woocommerce-checkout > #wc-stripe-payment-request-button-separator {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    margin: 14px 0 4px;
}
form.checkout.woocommerce-checkout > wc-order-attribution-inputs {
    flex: 0 0 100%;
    height: 0;
    margin: 0;
}
