:root {
    --primary-color: #8B0000;
    /* اللون العنابي */
    --secondary-color: #4a0000;
    --accent-color: #FFD700;
    --text-light: #ffffff;
    --bg-color: #f9f9f9;
    --border-color: rgba(139, 0, 0, 0.2);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
}

.certificate-container {
    max-width: 95%;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(139, 0, 0, 0.1);
    overflow: hidden;
}

.certificate-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.certificate-header::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.1) 50%, transparent 52%);
    background-size: 10px 10px;
}

.badge-section {
    display: flex;
    justify-content: center;
    align-items: normal;
    padding: 40px;
    gap: 50px;
}

.text-badge{
    color: white;
    text-align: center;
    position: absolute;
    top: 100px;
    width: 80%;
    top: 205px;
    left: 10%;
    z-index: 12;
}

.badge-image {
    padding-top: 75px;
    width: 280px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(139, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}


.certificate-details {
    flex: 1;
    padding: 20px;
    background: rgba(139, 0, 0, 0.02);
    border-radius: 12px;
}

.info-grid {
    /* display: flex; */
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.05);
}

.certificate-info {
    width: 70%;
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
}

.certificate-info h3{
    width: 100%;
}

.qr-code {
    width: 17%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code img {
    max-width: 100%;
    height: auto;
}


.info-label {
    font-weight: bold;
    color: var(--primary-color);
}

.skills-section {
    padding: 20px;
    background: white;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.skill-tag {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    transition: transform 0.2s;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.share-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn.primary {
    background: var(--primary-color);
    color: white;
}

.share-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.verification-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    opacity: 0.8;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.company-logo {
    max-height: 80px;
    max-width: 200px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.linkedin {
    background-color: #0077B5;
    color: white;
}

.twitter {
    background-color: #1DA1F2;
    color: white;
}

.facebook {
    background-color: #3B5998;
    color: white;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.download {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.badge-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-logo img {
    max-width: 50px;
    max-height: 50px;
}

.certificate-description {
    padding: 20px;
    background: white;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: justify;
    /* محاذاة النص */
}

.objectives-content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: white;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    align-items: flex-start;
}

.objectives,
.content {
    width: 48%;
}

.separator {
    width: 1%;
    border-left: 2px solid var(--border-color);
    height: auto;
}

.objectives h3,
.content h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.objectives ul,
.content ul {
    list-style: none;
    padding: 0;
}

.objectives li,
.content li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.objectives li::before,
.content li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--primary-color);
}

.objectives ol li::before,
.content ol li::before {
    content: ' - ';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--primary-color);
}

h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

@media (max-width: 768px) {

    .certificate-container{
        max-width: 100%;
        margin: 0px auto;
    }

    .certificate-info{
        width: 100%;
        display: inline-block;
    }



    .info-grid,.certificate-description,.objectives-content{
        padding: 10px;
    }

    .certificate-info span{
        width: 55%;
        display: inline-block;
        vertical-align: top;
    }
    .certificate-info .info-label{
        width: 40%;
    }

    .certificate-header h1{
        font-size: 1em;
    }
    .certificate-header h3{
        font-size: 0.8em;
    }

    .certificate-header {
        display: block;
    }

    .badge-section {
        display: block !important;
        padding: 2px;
    }

    .badge-image-container {
        text-align: center;
    }

    .share-buttons ,
    .share-btn{
        display: inline-block;
    }


    .objectives-content {
        display: block !important;
    }

    .objectives,
    .content {
        width: 100%;
        /* font-size: 25px; */
    }

    .objectives li, .content li{
        align-items: baseline;
    }
}
