/* assets/css/certificate.css - Certificate, Dual ID Card & Official Documents Styling */

/* ==========================================================================
   Dual-Sided Digital Member ID Card (Front & Back)
   ========================================================================== */
.id-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px auto;
}

.id-card-box {
    width: 340px;
    min-height: 520px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(11, 95, 174, 0.18);
    border: 1px solid rgba(11, 95, 174, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.id-card-box:hover {
    transform: translateY(-5px);
}

.id-card-header {
    background: linear-gradient(135deg, #084B8A 0%, #0B5FAE 100%);
    color: #FFFFFF;
    padding: 20px 15px;
    text-align: center;
    position: relative;
}

.id-card-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    background: #FFFFFF;
    border-radius: 50% 50% 0 0;
}

.id-photo-wrap {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    border: 4px solid #34A853;
    margin: -35px auto 10px auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
}

.id-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-member-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    text-align: center;
    margin-bottom: 2px;
}

.id-member-code {
    font-size: 0.95rem;
    font-weight: 700;
    color: #34A853;
    text-align: center;
    margin-bottom: 12px;
}

.id-details-list {
    padding: 0 20px;
    font-size: 0.85rem;
    color: #475569;
    flex-grow: 1;
}

.id-details-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #E2E8F0;
}

/* ==========================================================================
   Appointment Letter Styling
   ========================================================================== */
.letter-wrapper {
    max-width: 800px;
    margin: 30px auto;
    background: #FFFFFF;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #E2E8F0;
    font-family: 'Inter', sans-serif;
    color: #1E293B;
}

.letter-header {
    border-bottom: 3px double #0B5FAE;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.letter-body {
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================================================
   Abhinandan Patra (Welcome Letter) Styling
   ========================================================================== */
.patra-wrapper {
    max-width: 850px;
    margin: 30px auto;
    background: #FFFDF9;
    border: 10px solid #0B5FAE;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.patra-inner {
    border: 3px solid #F4A300;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    background: #FFFFFF;
}

.patra-title {
    font-family: 'Poppins', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #084B8A;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.patra-subtitle {
    font-size: 1.3rem;
    color: #34A853;
    font-weight: 700;
    margin-bottom: 25px;
}

.patra-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #F4A300;
    border-bottom: 2px solid #34A853;
    display: inline-block;
    padding: 0 30px 6px 30px;
    margin: 15px 0 25px 0;
}

@media print {
    body { background: #FFFFFF; }
    .no-print { display: none !important; }
    .letter-wrapper, .patra-wrapper, .id-card-container { box-shadow: none; margin: 0; }
}
