/* ── Carrusel de contenido de módulo ── */

/* Outer card: remove border to match .learning-main-card */
.widget-feed:has(.course-content-carousel-wrapper) {
    border-color: transparent;
}

/* Title: match .learning-page-title color and size */
.widget-feed:has(.course-content-carousel-wrapper) .card-title {
    color: #a0522d;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
}

/* Instruction box: match .learning-instruction style */
.widget-feed:has(.course-content-carousel-wrapper) .card-info {
    display: block !important;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px !important;
    padding: 12px 16px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 9px;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 1rem;
    line-height: 1.45;
}
.widget-feed:has(.course-content-carousel-wrapper) .card-info label {
    margin: 0;
    font-weight: normal;
    cursor: default;
    color: inherit;
}

.course-content-carousel-section { width: 100%; padding: 12px 0 28px; }
.course-content-carousel-wrapper { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 64px; }
.course-content-carousel { position: relative; overflow: hidden; border-radius: 24px; background-color: #ffffff; box-shadow: 0 18px 45px rgba(31,41,51,0.12); }
.course-content-carousel .carousel-item { min-height: 620px; max-height: none; }
.course-content-carousel-slide { display: grid; grid-template-columns: minmax(280px, 42%) minmax(0, 58%); min-height: 620px; }
.course-content-carousel-image { position: relative; background-position: center; background-size: cover; background-repeat: no-repeat; min-height: 620px; }
.course-content-carousel-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,18,40,0.42) 0%, rgba(10,18,40,0.10) 100%); pointer-events: none; }
.course-content-carousel-content { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; color: #111827; text-align: center; }
.course-content-carousel-content p { font-size: clamp(1rem,1.25vw,1.075rem); line-height: 1.75; margin-bottom: 0; }
.course-content-carousel-content strong { font-weight: 700; }
.course-content-carousel-control { position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #d9e2ec; border-radius: 50%; background-color: #ffffff; box-shadow: 0 10px 24px rgba(31,41,51,0.16); color: #1f2933; opacity: 1; text-decoration: none; transform: translateY(-50%); transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.course-content-carousel-control:hover, .course-content-carousel-control:focus { outline: none; background-color: #f5f7fa; box-shadow: 0 12px 28px rgba(31,41,51,0.22); color: #0f172a; text-decoration: none; transform: translateY(-50%) scale(1.04); }
.course-content-carousel-control-left { left: 6px; }
.course-content-carousel-control-right { right: 6px; }
.course-content-carousel-control-symbol { display: block; margin-top: -2px; font-size: 34px; line-height: 1; }
.course-content-carousel-indicators { position: absolute; left: 50%; bottom: 18px; z-index: 10; transform: translateX(-50%); justify-content: center; margin: 0; }
.course-content-carousel-indicators li { width: 10px; height: 10px; border-top: 0; border-bottom: 0; border-radius: 50%; background-color: #9fb3c8; opacity: 1; }
.course-content-carousel-indicators .active { background-color: #1f6feb; }
@media (max-width: 991.98px) {
	.course-content-carousel-wrapper { padding: 0 54px; }
	.course-content-carousel .carousel-item, .course-content-carousel-slide { min-height: auto; }
	.course-content-carousel-slide { grid-template-columns: 1fr; }
	.course-content-carousel-image { min-height: 230px; }
	.course-content-carousel-content { padding: 34px 36px 40px; }
}
@media (max-width: 575.98px) {
	.course-content-carousel-container { margin-right: 0 !important; margin-left: 0 !important; }
	.course-content-carousel-wrapper { padding: 0 0 66px; }
	.course-content-carousel, .course-content-carousel .carousel-inner, .course-content-carousel .carousel-item, .course-content-carousel-slide, .course-content-carousel-content { height: auto !important; min-height: 0 !important; max-height: none !important; }
	.course-content-carousel { overflow: hidden; border-radius: 18px; }
	.course-content-carousel .carousel-inner { overflow: hidden !important; }
	.course-content-carousel-slide { grid-template-columns: 1fr; }
	.course-content-carousel-image { height: 170px; min-height: 170px; }
	.course-content-carousel-content { display: flex; justify-content: flex-start; overflow: visible !important; padding: 22px 18px 56px; }
	.course-content-carousel-content p { font-size: 0.98rem; line-height: 1.65; overflow-wrap: break-word; }
	.course-content-carousel-indicators { margin: 14px 0 18px; }
	.course-content-carousel-control { top: auto; bottom: 10px; width: 46px; height: 46px; transform: none; }
	.course-content-carousel-control:hover, .course-content-carousel-control:focus { transform: scale(1.04); }
	.course-content-carousel-control-left { left: calc(50% - 56px); }
	.course-content-carousel-control-right { right: calc(50% - 56px); }
}
