﻿:root {
    --primary-orange: #d94e18;
    --primary-orange-hover: #b84013;
    --bg-color: #f3f4f6;
    --bg-white: #ffffff;
    --text-dark: #121212;
    --text-gray: #4b5563;
    --text-light-gray: #6b7280;
    --border-color: #e5e7eb;
    --box-bg: #f9fafb;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    z-index: 1001;
}

    .modal-close:hover {
        background: #f3f4f6;
        color: var(--text-dark);
    }

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-video-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-placeholder {
    width: 100%;
    height: auto;
    display: block;
}

.play-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(4px);
}

.large-play {
    width: 64px;
    height: 64px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    font-size: 24px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
}

    .control-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: transparent;
    }

.modal-body {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.modal-info {
    flex: 1;
}

    .modal-info h3 {
        margin: 0 0 4px 0;
        font-size: 20px;
    }

.modal-subtitle {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0 0 24px 0;
}

.modal-instructor {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .modal-instructor img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

.modal-instructor-text h4 {
    margin: 0;
    font-size: 14px;
}

.modal-instructor-text p {
    margin: 0;
    font-size: 12px;
    color: var(--text-light-gray);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.modal-nav-btns {
    display: flex;
    gap: 12px;
}

.btn-explore {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.125rem;
    font-family: var(--font-family-base);
    font-weight: normal;
    cursor: pointer;
    transition: var(--transition-default);
}

    .btn-explore:hover {
        background-color: var(--primary-color);
        color: var(--background-white);
    }

/* Highlight Card Style */
.highlight-card {
    cursor: pointer;
}

    .highlight-card .image-container {
        background: #f0f0f0;
    }

.highlight-modal-trigger {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 768px) {
    .modal-body {
        padding: 24px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .modal-info {
        width: 100%;
    }

    .modal-subtitle {
        margin-bottom: 15px;
    }

    .modal-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
}
