/* Subjects Section Styles */
.subjects-section {
    padding: 5rem 0;
    background: white;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.subject-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.subject-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.subject-icon.croatian {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.subject-icon.math {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.subject-icon.physics {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.subject-icon.chemistry {
    background: linear-gradient(135deg, #10b981, #059669);
}

.subject-icon.biology {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.subject-icon.history {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
}

.subject-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.subject-level {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.subject-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.subject-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.subject-features li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.subject-features li::before {
    content: '•';
    color: #8b5cf6;
    font-weight: bold;
}

.learn-more-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    font-size: 0.875rem;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}
