/* Uniform blog images (list, home, details, sidebar) */

/* Sidebar latest posts — fixed square thumbs */
.edu-blog-widget.widget-latest-post .latest-post .thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.edu-blog-widget.widget-latest-post .latest-post .thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.edu-blog-widget.widget-latest-post .latest-post .thumbnail a img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

/* Blog cards — equal height + clamped text */
.edu-blog.blog-style-1,
.edu-blog.blog-style-5 {
    height: 100%;
}

.edu-blog.blog-style-1 .inner,
.edu-blog.blog-style-5 .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edu-blog.blog-style-1 .thumbnail a,
.edu-blog.blog-style-5 .thumbnail a {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 0;
}

@media only screen and (max-width: 991px) {
    .edu-blog.blog-style-1 .thumbnail a,
    .edu-blog.blog-style-5 .thumbnail a {
        aspect-ratio: 6 / 5;
    }
}

@media only screen and (max-width: 575px) {
    .edu-blog.blog-style-1 .thumbnail a,
    .edu-blog.blog-style-5 .thumbnail a {
        aspect-ratio: 5 / 4;
    }
}

.edu-blog.blog-style-1 .thumbnail a img,
.edu-blog.blog-style-5 .thumbnail a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.edu-blog.blog-style-1 .content,
.edu-blog.blog-style-5 .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 210px;
}

.edu-blog.blog-style-1 .content .title,
.edu-blog.blog-style-5 .content .title {
    margin-bottom: 10px;
}

.edu-blog.blog-style-1 .content .title a,
.edu-blog.blog-style-5 .content .title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.edu-blog.blog-style-1 .content .blog-excerpt,
.edu-blog.blog-style-5 .content .blog-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    min-height: 3em;
    line-height: 1.5;
}

/* Blog details featured image */
.blog-details-content .entry-content .thumbnail {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

.blog-details-content .entry-content .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
}

/* Author avatar */
.blog-author .thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
}

.blog-author .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media only screen and (max-width: 767px) {
    .edu-blog-widget.widget-latest-post .latest-post .thumbnail {
        width: 68px;
        height: 68px;
    }

    .blog-author .thumbnail {
        width: 72px;
        height: 72px;
    }

    .team-details-thumb .thumbnail {
        max-width: 280px;
    }
}

/* Instructor details — full photo inside rounded frame (no crop) */
.team-details-thumb .thumbnail {
    width: 100%;
    max-width: 340px;
    aspect-ratio: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px;
    background: transparent;
}

.team-details-thumb .thumbnail img {
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    border-radius: 20px !important;
    display: block;
}

/* Instructor list/home cards — photo as card background + label overlay */
.instructor-photo-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background-color: transparent;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.instructor-photo-card__overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.instructor-photo-card__name,
.instructor-photo-card__role {
    display: inline-block;
    max-width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    line-height: 1.3;
}

