/* Blog Swiper Styling */
.featured-blog {
    background: #f8f9fa;
    padding: 4rem 0;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-image.blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-image.blog-placeholder i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.blog-image.blog-placeholder p {
    color: white;
    font-weight: 500;
    margin: 0;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-date i {
    color: #0085ca;
    font-size: 0.95rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-summary {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0085ca;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #006599;
    gap: 0.8rem;
}

/* Swiper Customization */
.blogSwiper {
    padding: 2rem 0;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: #0085ca;
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #0085ca;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 133, 202, 0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 700;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #0085ca;
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card {
        margin: 5px;
    }

    .blog-image {
        height: 180px;
    }

    .blog-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }

    .blog-summary {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .featured-blog {
        padding: 2rem 0;
    }

    .blog-card {
        margin: 3px;
    }

    .blog-image {
        height: 150px;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .blog-summary {
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* ========================================
   Certificate Swiper Styling
   ======================================== */

.featured-certificates {
    background: white;
    padding: 4rem 0;
}

.certificate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px;
    border: 1px solid #e8e8e8;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 133, 202, 0.15);
    border-color: #0085ca;
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.08);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay i {
    font-size: 2.5rem;
    color: white;
}

.certificate-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.certificate-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.7;
}

.certificate-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.certificate-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certificate-issuer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.certificate-issuer i {
    color: #0085ca;
    font-size: 0.9rem;
}

.certificate-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.certificate-date i {
    color: #ffc107;
    font-size: 0.85rem;
}

/* Certificate Swiper Customization */
.certificateSwiper {
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .certificate-card {
        margin: 5px;
    }

    .certificate-image {
        height: 240px;
    }

    .certificate-info {
        padding: 1.2rem;
    }

    .certificate-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .featured-certificates {
        padding: 2rem 0;
    }

    .certificate-card {
        margin: 3px;
    }

    .certificate-image {
        height: 200px;
    }

    .certificate-info {
        padding: 1rem;
    }

    .certificate-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .certificate-issuer {
        font-size: 0.8rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}
