/* Study Materials Subject Page Styles */

/* Gradients for Subject Page */
.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bg-gradient-subject {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.bg-light-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #f1f5f9 100%);
}

/* Subject Description Styling */
.subject-description {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.subject-description h2,
.subject-description h3,
.subject-description h4 {
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.subject-description p {
    margin-bottom: 1rem;
}

.subject-description ul,
.subject-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.subject-description li {
    margin-bottom: 0.5rem;
}

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

.study-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
}

.card-header-custom {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-stats {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-link-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;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quick-link-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quick-link-card .btn {
    margin-top: auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header {
    border-bottom: 3px solid #667eea;
    padding-bottom: 1.5rem;
}

.breadcrumb-context {
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .card-header-custom {
        padding: 1rem;
    }

    .breadcrumb-context {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .study-card,
    .quick-link-card,
    .animate-fade-in {
        animation: none !important;
        transition: none !important;
    }
}
