/* Scrollbar styling */
html {
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.hamburger .line {
    transition: all 0.3s ease-in-out;
}
.hamburger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .line2 {
    opacity: 0;
}
.hamburger.active .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
    display: none;
}
#mobile-menu.active {
    transform: translateY(0);
    display: block;
}
.certificate-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Simplified styles for certificates */
.certificate-container {
    width: 100%;
    max-width: 29.7cm; /* A4 width in landscape */
    height: 21cm; /* A4 height in landscape */
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.certificate-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drag-drop-area {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    text-align: center;
}

.dropzone {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dz-message {
    font-size: 1.2em;
    color: #666;
}

/* Isolate CKEditor content from Tailwind CSS */
.ckeditor-content {
    all: revert !important;
    font-family: inherit !important; /* Ensure font family is consistent */
    font-size: inherit !important; /* Ensure font size is consistent */
    line-height: inherit !important; /* Ensure line height is consistent */
    color: inherit !important; /* Ensure text color is consistent */
}

.ckeditor-content * {
    all: revert !important;
}