/*==========================================================
  Theme: Hello Elementor Child - Main Stylesheet
==========================================================*/

/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*==========================================================
  Global CSS Rules
==========================================================*/

h1, h2, h3, h4, h5, h6, p  {
    font-family: "Helvetica", Sans-serif !important;
}

a, button {
        font-family: "Helvetica", Sans-serif !important;
}

a {
    text-decoration: none;
    outline: none;
}

#content {
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
}

#site-header {
	z-index:9999;
}
    

.sf-btn-regular {
    padding:10px 15px !important;
    border:2px solid #34495E !important;
    background-color:#534A4B !important;
    color:#ffffff !important;
    /* width: fit-content !important; */
    position: relative;
    transition: all 0.3s ease;
    
  
}

.sf-btn-regular:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.wpr-mobile-toggle {
    padding-right: 0px !important;
}

.wpr-mobile-nav-menu {
    margin-top: 5px !important;
    background-color: #534A4B !important;
    padding:20px 0px 15px 0px !important;
    text-align: left !important;
    z-index: 9999;
}

.wpr-mobile-nav-menu li.current_page_item {
    background-color:rgba(255, 255, 255, 0.3) !important;
}

.wpr-mobile-nav-menu li.current_page_item a, .wpr-mobile-nav-menu li a:focus, .wpr-mobile-nav-menu li a:active, .wpr-mobile-nav-menu li a:hover  {
    background-color:transparent !important;
}

.wpr-mobile-nav-menu li {
    background-color: #534A4B!important;
    color: #ffffff !important;
    padding-left:15px !important;
    padding-right: 15px !important;
}

.wpr-mobile-nav-menu li a {
    color: #ffffff !important;
    border: none !important;
    padding:8px 0px !important;
}

.pure-black {
    background-color: #000000 !important;
}

.custom-nav-cst {
    position: relative;
    z-index: 9999 !important;
}

.woocommerce-info {
    padding-left:35px !important;
}

.woocommerce-info:before {
    left:15px !important;
}

.account-menu a {
    color:#ffffff;
    font-family: "Helvetica", Sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size:14px !important;
}

.account-menu a:hover::after {
   content:"";
   width:100%;
   height:2px;
   background-color:#ffffff;
   position:absolute;
   top:25px;
   left:0;  
}


/*==========================================================
  Home page
==========================================================*/

.service-boxes {
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
    min-height: 300px;
    transition: all 0,3s ease-in-out;
}

.service-boxes:hover {
    box-shadow: rgba(49, 112, 143, 1) 0px 0px 0px 2px;
    background-color:rgba(49, 112, 143, 0.3);
    transform: translateY(-5px);
}

.certificate-type-boxes {
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
    transition: all 0.3s ease-in-out;
}

.certificate-type-boxes:hover {
    box-shadow: rgba(49, 112, 143, 1) 0px 0px 0px 2px;
    background-color:rgba(49, 112, 143, 0.3);
    transform: translateY(-5px);
}

.transparent-btn a {
    width: 180px;
    text-decoration: none;
    outline: none;
    
}

.transparent-btn a .elementor-button-icon{
   transition: all 0.3s ease;
}

.transparent-btn a:hover .elementor-button-icon{
   transform: translateX(5px);
}

.offer-boxes  {
    border-radius: 8px;
    background-color:#ffffff;
    border:2px solid #31708f;
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;
}

.offer-boxes:hover {
    border-radius: 8px;
    background-color:rgba(49, 112, 143, 0.1);
    border:2px solid #31708f;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
}

.offer-boxes .elementor-image-box-img {
    padding:10px;
    margin:0;
    background-color:#ffffff;
    border-radius: 8px;
    transform: translateY(-60px);
    transition: all 0.3s ease;

}

.offer-boxes:hover .elementor-image-box-img {
    background-color:#31708f;
}

.offer-boxes:hover .elementor-image-box-img img {
    filter: brightness(0) invert(1) !important;
}

.offer-boxes .elementor-widget-container {
    height:180px !important;
    transition: all 0.3s ease-in-out;
    
}

