.main .main-info {
    width: 35% !important;
}

.education-part {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}


.education-part::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.educationa {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.educationa::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: white;
    border: 4px solid #ed0707;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}


.left {
    left: 0;
}


.right {
    left: 50%;
}


.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ed6c07;
}


.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ed6c07 transparent transparent;
}

.right::after {
    left: -12px;
}

.education {
    padding: 1rem;
    display: grid;
    place-items: center;
}

.content {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    border-radius: 12px;
    color: black;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.content h3 {
    color: #f86515;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.content p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}

.content p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

.main .second-part {
    width: 70%;
}

.education h2 {
    text-transform: uppercase;
 
   
}

@media screen and (max-width: 600px) {
    .education-part::after {
        left: 31px;
    }


    .educationa {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
.education-part::before {
  left: 8%;
}

    .educationa::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent #ed6c07 transparent transparent;
    }


    .left::after,
    .right::after {
        left: 15px;
    }


    .right {
        left: 0%;
    }

    .main .main-info {
        width: 100% !important;
    }
   
}

@media screen and (min-width: 600px) and (max-width: 1100px) {
    .main .main-info {
        width: 70% !important;
    } 
}

@media screen  and (max-width: 1100px) {
.main .second-part {
    width: 100% !important;
}
}

/* Certificates Section - Fixed Design */
.certificates-section {
    background: #0a0a0a;
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.certificate-card {
    background: #1a1a1a;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #333333;
    transition: all 0.3s ease;
    height: 100%;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.certificate-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.02);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.action-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
    color: white;
}

.certificate-content {
    padding: 2rem;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.certificate-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.certificate-badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.certificate-issuer {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certificate-issuer i {
    color: #3b82f6;
}

.certificate-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.certificate-footer {
    padding-top: 1rem;
    border-top: 1px solid #333333;
}

.certificate-date {
    color: #b0b0b0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certificate-date i {
    color: #3b82f6;
}

/* Modal Styles - Fixed Colors */
.modal-content {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    background: #1a1a1a;
}

#certificateModalImage {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #333333;
}

.modal-footer {
    background: #1a1a1a;
    border: none;
    padding: 1.5rem 2rem;
    gap: 1rem;
}

.modal-footer .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
}

.modal-footer .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.modal-footer .btn-secondary {
    background: #111111;
    border-color: #333333;
    color: #ffffff;
}

.modal-footer .btn-secondary:hover {
    background: #0a0a0a;
    border-color: #b0b0b0;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificate-content {
        padding: 1.5rem;
    }
    
    .certificate-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .certificate-badge {
        align-self: flex-start;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .certificates-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .certificate-image {
        height: 200px;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
