/* Modern Preview Card Styles */
.essay-preview-card {
    position: relative;
    width: 68%;
    margin: 40px auto 0 auto;
    padding: 60px 40px;
    min-height: 500px;
    /* Added height to show more video */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    /* box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2); */
}

.card-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Adjust opacity to blend with background */
    border-radius: 30px;
    /* Match card border radius */
}

.essay-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 209, 255, 0.2);
    border-color: rgba(0, 209, 255, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.1) 0%, rgba(0, 0, 0, 0.6) 70%);
    /* Darker outer glow for contrast */
    opacity: 0.8;
    /* Always visible to darken video */
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    /* Above video */
}

.essay-preview-card:hover .card-glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, rgba(0, 0, 0, 0.5) 70%);
}

.card-content {
    position: relative;
    z-index: 2;
    /* Above video and glow */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-wrapper {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 209, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    /* Increased from 2.5rem */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    /* Adjusted spacing */
    letter-spacing: 1px;
    line-height: 1.2;
}

.card-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.modern-read-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #00d1ff, #005bea);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.modern-read-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 209, 255, 0.6);
    color: #ffffff;
}

.modern-read-button i {
    transition: transform 0.3s ease;
}

.modern-read-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 1025px) {
    .essay-preview-card {
        width: 100%;
        margin: 0;
        padding: 60px 20px;
        min-height: 400px;
        border-radius: 0;
        /* Повна ширина без заокруглень */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .essay-preview-card {
        width: 100%;
        margin: 0;
        padding: 60px 20px;
        min-height: 400px;
        border-radius: 0;
        /* Повна ширина без заокруглень */
    }

    .card-video-bg {
        border-radius: 0;
        /* Відео на всю ширину без заокруглень */
        object-fit: cover;
        /* Зберігає пропорції відео */
    }

    .card-title {
        font-size: 2rem;
        /* Зменшений розмір для мобільних */
        padding: 0 10px;
    }

    .icon-wrapper {
        font-size: 3rem;
    }

    .modern-read-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
}