/*
 * LCU Homepage Sections – self-contained CSS
 * Replicates the Nori (motivoweb) theme styles for:
 *   [lcu_courses] · [lcu_instructors] · [lcu_events] · [lcu_blog_posts]
 *
 * All selectors are scoped inside .lcu-section to prevent conflicts.
 */

/* ─── Reset / Shared ─────────────────────────────────────────────────────── */

.lcu-section {
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
}

.lcu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.lcu-section *,
.lcu-section *::before,
.lcu-section *::after {
    box-sizing: border-box;
}

.lcu-section img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lcu-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lcu-no-content {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 15px;
}

/* ─── Title Block (mo-title-box) ─────────────────────────────────────────── */

.lcu-section .lcu-title-box {
    margin-bottom: 50px;
}

.lcu-section .mo-title-box .content-inner {
    max-width: 700px;
    margin: 0 auto;
}

.lcu-section .mo-title-box .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6246ea;
    background: rgba(98, 70, 234, 0.08);
    border: 1px solid rgba(98, 70, 234, 0.2);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.lcu-section .mo-title-box .sub-title svg {
    fill: #6246ea;
    flex-shrink: 0;
}

.lcu-section .mo-title-box .title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a2e;
    margin: 0 0 16px;
}

.lcu-section .mo-title-box .title-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.lcu-section .text-center {
    text-align: center;
}

/* ─── COURSES SECTION ────────────────────────────────────────────────────── */

.lcu-courses-section {
    background: #f8f8ff;
}

/* 4-column grid */
.lcu-section .pf_4_cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .lcu-section .pf_4_cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lcu-section .pf_4_cols {
        grid-template-columns: 1fr;
    }
}

/* Course Card */
.lcu-section .course-style-1.course-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(10, 29, 53, 0.1);
    box-shadow: 0 6px 34px rgba(215, 216, 222, 0.41);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.lcu-section .course-style-1.course-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 100px 0 rgba(8, 8, 8, 0.15);
}

.lcu-section .course-item-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Level badge */
.lcu-section .course-level {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) brightness(92%);
    -webkit-backdrop-filter: blur(14px) brightness(92%);
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 900;
    text-transform: capitalize;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* Thumbnail */
.lcu-section .thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e8e8f0;
}

.lcu-section .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.lcu-section .course-item:hover .thumbnail img {
    transform: scale3d(1.1, 1.1, 1.1);
}

.lcu-section .lcu-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d8d8f0 0%, #b8b8e0 100%);
}

/* Price row — flat display at bottom of card content */
.lcu-section .course-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f5;
    pointer-events: none;
}

.lcu-section .course-price-row .price {
    font-size: 18px;
    font-weight: 700;
    color: #6246ea;
    line-height: 1;
}

.lcu-section .course-price-row .free {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    line-height: 1;
}

.lcu-section .course-price-row .origin-price {
    font-size: 13px;
    font-weight: 400;
    color: #aaaaaa;
    text-decoration: line-through;
    line-height: 1;
}

