/* Study Materials Index Page Styles */

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: moveShape 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    background: white;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: 10%;
    background: white;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: -50px;
    background: white;
    animation-delay: 2s;
}

@keyframes moveShape {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-actions {
    max-width: 500px;
}

.hero-actions .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-icon {
    position: relative;
    z-index: 1;
}

/* Improved Sticky Search Bar */
.sticky-search {
    position: sticky;
    top: 80px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 90;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.sticky-search:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-form .input-group-text {
    font-size: 1.25rem;
    background: white;
    border: none;
    color: #667eea;
}

.search-form .form-control {
    font-weight: 500;
    color: #333;
}

.search-form .form-control::placeholder {
    color: #999;
    font-weight: 400;
}

.search-form .btn-primary {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Material Type Cards */
.material-type-card {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.material-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.material-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.material-type-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 600;
    color: #1a1a1a;
}

/* Button Enhancements */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Animation Enhancements */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        max-width: 100%;
    }

    .hero-actions .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    .sticky-search {
        top: 70px;
    }

    .search-form .input-group-lg > input,
    .search-form .input-group-lg > button {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 350px;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .material-type-card {
        padding: 1.5rem 1rem;
    }
}