.offer-boxes .elementor-image-box-title {
    transform: translateY(-48px);
}

.wpr-menu-item.wpr-pointer-item:after {
    margin-top:5px;
}

/*==========================================================
  Individual page
==========================================================*/

.custom-sidebar {
    box-shadow:5px 2px 34px #777 inset;
}

/*==========================================================
  Single Post CSS
==========================================================*/
.post-hello-content {
    display: flex;
    gap:20px;
    padding-top:60px;
}
.single-post-left {
    width: 65%;
    float: left;
}
.single-post-right {
    width: 35%;
    float: right;
}

/*==========================================================
  Widget CSS
==========================================================*/

.custom-post-sidebar {
    box-shadow:5px 2px 34px #777 inset !important;
}

.uagb-icon-list__source-wrap {
    padding-top:5px !important;
}

.animated-button a {
    position: relative;
    width: 140px;
    text-decoration: none;
    outline: none;
}

.animated-button a .uagb-button__link {
    z-index: 1;
}
.animated-button a:before {
    content: " ";
    width: 0;
    height: 100%;
    background-color:#547392;
    position: absolute;
    transition: all 0.2s ease-out;
    left: 0;
}

.animated-button a:hover:before {
    width: 100%;
}

/*==========================================================
  WooCommerce Notice Fixes
==========================================================*/

/* Fix messy WooCommerce notices */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    margin: 1em 0;
    padding: 1em;
    border-radius: 4px;
    line-height: 1.6;
    font-size: 14px;
    clear: both;
    overflow: hidden;
}

.woocommerce-message {
    background-color: #f7f7f7;
    border-left: 4px solid #2ea2cc;
    color: #444;
}

.woocommerce-error {
    background-color: #ffeaea;
    border-left: 4px solid #dc3232;
    color: #444;
}

.woocommerce-info {
    background-color: #e8f5fa;
    border-left: 4px solid #00a0d2;
    color: #444;
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    color: #0073aa;
    text-decoration: underline;
    word-wrap: break-word;
}

.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover {
    color: #005177;
}

/* Fix notice text wrapping */
.woocommerce-notices-wrapper * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix cart notice formatting */
.wc-block-cart__submit-container .woocommerce-notices-wrapper,
.cart-collaterals .woocommerce-notices-wrapper {
    margin-bottom: 1em;
}

/*==========================================================
  End of WooCommerce Notice Fixes
==========================================================*/

/*==========================================================
  Training Video and Quiz Container Alignment
==========================================================*/

/* Left-align training video containers with reduced width */
.sf-video-container,
.training-video-container,
.training-video-accordion {
    margin: 20px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
}

/* Left-align quiz containers with reduced width */
.sf-quiz-container,
.training-quiz-container {
    margin: 20px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
    width: 60% !important;
    max-width: 800px !important;
}

/* Quiz containers inside quiz items should be hidden by default */
.training-quiz-item .quiz-container {
    margin: 20px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 800px !important;
    display: none; /* Remove !important to allow JavaScript control */
}

/* Beautiful Quiz Details Section */
.training-quiz-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.training-quiz-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  
}

