/* Workers Hero / Gates */
.workers-hero {
    background: linear-gradient(135deg, #524594 0%, #3d3470 100%);
    color: #FAF2E0;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 80px;
}

.workers-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.workers-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.gate-form {
    max-width: 400px;
    margin: 0 auto;
}

.gate-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(250,242,224,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #FAF2E0;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    outline: none;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.gate-input::placeholder {
    color: rgba(250,242,224,0.5);
}

.gate-input:focus {
    border-color: #EBE554;
}

.gate-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #EBE554;
    color: #524594;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.gate-btn:hover {
    background: #d9d340;
    transform: translateY(-2px);
}

.gate-error {
    color: #ff6b6b;
    margin-top: 0.8rem;
    font-weight: 500;
}

/* Reading Section */
.reading-section {
    padding: 5rem 0 3rem;
    margin-top: 80px;
}

.reading-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #444;
}

.reading-card h2 {
    color: #524594;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.reading-card h3 {
    color: #524594;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reading-card p {
    margin-bottom: 1rem;
}

.reading-card .signature {
    margin-top: 2rem;
    font-style: italic;
    color: #524594;
}

.reading-actions {
    text-align: center;
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 0 3rem;
    margin-top: 80px;
    background: #FAF2E0;
}

.quiz-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.quiz-card h2 {
    color: #524594;
    text-align: center;
    margin-bottom: 0.5rem;
}

.quiz-instructions {
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
}

.quiz-question {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.quiz-question:last-child {
    border-bottom: none;
}

.quiz-question p {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.quiz-option {
    display: block;
    padding: 0.6rem 1rem;
    margin-bottom: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #555;
}

.quiz-option:hover {
    background: #FAF2E0;
}

.quiz-option input {
    margin-right: 0.5rem;
}

.quiz-card .gate-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0;
}

#quiz-result {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

#quiz-result.pass {
    color: #27ae60;
}

#quiz-result.fail {
    color: #e74c3c;
}

/* Certificate */
.certificate-section {
    padding: 5rem 0 3rem;
    margin-top: 80px;
    text-align: center;
}

.certificate {
    max-width: 750px;
    margin: 0 auto 2rem;
}

.certificate-border {
    border: 4px solid #524594;
    border-radius: 15px;
    padding: 8px;
}

.certificate-inner {
    border: 2px solid #EBE554;
    border-radius: 10px;
    padding: 3rem 2.5rem;
    background: #fff;
}

.certificate-logo {
    width: 80px;
    margin-bottom: 1rem;
}

.certificate h2 {
    color: #524594;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.certificate-text {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.certificate-name {
    color: #524594;
    font-size: 2rem;
    margin: 0.5rem 0;
    border-bottom: 2px solid #EBE554;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.certificate h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 1rem 0 1.5rem;
}

.certificate-date {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.certificate-signature {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    display: inline-block;
}

.certificate-signature p {
    font-weight: 600;
    color: #524594;
}

.certificate-signature span {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .workers-hero h1 { font-size: 2.2rem; }
    .reading-card, .quiz-card { padding: 2rem 1.5rem; }
    .certificate-inner { padding: 2rem 1.5rem; }
    .certificate-name { font-size: 1.5rem; }
}

/* Print */
@media print {
    .header, .footer, .gate-btn, #print-certificate { display: none; }
    .certificate-section { margin-top: 0; padding: 0; }
    .certificate-border { border-width: 3px; }
}

/* Certificate Firma */
.certificate-firma {
    max-width: 180px;
    margin-bottom: 0.5rem;
}

/* Section progress indicator */
.section-progress {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Course Selection Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.course-card {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(250,242,224,0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: #EBE554;
    background: rgba(255,255,255,0.15);
}

.course-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.course-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #EBE554;
}

.course-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}