.instructor-photo-card__name {
    padding: 10px 14px;
    color: var(--color-heading, #181818);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-secondary, Spartan, sans-serif);
}

.instructor-photo-card__role {
    padding: 7px 12px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

@media only screen and (max-width: 767px) {
    .instructor-photo-card {
        aspect-ratio: 4 / 5;
    }

    .instructor-photo-card__name {
        font-size: 16px;
        padding: 8px 12px;
    }
}

/* Legacy team cards (events etc.) — keep fixed image size */
.edu-team-grid.team-style-1,
.edu-team-grid.team-style-3 {
    height: 100%;
}

.edu-team-grid.team-style-1 .thumbnail-wrap,
.edu-team-grid.team-style-3 .thumbnail-wrap,
.edu-team-grid.team-style-1 .thumbnail,
.edu-team-grid.team-style-3 .thumbnail,
.edu-team-grid.team-style-1 .thumbnail a,
.edu-team-grid.team-style-3 .thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.edu-team-grid.team-style-1 .thumbnail,
.edu-team-grid.team-style-3 .thumbnail {
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 3 / 4;
}

.edu-team-grid.team-style-1 .thumbnail a img,
.edu-team-grid.team-style-3 .thumbnail a img,
.edu-team-grid.team-style-1 .thumbnail img,
.edu-team-grid.team-style-3 .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media only screen and (max-width: 767px) {
    .edu-team-grid.team-style-1 .thumbnail,
    .edu-team-grid.team-style-3 .thumbnail {
        aspect-ratio: 4 / 5;
    }
}

/* Course pricing + discount */
.course-price.has-discount,
.sidebar-price-box .course-price.has-discount {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.course-price .old-price {
    color: #9aa0a6;
    text-decoration: line-through;
    font-size: 0.95em;
    font-weight: 500;
}

.course-price .new-price,
.course-price.has-discount .new-price {
    color: var(--color-secondary, #ee4a62);
    font-weight: 700;
    font-size: 1.15em;
}

.course-price-wrap {
    margin: 12px 0 16px;
}

.sidebar-price-box .save-label {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(26, 182, 157, 0.12);
    color: var(--color-primary, #1ab69d);
    font-size: 13px;
    font-weight: 600;
}

.edu-course .thumbnail {
    position: relative;
}

/* Remove theme dark overlay so course photos stay clear */
.edu-course .thumbnail a:after,
.edu-course:hover .thumbnail a:after,
.edu-course.course-style-3:hover .thumbnail a:after {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0 !important;
}

.course-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 3;
    background: var(--color-secondary, #ee4a62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 4px;
}

.course-discount-badge.large {
    top: 20px;
    right: 20px;
    left: auto;
    font-size: 14px;
    padding: 10px 14px;
}

/* Keep mode/duration badge on the left, clear of discount */
.edu-course .thumbnail .time-top {
    z-index: 2;
    left: 14px;
    right: auto;
}

.course-details-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.course-details-thumb img {
    width: 100%;
    display: block;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Event details banner — show full image, no cropping */
.event-details .main-thumbnail {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 40px;
    background: #f5f7f9;
}

.event-details .main-thumbnail img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    border-radius: 10px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

.course-sidebar-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.course-sidebar-price .new-price {
    color: var(--color-secondary, #ee4a62);
    font-weight: 700;
}

.course-sidebar-price .old-price {
    color: #9aa0a6;
    text-decoration: line-through;
    font-size: 0.85em;
    font-weight: 500;
}

.widget-course-summery .thumbnail {
    position: relative;
}

.widget-course-summery .thumbnail .course-discount-badge {
    top: 12px;
    right: 12px;
}

.course-details-4 .learn-list ul {
    list-style: none;
    padding-left: 0;
}

.course-details-4 .learn-list ul li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
}

.course-details-4 .learn-list ul li::before {
    content: "\e921";
    font-family: "icomoon";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary, #1ab69d);
}

.course-details-4 .course-instructor .thumbnail img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
}

.course-details-area .course-rich-content ul {
    list-style: disc;
    padding-left: 20px;
}

.course-details-area .course-rich-content li {
    margin: 8px 0;
}

/* Course review tab polish */
.course-review .aims-review-list {
    margin-top: 48px;
    padding: 28px 28px 12px;
    border: 1px solid rgba(24, 24, 24, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 42%);
}

.course-review .aims-review-list .heading-title {
    margin-bottom: 22px;
}

.course-review .aims-review-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(24, 24, 24, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.course-review .aims-review-item .thumbnail {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin: 0;
}

.course-review .aims-review-item .thumbnail img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eef2;
}

.course-review .aims-review-item .comment-content {
    flex: 1;
    min-width: 0;
}

.course-review .aims-review-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 4px;
}

.course-review .aims-review-item .title {
    margin: 0;
    color: #181818;
    font-size: 18px;
    font-weight: 700;
}

.course-review .aims-review-item .date {
    color: #6b7280;
    font-size: 14px;
}

.course-review .aims-review-item .rating {
    margin: 6px 0 10px;
    line-height: 1;
}

.course-review .aims-review-item .rating i {
    font-size: 14px;
    margin-right: 2px;
}

.course-review .aims-review-item p {
    margin: 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}

.course-review .aims-review-empty {
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed rgba(24, 24, 24, 0.12);
    color: #6b7280;
    text-align: center;
}

.course-review .aims-review-form {
    margin-top: 36px;
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(24, 24, 24, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.course-review .aims-review-form .heading-title {
    margin-bottom: 18px;
}

.course-review .aims-review-form .rating-icon {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7fafb;
}

.course-review .aims-review-form .rating-icon .title {
    font-weight: 700;
    color: #181818;
}

.course-review .aims-review-form .course-star {
    font-size: 20px;
    margin-right: 4px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.course-review .aims-review-form .course-star:hover {
    transform: scale(1.12);
}

.course-review .aims-review-form .aims-review-input,
.course-review .aims-review-form input.aims-review-input,
.course-review .aims-review-form textarea.aims-review-input {
    width: 100%;
    border: 1px solid #d7dee5 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    padding: 14px 16px !important;
    color: #181818;
    min-height: 52px;
}

.course-review .aims-review-form textarea.aims-review-input {
    min-height: 140px;
    resize: vertical;
}

.course-review .aims-review-form .aims-review-input:focus {
    border-color: var(--color-primary, #1ab69d) !important;
    background: #fff !important;
    outline: none;
}

.course-review .aims-review-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-review .aims-review-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary, #1ab69d);
    flex-shrink: 0;
    cursor: pointer;
}

.course-review .aims-review-check label {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    .course-review .aims-review-list,
    .course-review .aims-review-form {
        padding: 20px;
    }

    .course-review .aims-review-item {
        gap: 14px;
        padding: 16px;
    }

    .course-review .aims-review-item .thumbnail,
    .course-review .aims-review-item .thumbnail img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}

/* Theme-style pagination disabled state */
.edu-pagination li.disabled a {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* Achievements gallery — equal image cards + title overlay */
.edu-gallery-grid .thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    background: #f3f5f7;
}

.edu-gallery-grid .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    display: block;
}

.edu-gallery-grid .aims-gallery-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 28px 14px 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
    border-radius: 0 0 5px 5px;
    pointer-events: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edu-gallery-grid .zoom-icon {
    z-index: 3;
}

@media only screen and (max-width: 767px) {
    .edu-gallery-grid .aims-gallery-title {
        font-size: 14px;
        padding: 22px 12px 10px;
    }
}
