/**
 * Certificates Shortcode Styles
 */

/* ----------------------------------------
   1. GRID LAYOUT
   ---------------------------------------- */
.certificates-plugin-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* ----------------------------------------
   2. CERTIFICATE ITEM - Individual Cards
   ---------------------------------------- */
.certificates-plugin-item {
    padding: 15px;
    margin-bottom: 30px;
}

.certificates-plugin-card {
    height: 100%;
    background-color: #F4F4F4;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: none; /* Remove shadow */
    border: none; /* Remove border */
}

.certificates-plugin-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.certificates-plugin-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #F4F4F4;
}

/* ----------------------------------------
   3. CERTIFICATE IMAGE
   ---------------------------------------- */
.certificates-plugin-image {
    text-align: center;
    margin-bottom: 15px;
}

.certificates-plugin-thumbnail {
    max-width: 140px;
    height: auto;
    border-radius: 5px;
}

/* ----------------------------------------
   4. CERTIFICATE CONTENT - Text Elements
   ---------------------------------------- */
.certificates-plugin-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certificates-plugin-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: #353434;
	line-height: 16px;
}

.certificates-plugin-description {
    font-size: 12px;
    line-height: 1.5;
    color: #7C7C7C;
    margin-bottom: 15px;
    text-align: center;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 110px; /* Backup for browsers that don't support line-clamp */
}

/* ----------------------------------------
   5. CERTIFICATE BUTTON - Call to Action
   ---------------------------------------- */
.certificates-plugin-button {
    text-align: center;
    margin-top: auto;
}

.certificates-plugin-button .button {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0em;
    background-color: #f98e2b; /* Orange button */
    color: #fff;
	display: inline;
    border: 1px solid transparent;
	padding: .375rem .75rem;
    text-transform: uppercase;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    text-align: center;
	margin-right: 0;
	margin-left: 0;
}

.certificates-plugin-button .button:hover {
    background-color: rgba(255, 255, 255, 0.64); /* Semi-transparent white background on hover */
    color: #f98e2b; /* Orange text on hover */
    border: 1px solid #f98e2b; /* 1px orange border */
	box-shadow: none;
}

/* ----------------------------------------
   6. NO RESULTS MESSAGE
   ---------------------------------------- */
.certificates-plugin-none {
    padding: 20px;
    text-align: center;
    width: 100%;
    font-style: italic;
    color: #666;
}

/* ----------------------------------------
   6. CERTIFICATE IMAGES GRID
   ---------------------------------------- */
.certificates-images-container {
    width: 100%;
    margin-bottom: 2rem;
}
.certificates-images-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: flex-start;
}
.certificates-image-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.3s ease; /* Add transition to the item itself */
}
.certificates-image-item a {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.certificates-image-item:hover {
    transform: translateY(-5px); /* Move the entire item on hover */
}
.certificates-image-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease; /* Add transition for the image itself too */
}