/**
 * About Us Section with Certificates Slider
 * Version: 1.2
 * Can be reused across multiple sites
 */

/* ========================================
   Main Section Container
   ======================================== */
.about-certificates {
    background: #fff;
    position: relative;
}

.about-certificates__wrapper {
    padding: 50px 40px 40px;
    background: #fff;
    position: relative;
    overflow: visible;
}

/* ========================================
   About Header Section
   ======================================== */
.about-certificates__header {
    text-align: center;
    margin-bottom: 50px;
}

.about-certificates__title {
    color: #000;
    text-align: center;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: 42px;
    margin: 0 0 25px;
}

.about-certificates__content {
    color: #000;
    text-align: center;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.about-certificates__content p {
    margin: 0;
}

/* ========================================
   Certificates Section
   ======================================== */
.certificates-section {
    position: relative;
    padding: 25px 40px 20px;
    margin-top: 20px;
    overflow: visible;
    border: 2px solid #75D587;
    border-radius: 10px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.certificates-section__title {
    color: #000;
    text-align: center;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    margin: 0 auto 10px;
    position: relative;
    display: table;
    background: #fff;
    padding: 0 25px;
    /* Position on border - centered */
    top: -47px;
    margin-bottom: -30px;
}

/* ========================================
   Slider Wrapper & Navigation
   ======================================== */
.certificates-slider-wrapper {
    position: relative;
    padding: 5px 0;
    max-width: 100%;
}

.certificates-nav {
    position: absolute;
    top: 50%;
    left: -31px;
    right: -31px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.cert-nav-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #C5C5C5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    padding: 0;
}

.cert-nav-btn svg {
    width: 36px;
    height: 36px;
}

.cert-nav-btn:hover {
    border-color: #75D587;
    box-shadow: 0 3px 12px rgba(117, 213, 135, 0.2);
}

.cert-nav-btn:hover svg path {
    stroke: #75D587;
}

/* Flip the next arrow for RTL */
.cert-next svg {
    transform: rotate(180deg);
}

/* ========================================
   Certificate Card
   ======================================== */
.certificate-item {
    padding: 10px 0 20px;
}

.certificate-card {
    background: #FFF;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 0 28.404px 0 rgba(7, 28, 55, 0.10);
    transition: all 0.4s ease;
    position: relative;
    width: 263px;
    height: 359px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.certificate-image {
    position: relative;
    overflow: hidden;
    background: #fff;
    width: 243px;
    height: 337px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}


/* ========================================
   Zoom Button (Magnifying Glass)
   ======================================== */
.certificate-zoom {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 15;
    text-decoration: none;
}

.zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.zoom-icon svg {
    width: 26px;
    height: 26px;
}

.certificate-zoom:hover .zoom-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(117, 213, 135, 0.3);
}

/* ========================================
   Owl Carousel Overrides
   ======================================== */
.certificates-slider.owl-carousel {
    width: 100%;
}

.certificates-slider.owl-carousel .owl-stage-outer {
    overflow: hidden;
    padding: 10px 0 25px;
}


.certificates-slider.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.certificates-slider.owl-carousel .owl-item {
    display: flex;
}

.certificates-slider.owl-carousel .owl-item .certificate-item {
    width: 100%;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .about-certificates__wrapper {
        padding: 40px 30px 35px;
    }
    
    .certificates-slider-wrapper {
        padding: 20px 45px 10px;
    }
    
    .certificates-section__title {
        margin-top: -20px;
        top: -20px;
    }
}

@media (max-width: 991px) {
    .about-certificates {
        padding: 50px 0 60px;
    }
    
    .about-certificates__wrapper {
        padding: 35px 25px 30px;
    }
    
    .about-certificates__title {
        font-size: 36px;
        line-height: 38px;
    }
    
    .about-certificates__content {
        font-size: 18px;
        line-height: 26px;
    }
    
    .certificates-section__title {
        font-size: 22px;
        top: -58px;
    }
    
    .certificates-section {
        padding: 35px 25px 25px;
    }
    
    .certificates-nav {
        left: -25px;
        right: -25px;
    }
    
    .certificates-slider-wrapper {
        padding: 15px 40px 10px;
    }
    
    .certificate-card {
        width: 230px;
        height: 310px;
    }
    
    .certificate-image {
        width: 210px;
        height: 290px;
    }
}

@media (max-width: 767px) {
    .about-certificates {
        padding: 40px 0 50px;
    }
    
    .about-certificates__wrapper {
        padding: 25px 15px 20px;
        margin: 0 10px;
    }
    
    .about-certificates__header {
        margin-bottom: 30px;
    }
    
    .about-certificates__title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .about-certificates__content {
        font-size: 16px;
        line-height: 24px;
        padding: 0 5px;
    }
    
    .certificates-section__title {
        font-size: 18px;
        line-height: 32px;
        top: -42px;
        padding: 0 12px;
        margin-bottom: -20px;
    }
    
    .certificates-section {
        position: relative;
        padding: 30px 0 0;
        margin-top: 25px;
        margin-left: -15px;
        margin-right: -15px;
        border: none;
        border-top: 2px solid #75D587;
        border-bottom: 2px solid #75D587;
        border-radius: 0;
        max-width: none;
        width: calc(100% + 30px);
    }
    
    .certificates-section__title {
        position: absolute;
        top: -18px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: fit-content;
        background: #fff;
        padding: 0 15px;
        transform: none;
    }
    
    .certificates-slider-wrapper {
        padding: 10px 0 20px;
        overflow: visible;
    }
    
    .certificates-slider {
        overflow: visible;
    }
    
    .certificates-slider .owl-stage-outer {
        overflow: visible;
    }
    
    /* Hide arrows on mobile */
    .certificates-nav {
        display: none;
    }
    
    .certificate-item {
        padding: 5px 3px 10px;
    }
    
    .certificate-card {
        width: 200px;
        height: 280px;
    }
    
    .certificate-image {
        width: 180px;
        height: 260px;
    }
    
    .zoom-icon {
        width: 30px;
        height: 30px;
    }
    
    .zoom-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .certificate-zoom {
        bottom: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .about-certificates__wrapper {
        padding: 20px 10px 15px;
        margin: 0 5px;
    }
    
    .about-certificates__title {
        font-size: 24px;
        line-height: 28px;
    }
    
    .about-certificates__content {
        font-size: 15px;
        line-height: 22px;
    }
    
    .certificates-section__title {
        font-size: 16px;
        top: -18px;
        padding: 0 10px;
    }
    
    .certificates-section {
        padding: 25px 0 0;
    }
    
    .certificates-slider-wrapper {
        padding: 5px 0 15px;
    }
    
    .certificate-card {
        width: 200px;
        height: 280px;
    }
    
    .certificate-image {
        width: 180px;
        height: 260px;
    }
    
    .certificate-image img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 380px) {
    .about-certificates__title {
        font-size: 22px;
        line-height: 26px;
    }
    
    .about-certificates__content {
        font-size: 14px;
        line-height: 20px;
    }
    
    .certificate-card {
        width: 180px;
        height: 250px;
    }
    
    .certificate-image {
        width: 160px;
        height: 230px;
    }
}

