/**
 * Infinity Classes - Free Learning Resources / Study Material Stylesheet
 * Exact recreation of Science Sangrah reference design
 */

.study-materials-section {
    position: relative;
    background-color: #FFFFFF;
    padding: 85px 24px;
    width: 100%;
}

@media (min-width: 1024px) {
    .study-materials-section {
        padding: 95px 24px 105px;
    }
}

.study-materials-container {
    max-width: 1260px;
    margin: 0 auto;
}

/* Pro Highlight Styles for Free Learning */
.study-brush-highlight {
    background: transparent;
    color: inherit;
    padding: 0;
    box-shadow: none;
    clip-path: none;
    transform: none;
}

/* Dark Bento Card */
.study-bento-card {
    position: relative;
    background: linear-gradient(140deg, #161518 0%, #1A181C 50%, #141316 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 26px 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    text-decoration: none;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.study-bento-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 21, 0.55);
    box-shadow: 0 20px 42px -12px rgba(255, 77, 21, 0.22), 0 0 0 1px rgba(255, 77, 21, 0.2);
}

/* Right-Edge Warm Orange Radial Glow */
.study-card-glow {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 77, 21, 0.2) 0%, rgba(255, 77, 21, 0.05) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease;
}

.study-bento-card:hover .study-card-glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 77, 21, 0.3) 0%, rgba(255, 77, 21, 0.08) 50%, transparent 75%);
}

/* Watermark Wireframe Illustration on Right */
.study-card-watermark {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.28;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.study-bento-card:hover .study-card-watermark {
    opacity: 0.65;
    transform: translateY(-50%) scale(1.08);
}

/* Card Content Layer */
.study-card-content {
    position: relative;
    z-index: 2;
}

/* Top Square Icon Box */
.study-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 77, 21, 0.08);
    border: 1px solid rgba(255, 77, 21, 0.35);
    color: #FF5A1F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.study-bento-card:hover .study-icon-box {
    background: #FF4D15;
    color: #FFFFFF;
    border-color: #FF4D15;
    box-shadow: 0 4px 14px rgba(255, 77, 21, 0.4);
}

/* Circular Bottom-Right Arrow Link */
.study-arrow-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 77, 21, 0.45);
    color: #FF5A1F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.study-bento-card:hover .study-arrow-btn {
    background: #FF4D15;
    color: #FFFFFF;
    border-color: #FF4D15;
    transform: scale(1.12) rotate(45deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .study-materials-section {
        padding: 45px 14px 40px;
    }
    .study-bento-card {
        padding: 18px 14px;
        min-height: 135px;
        border-radius: 20px;
    }
    .study-icon-box {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 9px;
    }
    .study-arrow-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}
