/* BISMILLAAH HIRRAHMAAN NIRRAHEEM */
/* BISIMILLAH HIRAHMAAN NIRAHEEM (SUB'HAANAHU RABBUL EZZAH) */

/* DIPLOMA OFFICIAL CERTIFICATE STYLES */

.alp-diploma-wrapper {
    background: #ffffff;
    max-width: 950px;
    margin: 20px auto;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-family: 'Georgia', serif;
    color: #1e293b;
    position: relative;
    box-sizing: border-box;
}

/* Ornate Double Gold Border */
.alp-diploma-border {
    border: 6px double #d97706;
    padding: 8px;
    background: #fffdf7;
    position: relative;
}

.alp-diploma-inner-border {
    border: 2px solid #065f46;
    padding: 36px 32px;
    position: relative;
    background: radial-gradient(circle at center, #ffffff 60%, #fefce8 100%);
}

/* Corner Ornaments */
.alp-diploma-inner-border::before {
    content: "۞";
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 1.8rem;
    color: #d97706;
}

.alp-diploma-inner-border::after {
    content: "۞";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 1.8rem;
    color: #d97706;
}

/* Certificate Header */
.alp-diploma-header {
    text-align: center;
    margin-bottom: 24px;
}

.alp-diploma-header .alp-bismillah-top-arabic {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 2.3rem;
    color: #064e3b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.alp-diploma-header .alp-bismillah-subtext {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 12px;
}

.alp-institute-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #065f46;
    text-transform: uppercase;
}

.alp-institute-arabic {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: 1.15rem;
    color: #92400e;
    margin-top: 2px;
}

/* Diploma Badge & Title */
.alp-diploma-badge-wrap {
    text-align: center;
    margin: 20px 0 24px 0;
}

.alp-diploma-ornament-line {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: #047857;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.alp-ornament-star {
    color: #d97706;
    font-size: 1.2rem;
}

.alp-diploma-title-en {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: #064e3b;
    margin: 0;
}

/* Certificate Body */
.alp-diploma-body {
    text-align: center;
    margin: 20px 0 30px 0;
}

.alp-certify-line {
    font-size: 1.05rem;
    font-style: italic;
    color: #475569;
    margin-bottom: 12px;
}

.alp-student-name-box {
    margin: 16px auto 20px auto;
    display: inline-block;
    min-width: 320px;
}

.alp-student-name {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    color: #0f172a;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.alp-student-name-line {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d97706 50%, transparent 100%);
    width: 100%;
}

.alp-statement {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
    max-width: 780px;
    margin: 0 auto 20px auto;
}

/* Transcript Badge Row */
.alp-transcript-badge-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.alp-badge-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alp-badge-pill .alp-check {
    color: #10b981;
    font-weight: 700;
}

.alp-award-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 18px;
    font-size: 0.92rem;
}

.alp-label {
    color: #64748b;
    margin-right: 6px;
}

.alp-value {
    font-weight: 700;
    color: #064e3b;
}

.text-gold {
    color: #b45309 !important;
}

/* Diploma Footer (Signatures & Seal) */
.alp-diploma-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 20px;
}

.alp-footer-col {
    flex: 1;
    text-align: center;
}

.alp-date-title, .alp-sig-role {
    font-size: 0.8rem;
    color: #64748b;
}

.alp-date-val, .alp-sig-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}

.alp-cert-code {
    font-size: 0.78rem;
    color: #b45309;
    margin-top: 6px;
}

.alp-sig-line {
    width: 180px;
    height: 1px;
    background: #94a3b8;
    margin: 8px auto;
}

/* Golden Seal */
.alp-seal-col {
    display: flex;
    justify-content: center;
}

.alp-gold-seal {
    width: 105px;
    height: 105px;
    background: radial-gradient(circle, #fde047 0%, #d97706 70%, #92400e 100%);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #fef08a;
}

.alp-seal-inner {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px solid #78350f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #451a03;
    text-align: center;
}

.alp-seal-arabic {
    font-family: 'Amiri', serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.alp-seal-star {
    font-size: 0.65rem;
    color: #78350f;
    margin: 2px 0;
}

.alp-seal-en {
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.alp-diploma-verification-note {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 24px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

/* Diploma Action Buttons */
.alp-diploma-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.alp-btn-action {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.alp-btn-print {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}

.alp-btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 95, 70, 0.35);
}

.alp-btn-verify-link {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.alp-btn-verify-link:hover {
    background: #e2e8f0;
}

/* PRINTING MEDIA QUERY (High-Res Letterhead / A4) */
@media print {
    body * {
        visibility: hidden;
    }
    .no-print, .alp-student-bar, .alp-level-tabs, .alp-sidebar-lessons, .alp-quiz-card, .alp-platform-footer {
        display: none !important;
    }
    #alpDiplomaDocument, #alpDiplomaDocument * {
        visibility: visible;
    }
    #alpDiplomaDocument {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    .alp-diploma-border {
        border-width: 4px;
    }
    .alp-diploma-inner-border {
        padding: 20px;
    }
}
