/**
 * Certificates Plugin Responsive Styles
 */

/* ----------------------------------------
   1. SMALL SCREENS (MOBILE)
   ---------------------------------------- */
@media (max-width: 767px) {
    /* Sticky Menu */
    .certificates-plugin-sticky-menu li {
        margin: 0 8px;
    }

    .certificates-plugin-sticky-menu a {
        font-size: 12px;
    }

    .certificates-plugin-back-to-top {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin-top: 10px;
        display: block;
    }

    /* Certificate Cards */
    .certificates-plugin-title {
        font-size: 14px;
    }

    .certificates-plugin-description {
        font-size: 12px;
    }

    .certificates-plugin-button .button {
        font-size: 12px;
        padding: 3px 10px;
    }

    /* Image positioning in intro section */
    #intro .col-md-9 {
        order: 1;
    }

    #intro .col-md-3 {
        order: 2;
        padding-top: 30px;
    }
}

/* ----------------------------------------
   2. MEDIUM SCREENS (TABLETS)
   ---------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
    .certificates-plugin-item {
        padding: 10px;
    }

    #intro .col-md-3 {
        padding-top: 30px;
    }

    .certificates-plugin-card-body {
        padding: 15px;
    }

    .certificates-plugin-title {
        font-size: 15px;
    }

    .certificates-plugin-description {
        font-size: 13px;
    }

    .certificates-plugin-sticky-menu li {
        margin: 0 10px;
    }
}

/* ----------------------------------------
   3. LARGE SCREENS ADJUSTMENTS
   ---------------------------------------- */
@media (min-width: 992px) {
    .certificates-plugin-card:hover {
        transform: translateY(-5px);
    }

    /* Ensure image is properly positioned on desktop */
    #intro .col-md-9 {
        order: 1;
    }

    #intro .col-md-3 {
        order: 2;
        display: flex;
        align-items: center;
    }
}

/* ----------------------------------------
   4. INTRO SECTION SPECIFIC IMAGE CONTAINER
   ---------------------------------------- */
#intro .col-md-3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .certificates-plugin-single .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .certificates-plugin-single .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ----------------------------------------
   5. CERTIFICATES SHORTCODE RESPONSIVE STYLES
   ---------------------------------------- */
@media (max-width: 767px) {
    /* Shortcode Card Styles - Mobile */
    .certificates-plugin-title {
        font-size: 13px;
    }

    .certificates-plugin-description {
        font-size: 11px;
    }

    .certificates-plugin-button .button {
        font-size: 12px;
        padding: 4px 12px;
    }

    .certificates-plugin-thumbnail {
        max-width: 120px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Shortcode Card Styles - Tablet */
    .certificates-plugin-card-body {
        padding: 15px;
    }

    .certificates-plugin-title {
        font-size: 13px;
    }
}

/* ----------------------------------------
   6. CERTIFICATE IMAGES RESPONSIVE STYLES
   ---------------------------------------- */
/* Large tablets and small desktops */
@media (max-width: 1199px) {
    .certificates-image-item {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Medium-sized tablets */
@media (max-width: 991px) {
    .certificates-image-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    /* Adjust spacing for better appearance on tablets */
    .certificates-images-row {
        margin: 0 -10px;
    }

    .certificates-image-item {
        padding: 10px;
    }
}

/* Small tablets and large phones */
@media (max-width: 767px) {
    .certificates-image-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Reduce hover effect on touch devices */
    .certificates-image-item:hover {
        transform: translateY(-3px);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .certificates-image-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px 20px;
    }

    /* Center images on mobile */
    .certificates-image-thumbnail {
        max-width: 80%;
    }

    /* Minimal hover effect on small mobile */
    .certificates-image-item:hover {
        transform: translateY(-2px);
    }
}