/* Curriculum Slider Styles */

.foz-curriculum-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 40px auto;
    padding: 60px 40px 80px 40px;
    /* 40px for arrow space (32px arrow + 8px extra) */
    overflow: visible;
    /* Allow arrows to show */
}

.foz-curriculum-container {
    display: flex;
    align-items: center;
    min-height: 520px;
    overflow: hidden;
    /* No horizontal padding - cards fill entire width */
}

/* Curriculum Item Card - Portrait Format */
.foz-curriculum-item {
    flex-shrink: 0;
    /* 3 cards: (100% - 2 gaps of 30px) / 3 */
    width: calc((100% - 60px) / 3);
    aspect-ratio: 3 / 4;
    /* Portrait ratio */
    margin-right: 30px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.foz-curriculum-item:last-child {
    margin-right: 0;
}

.foz-curriculum-card {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Image - Full Cover */
.foz-curriculum-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.foz-curriculum-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay - Very Dark Gradient for Inactive, Theme Color for Active */
.foz-curriculum-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    transition: all 0.4s ease;
    z-index: 2;
}

/* Active Item - Theme Color 1 (Red) with luminosity blend */
.foz-curriculum-item.active .foz-curriculum-overlay,
.foz-curriculum-item:hover .foz-curriculum-overlay {
    background: var(--theme-palette-color-1, #BB141A);
    opacity: 0.85;
    mix-blend-mode: multiply;
}

/* Active Item Image - Luminosity blend for Figma-like effect */
.foz-curriculum-item.active .foz-curriculum-image img,
.foz-curriculum-item:hover .foz-curriculum-image img {
    mix-blend-mode: luminosity;
    opacity: 0.3;
}

/* Content - Inside Card */
.foz-curriculum-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 3;
    color: #fff;
    text-align: center;
}

/* Title - Outfit font, smaller size */
.foz-curriculum-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

/* Details (Description + Link) - Hidden on inactive */
.foz-curriculum-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.foz-curriculum-item.active .foz-curriculum-details,
.foz-curriculum-item:hover .foz-curriculum-details {
    opacity: 1;
    max-height: 300px;
    margin-top: 15px;
}

.foz-curriculum-description {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #fff;
}

.foz-curriculum-link {
    display: inline-block;
    color: #fff;
    text-decoration: underline;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
}

.foz-curriculum-link:hover {
    text-decoration: none;
}


/* Positioning is handled by JS translateX on container */
/* Active class just for overlay styling */


/* Navigation Arrows - Small (32px, at card edges with half overlap) */
.foz-curriculum-slider-wrapper .foz-slider-prev,
.foz-curriculum-slider-wrapper .foz-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 30;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Position: half inside card (16px), half outside */
.foz-curriculum-slider-wrapper .foz-slider-prev {
    left: 24px;
    /* wrapper padding (40px) - arrow half (16px) = 24px from wrapper edge */
}

.foz-curriculum-slider-wrapper .foz-slider-next {
    right: 24px;
}

.foz-curriculum-slider-wrapper .foz-slider-prev:hover,
.foz-curriculum-slider-wrapper .foz-slider-next:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.05);
}

/* Hide Dots - Reference has no dots */
.foz-curriculum-slider-wrapper .foz-slider-dots {
    display: none;
}


/* Editor Styles */
.foz-curriculum-editor-wrapper {
    padding: 20px;
    border-radius: 8px;
}

.foz-curriculum-item-editor {
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.foz-curriculum-image-upload {
    flex: 0 0 100px;
}

.foz-curriculum-image-upload img {
    width: 100px;
    height: 140px;
    object-fit: cover;

}

.foz-curriculum-content-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foz-curriculum-title-input {
    font-size: 1rem;
    font-weight: 600;
}

.foz-curriculum-desc-input {
    font-size: 0.9rem;
}

.foz-curriculum-content-editor label {
    font-size: 0.8rem;
}

.foz-curriculum-content-editor input[type="text"] {
    padding: 5px;
}

/* Responsive - Mobile (1 card) */
@media (max-width: 689.98px) {
    .foz-curriculum-item {
        width: 100%;
        min-width: unset;
        margin-right: 0;
    }

    .foz-curriculum-slider-wrapper {
        padding: 40px 15px 60px 15px;
    }

    .foz-curriculum-slider-wrapper .foz-slider-prev,
    .foz-curriculum-slider-wrapper .foz-slider-next {
        width: 28px;
        height: 28px;
    }
}

/* ---------------------------------------------------- */
/* NEW: Curriculum Simple Item (Image + Text Below)     */
/* ---------------------------------------------------- */

.foz-curriculum-simple-item {
    flex-shrink: 0;
    /* 4 cards: (100% - 3 gaps of 30px) / 4 */
    width: calc((100% - 90px) / 4);
    margin-right: 30px;
    align-self: flex-start;
}

.foz-curriculum-simple-item:last-child {
    margin-right: 0;
}

.foz-curriculum-simple-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Space between image and text */
}

/* Image 3:2 Ratio */
.foz-curriculum-simple-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.foz-curriculum-simple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.foz-curriculum-simple-card:hover .foz-curriculum-simple-image img {
    transform: scale(1.05);
}

.foz-curriculum-simple-content {
    color: #fff;
}

/* Text Styling */
.foz-curriculum-simple-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    margin: 0;
    text-align: left;
    transition: color 0.3s ease;
}

.foz-curriculum-simple-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Editor Specific for Simple Item */
.foz-curriculum-item-editor.simple-mode .foz-curriculum-image-upload img {
    height: 80px;
    /* Smaller preview for landscape */
    width: 120px;
}

/* Responsive for Simple Item */
@media (max-width: 1024px) {
    .foz-curriculum-simple-item {
        /* 2 cards: (100% - 30px) / 2 */
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 600px) {
    .foz-curriculum-simple-item {
        width: 100%;
        margin-right: 0;
    }
}