* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            
            min-height: 100vh;
            overflow-x: hidden;
        }
        .login_page{
            background: linear-gradient(135deg, #26d0a0 0%, #1eb88a 100%);
            min-height: 100vh;
        }

        
        .main-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: calc(100vh - 100px);
            padding: 2rem;
            gap: 3rem;
        }

        .left-section {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .icon-container {
            width: 300px;
            height: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .login-icon, .signup-icon {
            width: 100%;
            height: 100%;
            stroke: #2d5f5f;
            stroke-width: 12;
            fill: none;
        }

        .right-section {
            flex: 1;
            max-width: 500px;
        }

        .form-card {
            background: #f5f5f5;
            border-radius: 30px;
            padding: 3rem 2.5rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }

        .logo-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            gap: 1rem;
        }

        .logo-container img {
            max-height: 50px;
            width: auto;
        }

        .form-title {
            color: #4a5568;
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 2rem;
            text-align: center;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            color: #4a5568;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .input-group {
            position: relative;
            border-radius: 32px;
        }
        .input-group input{
            border-radius: 32px !important;
        }

        .input-icon {
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            color: #4a5568;
            z-index: 10;
        }

        .form-control {
            background: white;
            border: 1px solid #e2e8f0;
            padding: 0.8rem 1rem 0.8rem 3rem;
            font-size: 0.95rem;
            transition: all 0.3s;
            border-radius: 32px;
        }

        .form-control:focus {
            border-color: #26d0a0;
            box-shadow: 0 0 0 3px rgba(38, 208, 160, 0.1);
            outline: none;
        }

        .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #718096;
            z-index: 10;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .form-check-label {
            color: #4a5568;
        }

        .forgot-link {
            color: #718096;
            text-decoration: none;
            transition: color 0.3s;
        }

        .forgot-link:hover {
            color: #26d0a0;
        }

        .btn-submit {
            background: #3a5f5f;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 0.8rem 3rem;
            font-weight: 500;
            width: auto;
            display: block;
            margin: 0 auto;
            transition: all 0.3s;
        }

        .btn-submit:hover {
            background: #2d4a4a;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .switch-form {
            text-align: center;
            margin-top: 1.5rem;
            color: #718096;
            font-size: 0.9rem;
        }

        .switch-link {
            color: #3a5f5f;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }

        .switch-link:hover {
            color: #26d0a0;
        }

        .password-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .main-container {
                flex-direction: column;
                padding: 1rem;
            }

            .left-section {
                display: none;
            }

            .right-section {
                max-width: 100%;
                width: 100%;
            }

            .form-card {
                padding: 2rem 1.5rem;
            }

            .form-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 576px) {
            .navbar-nav {
                text-align: center;
            }

            .navbar-nav .nav-link {
                margin: 0.5rem 0;
            }

            .logo-container {
                flex-direction: column;
                gap: 0.5rem;
            }

            .form-title {
                font-size: 1.8rem;
            }

            .form-card {
                padding: 1.5rem 1rem;
                border-radius: 20px;
            }

            .password-row {
                grid-template-columns: 1fr;
            }

            .form-options {
                flex-direction: row;
                align-items: flex-start;
                gap: 0.5rem;
            }
            .logo-image{
                width: 130px ;
                height: auto;
            }
        }

        .ase-page {
            display: none;
        }

        .ase-page.active {
            display: block;
        }
/*======================================================================================
                               certificate form design css
=======================================================================================*/
        /* ========== CERTIFICATE FORM 1 STYLES ========== */
        .cert1-wrapper {
            background: #f5f5f5;
            min-height: 100vh;
            padding: 2rem;
        }

        .cert1-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .cert1-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .cert1-logo-img {
            max-height: 70px;
            width: auto;
        }

        .cert1-subtitle {
            color: #4a5568;
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            letter-spacing: 2px;
        }

        .cert1-main-title {
            color: #1e5a5a;
            font-size: 3rem;
            font-weight: 700;
            letter-spacing: 3px;
        }

        .cert1-container {
            max-width: 900px;
            margin: 0 auto;
            border-radius: 20px;
        }

        .cert1-decorative-right {
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            height: 100%;
            pointer-events: none;
            opacity: 0.3;
        }

        .cert1-decorative-left {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 150px;
            height: 100%;
            pointer-events: none;
            opacity: 0.3;
        }

        .cert1-section-title {
            color: #1e5a5a;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .cert1-form-row {
            display: grid;
            grid-template-columns: 200px 20px 1fr;
            align-items: center;
            margin-bottom: 10px;
            gap: 1rem;
        }

        .cert1-label {
            color: #2d5f5f;
            font-size: 1rem;
            font-weight: 500;
        }

        .cert1-colon {
            color: #2d5f5f;
            font-weight: 700;
        }

        .cert1-input {
            background: transparent;
            border: none;
            border-bottom: 2px solid #d0d0d0;
            border-radius: 20px;
            padding: 0.7rem 1.2rem;
            color: #4a5568;
            font-size: 1rem;
            transition: all 0.3s;
            background: #f9f9f9;
            border:1px solid #2d5f5f;
        }

        .cert1-input:focus {
            outline: none;
            border-bottom-color: #26d0a0;
            background: #fff;
        }

        .cert1-input-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .cert1-input-small {
            max-width: 80px;
        }

        .cert1-input-medium {
            max-width: 150px;
        }

        /* Prevent Bootstrap Select on course dropdown - Hide wrapper completely */
        .cert1-form-row .bootstrap-select,
        .cert1-form-row .dropdown.bootstrap-select,
        .bootstrap-select:has(#courseName),
        .dropdown:has(#courseName) {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            width: 0 !important;
            overflow: hidden !important;
            position: absolute !important;
            left: -9999px !important;
            pointer-events: none !important;
        }
        
        /* Force native select to be visible - Multiple selectors for maximum specificity */
        .cert1-form-row select#courseName,
        select#courseName,
        select.native-select#courseName,
        #courseName.native-select {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: relative !important;
            z-index: 99999 !important;
            width: 100% !important;
            max-width: 300px !important;
            min-width: 200px !important;
            background: #f9f9f9 !important;
            border: 1px solid #2d5f5f !important;
            border-radius: 20px !important;
            padding: 0.7rem 1.2rem !important;
            font-size: 1rem !important;
            color: #4a5568 !important;
            cursor: pointer !important;
            pointer-events: auto !important;
            -webkit-appearance: menulist !important;
            -moz-appearance: menulist !important;
            appearance: menulist !important;
            margin: 0 !important;
        }
        
        /* Hide Bootstrap Select button and dropdown menu */
        .cert1-form-row .btn.dropdown-toggle,
        .cert1-form-row .dropdown-menu,
        .cert1-form-row .bs-actionsbox,
        .cert1-form-row .bs-searchbox,
        .bootstrap-select .btn,
        .bootstrap-select .dropdown-menu {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        /* Ensure select is not hidden by any parent */
        .cert1-form-row {
            position: relative;
        }
        
        .cert1-form-row > select#courseName,
        .cert1-form-row select.native-select {
            position: relative !important;
            z-index: 99999 !important;
            display: block !important;
        }
        
        /* Override any Bootstrap Select styles */
        .bootstrap-select select#courseName {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .cert1-date-separator {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            color: #4a5568;
        }

        .cert1-marks-section {
            margin-top: 3rem;
        }

        .cert1-marks-table {
            width: 100%;
        }

        .cert1-marks-row {
            display: grid;
            grid-template-columns: 2fr 1fr 1.5fr;
            gap: 1rem;
            padding: 1rem 0;
            border-bottom: 1px solid #e2e8f0;
            align-items: center;
        }

        .cert1-marks-header {
            font-weight: 700;
            color: #1e5a5a;
        }

        .cert1-marks-label {
            color: #2d5f5f;
            font-weight: 500;
        }

        .cert1-marks-grade {
            color: #2d5f5f;
            font-weight: 600;
            text-align: center;
        }

        .cert1-marks-score {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.5rem;
        }

        .cert1-score-inputs {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .cert1-score-input {
            border: 1px solid #2d5f5f;
            border-radius: 20px;
            padding: 0.4rem 0.8rem;
            font-weight: 600;
            color: #2d5f5f;
            width: 70px;
            text-align: center;
            background: transparent;
            font-size: 1rem;

        }

        .cert1-score-input:focus {
            outline: none;
            border-color: #26d0a0;
        }

        .cert1-score-separator {
            font-weight: 700;
            color: #2d5f5f;
            font-size: 1.2rem;
        }

        .cert1-score-text {
            color: #4a5568;
            font-weight: 500;
            margin-left: 0.5rem;
        }

        .cert1-total-row {
            font-weight: 700;
            padding-top: 1.5rem;
        }

        .cert1-total-score {
            font-size: 1.1rem;
        }

        .cert1-total-input {
            width: 90px;
            font-size: 1.1rem;
        }

        .cert1-next-btn {
            background: #3a5f5f;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 0.9rem 3rem;
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 3rem 0 0 auto;
            transition: all 0.3s;
            text-transform: uppercase;
            cursor: pointer;
        }

        .cert1-next-btn:hover {
            background: #2d4a4a;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* ========== CERTIFICATE FORM 2 STYLES ========== */
        .cert2-wrapper {
            background: #f5f5f5;
            min-height: 100vh;
            padding: 2rem;
        }

        .cert2-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .cert2-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .cert2-logo-img {
            max-height: 70px;
            width: auto;
        }

        .cert2-subtitle {
            color: #4a5568;
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            letter-spacing: 2px;
        }

        .cert2-main-title {
            color: #1e5a5a;
            font-size: 3rem;
            font-weight: 700;
            letter-spacing: 3px;
        }

        .cert2-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .cert2-decorative-right {
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            height: 100%;
            pointer-events: none;
            opacity: 0.3;
        }

        .cert2-decorative-left {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 150px;
            height: 100%;
            pointer-events: none;
            opacity: 0.3;
        }

        .cert2-section-title {
            color: #1e5a5a;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .cert2-form-row {
            display: grid;
            grid-template-columns: 200px 20px 1fr;
            align-items: center;
            margin-bottom: 10px;
            gap: 1rem;
        }

        .cert2-label {
            color: #2d5f5f;
            font-size: 1rem;
            font-weight: 500;
        }

        .cert2-colon {
            color: #2d5f5f;
            font-weight: 700;
        }

        .cert2-input {
            background: transparent;
            border: none;
            border-bottom: 2px solid #d0d0d0;
            border-radius: 20px;
            padding: 0.7rem 1.2rem;
            color: #4a5568;
            font-size: 1rem;
            transition: all 0.3s;
            background: #f9f9f9;
            width: 100%;
            border:1px solid #2d5f5f;
        }

        .cert2-input:focus {
            outline: none;
            border-bottom-color: #26d0a0;
            background: #fff;
        }

        .cert2-input-short {
            max-width: 250px;
        }

        .cert2-next-btn {
            background: #3a5f5f;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 0.9rem 3rem;
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 3rem 0 0 auto;
            transition: all 0.3s;
            text-transform: uppercase;
            cursor: pointer;
        }

        .cert2-next-btn:hover {
            background: #2d4a4a;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* ========== RESPONSIVE STYLES ========== */
        @media (max-width: 992px) {
            .cert1-container, .cert2-container {
                padding: 2rem 1.5rem;
            }

            .cert1-main-title, .cert2-main-title {
                font-size: 2rem;
            }

            .cert1-form-row, .cert2-form-row {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }

            .cert1-colon, .cert2-colon {
                display: none;
            }

            .cert1-marks-row {
                grid-template-columns: 1fr;
                gap: 0.5rem;
                padding: 1.5rem 0;
            }

            .cert1-marks-score {
                justify-content: flex-start;
            }
        }

        @media (max-width: 576px) {
            .cert1-wrapper, .cert2-wrapper {
                padding: 1rem;
            }

            .cert1-container, .cert2-container {
                padding: 1.5rem 1rem;
            }

            .cert1-main-title, .cert2-main-title {
                font-size: 1.5rem;
            }

            .cert1-logos, .cert2-logos {
                gap: 1.5rem;
            }

            .cert1-logo-img, .cert2-logo-img {
                max-height: 50px;
            }

            .cert1-input-group {
                flex-wrap: wrap;
            }

            .cert1-next-btn, .cert2-next-btn {
                width: 100%;
                justify-content: center;
                margin: 2rem 0 0 0;
            }

            .cert1-section-title, .cert2-section-title {
                font-size: 1.2rem;
            }

            .cert1-score-inputs {
                flex-wrap: wrap;
            }
        }

        .ase-page {
            display: none;
        }

        .ase-page.active {
            display: block;
        }

/*
==============================================================================
                         certificate print design
==============================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
        
        .certificate-container {
            max-width: 210mm;
            margin: 50px auto;
            background: white;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            overflow: visible;
            position: relative;
        }

        #certificate,
        .certificate-canvas {
            width: 210mm; /* A4 width */
            height: 297mm; /* A4 height */
            min-height: 297mm;
            max-height: 297mm;
            background-image: url('../media/bg.png');
            background-size: 100% 100%;
            background-position: center;
            background-repeat: no-repeat;
            padding: 15mm 15mm 15mm 15mm; /* Minimal padding to fit on one page */
            position: relative;
            page-break-inside: avoid;
            break-inside: avoid;
            overflow: hidden;
            box-sizing: border-box;
        }

        .content-wrapper {
            margin-left: 15px;
            height: 75%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        button.cert2-prev-btn {
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            text-transform: uppercase;
            cursor: pointer;
            background: rgb(58, 95, 95);
            border-width: initial;
            border-style: none;
            border-color: initial;
            border-image: initial;
            border-radius: 25px;
            padding: 0.9rem 3rem;
            gap: 0.5rem;
            margin: 3rem 0px 0px;
            transition: 0.3s;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding-bottom: 5px;
        }

        .logo-section {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .logo-section img {
            max-height: 40px;
            width: auto;
            object-fit: contain;
        }

        .logo-text {
            font-size: 20px;
            font-weight: 700;
            color: #2d5a5a;
        }

        .participant-number {
            color: #3d6d65;
            font-size: 14px;
            font-weight: 500;
        }

        .participant-number span {
            color: #e67e22;
            font-weight: 700;
        }

        .main-title_text {
            text-align: center;
            margin-bottom: 5px;
        }

        .main-title_text .zertifikat {
            color: #2d5a5a;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        .main-title_text .subtitle {
            font-size: 11px;
            color: #555;
            margin-bottom: 8px;
        }

        .course-title {
            text-align: center;
            color: #2d5a5a;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: 1px;
        }

        .confirmation {
            font-size: 12px;
            color: #333;
            margin-bottom: 10px;
        }

        .participant-info_text {
            margin: 10px 0;
        }

        .participant-info_text .participant-info_text_name {
            font-size: 16px;
            font-weight: 700;
            color: #2d5a5a;
            margin-bottom: 3px;
        }

        .participant-info_text .birth-date {
            font-size: 12px;
            color: #333;
            font-weight: 500;
        }

        .course-details {
            margin: 10px 0;
            font-size: 12px;
            line-height: 1.5;
            color: #333;
        }
        
        .course-details p {
            margin-bottom: 5px;
        }

        .highlight {
            font-weight: 700;
        }

        .course-content {
            margin: 8px 0;
        }

        .content-title {
            font-size: 11px;
            color: #333;
            margin-bottom: 5px;
        }

        .skills-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .skills-list li {
            padding: 2px 0;
            font-size: 11px;
            color: #333;
            position: relative;
            padding-left: 20px;
        }

        .skills-list li:before {
            content: "✓";
            position: absolute;
            left: 0;
            font-weight: 700;
            font-size: 12px;
            color: #2d5a5a;
        }

        .closing-text {
            margin: 10px 0 8px 0;
            font-size: 11px;
            color: #333;
            line-height: 1.4;
        }

        .date-location {
            margin: 10px 0;
            font-size: 11px;
            color: #333;
        }
        
        .date-location p {
            margin-bottom: 3px;
        }

        .date-location .highlight {
            font-weight: 700;
        }

        .signatures {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin: 40px 0 30px 0;
            gap: 40px;
        }

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

        .signature-line {
            border-bottom: 2px solid #333;
            margin-bottom: 10px;
            height: 60px;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 5px;
        }

        .signature-text {
            font-family: 'Brush Script MT', cursive;
            font-size: 28px;
            color: #2d5a5a;
        }

        .signature-label {
            font-size: 13px;
            color: #333;
            font-weight: 500;
        }

        .verification {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .qr-placeholder {
            width: 50px;
            height: 50px;
            background-color: #333;
            border: 2px solid #333;
        }

        .verification-text {
            font-size: 12px;
            color: #333;
        }

        .footer-logos {
            display: none;
        }

        .footer-info {
            text-align: center;
            font-size: 11px;
            color: #555;
            margin-top: 15px;
        }

        .certified-badge {
            width: 45px;
            height: 45px;
            background-color: #3d6d65;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            border-radius: 3px;
        }

        .download-btn {
            display: block;
            margin: 30px auto;
            padding: 15px 50px;
            background-color: #2d5a5a;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .download-btn:hover {
            background-color: #3d6d65;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        /* CHANGE 1: Updated intro text styling */
        .intro-text {
            text-align: center;
            font-size: 13px;
            color: #333;
/*             margin-bottom: 20px; */
            line-height: 1.6;
        }

        .intro-text .highlight-blue {
            color: #2d5a5a;
            font-weight: 600;
        }

        /* CHANGE 2: Updated main title styling */
        .main-title {
            text-align: center;
/*             margin-bottom: 30px; */
        }

        .zertifikat {
            color: #2d5a5a;
            font-size: 36px;
            font-weight: 700;
            letter-spacing: 3px;
            margin-bottom: 0;
        }

        /* CHANGE 3: Updated name section with underline */
        .participant-info {
            margin: 20px 0;
            text-align: center;
        }

        .name {
            font-size: 24px;
            font-weight: 700;
            color: #2d5a5a;
            padding-bottom: 10px;
            border-bottom: 2px solid #333;
            display: inline-block;
            min-width: 400px;
        }

        /* CHANGE 4: Updated course description */
        .course-description {
            text-align: center;
            font-size: 14px;
            line-height: 1.8;
            color: #333;
/*             margin: 30px 0; */
        }

        .course-description .highlight-orange {
            color: #e67e22;
            font-weight: 700;
        }

        .course-description .highlight-bold {
            font-weight: 700;
        }

        /* CHANGE 5: Course completion table */
        .completion-section {
            text-align: center;
            margin: 35px 0;
        }

        .section-title {
            font-size: 16px;
            font-weight: 700;
            color: #2d5a5a;
            margin-bottom: 20px;
            letter-spacing: 1px;
        }

        .course-table {
            margin: 0 auto;
            border: 2px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            max-width: 500px;
            background: #fff;
        }

        .course-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .course-table td {
            padding: 12px 20px;
            border-bottom: 1px solid #ddd;
            font-size: 13px;
        }

        .course-table tr:last-child td {
            border-bottom: none;
        }

        .course-table .label {
            font-weight: 600;
            color: #2d7a9e;
            text-align: left;
            width: 50%;
        }

        .course-table .value {
            text-align: right;
            color: #333;
            width: 50%;
        }

        /* CHANGE 6: Closing message */
        .closing-message {
            text-align: center;
            font-size: 14px;
            color: #333;
            margin: 35px 0 30px 0;
            line-height: 1.6;
        }

        .closing-message .highlight-ihm {
            font-weight: 700;
            text-decoration: underline;
        }
        .title{
            font-size: 20px;
            font-weight: 500;
        }
        .detail{
            font-size: 20px;
            font-weight: 500;
            color: #2d5a5a;
        }
        .dtii-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px 40px;
            font-size: 15px;
            margin-bottom: 30px;
            }


            .dtii-score-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
            }


            .dtii-score-table td {
            padding: 8px 5px;
            font-size: 15px;
            }


            .dtii-total td {
            font-weight: bold;
            }


            .dtii-footer-section {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
            }


            .dtii-qr { width: 80px; }
            .dtii-qr-label { text-align: center; margin-top: 5px; font-size: 13px; }


            .dtii-sign { width: 150px; }
            .dtii-sign-label { text-align: center; font-size: 13px; }


            .dtii-bottom-logos img {
            width: 120px;
            margin-right: 20px;
            }


            .dtii-address {
            margin-top: 20px;
            font-size: 12px;
            text-align: center;
            color: #444;
            }

        /* PDF Generation Styles - Ensure proper page breaks */
        .certificate-print-wrapper {
            width: 100%;
        }
        
        .certificate-block {
            page-break-after: avoid;
            page-break-inside: avoid;
            break-after: avoid;
            break-inside: avoid;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }
        
        .certificate-container {
            page-break-inside: avoid;
            break-inside: avoid;
        }
        
        .certificate-canvas {
            page-break-inside: avoid;
            break-inside: avoid;
            overflow: hidden;
        }

        @media print {
            @page {
                size: A4;
                margin: 0;
            }
            body {
                padding: 0;
                background: white;
            }
            .certificate-container {
                box-shadow: none;
                max-width: 210mm;
                width: 210mm;
                page-break-inside: avoid;
                break-inside: avoid;
            }
            .certificate-canvas {
                width: 210mm !important;
                height: 297mm !important;
                min-height: 297mm !important;
                max-height: 297mm !important;
            }
            .certificate-block {
                page-break-after: avoid;
                break-after: avoid;
                margin-bottom: 0 !important;
            }
            .download-btn {
                display: none;
            }
        }

        @media (max-width: 768px) {
            #certificate,
            .certificate-canvas {
                width: 100%;
                height: auto;
                padding: 30px 40px;
            }
            .sidebar {
                width: 35px;
                font-size: 9px;
            }
            .content-wrapper {
                margin-left: 20px;
            }
        }
