/* 
 * Professional Content Shortcode Styles
 * All classes must start with nvm-prof-content-
 * All IDs must start with nvm-id-prof-content-
 */

.nvm-prof-content-wrapper {
    margin: 40px 0;
    direction: rtl;
}

.nvm-prof-content-section {
    margin-bottom: 50px;
    position: relative;
}

.nvm-prof-content-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-right: 4px solid #ce7929;
    padding-right: 10px;
    font-weight: 700;
}

/* Carousel controls */
.nvm-prof-content-carousel-container {
    position: relative;
    max-width: 100%;
}

.nvm-prof-content-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 5px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nvm-prof-content-carousel::-webkit-scrollbar {
    display: none;
}

.nvm-prof-content-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nvm-prof-content-carousel-btn:hover {
    background: #ce7929;
    color: #fff;
    border-color: #ce7929;
}

.nvm-prof-content-prev-btn {
    right: -20px;
}

.nvm-prof-content-next-btn {
    left: -20px;
}

/* Cards */
.nvm-prof-content-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nvm-prof-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.nvm-prof-content-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f5f5f5;
    display: block;
}

.nvm-prof-content-video-placeholder {
    width: 100%;
    height: 180px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nvm-prof-content-video-placeholder::after {
    content: '▶';
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
}

/* Video Containers */
.nvm-prof-content-video-container {
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
    /* Allows the box-shadow of the iframe or inner elements to show if needed */
}

.nvm-prof-content-video-container:hover {
    transform: none;
    /* remove hover jump effect for videos */
    box-shadow: none;
}

.nvm-prof-content-video-container iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
    /* maintain standard video ratio */
    height: auto;
    /* let aspect ratio control height */
    display: block;
}

.nvm-prof-content-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nvm-prof-content-card-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #222;
    line-height: 1.4;
    font-weight: 600;
}

/* Limit title lines */
.nvm-prof-content-card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nvm-prof-content-card-title a:hover {
    color: #ce7929;
}

.nvm-prof-content-card-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nvm-prof-content-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Video description - collapsed/expanded */
.nvm-prof-content-video-desc-wrapper {
    margin-top: 8px;
}

.nvm-prof-content-video-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    word-break: break-word;
    transition: max-height 0.3s ease;
}

.nvm-prof-content-video-desc-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nvm-prof-content-video-desc-expanded {
    display: block;
    overflow: visible;
}

.nvm-prof-content-video-desc-toggle {
    background: none !important;
    background-color: transparent !important;
    border: none;
    color: #ce7929;
    cursor: pointer;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    display: none;
    /* Hidden by default, shown via JS only when text overflows */
}

.nvm-prof-content-video-desc-toggle:hover,
.nvm-prof-content-video-desc-toggle:focus {
    text-decoration: underline;
    color: #ce7929;
}

.nvm-prof-content-card-action {
    margin-top: auto;
}

.nvm-prof-content-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.nvm-prof-content-btn:hover {
    background-color: #e2e2e2;
}

.nvm-prof-content-video-modal-btn {
    background-color: #ce7929;
    color: #fff;
    cursor: pointer;
    border: none;
}

.nvm-prof-content-video-modal-btn:hover {
    background-color: rgba(206, 121, 41, 0.85);
    /* #ce7929d9 */
}

/* Video Modal */
.nvm-prof-content-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nvm-prof-content-modal-inner {
    background-color: #000;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.nvm-prof-content-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.nvm-prof-content-modal-close:hover {
    color: #ddd;
}

.nvm-prof-content-modal-embed {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.nvm-prof-content-modal-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nvm-prof-content-card {
        flex: 0 0 260px;
    }

    .nvm-prof-content-prev-btn,
    .nvm-prof-content-next-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }
}