/* Inner content */
.lcu-section .course-item .inner {
    padding: 24px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lcu-section .course-item .post-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.lcu-section .course-item .post-title a {
    color: #1a1a2e;
    text-decoration: none;
    display: inline;
    background-image: linear-gradient(#6246ea, #6246ea);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: background-size 0.35s ease, color 0.25s ease;
    padding-bottom: 2px;
}

.lcu-section .course-item:hover .post-title a,
.lcu-section .course-item .post-title a:hover {
    color: #6246ea;
    background-size: 100% 2px;
}

.lcu-section .course-item p.content {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

.lcu-section .course-card-footer {
    margin-top: auto;
}

.lcu-section .course-meta {
    display: flex;
    gap: 16px;
    border-top: 1px solid #f0f0f5;
    padding-top: 12px;
    margin-top: 0;
}

.lcu-section .course-meta li {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lcu-section .course-meta li i {
    color: #6246ea;
    font-size: 13px;
}

/* Browse More button */
.lcu-btn-center {
    text-align: center;
    margin-top: 40px;
}

.lcu-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.lcu-btn-primary {
    background: #6246ea;
    color: #fff;
    border: 2px solid #6246ea;
}

.lcu-btn-primary:hover {
    background: transparent;
    color: #6246ea;
}

.lcu-btn-primary .fa {
    margin-left: 8px;
    font-size: 11px;
}

/* ─── INSTRUCTORS SECTION ────────────────────────────────────────────────── */

.lcu-instructors-section {
    background: #fff;
}

/* 4-column grid with stagger */
.lcu-instructors-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .lcu-instructors-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .lcu-instructor-col.lcu-col-offset {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .lcu-instructors-row {
        grid-template-columns: 1fr;
    }
}

.lcu-instructor-col {
    display: flex;
    flex-direction: column;
}

/* Stagger: columns 1 and 3 (0-indexed) get a top push */
.lcu-col-spacer {
    height: 48px;
}

/* Clip-path for the card corners */
.clip-path-top-left .mo-team.tpl2 .team-member,
.clip-path-top-left .mo-team.tpl2 .team-img {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
    border-radius: 0 0 16px 16px;
}

.clip-path-top-right .mo-team.tpl2 .team-member,
.clip-path-top-right .mo-team.tpl2 .team-img {
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
    border-radius: 0 0 16px 16px;
}

/* Team card – tpl2 */
.lcu-section .mo-team.tpl2 {
    position: relative;
}

.lcu-section .mo-team.tpl2 .team-member {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    margin: 0;
}

.lcu-section .mo-team.tpl2 .team-img {
    position: relative;
    overflow: hidden;
}

.lcu-section .mo-team.tpl2 .team-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

@media (max-width: 1200px) {
    .lcu-section .mo-team.tpl2 .team-img img {
        height: 300px;
    }
}

.lcu-section .lcu-no-photo {
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, #d8d8f0, #b8b8e0);
}

.lcu-section .mo-team.tpl2 .team-member:hover .team-img img {
    transform: scale(1.06);
}

.lcu-section .mo-team.tpl2 .team-img .overlay {
    position: absolute;
    inset: 0;
    background: rgba(98, 70, 234, 0);
    transition: background 0.35s ease;
}

.lcu-section .mo-team.tpl2 .team-member:hover .overlay {
    background: rgba(98, 70, 234, 0.25);
}

/* Social icons – appear on hover */
.lcu-section .mo-team.tpl2 .team-social {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.lcu-section .mo-team.tpl2 .team-member:hover .team-social {
    opacity: 1;
}

.lcu-section .mo-team.tpl2 .mo-team-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #6246ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lcu-section .mo-team.tpl2 .mo-team-icon:hover {
    background: #6246ea;
    color: #fff;
}

/* Team title below image */
.lcu-section .mo-team.tpl2 .team-title {
    padding: 16px 18px 18px;
    background: rgba(26, 26, 46, 0.85);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.lcu-section .mo-team.tpl2 .team-title h5.data-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.lcu-section .mo-team.tpl2 .team-title h5.data-title span {
    display: block;
}

.lcu-section .mo-team.tpl2 .team-title h6 {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin: 0 0 4px;
}

.lcu-section .mo-team.tpl2 .lcu-instructor-bio {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ─── EVENTS SECTION ─────────────────────────────────────────────────────── */

.lcu-events-section {
    background: #f8f8ff;
}

.lcu-divider {
    border: none;
    border-top: 1px solid #e5e5f0;
    margin: 0 0 40px;
}

/* Event list */
.lcu-section .lg-block-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lcu-section .mo-event-item {
    border-bottom: 1px solid #e8e8f5;
}

.lcu-section .mo-event-item:last-child {
    border-bottom: none;
}

.lcu-section .mo-event-style-3 .inner {
    padding: 24px 0;
}

.lcu-section .mo-event-column {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .lcu-section .mo-event-column {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    .lcu-section .mo-event-column .event-meta,
    .lcu-section .mo-event-column .read-more-btn {
        display: none;
    }
}

/* Date block */
.lcu-section .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #6246ea;
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
}

.lcu-section .event-date .day {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.lcu-section .event-date .month-year .month {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    font-weight: 600;
}

/* Event title */
.lcu-section .mo-event-style-3 h4.title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}

.lcu-section .mo-event-style-3 h4.title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.lcu-section .mo-event-style-3 h4.title a:hover {
    color: #6246ea;
}

/* Location */
.lcu-section .event-meta span {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lcu-section .event-meta i {
    color: #6246ea;
}

/* Arrow CTA */
.lcu-section .read-more-btn .mo-btn.btn-circle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #6246ea;
    color: #6246ea;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    flex-shrink: 0;
}

.lcu-section .read-more-btn .mo-btn.btn-circle-icon:hover {
    background: #6246ea;
    color: #fff;
}

.lcu-section .read-more-btn .mo-btn.btn-circle-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ─── BLOG POSTS SECTION ─────────────────────────────────────────────────── */

.lcu-blog-section {
    background: linear-gradient(135deg, #f0f5ff 0%, #eef1ff 100%);
}

/* 3-column grid */
.lcu-section .lg-block-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .lcu-section .lg-block-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lcu-section .lg-block-grid-3 {
        grid-template-columns: 1fr;
    }
}

.lcu-section .grid-mid-details-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(10, 29, 53, 0.08);
    box-shadow: 0 6px 34px rgba(215, 216, 222, 0.41);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
}

.lcu-section .grid-mid-details-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 100px 0 rgba(8, 8, 8, 0.15);
}

/* Full-card click overlay — sits below interactive links */
.lcu-section .lcu-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    cursor: pointer;
}

/* Category, title, arrow links sit above the card overlay */
.lcu-section .lcu-above-overlay {
    position: relative;
    z-index: 2;
}

.lcu-section .format-post figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #e8e8f0;
}

.lcu-section .format-post figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lcu-section .grid-mid-details-post:hover figure img {
    transform: scale(1.05);
}

.lcu-section .lcu-no-thumb-blog {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d8d8f0, #b8b8e0);
}

/* Date overlay on figure — glassy badge */
.lcu-section .format-post .date {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    pointer-events: none;
    background: rgba(10, 14, 30, 0.55);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
    line-height: 1.2;
}

.lcu-section .post-day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.lcu-section .post-month {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    font-weight: 600;
}

/* Arrow overlay link */
.lcu-section .arrow-post {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Content area */
.lcu-section .content-post {
    padding: 22px 22px 26px;
}

.lcu-section .meta-post {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.lcu-section .meta-post .cat a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6246ea;
    text-decoration: none;
    transition: color 0.2s;
}

.lcu-section .meta-post .cat a:hover {
    color: #4a32c8;
}

.lcu-section .meta-post .cat a + a::before {
    content: " · ";
    color: #bbb;
}

.lcu-section .meta-post li::before {
    content: "•";
    color: #ccc;
    font-size: 14px;
}

.lcu-section .meta-post li:first-child::before {
    display: none;
}

.lcu-section .author {
    font-size: 12px;
    color: #999;
}

.lcu-section .content-post h3.post-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.lcu-section .content-post h3.post-title a {
    color: #1a1a2e;
    text-decoration: none;
    display: inline;
    background-image: linear-gradient(#6246ea, #6246ea);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: background-size 0.35s ease, color 0.25s ease;
    padding-bottom: 2px;
}

.lcu-section .grid-mid-details-post:hover .content-post h3.post-title a,
.lcu-section .content-post h3.post-title a:hover {
    color: #6246ea;
    background-size: 100% 2px;
}

.lcu-section .content-post p.content {
    font-size: 14px;
    color: #777;
    line-height: 1.65;
    margin: 0 0 16px;
}

/* Arrow "read more" circle button */
.lcu-section .btn-txt-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50px;
    border: 1px solid rgba(10, 29, 53, 0.1);
    background: transparent;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.lcu-section .btn-txt-arrow:hover {
    background: #6246ea;
    border-color: #6246ea;
    color: #fff;
}

.lcu-section .btn-txt-arrow .svg-arrow {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* ─── Dark background variant (used for courses section) ─────────────────── */

.lcu-courses-section .mo-title-box .title {
    color: #1a1a2e;
}

/* ─── Responsive tweaks ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lcu-section {
        padding: 56px 0;
    }
    .lcu-section .mo-title-box .title {
        font-size: 28px;
    }
    .lcu-section .lcu-title-box {
        margin-bottom: 36px;
    }
}

@media (max-width: 480px) {
    .lcu-section {
        padding: 40px 0;
    }
    .lcu-section .mo-title-box .title {
        font-size: 24px;
    }
}
