/**
 * Certifications Shortcode Styles
 */

/* ----------------------------------------
   1. GRID LAYOUT
   ---------------------------------------- */
.certifications-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 2rem;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 2rem;
}

/* ----------------------------------------
   2. LIST LAYOUT
   ---------------------------------------- */
.certifications-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
}

.certifications-list .certifications-list-item {
    width: 100%;
    margin-bottom: 25px;
    padding: 0 15px;
}

.certifications-list .certifications-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.certifications-list .certifications-card-body {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.certifications-list .certifications-image {
    flex: 0 0 180px;
    margin-right: 20px;
    margin-bottom: 0;
}

.certifications-list .certifications-content {
    flex: 1;
    padding: 15px 0;
}

.certifications-list .certifications-title {
    text-align: left;
    margin-top: 0;
}

.certifications-list .certifications-description {
    text-align: left;
}

.certifications-list .certifications-button {
    text-align: left;
}

/* ----------------------------------------
   3. CERTIFICATION ITEM - Individual Cards
   ---------------------------------------- */
.certifications-item {
    padding: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Responsive styles moved to responsive-certifications.css */

/* Column system */
.certifications-col {
    position: relative;
    min-height: 1px;
    float: left;
    box-sizing: border-box;
}

.certifications-small-12 {
    width: 100%;
}

/* 2-column layout */
.certifications-large-6 {
    width: 50%;
}

/* 3-column layout */
.certifications-large-4 {
    width: 33.333333%;
}

/* 4-column layout */
.certifications-large-3 {
    width: 25%;
}

/* Clear the float after grid */
.certifications-grid::after,
.certifications-container::after {
    content: "";
    display: table;
    clear: both;
}

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

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

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

/* ----------------------------------------
   4. CERTIFICATION IMAGE
   ---------------------------------------- */
.certifications-image {
    text-align: center;
    margin-bottom: 15px;
}

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

/* ----------------------------------------
   5. CERTIFICATION CONTENT - Text Elements
   ---------------------------------------- */
.certifications-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.certifications-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 */
}

/* ----------------------------------------
   6. CERTIFICATION BUTTON - Call to Action
   ---------------------------------------- */
.certifications-button {
    text-align: center;
    margin-top: auto;
}

.certifications-button .certifications-btn {
    font-family: "Roboto Condensed", sans-serif;
	font-size: 25px;
    font-weight: 700;
	letter-spacing: 0em;
    background-color: #f98e2b; /* Orange button */
    color: #fff;
    border: 1px solid transparent;
    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;
}

.certifications-button .certifications-btn: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 */
}

/* ----------------------------------------
   7. NO RESULTS MESSAGE
   ---------------------------------------- */
.certifications-no-results {
    padding: 20px;
    text-align: center;
    width: 100%;
    font-style: italic;
    color: #666;
}

/* ----------------------------------------
   8. PAGINATION STYLES
   ---------------------------------------- */
.certifications-pagination {
    width: 100%;
    text-align: center;
    margin: 30px 0;
    clear: both;
}

.certifications-pagination .certifications-page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.certifications-pagination .certifications-page-numbers.certifications-current {
    background-color: #f98e2b;
    color: #fff;
    border-color: #f98e2b;
}

.certifications-pagination .certifications-page-numbers:hover:not(.certifications-current) {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.certifications-pagination .certifications-prev,
.certifications-pagination .certifications-next {
    font-weight: bold;
}

/* ----------------------------------------
   9. SINGLE CERTIFICATION SHORTCODE STYLES
   ---------------------------------------- */
.certifications-single.certifications-shortcode {
    margin: 30px 0;
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.certifications-single.certifications-shortcode .certifications-title {
    font-size: 24px;
    text-align: left;
    margin-bottom: 20px;
    color: #2c6c3e; /* Match green color from the main styles */
}

.certifications-single.certifications-shortcode .certifications-featured-image {
    text-align: center;
    margin: 20px 0;
}

.certifications-single.certifications-shortcode .certifications-thumbnail {
    max-width: 250px;
    border-radius: 5px;
}

.certifications-single.certifications-shortcode .certifications-action-buttons {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
}

.certifications-single.certifications-shortcode .certifications-action-buttons .certifications-btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.certifications-single.certifications-shortcode .certifications-section {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.certifications-single.certifications-shortcode .certifications-section:first-child {
    border-top: none;
}

.certifications-single.certifications-shortcode h3.certifications-text-to-uppercase {
    font-size: 18px;
    font-weight: 700;
    color: #2c6c3e;
    margin-bottom: 15px;
}

.certifications-single.certifications-shortcode .certifications-field-content {
    line-height: 1.6;
}

.certifications-single.certifications-shortcode .certifications-field-content p {
    margin-bottom: 15px;
}

.certifications-single.certifications-shortcode .certifications-field-content ul,
.certifications-single.certifications-shortcode .certifications-field-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.certifications-single.certifications-shortcode .certifications-field-content li {
    margin-bottom: 5px;
}

/* ----------------------------------------
   10. ERROR MESSAGES
   ---------------------------------------- */
.certifications-error {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    margin: 20px 0;
    font-weight: 500;
    border-radius: 3px;
}

/* ----------------------------------------
   11. CERTIFICATION IMAGES GRID
   ---------------------------------------- */
.certifications-images-container {
    width: 100%;
    margin-bottom: 2rem;
}

.certifications-images-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: flex-start;
}

.certifications-image-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 15px;
    box-sizing: border-box;
}

.certifications-image-item a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.certifications-image-item a:hover {
    transform: translateY(-5px);
}

.certifications-image-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

/* Responsive styles for certification images moved to responsive-certifications.css */
