/*
Theme Name: Twenty Twenty-Three Child
Theme URI: https://wordpress.org/themes/twentytwentythree
Template: twentytwentythree
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Tags: one-column,custom-colors,custom-menu,custom-logo,editor-style,featured-images,full-site-editing,block-patterns,rtl-language-support,sticky-post,threaded-comments,translation-ready,wide-blocks,block-styles,style-variations,accessibility-ready,blog,portfolio,news
Version: 1.6.1733407467
Updated: 2024-12-05 14:04:27

*/
/* Main title styling */
.custom-header-container h1,
h1.entry-title {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0;
    color: #333;
    text-align: center;
}

/* Subtitle text styling */
.custom-header-container p,
.subtitle-text {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
    text-align: center;
    line-height: 1.5;
}

/* Container spacing */
.custom-header-container {
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}

/* Additional emphasis for important text */
.custom-header-container p.important-text {
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

/* Update the main heading styles */
.custom-header-container h1,
h1.entry-title,
.validation-title h1 {
    font-size: 28px;
    font-weight: 700; /* Using 700 for bold */
    margin: 15px 0;
    color: #333;
    text-align: center;
}

/* General Container */
.course-doc-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Header and Logo */
.custom-header-container {
    text-align: center;
    margin-top: 20px;
}

.custom-header-container img {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    height: auto;
}

/* Validation Title with Checkmark */
.validation-title {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.validation-title .checkmark {
    background-color: #28a745;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.validation-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: white;
    display: inline;
}

.custom-header-container p {
    font-size: 16px;
    color: #555;
    margin: 15px 0;
}

/* Metadata - Layout with Flexbox */
.course-doc-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 20px 0;
}

.course-doc-meta p {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    font-size: 16px;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.course-doc-meta p:last-child {
    border-bottom: none;
}

.course-doc-meta p strong {
    width: 150px;
    text-align: left;
    color: #333;
}

.course-doc-meta p span {
    flex: 1;
    text-align: left;
    padding-left: 10px;
}

/* PDF Viewer Area */
#pdf-viewer {
    position: relative; /* Enable relative positioning for the watermark */
    width: 100%;
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 20px;
    background: #f8f9fa;
    overflow: hidden;
}

#pdf-viewer::before {
    content: "CONFIDENTIAL"; /* Your watermark text */
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%) rotate(-30deg); /* Rotate for watermark effect */
    font-size: 4rem; /* Adjust the size of the watermark */
    color: rgba(0, 0, 0, 0.05); /* Light gray with high transparency for subtlety */
    z-index: 1; /* Ensure watermark stays on top of background but behind the PDF content */
    pointer-events: none; /* Allow interactions with the PDF content */
    white-space: nowrap; /* Prevent text wrapping */
}

/* PDF Loading and Error States */
.pdf-loading {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.pdf-error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 10px 0;
}

.pdf-debug {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin: 10px 0;
    font-family: monospace;
    white-space: pre-wrap;
    border-radius: 8px;
}

/* Enhanced Validation Note */
.course-doc-note {
    margin-top: 25px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    text-align: center;
    font-size: 18px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.course-doc-note .checkmark {
    background-color: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-doc-container {
        padding: 15px;
        margin: 10px;
    }

    .custom-header-container img {
        max-width: 300px;
    }

    .validation-title {
        padding: 10px 16px;
    }

    .course-doc-meta p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .course-doc-meta p strong {
        width: 100%;
    }

    .course-doc-meta p span {
        padding-left: 0;
    }
}

.single-course_documents header,
.single-course_documents footer {
    display: none;
}

/* Hilangkan metadata untuk post type course_documents */
body.single-course_documents .wp-block-post-date,
body.single-course_documents .wp-block-post-author,
body.single-course_documents .wp-block-post-tags,
body.single-course_documents .wp-block-post-categories {
    display: none !important;
}

/* Hilangkan garis bawah */
body.single-course_documents hr {
    display: none !important;
}