.quiz-header {
    background: linear-gradient(135deg, #000 0%, #31708f 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-title {
    color: white !important;
    margin: 0 0 15px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

/* Quiz Meta Information */
.quiz-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quiz-meta span {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.quiz-questions-count {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
    border: none !important;
}

.quiz-time-limit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border: none !important;
}

.quiz-passing-score {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
    border: none !important;
}

.quiz-best-score {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
}

.quiz-best-score:empty {
    display: none;
}

/* Quiz Results Modal Styles */
.quiz-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-results-modal.show {
    opacity: 1;
}

.quiz-results-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.quiz-results-content.detailed-content {
    max-width: 800px;
    padding: 30px;
}

.quiz-results-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-results-close:hover {
    color: #333;
}

.quiz-results-header h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    text-align: center;
}

.results-history h4 {
    color: #34495e;
    font-size: 18px;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.attempts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.attempts-table th,
.attempts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.attempts-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.attempts-table td {
    font-size: 14px;
    color: #6c757d;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.passed {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.status-badge.failed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.no-attempts {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.quiz-results-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.quiz-results-actions .button {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.quiz-results-actions .button:hover {
    transform: translateY(-2px);
}

/* Video Progress Styles */
.video-progress-info {
    margin: 20px 0;
    text-align: center;
}

.video-progress-info p {
    margin-bottom: 10px;
    color: #555;
    font-size: 16px;
}

.progress-bar {
    background: #f0f4f8;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Access Denied for Video Completion */
.sf-access-denied .sf-access-message .dashicons-video-alt3 {
    color: #e67e22;
    font-size: 48px;
}

.total-video-duration {
    background: rgba(52, 152, 219, 0.2) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
}

.quiz-description {
    padding: 20px 25px;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #f0f2f5;
}

.quiz-status {
    padding: 15px 25px;
    border-bottom: 1px solid #f0f2f5;
}

.status-passed {
    background: linear-gradient(135deg, #d4f6d4 0%, #c8f7c5 100%);
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-attempted {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-not-attempted {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quiz-actions {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.quiz-actions .button,
.quiz-actions .start-quiz,
.quiz-actions .view-results {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quiz-actions .button:hover,
.quiz-actions .start-quiz:hover,
.quiz-actions .view-results:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    
}

.quiz-actions .view-results {
    background: linear-gradient(135deg, #48cae4 0%, #0077b6 100%);
}

.quiz-actions .view-results:hover {
    background: linear-gradient(135deg, #0096c7 0%, #005f7f 100%);
    box-shadow: 0 4px 12px rgba(72, 202, 228, 0.3);
}

.attempts-exhausted,
.no-questions {
    color: #dc3545;
    font-weight: 600;
    padding: 12px 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

/* Beautiful Test Requirements Section - Full Width */
.sf-test-requirements {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf4;
    width: 100%;
    max-width: none;
}

.sf-test-requirements h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px 0;
    text-align: left;
    position: relative;
}

.sf-test-requirements h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.sf-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.sf-requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #f0f4f8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sf-requirements-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sf-requirements-list li:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.requirement-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.requirement-icon i {
    font-size: 16px;
}

.video-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.time-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.score-icon {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.retake-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.requirement-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.requirement-text strong {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* Test Instructions Section - Full Width */
.sf-test-instructions {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #fff3e0;
    width: 100%;
    max-width: none;
}

.sf-test-instructions h4 {
    color: #e67e22;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-test-instructions h4::before {
    content: '\f339';
    font-family: dashicons;
    font-size: 20px;
    color: #e67e22;
}

.sf-instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: instruction-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
}

.sf-instructions-list li {
    counter-increment: instruction-counter;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
    position: relative;
    color: #555;
    line-height: 1.4;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
}

.sf-instructions-list li::before {
    content: counter(instruction-counter);
    position: absolute;
    left: 15px;
    top: 12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.sf-instructions-list li:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.12);
}

/* Test Action Section - Full Width */
.sf-test-start {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e6f3ff;
    width: 100%;
    max-width: none;
}

.sf-test-start h4 {
    color: #2980b9;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.sf-test-start p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Main container adjustments */
.sf-test-wrapper {
    width: 100%;
    max-width: none;
}

.sf-test-info {
    width: 100%;
    max-width: none;
}

.sf-quiz-container {
    width: 100%;
    max-width: none;
}

/* Responsive Design - Full Width */
@media (max-width: 768px) {
    .sf-requirements-list {
        grid-template-columns: 1fr;
    }
    
    .sf-instructions-list {
        grid-template-columns: 1fr;
    }
    
    .sf-test-requirements,
    .sf-test-instructions,
    .sf-test-start {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .sf-requirements-list li {
        padding: 12px;
        gap: 10px;
    }
    
    .requirement-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .requirement-text strong {
        font-size: 13px;
    }
    
    .requirement-text small {
        font-size: 11px;
    }
    
    .sf-instructions-list li {
        padding: 10px 12px 10px 38px;
        font-size: 13px;
    }
    
    .sf-instructions-list li::before {
        width: 18px;
        height: 18px;
        left: 12px;
        top: 10px;
        font-size: 10px;
    }
    
    /* Quiz meta responsive */
    .quiz-meta {
        gap: 8px;
    }
    
    .quiz-meta span {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Video items arranged horizontally */
.training-video-container .training-video-item,
.sf-video-container .training-video-item,
.training-video-accordion .accordion-item {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 300px !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Ensure accordion items are left-aligned */
.accordion-item,
.video-accordion-item,
.quiz-accordion-item {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left-align accordion headers and content */
.accordion-header,
.video-accordion-header,
.quiz-accordion-header {
    text-align: left !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.accordion-content,
.video-accordion-content,
.quiz-accordion-content {
    text-align: left !important;
    width: 100% !important;
    padding: 20px !important;
    margin: 0 !important;
    display: none;
    box-sizing: border-box !important;
}

/* Ensure quiz forms are left-aligned */
.quiz-form,
.training-quiz-form {
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Left-align quiz questions */
.quiz-questions,
.quiz-question {
    text-align: left !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Left-align question options */
.question-options,
.option-label {
    text-align: left !important;
    width: fit-content !important;
    margin: 5px 0 !important;
    padding: 8px 12px !important;
    /* display: block !important; */
    box-sizing: border-box !important;
}

/* Left-align video players and content */
.video-player,
.training-video-player,
.video-content {
    text-align: left !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Override any theme centering for these containers with reduced width */
.sf-test-container .sf-quiz-container,
.woocommerce-MyAccount-content .training-quiz-container {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 800px !important;
}

/* Video containers use full width for horizontal layout */
.sf-video-container .training-video-container,
.woocommerce-MyAccount-content .training-video-container {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

/* Ensure buttons and actions are left-aligned */
.quiz-actions,
.video-actions,
.quiz-submit {
    text-align: left !important;
    padding: 20px !important;
}

/* Fix for any wrapper containers that might be centering content */
.sf-test-wrapper,
.sf-video-wrapper {
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .sf-video-container,
    .training-video-container,
    .training-video-accordion {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .training-video-container .training-video-item,
    .sf-video-container .training-video-item,
    .training-video-accordion .accordion-item {
        flex: 1 1 100% !important;
        min-width: auto !important;
    }
    
    .sf-quiz-container,
    .training-quiz-container,
    .quiz-container {
        width: 90% !important;
        max-width: none !important;
    }
    
    .sf-test-container .sf-quiz-container,
    .woocommerce-MyAccount-content .training-quiz-container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .sf-video-container .training-video-container,
    .woocommerce-MyAccount-content .training-video-container {
        width: 100% !important;
        flex-direction: column !important;
    }

    .accordion-content,
.video-accordion-content,
.quiz-accordion-content {
    padding: 0px !important;
}

.accordion-video-player {
    padding:20px 20px !important;
}

.accordion-video-player video, .accordion-video-player iframe {
    min-height: 200px !important;
}

.sf-test-requirements h4, .sf-test-instructions h4, .sf-test-start h4 {
    font-size: 16px;
    font-weight: 600;
}

.sf-requirements-list li::before {
    display: none !important;
}

.sf-instructions-list li {
    border-left:none !important;
}


}

/* @media (max-width: 480px) {
    .sf-video-container,
    .training-video-container,
    .training-video-accordion,
    .sf-quiz-container,
    .training-quiz-container,
    .quiz-container {
        width: 100% !important;
    }
    
    .sf-test-container .sf-quiz-container,
    .woocommerce-MyAccount-content .training-quiz-container {
        width: 100% !important;
    }
    
    .sf-video-container .training-video-container,
    .woocommerce-MyAccount-content .training-video-container {
        width: 100% !important;
        flex-direction: column !important;
    }
} */

/*==========================================================
  End of Training Video and Quiz Container Alignment
==========================================================*/

/*==========================================================
  Custom Checkbox Styling for Forms
==========================================================*/

/* Custom checkbox styling */
.custom-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 5px 0 !important;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    opacity: 1 !important;
    position: relative !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.custom-checkbox .checkmark {
   margin-right:0 !important;
}

.custom-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #007cba !important;
    outline-offset: 2px !important;
}

.custom-checkbox a {
    color: #007cba !important;
    text-decoration: underline !important;
}

.custom-checkbox a:hover {
    color: #005a87 !important;
}

/* Form validation styling - only show colors after user interaction */
.form-group input:focus:invalid,
.form-group select:focus:invalid,
.form-group input.was-validated:invalid,
.form-group select.was-validated:invalid {
    border-color: #dc3545 !important;
}

.form-group input:focus:valid,
.form-group select:focus:valid,
.form-group input.was-validated:valid,
.form-group select.was-validated:valid {
    border-color: #28a745 !important;
}

/* Default form field styling - neutral colors */
.form-group input,
.form-group select {
    border: 1px solid #e1e8ed !important;
    transition: border-color 0.3s ease !important;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007cba !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1) !important;
}

/*==========================================================
  End of Custom Checkbox Styling
==========================================================*/

/*==========================================================
  Enhanced Account Details Page Styling
==========================================================*/

/* Account Details Wrapper */
.account-details-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 3px solid #f1f3f4;
}

/* Main Form Content - Single Column with Better Spacing */
.enhanced-account-form {
    display: block;
}

/* Form Actions at bottom */
.form-actions {
    text-align: center;
    padding-top: 40px;
    border-top: 3px solid #f1f3f4;
    margin-top: 30px;
}

.profile-image-section {
    flex-shrink: 0;
}

.profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.3s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
}

.image-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .image-upload-overlay {
    opacity: 1;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    font-size: 18px;
    color: #666;
    margin: 0 0 12px 0;
}

.member-since {
    font-size: 14px;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* Form Sections - Clean and compact */
.form-section {
    background: rgba(83, 74, 75, 0.1);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid rgba(83, 74, 75, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Remove section titles completely */
.section-title {
    display: none;
}

.section-icon {
    display: none;
}

/* Form Fields - Better horizontal spacing */
.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-field {
    margin-bottom: 12px;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.8px;
}

.form-control {
    width: 100% ;
    padding: 14px 16px !important;
    border: 2px solid #e9ecef ;
    border-radius: 8px ;
    font-size: 16px ;
    background: white ;
    transition: all 0.3s ease;
    box-shadow: none ;
}

.form-control:focus {
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px) !important;
}

.form-control:hover {
    border-color: #667eea !important;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.field-description {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

/* Action Buttons */
.form-actions {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f8f9fa;
}



.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 600;
}

/* Hide WooCommerce default password hints */
.woocommerce-account .woocommerce-form-row em,
.woocommerce-account .woocommerce-password-hint,
.woocommerce-account .password-hint,
.woocommerce-account .form-row em,
.woocommerce-account [class*="password"] em,
.woocommerce-account .woocommerce-form__label-for-checkbox em,
.woocommerce-MyAccount-content em {
    display: none !important;
}

/* Hide password strength element with specific ID */
#password_strength {
    display: none !important;
}

/* Hide any elements containing password hint text */
.woocommerce-account *:contains("leave blank"),
.woocommerce-account *:contains("Leave blank"),
.woocommerce-account *:contains("unchanged") {
    display: none !important;
}

/* Hide password field descriptions */
.woocommerce-account .woocommerce-form-row .description,
.woocommerce-account .form-row .description {
    display: none !important;
}

/* Responsive Design */


@media (max-width: 768px) {
    .account-details-wrapper {
        padding: 25px 15px;
        margin: 0;
        border-radius: 12px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 35px;
        padding-bottom: 30px;
    }
    
    .profile-image-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .form-row-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .save-changes-btn {
        width: 100% !important;
        padding: 18px !important;
    }
    
    .form-actions {
        margin-top: 20px;
        padding-top: 30px;
    }

    .certificate-type-boxes, .service-boxes {
        max-width:320px;
        width:100%;
    }

    .post-hello-content {
        flex-direction: column;
        gap: 30px;
        padding-left:5px;
        padding-right: 5px;
    }

    .post-hello-content .single-post-left {
        width: 100%;
    }

    .post-hello-content .single-post-right {
        width: 100%;
    }

    .post-hello-content .single-post-left .entry-title {
        font-size: 24px;
        line-height: 1.25em;
    }

    .sf-account-eq-title {
        font-size: 16px;
        font-weight: 600;
    }

    fieldset.sf-account-details {
        padding:0px;
        border:none;
    }

    .sf-selected-equipment-display {
    padding: 20px 12px !important;
    margin: 0 0 20px 0 !important;

}

.form-field label {
    font-weight: 600;
    color:#333333;
    font-size:14px;

}

.form-control {
    padding:7px 10px !important;
    font-size:14px;
    font-weight: 500;
    font-family: inherit;
}

.sf-endpoint-header h3  {
    font-size:18px;
    font-weight: 600;
}

.sf-endpoint-description {
    font-size:14px;
}

.sf-video-container, .training-video-container, .training-video-accordion {
    margin-top:10px !important;
  }

  .accordion-header {
    padding:0 !important;
  }

  .accordion-title {
    padding:12px 5px !important;
    gap:5px;
  }

  .accordion-status-icon {
    margin:0 !important;
  }

  .sf-next-steps h4 {
    font-size:18px;
    font-weight: 600;
  }

  .quiz-results-header h3 {
    font-size:20px;
    font-weight: 600;
  }

  .quiz-results-score {
    font-size:28px;
  }

  .results-history h4 {
    text-align: center;
  }

  .attempts-table th, .attempts-table td {
    font-size: 12px;
    color:#000000;
  }

  .status-badge {
    padding:4px 8px;

  }

  .sf-preview-header h4 {
    font-size:18px;
    font-weight: 600;
  }

  .license-card-container, .certificate-container {
    padding:10px !important;
  }

  #licenseCard {
    width: 100%;
    height: auto;
  }

  #licenseCardImage {
    width: 100%;
  }

  


}

/* Animation for form sections */
.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile header animation */
.profile-header {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==========================================================
  End of Enhanced Account Details Page Styling
==========================================================*/

/*==========================================================
  Enhanced Native Select Styling
==========================================================*/

/* Style the country select to match other form fields */
#reg_country {
    width: 100% !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    font-family: "Helvetica", Sans-serif !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 4px !important;
    background-color: white !important;
    cursor: pointer !important;
    transition: border-color 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
}

#reg_country:focus {
    border-color: #007cba !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1) !important;
}

#reg_country:hover {
    border-color: #007cba !important;
}

/* Ensure consistent styling with other form fields */
.form-group #reg_country {
    height: auto !important;
}

/*==========================================================
  End of Enhanced Native Select Styling
==========================================================*/


/*==========================================================
  License and certificate page styling
==========================================================*/


/*==========================================================
  License and certificate page styling
==========================================================*/

/* .sf-license-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-image: url("/wp-content/uploads/2025/09/Picture2k.webp");
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
   
} */

.sf-license-section {
    margin-bottom: 30px
}

.sf-license-big-title {
    display: flex;
    align-items: center;
    flex-direction: row;

}


/* account menu css header  */

/* Hide submenu by default */
.account-menu .sub-menu {
  display: none;
  position: absolute;
  background: #000000;
  margin: 0;
  padding: 8px;
  min-width: 150px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 9999;
  top:30px;
}

/* Show submenu on hover (desktop) */
.account-menu:hover .sub-menu {
  display: block;
}

.account-menu .sub-menu li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #ffffff !important;
  font-size:14px;
  text-align: left;
}


/* license page css */


.sf-certificate-card.expired {
    padding:20px;
    border: 1px dashed #dc3545;
    border-radius: 16px;
    margin-top:20px;
}



.expired-date {
    color: #dc3545;
    font-weight: bold;
}

.expiring-soon {
    color: #ff8c00;
    font-weight: bold;
}

.sf-expiration-warning {
    color: #ff8c00;
    font-weight: bold;
    margin-top: 5px;
}

.sf-expired-notice {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: start;
    gap: 8px;
    align-items: center;
}

.sf-expired-notice .dashicons {
    margin-right: 5px;
}

/* Certificate Actions Styling */
.sf-certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sf-preview-btn {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sf-preview-btn:hover {
    background: #005a87 !important;
}

/* Certificate Preview Section */
.sf-certificate-preview {
    margin-top: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.sf-preview-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sf-preview-header h4 {
    margin: 0;
    color: #1a365d;
}

.sf-license-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-license-selector label {
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

.sf-license-selector select {
    padding: 5px 10px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 250px;
}

.sf-close-preview {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    font-size: 18px;
}

.sf-close-preview:hover {
    color: #333;
}

/* Certificate Design Styles */
.certificate-container {
    max-width: 850px;
    margin: 20px auto;
    background: white;
    position: relative;
    overflow: hidden;
}

.certificate {
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    /* background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); */
    border: 6px solid #1a365d;
    position: relative;
    background-image: url("/wp-content/uploads/2025/10/california3.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 90%;
    
}

.certificate::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid #2c5282;
    
}

.certificate-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.logo-section {
    margin-bottom: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: #1a365d;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 5px;
}

.certificate-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a365d;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certificate-subtitle {
    font-size: 14px;
    color: #2c5282;
    font-weight: 300;
    margin-bottom: 20px;
}

.certificate-body {
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.presentation-text {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.recipient-name {
    font-size: 32px;
    font-weight: 700;
    color: #1a365d;
    border-bottom: 2px solid #2c5282;
    display: inline-block;
    padding-bottom: 8px;
}

.achievement-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cf-license-details {
    background-color: rgba(255, 255, 255, 0.65);
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.license-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.license-row:last-child {
    margin-bottom: 0;
}

.license-label {
    font-weight: 600;
    color: #2d3748;
}

.license-value {
    color: #1a365d;
    font-weight: 500;
}

.license-number-highlight {
    color: #1a365d;
    font-weight: 500;
    font-size: 14px;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.signature-section {
    text-align: center;
    flex: 1;
}

.signature-line {
    width: 120px;
    height: 1px;
    background: #2c5282;
    margin: 0 auto 8px;
}

.signature-label {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.signature-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
    margin-top: 3px;
}

.seal-section {
    text-align: center;
    flex: 1;
}

.official-seal {
    width: 70px;
    height: 70px;
    border: 2px solid #1a365d;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #ffffff 0%, #f7fafc 100%);
    position: relative;
}

.seal-text {
    font-size: 8px;
    font-weight: bold;
    color: #1a365d;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
}



.sf-preview-actions {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.sf-print-certificate-btn,
.sf-download-certificate-btn, .sf-print-license-btn {
    background: #1a365d !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sf-print-certificate-btn:hover,
.sf-download-certificate-btn:hover {
    background: #2c5282 !important;
}



@media (max-width: 768px) {
    .certificate {
        padding: 20px;
    }
    
    .certificate-title {
        font-size: 22px;
    }
    
    .recipient-name {
        font-size: 24px;
    }
    
    .certificate-footer {
        flex-direction: row;
        gap: 20px;
        padding-bottom:20px;
    }
    
    .sf-certificate-actions {
        flex-direction: column;
    }
    
    .sf-preview-actions {
        flex-direction: column;
    }
}

/* License Card Styling */
.sf-license-card-preview {
    margin-top: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.license-card-container {
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap:20px;
}

.license-card {
    width: 520px;
    height: 320px;
    position: relative;
    margin: 0 auto;
}

.license-card-single {
    width: 520px;
    height: 320px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    background:#fff;
    display: flex;
    flex-direction: column;
    background-image:url("/wp-content/uploads/2025/10/Picture2k.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: rgba(255,255,255,0.5); /* semi-transparent overlay */
  background-blend-mode: lighten; /* or overlay, multiply */
}

/* Header Section */
.card-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.5);
}

.state-logo .logo-circle {
    width: 50px;
    height: 50px;
    background: white;
    color: #1a365d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.card-title p {
    margin: 2px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.card-validity {
    display: flex;
    align-items: center;
}

.card-validity {
    color:  #10b981;
    font-size: 12px;
    font-weight: bold;
}

.card-validity.expired {
    color: #dc3545;
    font-size: 12px;
    font-weight: bold;
}

/* Body Section */
.card-body {
    display: flex;
    padding: 20px;
    flex: 1;
    gap: 20px;
}

.photo-section {
    width: 100px;
    display: flex;
    flex-direction: column;
}

.license-photo {
    width: 100px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    /* margin-bottom: 15px; */
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
}

#cardIssueDate {
    font-size: 14px;margin-top:10px;
}



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

.signature-line {
    width: 100%;
    height: 2px;
    background: white;
    margin-bottom: 5px;
}

.signature-area span {
    font-size: 10px;
    opacity: 0.9;
}

.info-section {
    display: flex;
    flex: 1;
    gap: 15px;
}

.primary-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background-image: url("/wp-content/uploads/2025/10/imagesjj.png");
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 80px auto;
}

.info-group {
    display:block
}

.info-group .label {
    font-size: 14px;
    font-weight: 600;
}

.info-group .value {
    font-size: 14px;
    font-weight: 600;
}

.license-number {
    font-size: 14px;
    font-weight: bold;
}

.name-value {
    font-size: 14px !important;
    line-height: 1.2;
}

.secondary-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 30%;
}

.info-row {
    display: flex;
    gap: 20px;
}

.info-row .info-group {
    flex: 1;
}

.info-row .info-group .value {
    font-size: 12px;
}

.certification-section {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.certification-info h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-label {
    font-size: 9px;
    opacity: 0.8;
    font-weight: bold;
}

.cert-value {
    font-size: 10px;
    font-weight: bold;
}

/* Equipment List Styling */
.equipment-list .license-value {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top:1px solid #999999;
    text-align: center;
}

.equipment-certification {
    gap: 8px;
}

.equipment-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.equipment-line {
    display: flex;
    font-size: 9px;
    font-weight: bold;
    align-items: center;
}

.equipment-line .equipment-check {
    margin-right: 6px;
}

.equipment-check {
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
}

.equipment-name {
    font-size: 12px;
    line-height: 1.2;
}

.compliance-info {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.official-seal {
    width: 80px;
    height: 80px;
    border: 3px solid white;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.seal-text {
    font-size: 9px;
    font-weight: bold;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Footer Section */
.card-footer {
    padding: 12px 20px;
    background: #999999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.authority-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.authority-name {
    font-weight: bold;
    font-size: 12px;
}

.authority-website {
    font-size: 10px;
    font-weight: 500;
}

.security-features {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-code {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
}

.security-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.security-text span:first-child {
    font-size: 10px;
    font-weight: bold;
}



/* Remove old styles that are no longer needed */
.license-card.flipped {
    transform: none;
}

.license-card-front,
.license-card-back {
    display: none;
}






.equipment-line.top .equipment-check {
    font-size: 16px;
}

.equipment-line.top .equipment-name {
    font-size: 14px;
}

 .sf-card-actions {
    display: flex;
        justify-content: center;
    }

/* Desktop-only capture container for html2canvas */
.desktop-capture-container.force-desktop {
  width: 850px !important;
  min-width: 850px !important;
  max-width: 850px !important;
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  z-index: -1 !important;
  display: block !important;
}
/* Force desktop styles for preview elements inside capture container */
.desktop-capture-container.force-desktop .license-card,
.desktop-capture-container.force-desktop .certificate {
  width: 850px !important;
  min-width: 850px !important;
  max-width: 850px !important;
  font-size: 1rem !important;
  /* Add more desktop overrides as needed */
}

.expired {
    color:#dc3545 !important;
    font-weight: 600 !important;
}














